blob: 4c726e2f20e446a88509e1673f68e9fd5d1c7d24 [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 Spencer502935f2004-12-22 05:56:56 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP LLVMGCC LLVMGXX MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +0000968\`configure' configures llvm 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencerabec8f92004-10-27 23:03:44 +00001030 short | recursive ) echo "Configuration of llvm 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001039 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001040 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001047 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001048
1049Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001052 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001053 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1054 --with-pic try to use only PIC/non-PIC objects [default=use
1055 both]
1056 --with-tags[=TAGS]
1057 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001058
1059Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001060 CC C compiler command
1061 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001066 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001067 CXX C++ compiler command
1068 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001069 CXXCPP C++ preprocessor
1070 F77 Fortran 77 compiler command
1071 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001072
1073Use these variables to override the choices made by `configure' or to help
1074it to find libraries and programs with nonstandard names/locations.
1075
1076Report bugs to <llvmbugs@cs.uiuc.edu>.
1077_ACEOF
1078fi
1079
1080if test "$ac_init_help" = "recursive"; then
1081 # If there are subdirs, report their specific --help.
1082 ac_popdir=`pwd`
1083 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084 test -d $ac_dir || continue
1085 ac_builddir=.
1086
1087if test "$ac_dir" != .; then
1088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089 # A "../" for each directory in $ac_dir_suffix.
1090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091else
1092 ac_dir_suffix= ac_top_builddir=
1093fi
1094
1095case $srcdir in
1096 .) # No --srcdir option. We are building in place.
1097 ac_srcdir=.
1098 if test -z "$ac_top_builddir"; then
1099 ac_top_srcdir=.
1100 else
1101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102 fi ;;
1103 [\\/]* | ?:[\\/]* ) # Absolute path.
1104 ac_srcdir=$srcdir$ac_dir_suffix;
1105 ac_top_srcdir=$srcdir ;;
1106 *) # Relative path.
1107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001110
1111# Do not use `cd foo && pwd` to compute absolute paths, because
1112# the directories may not exist.
1113case `pwd` in
1114.) ac_abs_builddir="$ac_dir";;
1115*)
1116 case "$ac_dir" in
1117 .) ac_abs_builddir=`pwd`;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120 esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_top_builddir=${ac_top_builddir}.;;
1124*)
1125 case ${ac_top_builddir}. in
1126 .) ac_abs_top_builddir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129 esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_srcdir=$ac_srcdir;;
1133*)
1134 case $ac_srcdir in
1135 .) ac_abs_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138 esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_top_srcdir=$ac_top_srcdir;;
1142*)
1143 case $ac_top_srcdir in
1144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 esac;;
1148esac
John Criswell7a73b802003-06-30 21:59:07 +00001149
1150 cd $ac_dir
1151 # Check for guested configure; otherwise get Cygnus style configure.
1152 if test -f $ac_srcdir/configure.gnu; then
1153 echo
1154 $SHELL $ac_srcdir/configure.gnu --help=recursive
1155 elif test -f $ac_srcdir/configure; then
1156 echo
1157 $SHELL $ac_srcdir/configure --help=recursive
1158 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001159 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001160 echo
1161 $ac_configure --help
1162 else
1163 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1164 fi
1165 cd $ac_popdir
1166 done
1167fi
1168
1169test -n "$ac_init_help" && exit 0
1170if $ac_init_version; then
1171 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001172llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001173generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001174
Reid Spencer2706f8c2004-09-19 23:53:36 +00001175Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001176This configure script is free software; the Free Software Foundation
1177gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001178
1179$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001180_ACEOF
1181 exit 0
1182fi
1183exec 5>config.log
1184cat >&5 <<_ACEOF
1185This file contains any messages produced by compilers while
1186running configure, to aid debugging if configure makes a mistake.
1187
Reid Spencerabec8f92004-10-27 23:03:44 +00001188It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001189generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001190
1191 $ $0 $@
1192
1193_ACEOF
1194{
1195cat <<_ASUNAME
1196## --------- ##
1197## Platform. ##
1198## --------- ##
1199
1200hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205
1206/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1208
1209/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1210/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1211/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1213/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1214/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1215/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1216
1217_ASUNAME
1218
1219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1220for as_dir in $PATH
1221do
1222 IFS=$as_save_IFS
1223 test -z "$as_dir" && as_dir=.
1224 echo "PATH: $as_dir"
1225done
1226
1227} >&5
1228
1229cat >&5 <<_ACEOF
1230
1231
1232## ----------- ##
1233## Core tests. ##
1234## ----------- ##
1235
1236_ACEOF
1237
1238
1239# Keep a trace of the command line.
1240# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001241# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001242# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001243# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001244ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001245ac_configure_args0=
1246ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001247ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001248ac_must_keep_next=false
1249for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001250do
John Criswell0c38eaf2003-09-10 15:17:25 +00001251 for ac_arg
1252 do
1253 case $ac_arg in
1254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1257 continue ;;
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 esac
1261 case $ac_pass in
1262 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263 2)
1264 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001266 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001267 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001268 case $ac_arg in
1269 *=* | --config-cache | -C | -disable-* | --disable-* \
1270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272 | -with-* | --with-* | -without-* | --without-* | --x)
1273 case "$ac_configure_args0 " in
1274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275 esac
1276 ;;
1277 -* ) ac_must_keep_next=true ;;
1278 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001279 fi
1280 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281 # Get rid of the leading space.
1282 ac_sep=" "
1283 ;;
1284 esac
1285 done
John Criswell7a73b802003-06-30 21:59:07 +00001286done
John Criswell0c38eaf2003-09-10 15:17:25 +00001287$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288$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 +00001289
1290# When interrupted or exit'd, cleanup temporary files, and complete
1291# config.log. We remove comments because anyway the quotes in there
1292# would cause problems or look ugly.
1293# WARNING: Be sure not to use single quotes in there, as some shells,
1294# such as our DU 5.0 friend, will then `close' the trap.
1295trap 'exit_status=$?
1296 # Save into config.log some information that might help in debugging.
1297 {
1298 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001299
John Criswell7a73b802003-06-30 21:59:07 +00001300 cat <<\_ASBOX
1301## ---------------- ##
1302## Cache variables. ##
1303## ---------------- ##
1304_ASBOX
1305 echo
1306 # The following way of writing the cache mishandles newlines in values,
1307{
1308 (set) 2>&1 |
1309 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310 *ac_space=\ *)
1311 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001312 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001314 ;;
1315 *)
1316 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001318 ;;
1319 esac;
1320}
1321 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001322
1323 cat <<\_ASBOX
1324## ----------------- ##
1325## Output variables. ##
1326## ----------------- ##
1327_ASBOX
1328 echo
1329 for ac_var in $ac_subst_vars
1330 do
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1333 done | sort
1334 echo
1335
1336 if test -n "$ac_subst_files"; then
1337 cat <<\_ASBOX
1338## ------------- ##
1339## Output files. ##
1340## ------------- ##
1341_ASBOX
1342 echo
1343 for ac_var in $ac_subst_files
1344 do
1345 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001346 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001347 done | sort
1348 echo
1349 fi
1350
John Criswell7a73b802003-06-30 21:59:07 +00001351 if test -s confdefs.h; then
1352 cat <<\_ASBOX
1353## ----------- ##
1354## confdefs.h. ##
1355## ----------- ##
1356_ASBOX
1357 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001358 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001359 echo
1360 fi
1361 test "$ac_signal" != 0 &&
1362 echo "$as_me: caught signal $ac_signal"
1363 echo "$as_me: exit $exit_status"
1364 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001365 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001366 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367 exit $exit_status
1368 ' 0
1369for ac_signal in 1 2 13 15; do
1370 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1371done
1372ac_signal=0
1373
1374# confdefs.h avoids OS command line length limits that DEFS can exceed.
1375rm -rf conftest* confdefs.h
1376# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377echo >confdefs.h
1378
1379# Predefined preprocessor variables.
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_NAME "$PACKAGE_NAME"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_VERSION "$PACKAGE_VERSION"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_STRING "$PACKAGE_STRING"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1403_ACEOF
1404
1405
1406# Let the site file select an alternate cache file if it wants to.
1407# Prefer explicitly selected file to automatically selected ones.
1408if test -z "$CONFIG_SITE"; then
1409 if test "x$prefix" != xNONE; then
1410 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411 else
1412 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413 fi
1414fi
1415for ac_site_file in $CONFIG_SITE; do
1416 if test -r "$ac_site_file"; then
1417 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418echo "$as_me: loading site script $ac_site_file" >&6;}
1419 sed 's/^/| /' "$ac_site_file" >&5
1420 . "$ac_site_file"
1421 fi
1422done
1423
1424if test -r "$cache_file"; then
1425 # Some versions of bash will fail to source /dev/null (special
1426 # files actually), so we avoid doing that.
1427 if test -f "$cache_file"; then
1428 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429echo "$as_me: loading cache $cache_file" >&6;}
1430 case $cache_file in
1431 [\\/]* | ?:[\\/]* ) . $cache_file;;
1432 *) . ./$cache_file;;
1433 esac
1434 fi
1435else
1436 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437echo "$as_me: creating cache $cache_file" >&6;}
1438 >$cache_file
1439fi
1440
1441# Check that the precious variables saved in the cache have kept the same
1442# value.
1443ac_cache_corrupted=false
1444for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001445 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447 eval ac_new_set=\$ac_env_${ac_var}_set
1448 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449 eval ac_new_val="\$ac_env_${ac_var}_value"
1450 case $ac_old_set,$ac_new_set in
1451 set,)
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1455 ,set)
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1459 ,);;
1460 *)
1461 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001462 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001463echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001464 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001465echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001466 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001467echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001468 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001469 fi;;
1470 esac
1471 # Pass precious variables to config.status.
1472 if test "$ac_new_set" = set; then
1473 case $ac_new_val in
1474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 *) ac_arg=$ac_var=$ac_new_val ;;
1477 esac
1478 case " $ac_configure_args " in
1479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1481 esac
1482 fi
1483done
1484if $ac_cache_corrupted; then
1485 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489 { (exit 1); exit 1; }; }
1490fi
1491
1492ac_ext=c
1493ac_cpp='$CPP $CPPFLAGS'
1494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1522
1523
John Criswell0c38eaf2003-09-10 15:17:25 +00001524
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001525LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1526
1527
1528
1529
1530
1531
1532
John Criswell7a73b802003-06-30 21:59:07 +00001533ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001534for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001535 if test -f $ac_dir/install-sh; then
1536 ac_aux_dir=$ac_dir
1537 ac_install_sh="$ac_aux_dir/install-sh -c"
1538 break
1539 elif test -f $ac_dir/install.sh; then
1540 ac_aux_dir=$ac_dir
1541 ac_install_sh="$ac_aux_dir/install.sh -c"
1542 break
1543 elif test -f $ac_dir/shtool; then
1544 ac_aux_dir=$ac_dir
1545 ac_install_sh="$ac_aux_dir/shtool install -c"
1546 break
1547 fi
1548done
1549if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001550 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1551echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001552 { (exit 1); exit 1; }; }
1553fi
1554ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1555ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1556ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1557
John Criswell392aaa32003-07-22 19:18:09 +00001558
Reid Spencer2706f8c2004-09-19 23:53:36 +00001559if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001560 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1561 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001562echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1563 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001564 fi
John Criswell93e1c722003-09-15 17:04:06 +00001565fi
1566
John Criswell33a911a2003-11-25 20:36:46 +00001567for i in `ls ${srcdir}/projects`
1568do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001569 if test -d ${srcdir}/projects/${i} ; then
1570 case ${i} in
1571 "CVS") ;;
1572 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001573
Reid Spencer4d68ba22004-09-07 16:35:45 +00001574subdirs="$subdirs projects/sample"
1575 ;;
1576 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001577
Reid Spencer4d68ba22004-09-07 16:35:45 +00001578subdirs="$subdirs projects/Stacker"
1579 ;;
1580 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001581
Reid Spencer4d68ba22004-09-07 16:35:45 +00001582subdirs="$subdirs projects/llvm-test"
1583 ;;
1584 "llvm-reopt")
1585
1586subdirs="$subdirs projects/llvm-reopt"
1587;;
1588 "llvm-gcc")
1589
1590subdirs="$subdirs projects/llvm-gcc"
1591 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001592 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001593
Reid Spencer641f7ef2004-09-20 22:14:56 +00001594subdirs="$subdirs projects/Java"
1595 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001596 "llvm-tv")
1597
1598subdirs="$subdirs projects/llvm-tv"
1599 ;;
1600 "llvm-fefw")
1601
1602subdirs="$subdirs projects/llvm-fefw"
1603 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001604 "poolalloc")
1605
1606subdirs="$subdirs projects/poolalloc"
1607 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001608 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001609 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1610echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001611 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001612 esac
John Criswell33a911a2003-11-25 20:36:46 +00001613 fi
1614done
John Criswell559a6c12003-09-30 16:31:48 +00001615
John Criswell7a73b802003-06-30 21:59:07 +00001616
1617# Make sure we can run config.sub.
1618$ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623echo "$as_me:$LINENO: checking build system type" >&5
1624echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_build_alias=$build_alias
1629test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1639
1640fi
1641echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642echo "${ECHO_T}$ac_cv_build" >&6
1643build=$ac_cv_build
1644build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649echo "$as_me:$LINENO: checking host system type" >&5
1650echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 ac_cv_host_alias=$host_alias
1655test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1661
1662fi
1663echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664echo "${ECHO_T}$ac_cv_host" >&6
1665host=$ac_cv_host
1666host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671echo "$as_me:$LINENO: checking target system type" >&5
1672echo $ECHO_N "checking target system type... $ECHO_C" >&6
1673if test "${ac_cv_target+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675else
1676 ac_cv_target_alias=$target_alias
1677test "x$ac_cv_target_alias" = "x" &&
1678 ac_cv_target_alias=$ac_cv_host_alias
1679ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1680 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1681echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1682 { (exit 1); exit 1; }; }
1683
1684fi
1685echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1686echo "${ECHO_T}$ac_cv_target" >&6
1687target=$ac_cv_target
1688target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1689target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1690target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1691
1692
1693# The aliases save the names the user supplied, while $host etc.
1694# will get canonicalized.
1695test -n "$target_alias" &&
1696 test "$program_prefix$program_suffix$program_transform_name" = \
1697 NONENONEs,x,x, &&
1698 program_prefix=${target_alias}-
1699
Reid Spencer7b3e8512004-12-24 06:29:05 +00001700echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1701echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1702if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704else
1705 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001706 *-*-aix*)
1707 llvm_cv_os_type="AIX"
1708 llvm_cv_platform_type="Unix" ;;
1709 *-*-cygwin*)
1710 llvm_cv_os_type="Cygwin"
1711 llvm_cv_platform_type="Unix" ;;
1712 *-*-darwin*)
1713 llvm_cv_os_type="Darwin"
1714 llvm_cv_platform_type="Unix" ;;
1715 *-*-freebsd*)
1716 llvm_cv_os_type="FreeBSD"
1717 llvm_cv_platform_type="Unix" ;;
1718 *-*-interix*)
1719 llvm_cv_os_type="Interix"
1720 llvm_cv_platform_type="Unix" ;;
1721 *-*-linux*)
1722 llvm_cv_os_type="Linux"
1723 llvm_cv_platform_type="Unix" ;;
1724 *-*-solaris*)
1725 llvm_cv_os_type="SunOS"
1726 llvm_cv_platform_type="Unix" ;;
1727 *-*-win32*)
1728 llvm_cv_os_type="Win32"
1729 llvm_cv_platform_type="Win32" ;;
1730 *-*-mingw*)
1731 llvm_cv_os_type="MingW"
1732 llvm_cv_platform_type="Win32" ;;
1733 *)
1734 llvm_cv_os_type="Unknown"
1735 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001736esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001737fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001738echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1739echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001740
Reid Spencer7b3e8512004-12-24 06:29:05 +00001741if test "$llvm_cv_os_type" = "Unknown" ; then
1742 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1743echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001744 { (exit 1); exit 1; }; }
1745fi
1746
Reid Spencer7b3e8512004-12-24 06:29:05 +00001747OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001748
1749
Reid Spencer7b3e8512004-12-24 06:29:05 +00001750case $llvm_cv_platform_type in
1751 Unix)
1752
1753cat >>confdefs.h <<\_ACEOF
1754#define LLVM_ON_UNIX 1
1755_ACEOF
1756
1757 ;;
1758 Win32)
1759
1760cat >>confdefs.h <<\_ACEOF
1761#define LLVM_ON_WIN32 1
1762_ACEOF
1763
1764 ;;
1765esac
1766
Reid Spencer3bf69602004-12-24 06:49:16 +00001767 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_os_type"
Reid Spencerde8c47f2004-08-29 19:35:28 +00001768
1769
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001770case $target in
1771 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1772
1773 ;;
1774esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001775
1776echo "$as_me:$LINENO: checking target architecture" >&5
1777echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001778if test "${llvm_cv_target_arch+set}" = set; then
1779 echo $ECHO_N "(cached) $ECHO_C" >&6
1780else
1781 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001782 i?86-*) llvm_cv_target_arch="x86" ;;
1783 amd64-* | x86_64-*) llvm_cv_target_arch="AMD64" ;;
1784 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1785 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1786 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001787esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001788fi
1789echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1790echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001791
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001792if test "$llvm_cv_target_arch" = "Unknown" ; then
1793 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1794echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1795fi
John Criswell76595452003-07-01 22:07:39 +00001796
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001797ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001798
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001799
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001800ac_ext=c
1801ac_cpp='$CPP $CPPFLAGS'
1802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001805if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1807set dummy ${ac_tool_prefix}gcc; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813 if test -n "$CC"; then
1814 ac_cv_prog_CC="$CC" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1826 fi
1827done
1828done
1829
1830fi
1831fi
1832CC=$ac_cv_prog_CC
1833if test -n "$CC"; then
1834 echo "$as_me:$LINENO: result: $CC" >&5
1835echo "${ECHO_T}$CC" >&6
1836else
1837 echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839fi
1840
1841fi
1842if test -z "$ac_cv_prog_CC"; then
1843 ac_ct_CC=$CC
1844 # Extract the first word of "gcc", so it can be a program name with args.
1845set dummy gcc; ac_word=$2
1846echo "$as_me:$LINENO: checking for $ac_word" >&5
1847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850else
1851 if test -n "$ac_ct_CC"; then
1852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1853else
1854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855for as_dir in $PATH
1856do
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_ac_ct_CC="gcc"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 break 2
1864 fi
1865done
1866done
1867
1868fi
1869fi
1870ac_ct_CC=$ac_cv_prog_ac_ct_CC
1871if test -n "$ac_ct_CC"; then
1872 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1873echo "${ECHO_T}$ac_ct_CC" >&6
1874else
1875 echo "$as_me:$LINENO: result: no" >&5
1876echo "${ECHO_T}no" >&6
1877fi
1878
1879 CC=$ac_ct_CC
1880else
1881 CC="$ac_cv_prog_CC"
1882fi
1883
1884if test -z "$CC"; then
1885 if test -n "$ac_tool_prefix"; then
1886 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1887set dummy ${ac_tool_prefix}cc; ac_word=$2
1888echo "$as_me:$LINENO: checking for $ac_word" >&5
1889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890if test "${ac_cv_prog_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
1893 if test -n "$CC"; then
1894 ac_cv_prog_CC="$CC" # Let the user override the test.
1895else
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_CC="${ac_tool_prefix}cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 break 2
1906 fi
1907done
1908done
1909
1910fi
1911fi
1912CC=$ac_cv_prog_CC
1913if test -n "$CC"; then
1914 echo "$as_me:$LINENO: result: $CC" >&5
1915echo "${ECHO_T}$CC" >&6
1916else
1917 echo "$as_me:$LINENO: result: no" >&5
1918echo "${ECHO_T}no" >&6
1919fi
1920
1921fi
1922if test -z "$ac_cv_prog_CC"; then
1923 ac_ct_CC=$CC
1924 # Extract the first word of "cc", so it can be a program name with args.
1925set dummy cc; ac_word=$2
1926echo "$as_me:$LINENO: checking for $ac_word" >&5
1927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930else
1931 if test -n "$ac_ct_CC"; then
1932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1933else
1934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935for as_dir in $PATH
1936do
1937 IFS=$as_save_IFS
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941 ac_cv_prog_ac_ct_CC="cc"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 break 2
1944 fi
1945done
1946done
1947
1948fi
1949fi
1950ac_ct_CC=$ac_cv_prog_ac_ct_CC
1951if test -n "$ac_ct_CC"; then
1952 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1953echo "${ECHO_T}$ac_ct_CC" >&6
1954else
1955 echo "$as_me:$LINENO: result: no" >&5
1956echo "${ECHO_T}no" >&6
1957fi
1958
1959 CC=$ac_ct_CC
1960else
1961 CC="$ac_cv_prog_CC"
1962fi
1963
1964fi
1965if test -z "$CC"; then
1966 # Extract the first word of "cc", so it can be a program name with args.
1967set dummy cc; ac_word=$2
1968echo "$as_me:$LINENO: checking for $ac_word" >&5
1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1975else
1976 ac_prog_rejected=no
1977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978for as_dir in $PATH
1979do
1980 IFS=$as_save_IFS
1981 test -z "$as_dir" && as_dir=.
1982 for ac_exec_ext in '' $ac_executable_extensions; do
1983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1985 ac_prog_rejected=yes
1986 continue
1987 fi
1988 ac_cv_prog_CC="cc"
1989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 break 2
1991 fi
1992done
1993done
1994
1995if test $ac_prog_rejected = yes; then
1996 # We found a bogon in the path, so make sure we never use it.
1997 set dummy $ac_cv_prog_CC
1998 shift
1999 if test $# != 0; then
2000 # We chose a different compiler from the bogus one.
2001 # However, it has the same basename, so the bogon will be chosen
2002 # first if we set CC to just the basename; use the full file name.
2003 shift
2004 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2005 fi
2006fi
2007fi
2008fi
2009CC=$ac_cv_prog_CC
2010if test -n "$CC"; then
2011 echo "$as_me:$LINENO: result: $CC" >&5
2012echo "${ECHO_T}$CC" >&6
2013else
2014 echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6
2016fi
2017
2018fi
2019if test -z "$CC"; then
2020 if test -n "$ac_tool_prefix"; then
2021 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002022 do
2023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2024set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2025echo "$as_me:$LINENO: checking for $ac_word" >&5
2026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002027if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002028 echo $ECHO_N "(cached) $ECHO_C" >&6
2029else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002030 if test -n "$CC"; then
2031 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002032else
2033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034for as_dir in $PATH
2035do
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 for ac_exec_ext in '' $ac_executable_extensions; do
2039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002040 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 break 2
2043 fi
2044done
2045done
2046
2047fi
2048fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002049CC=$ac_cv_prog_CC
2050if test -n "$CC"; then
2051 echo "$as_me:$LINENO: result: $CC" >&5
2052echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002053else
2054 echo "$as_me:$LINENO: result: no" >&5
2055echo "${ECHO_T}no" >&6
2056fi
2057
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002058 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002059 done
2060fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002061if test -z "$CC"; then
2062 ac_ct_CC=$CC
2063 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002064do
2065 # Extract the first word of "$ac_prog", so it can be a program name with args.
2066set dummy $ac_prog; ac_word=$2
2067echo "$as_me:$LINENO: checking for $ac_word" >&5
2068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002069if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002070 echo $ECHO_N "(cached) $ECHO_C" >&6
2071else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072 if test -n "$ac_ct_CC"; then
2073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002074else
2075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2076for as_dir in $PATH
2077do
2078 IFS=$as_save_IFS
2079 test -z "$as_dir" && as_dir=.
2080 for ac_exec_ext in '' $ac_executable_extensions; do
2081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002082 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2084 break 2
2085 fi
2086done
2087done
2088
2089fi
2090fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002091ac_ct_CC=$ac_cv_prog_ac_ct_CC
2092if test -n "$ac_ct_CC"; then
2093 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2094echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002095else
2096 echo "$as_me:$LINENO: result: no" >&5
2097echo "${ECHO_T}no" >&6
2098fi
2099
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002100 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002101done
John Criswell7a73b802003-06-30 21:59:07 +00002102
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002103 CC=$ac_ct_CC
2104fi
2105
John Criswell7a73b802003-06-30 21:59:07 +00002106fi
2107
2108
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002109test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2110See \`config.log' for more details." >&5
2111echo "$as_me: error: no acceptable C compiler found in \$PATH
2112See \`config.log' for more details." >&2;}
2113 { (exit 1); exit 1; }; }
2114
John Criswell7a73b802003-06-30 21:59:07 +00002115# Provide some information about the compiler.
2116echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002117 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002118ac_compiler=`set X $ac_compile; echo $2`
2119{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2120 (eval $ac_compiler --version </dev/null >&5) 2>&5
2121 ac_status=$?
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2124{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2125 (eval $ac_compiler -v </dev/null >&5) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2129{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2130 (eval $ac_compiler -V </dev/null >&5) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134
2135cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002136/* confdefs.h. */
2137_ACEOF
2138cat confdefs.h >>conftest.$ac_ext
2139cat >>conftest.$ac_ext <<_ACEOF
2140/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002141
John Criswell7a73b802003-06-30 21:59:07 +00002142int
2143main ()
2144{
2145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002151ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002152# Try to create an executable without -o first, disregard a.out.
2153# It will help us diagnose broken compilers, and finding out an intuition
2154# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002155echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2156echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002157ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2158if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2159 (eval $ac_link_default) 2>&5
2160 ac_status=$?
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; then
2163 # Find the output, starting from the most likely. This scheme is
2164# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2165# resort.
2166
2167# Be careful to initialize this variable, since it used to be cached.
2168# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2169ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002170# b.out is created by i960 compilers.
2171for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2172do
2173 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002174 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002176 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002177 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002178 # This is the source file.
2179 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002180 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002181 # We found the default executable, but exeext='' is most
2182 # certainly right.
2183 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002184 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002185 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186 # FIXME: I believe we export ac_cv_exeext for Libtool,
2187 # but it would be cool to find out if it's true. Does anybody
2188 # maintain Libtool? --akim.
2189 export ac_cv_exeext
2190 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002191 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002192 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002193 esac
2194done
2195else
2196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002197sed 's/^/| /' conftest.$ac_ext >&5
2198
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002199{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002200See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002201echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002202See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002203 { (exit 77); exit 77; }; }
2204fi
2205
2206ac_exeext=$ac_cv_exeext
2207echo "$as_me:$LINENO: result: $ac_file" >&5
2208echo "${ECHO_T}$ac_file" >&6
2209
2210# Check the compiler produces executables we can run. If not, either
2211# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002212echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2213echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002214# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215# If not cross compiling, check that we can run a simple program.
2216if test "$cross_compiling" != yes; then
2217 if { ac_try='./$ac_file'
2218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 (eval $ac_try) 2>&5
2220 ac_status=$?
2221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222 (exit $ac_status); }; }; then
2223 cross_compiling=no
2224 else
2225 if test "$cross_compiling" = maybe; then
2226 cross_compiling=yes
2227 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002228 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002229If you meant to cross compile, use \`--host'.
2230See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002231echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002232If you meant to cross compile, use \`--host'.
2233See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002234 { (exit 1); exit 1; }; }
2235 fi
2236 fi
2237fi
2238echo "$as_me:$LINENO: result: yes" >&5
2239echo "${ECHO_T}yes" >&6
2240
John Criswell0c38eaf2003-09-10 15:17:25 +00002241rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002242ac_clean_files=$ac_clean_files_save
2243# Check the compiler produces executables we can run. If not, either
2244# the compiler is broken, or we cross compile.
2245echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2246echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2247echo "$as_me:$LINENO: result: $cross_compiling" >&5
2248echo "${ECHO_T}$cross_compiling" >&6
2249
2250echo "$as_me:$LINENO: checking for suffix of executables" >&5
2251echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2253 (eval $ac_link) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; then
2257 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2258# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2259# work properly (i.e., refer to `conftest.exe'), while it won't with
2260# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002261for ac_file in conftest.exe conftest conftest.*; do
2262 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002263 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002264 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002265 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002266 export ac_cv_exeext
2267 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002268 * ) break;;
2269 esac
2270done
2271else
John Criswell0c38eaf2003-09-10 15:17:25 +00002272 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2273See \`config.log' for more details." >&5
2274echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2275See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002276 { (exit 1); exit 1; }; }
2277fi
2278
2279rm -f conftest$ac_cv_exeext
2280echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2281echo "${ECHO_T}$ac_cv_exeext" >&6
2282
2283rm -f conftest.$ac_ext
2284EXEEXT=$ac_cv_exeext
2285ac_exeext=$EXEEXT
2286echo "$as_me:$LINENO: checking for suffix of object files" >&5
2287echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2288if test "${ac_cv_objext+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290else
2291 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002292/* confdefs.h. */
2293_ACEOF
2294cat confdefs.h >>conftest.$ac_ext
2295cat >>conftest.$ac_ext <<_ACEOF
2296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002297
John Criswell7a73b802003-06-30 21:59:07 +00002298int
2299main ()
2300{
2301
2302 ;
2303 return 0;
2304}
2305_ACEOF
2306rm -f conftest.o conftest.obj
2307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308 (eval $ac_compile) 2>&5
2309 ac_status=$?
2310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311 (exit $ac_status); }; then
2312 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2313 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002315 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2316 break;;
2317 esac
2318done
2319else
2320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002321sed 's/^/| /' conftest.$ac_ext >&5
2322
2323{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2324See \`config.log' for more details." >&5
2325echo "$as_me: error: cannot compute suffix of object files: cannot compile
2326See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002327 { (exit 1); exit 1; }; }
2328fi
2329
2330rm -f conftest.$ac_cv_objext conftest.$ac_ext
2331fi
2332echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2333echo "${ECHO_T}$ac_cv_objext" >&6
2334OBJEXT=$ac_cv_objext
2335ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002336echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2337echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2338if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340else
2341 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002342/* confdefs.h. */
2343_ACEOF
2344cat confdefs.h >>conftest.$ac_ext
2345cat >>conftest.$ac_ext <<_ACEOF
2346/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002347
John Criswell7a73b802003-06-30 21:59:07 +00002348int
2349main ()
2350{
2351#ifndef __GNUC__
2352 choke me
2353#endif
2354
2355 ;
2356 return 0;
2357}
2358_ACEOF
2359rm -f conftest.$ac_objext
2360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002361 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002362 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002363 grep -v '^ *+' conftest.er1 >conftest.err
2364 rm -f conftest.er1
2365 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002368 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002369 || test ! -s conftest.err'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371 (eval $ac_try) 2>&5
2372 ac_status=$?
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; } &&
2375 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377 (eval $ac_try) 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; }; then
2381 ac_compiler_gnu=yes
2382else
2383 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002384sed 's/^/| /' conftest.$ac_ext >&5
2385
John Criswell7a73b802003-06-30 21:59:07 +00002386ac_compiler_gnu=no
2387fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002389ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002390
2391fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002392echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2393echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2394GCC=`test $ac_compiler_gnu = yes && echo yes`
2395ac_test_CFLAGS=${CFLAGS+set}
2396ac_save_CFLAGS=$CFLAGS
2397CFLAGS="-g"
2398echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2399echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2400if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002401 echo $ECHO_N "(cached) $ECHO_C" >&6
2402else
2403 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002404/* confdefs.h. */
2405_ACEOF
2406cat confdefs.h >>conftest.$ac_ext
2407cat >>conftest.$ac_ext <<_ACEOF
2408/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002409
John Criswell7a73b802003-06-30 21:59:07 +00002410int
2411main ()
2412{
2413
2414 ;
2415 return 0;
2416}
2417_ACEOF
2418rm -f conftest.$ac_objext
2419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002420 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002421 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002427 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002428 || test ! -s conftest.err'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; } &&
2434 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2436 (eval $ac_try) 2>&5
2437 ac_status=$?
2438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002440 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002441else
2442 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002443sed 's/^/| /' conftest.$ac_ext >&5
2444
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002445ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002446fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002448fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002449echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2450echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2451if test "$ac_test_CFLAGS" = set; then
2452 CFLAGS=$ac_save_CFLAGS
2453elif test $ac_cv_prog_cc_g = yes; then
2454 if test "$GCC" = yes; then
2455 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002456 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002457 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002458 fi
2459else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002460 if test "$GCC" = yes; then
2461 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002462 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002463 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002464 fi
2465fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002466echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2467echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2468if test "${ac_cv_prog_cc_stdc+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470else
2471 ac_cv_prog_cc_stdc=no
2472ac_save_CC=$CC
2473cat >conftest.$ac_ext <<_ACEOF
2474/* confdefs.h. */
2475_ACEOF
2476cat confdefs.h >>conftest.$ac_ext
2477cat >>conftest.$ac_ext <<_ACEOF
2478/* end confdefs.h. */
2479#include <stdarg.h>
2480#include <stdio.h>
2481#include <sys/types.h>
2482#include <sys/stat.h>
2483/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2484struct buf { int x; };
2485FILE * (*rcsopen) (struct buf *, struct stat *, int);
2486static char *e (p, i)
2487 char **p;
2488 int i;
2489{
2490 return p[i];
2491}
2492static char *f (char * (*g) (char **, int), char **p, ...)
2493{
2494 char *s;
2495 va_list v;
2496 va_start (v,p);
2497 s = g (p, va_arg (v,int));
2498 va_end (v);
2499 return s;
2500}
2501
2502/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2503 function prototypes and stuff, but not '\xHH' hex character constants.
2504 These don't provoke an error unfortunately, instead are silently treated
2505 as 'x'. The following induces an error, until -std1 is added to get
2506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2507 array size at least. It's necessary to write '\x00'==0 to get something
2508 that's true only with -std1. */
2509int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2510
2511int test (int i, double x);
2512struct s1 {int (*f) (int a);};
2513struct s2 {int (*f) (double a);};
2514int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2515int argc;
2516char **argv;
2517int
2518main ()
2519{
2520return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2521 ;
2522 return 0;
2523}
2524_ACEOF
2525# Don't try gcc -ansi; that turns off useful extensions and
2526# breaks some systems' header files.
2527# AIX -qlanglvl=ansi
2528# Ultrix and OSF/1 -std1
2529# HP-UX 10.20 and later -Ae
2530# HP-UX older versions -Aa -D_HPUX_SOURCE
2531# SVR4 -Xc -D__EXTENSIONS__
2532for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2533do
2534 CC="$ac_save_CC $ac_arg"
2535 rm -f conftest.$ac_objext
2536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2537 (eval $ac_compile) 2>conftest.er1
2538 ac_status=$?
2539 grep -v '^ *+' conftest.er1 >conftest.err
2540 rm -f conftest.er1
2541 cat conftest.err >&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); } &&
2544 { ac_try='test -z "$ac_c_werror_flag"
2545 || test ! -s conftest.err'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 (eval $ac_try) 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; } &&
2551 { ac_try='test -s conftest.$ac_objext'
2552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 (eval $ac_try) 2>&5
2554 ac_status=$?
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; }; then
2557 ac_cv_prog_cc_stdc=$ac_arg
2558break
2559else
2560 echo "$as_me: failed program was:" >&5
2561sed 's/^/| /' conftest.$ac_ext >&5
2562
2563fi
2564rm -f conftest.err conftest.$ac_objext
2565done
2566rm -f conftest.$ac_ext conftest.$ac_objext
2567CC=$ac_save_CC
2568
2569fi
2570
2571case "x$ac_cv_prog_cc_stdc" in
2572 x|xno)
2573 echo "$as_me:$LINENO: result: none needed" >&5
2574echo "${ECHO_T}none needed" >&6 ;;
2575 *)
2576 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2577echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2578 CC="$CC $ac_cv_prog_cc_stdc" ;;
2579esac
2580
2581# Some people use a C++ compiler to compile C. Since we use `exit',
2582# in C++ we need to declare it. In case someone uses the same compiler
2583# for both compiling C and C++ we need to have the C++ compiler decide
2584# the declaration of exit, since it's the most demanding environment.
2585cat >conftest.$ac_ext <<_ACEOF
2586#ifndef __cplusplus
2587 choke me
2588#endif
2589_ACEOF
2590rm -f conftest.$ac_objext
2591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2592 (eval $ac_compile) 2>conftest.er1
2593 ac_status=$?
2594 grep -v '^ *+' conftest.er1 >conftest.err
2595 rm -f conftest.er1
2596 cat conftest.err >&5
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -z "$ac_c_werror_flag"
2600 || test ! -s conftest.err'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; } &&
2606 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2612 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002613 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002614 'extern "C" void std::exit (int) throw (); using std::exit;' \
2615 'extern "C" void std::exit (int); using std::exit;' \
2616 'extern "C" void exit (int) throw ();' \
2617 'extern "C" void exit (int);' \
2618 'void exit (int);'
2619do
2620 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002621/* confdefs.h. */
2622_ACEOF
2623cat confdefs.h >>conftest.$ac_ext
2624cat >>conftest.$ac_ext <<_ACEOF
2625/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002626$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002627#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002628int
2629main ()
2630{
2631exit (42);
2632 ;
2633 return 0;
2634}
2635_ACEOF
2636rm -f conftest.$ac_objext
2637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002638 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002639 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002645 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002646 || test ! -s conftest.err'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 (eval $ac_try) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } &&
2652 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 (eval $ac_try) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2658 :
2659else
2660 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002661sed 's/^/| /' conftest.$ac_ext >&5
2662
John Criswell7a73b802003-06-30 21:59:07 +00002663continue
2664fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002666 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002667/* confdefs.h. */
2668_ACEOF
2669cat confdefs.h >>conftest.$ac_ext
2670cat >>conftest.$ac_ext <<_ACEOF
2671/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002672$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002673int
2674main ()
2675{
2676exit (42);
2677 ;
2678 return 0;
2679}
2680_ACEOF
2681rm -f conftest.$ac_objext
2682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002683 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002684 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002685 grep -v '^ *+' conftest.er1 >conftest.err
2686 rm -f conftest.er1
2687 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002690 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002691 || test ! -s conftest.err'
2692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693 (eval $ac_try) 2>&5
2694 ac_status=$?
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); }; } &&
2697 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2699 (eval $ac_try) 2>&5
2700 ac_status=$?
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }; }; then
2703 break
2704else
2705 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002706sed 's/^/| /' conftest.$ac_ext >&5
2707
John Criswell7a73b802003-06-30 21:59:07 +00002708fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002710done
2711rm -f conftest*
2712if test -n "$ac_declaration"; then
2713 echo '#ifdef __cplusplus' >>confdefs.h
2714 echo $ac_declaration >>confdefs.h
2715 echo '#endif' >>confdefs.h
2716fi
2717
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002718else
2719 echo "$as_me: failed program was:" >&5
2720sed 's/^/| /' conftest.$ac_ext >&5
2721
2722fi
2723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2724ac_ext=c
2725ac_cpp='$CPP $CPPFLAGS'
2726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2728ac_compiler_gnu=$ac_cv_c_compiler_gnu
2729
2730
2731echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2732echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2733if test "${ac_cv_c_bigendian+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735else
2736 # See if sys/param.h defines the BYTE_ORDER macro.
2737cat >conftest.$ac_ext <<_ACEOF
2738/* confdefs.h. */
2739_ACEOF
2740cat confdefs.h >>conftest.$ac_ext
2741cat >>conftest.$ac_ext <<_ACEOF
2742/* end confdefs.h. */
2743#include <sys/types.h>
2744#include <sys/param.h>
2745
2746int
2747main ()
2748{
2749#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2750 bogus endian macros
2751#endif
2752
2753 ;
2754 return 0;
2755}
2756_ACEOF
2757rm -f conftest.$ac_objext
2758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759 (eval $ac_compile) 2>conftest.er1
2760 ac_status=$?
2761 grep -v '^ *+' conftest.er1 >conftest.err
2762 rm -f conftest.er1
2763 cat conftest.err >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 { ac_try='test -z "$ac_c_werror_flag"
2767 || test ! -s conftest.err'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; } &&
2773 { ac_try='test -s conftest.$ac_objext'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; }; then
2779 # It does; now see whether it defined to BIG_ENDIAN or not.
2780cat >conftest.$ac_ext <<_ACEOF
2781/* confdefs.h. */
2782_ACEOF
2783cat confdefs.h >>conftest.$ac_ext
2784cat >>conftest.$ac_ext <<_ACEOF
2785/* end confdefs.h. */
2786#include <sys/types.h>
2787#include <sys/param.h>
2788
2789int
2790main ()
2791{
2792#if BYTE_ORDER != BIG_ENDIAN
2793 not big endian
2794#endif
2795
2796 ;
2797 return 0;
2798}
2799_ACEOF
2800rm -f conftest.$ac_objext
2801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2802 (eval $ac_compile) 2>conftest.er1
2803 ac_status=$?
2804 grep -v '^ *+' conftest.er1 >conftest.err
2805 rm -f conftest.er1
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 { ac_try='test -z "$ac_c_werror_flag"
2810 || test ! -s conftest.err'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 (eval $ac_try) 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; } &&
2816 { ac_try='test -s conftest.$ac_objext'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 (eval $ac_try) 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 ac_cv_c_bigendian=yes
2823else
2824 echo "$as_me: failed program was:" >&5
2825sed 's/^/| /' conftest.$ac_ext >&5
2826
2827ac_cv_c_bigendian=no
2828fi
2829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2830else
2831 echo "$as_me: failed program was:" >&5
2832sed 's/^/| /' conftest.$ac_ext >&5
2833
2834# It does not; compile a test program.
2835if test "$cross_compiling" = yes; then
2836 # try to guess the endianness by grepping values into an object file
2837 ac_cv_c_bigendian=unknown
2838 cat >conftest.$ac_ext <<_ACEOF
2839/* confdefs.h. */
2840_ACEOF
2841cat confdefs.h >>conftest.$ac_ext
2842cat >>conftest.$ac_ext <<_ACEOF
2843/* end confdefs.h. */
2844short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2845short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2846void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2847short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2848short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2849void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2850int
2851main ()
2852{
2853 _ascii (); _ebcdic ();
2854 ;
2855 return 0;
2856}
2857_ACEOF
2858rm -f conftest.$ac_objext
2859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>conftest.er1
2861 ac_status=$?
2862 grep -v '^ *+' conftest.er1 >conftest.err
2863 rm -f conftest.er1
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -z "$ac_c_werror_flag"
2868 || test ! -s conftest.err'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 (eval $ac_try) 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2880 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2881 ac_cv_c_bigendian=yes
2882fi
2883if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2884 if test "$ac_cv_c_bigendian" = unknown; then
2885 ac_cv_c_bigendian=no
2886 else
2887 # finding both strings is unlikely to happen, but who knows?
2888 ac_cv_c_bigendian=unknown
2889 fi
2890fi
2891else
2892 echo "$as_me: failed program was:" >&5
2893sed 's/^/| /' conftest.$ac_ext >&5
2894
2895fi
2896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2897else
2898 cat >conftest.$ac_ext <<_ACEOF
2899/* confdefs.h. */
2900_ACEOF
2901cat confdefs.h >>conftest.$ac_ext
2902cat >>conftest.$ac_ext <<_ACEOF
2903/* end confdefs.h. */
2904int
2905main ()
2906{
2907 /* Are we little or big endian? From Harbison&Steele. */
2908 union
2909 {
2910 long l;
2911 char c[sizeof (long)];
2912 } u;
2913 u.l = 1;
2914 exit (u.c[sizeof (long) - 1] == 1);
2915}
2916_ACEOF
2917rm -f conftest$ac_exeext
2918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2919 (eval $ac_link) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2924 (eval $ac_try) 2>&5
2925 ac_status=$?
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2928 ac_cv_c_bigendian=no
2929else
2930 echo "$as_me: program exited with status $ac_status" >&5
2931echo "$as_me: failed program was:" >&5
2932sed 's/^/| /' conftest.$ac_ext >&5
2933
2934( exit $ac_status )
2935ac_cv_c_bigendian=yes
2936fi
2937rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2938fi
2939fi
2940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2941fi
2942echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2943echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2944case $ac_cv_c_bigendian in
2945 yes)
2946 ENDIAN=big
2947 ;;
2948 no)
2949 ENDIAN=little
2950 ;;
2951 *)
2952 { { echo "$as_me:$LINENO: error: unknown endianness
2953presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2954echo "$as_me: error: unknown endianness
2955presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2956 { (exit 1); exit 1; }; } ;;
2957esac
2958
2959
2960
2961# Check whether --enable-optimized or --disable-optimized was given.
2962if test "${enable_optimized+set}" = set; then
2963 enableval="$enable_optimized"
2964
2965else
2966 enableval=no
2967fi;
2968if test ${enableval} = "no" ; then
2969 ENABLE_OPTIMIZED=
2970
2971else
2972 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2973
2974fi
2975
2976# Check whether --enable-jit or --disable-jit was given.
2977if test "${enable_jit+set}" = set; then
2978 enableval="$enable_jit"
2979
2980else
2981 enableval=default
2982fi;
2983if test ${enableval} = "no"
2984then
2985 JIT=
2986
2987else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002988 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002989 x86) JIT=TARGET_HAS_JIT=1
2990 ;;
2991 Sparc) JIT=TARGET_HAS_JIT=1
2992 ;;
2993 PowerPC) JIT=TARGET_HAS_JIT=1
2994 ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002995 AMD64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00002996 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002997 *) JIT=
2998 ;;
2999 esac
3000fi
3001
Reid Spencer1f319422004-11-29 04:56:35 +00003002# Check whether --enable-doxygen or --disable-doxygen was given.
3003if test "${enable_doxygen+set}" = set; then
3004 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003005
Reid Spencer1f319422004-11-29 04:56:35 +00003006else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003007 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003008fi;
3009case "$enableval" in
3010 yes) ENABLE_DOXYGEN=1
3011 ;;
3012 no) ENABLE_DOXYGEN=0
3013 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003014 default) ENABLE_DOXYGEN=0
3015 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003016 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3017echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3018 { (exit 1); exit 1; }; } ;;
3019esac
3020
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003021
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003022ac_ext=c
3023ac_cpp='$CPP $CPPFLAGS'
3024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3028echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3029# On Suns, sometimes $CPP names a directory.
3030if test -n "$CPP" && test -d "$CPP"; then
3031 CPP=
3032fi
3033if test -z "$CPP"; then
3034 if test "${ac_cv_prog_CPP+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3036else
3037 # Double quotes because CPP needs to be expanded
3038 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3039 do
3040 ac_preproc_ok=false
3041for ac_c_preproc_warn_flag in '' yes
3042do
3043 # Use a header file that comes with gcc, so configuring glibc
3044 # with a fresh cross-compiler works.
3045 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046 # <limits.h> exists even on freestanding compilers.
3047 # On the NeXT, cc -E runs the code through the compiler's parser,
3048 # not just through cpp. "Syntax error" is here to catch this case.
3049 cat >conftest.$ac_ext <<_ACEOF
3050/* confdefs.h. */
3051_ACEOF
3052cat confdefs.h >>conftest.$ac_ext
3053cat >>conftest.$ac_ext <<_ACEOF
3054/* end confdefs.h. */
3055#ifdef __STDC__
3056# include <limits.h>
3057#else
3058# include <assert.h>
3059#endif
3060 Syntax error
3061_ACEOF
3062if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3064 ac_status=$?
3065 grep -v '^ *+' conftest.er1 >conftest.err
3066 rm -f conftest.er1
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } >/dev/null; then
3070 if test -s conftest.err; then
3071 ac_cpp_err=$ac_c_preproc_warn_flag
3072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3073 else
3074 ac_cpp_err=
3075 fi
3076else
3077 ac_cpp_err=yes
3078fi
3079if test -z "$ac_cpp_err"; then
3080 :
3081else
3082 echo "$as_me: failed program was:" >&5
3083sed 's/^/| /' conftest.$ac_ext >&5
3084
3085 # Broken: fails on valid input.
3086continue
3087fi
3088rm -f conftest.err conftest.$ac_ext
3089
3090 # OK, works on sane cases. Now check whether non-existent headers
3091 # can be detected and how.
3092 cat >conftest.$ac_ext <<_ACEOF
3093/* confdefs.h. */
3094_ACEOF
3095cat confdefs.h >>conftest.$ac_ext
3096cat >>conftest.$ac_ext <<_ACEOF
3097/* end confdefs.h. */
3098#include <ac_nonexistent.h>
3099_ACEOF
3100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } >/dev/null; then
3108 if test -s conftest.err; then
3109 ac_cpp_err=$ac_c_preproc_warn_flag
3110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3111 else
3112 ac_cpp_err=
3113 fi
3114else
3115 ac_cpp_err=yes
3116fi
3117if test -z "$ac_cpp_err"; then
3118 # Broken: success on invalid input.
3119continue
3120else
3121 echo "$as_me: failed program was:" >&5
3122sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 # Passes both tests.
3125ac_preproc_ok=:
3126break
3127fi
3128rm -f conftest.err conftest.$ac_ext
3129
3130done
3131# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3132rm -f conftest.err conftest.$ac_ext
3133if $ac_preproc_ok; then
3134 break
3135fi
3136
3137 done
3138 ac_cv_prog_CPP=$CPP
3139
3140fi
3141 CPP=$ac_cv_prog_CPP
3142else
3143 ac_cv_prog_CPP=$CPP
3144fi
3145echo "$as_me:$LINENO: result: $CPP" >&5
3146echo "${ECHO_T}$CPP" >&6
3147ac_preproc_ok=false
3148for ac_c_preproc_warn_flag in '' yes
3149do
3150 # Use a header file that comes with gcc, so configuring glibc
3151 # with a fresh cross-compiler works.
3152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3153 # <limits.h> exists even on freestanding compilers.
3154 # On the NeXT, cc -E runs the code through the compiler's parser,
3155 # not just through cpp. "Syntax error" is here to catch this case.
3156 cat >conftest.$ac_ext <<_ACEOF
3157/* confdefs.h. */
3158_ACEOF
3159cat confdefs.h >>conftest.$ac_ext
3160cat >>conftest.$ac_ext <<_ACEOF
3161/* end confdefs.h. */
3162#ifdef __STDC__
3163# include <limits.h>
3164#else
3165# include <assert.h>
3166#endif
3167 Syntax error
3168_ACEOF
3169if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3171 ac_status=$?
3172 grep -v '^ *+' conftest.er1 >conftest.err
3173 rm -f conftest.er1
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } >/dev/null; then
3177 if test -s conftest.err; then
3178 ac_cpp_err=$ac_c_preproc_warn_flag
3179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3180 else
3181 ac_cpp_err=
3182 fi
3183else
3184 ac_cpp_err=yes
3185fi
3186if test -z "$ac_cpp_err"; then
3187 :
3188else
3189 echo "$as_me: failed program was:" >&5
3190sed 's/^/| /' conftest.$ac_ext >&5
3191
3192 # Broken: fails on valid input.
3193continue
3194fi
3195rm -f conftest.err conftest.$ac_ext
3196
3197 # OK, works on sane cases. Now check whether non-existent headers
3198 # can be detected and how.
3199 cat >conftest.$ac_ext <<_ACEOF
3200/* confdefs.h. */
3201_ACEOF
3202cat confdefs.h >>conftest.$ac_ext
3203cat >>conftest.$ac_ext <<_ACEOF
3204/* end confdefs.h. */
3205#include <ac_nonexistent.h>
3206_ACEOF
3207if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3208 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3209 ac_status=$?
3210 grep -v '^ *+' conftest.er1 >conftest.err
3211 rm -f conftest.er1
3212 cat conftest.err >&5
3213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3214 (exit $ac_status); } >/dev/null; then
3215 if test -s conftest.err; then
3216 ac_cpp_err=$ac_c_preproc_warn_flag
3217 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3218 else
3219 ac_cpp_err=
3220 fi
3221else
3222 ac_cpp_err=yes
3223fi
3224if test -z "$ac_cpp_err"; then
3225 # Broken: success on invalid input.
3226continue
3227else
3228 echo "$as_me: failed program was:" >&5
3229sed 's/^/| /' conftest.$ac_ext >&5
3230
3231 # Passes both tests.
3232ac_preproc_ok=:
3233break
3234fi
3235rm -f conftest.err conftest.$ac_ext
3236
3237done
3238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3239rm -f conftest.err conftest.$ac_ext
3240if $ac_preproc_ok; then
3241 :
3242else
3243 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3244See \`config.log' for more details." >&5
3245echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3246See \`config.log' for more details." >&2;}
3247 { (exit 1); exit 1; }; }
3248fi
3249
John Criswell7a73b802003-06-30 21:59:07 +00003250ac_ext=c
3251ac_cpp='$CPP $CPPFLAGS'
3252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255
3256ac_ext=c
3257ac_cpp='$CPP $CPPFLAGS'
3258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3260ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261if test -n "$ac_tool_prefix"; then
3262 for ac_prog in gcc
3263 do
3264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3265set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3266echo "$as_me:$LINENO: checking for $ac_word" >&5
3267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3268if test "${ac_cv_prog_CC+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270else
3271 if test -n "$CC"; then
3272 ac_cv_prog_CC="$CC" # Let the user override the test.
3273else
3274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275for as_dir in $PATH
3276do
3277 IFS=$as_save_IFS
3278 test -z "$as_dir" && as_dir=.
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3281 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3283 break 2
3284 fi
3285done
3286done
3287
3288fi
3289fi
3290CC=$ac_cv_prog_CC
3291if test -n "$CC"; then
3292 echo "$as_me:$LINENO: result: $CC" >&5
3293echo "${ECHO_T}$CC" >&6
3294else
3295 echo "$as_me:$LINENO: result: no" >&5
3296echo "${ECHO_T}no" >&6
3297fi
3298
3299 test -n "$CC" && break
3300 done
3301fi
3302if test -z "$CC"; then
3303 ac_ct_CC=$CC
3304 for ac_prog in gcc
3305do
3306 # Extract the first word of "$ac_prog", so it can be a program name with args.
3307set dummy $ac_prog; ac_word=$2
3308echo "$as_me:$LINENO: checking for $ac_word" >&5
3309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312else
3313 if test -n "$ac_ct_CC"; then
3314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3315else
3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317for as_dir in $PATH
3318do
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_ac_ct_CC="$ac_prog"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327done
3328done
3329
3330fi
3331fi
3332ac_ct_CC=$ac_cv_prog_ac_ct_CC
3333if test -n "$ac_ct_CC"; then
3334 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3335echo "${ECHO_T}$ac_ct_CC" >&6
3336else
3337 echo "$as_me:$LINENO: result: no" >&5
3338echo "${ECHO_T}no" >&6
3339fi
3340
3341 test -n "$ac_ct_CC" && break
3342done
3343
3344 CC=$ac_ct_CC
3345fi
3346
3347
John Criswell0c38eaf2003-09-10 15:17:25 +00003348test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3349See \`config.log' for more details." >&5
3350echo "$as_me: error: no acceptable C compiler found in \$PATH
3351See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003352 { (exit 1); exit 1; }; }
3353
3354# Provide some information about the compiler.
3355echo "$as_me:$LINENO:" \
3356 "checking for C compiler version" >&5
3357ac_compiler=`set X $ac_compile; echo $2`
3358{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3359 (eval $ac_compiler --version </dev/null >&5) 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }
3363{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3364 (eval $ac_compiler -v </dev/null >&5) 2>&5
3365 ac_status=$?
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }
3368{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3369 (eval $ac_compiler -V </dev/null >&5) 2>&5
3370 ac_status=$?
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }
3373
3374echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3375echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3376if test "${ac_cv_c_compiler_gnu+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3378else
3379 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003380/* confdefs.h. */
3381_ACEOF
3382cat confdefs.h >>conftest.$ac_ext
3383cat >>conftest.$ac_ext <<_ACEOF
3384/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003385
John Criswell7a73b802003-06-30 21:59:07 +00003386int
3387main ()
3388{
3389#ifndef __GNUC__
3390 choke me
3391#endif
3392
3393 ;
3394 return 0;
3395}
3396_ACEOF
3397rm -f conftest.$ac_objext
3398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003399 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003400 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003401 grep -v '^ *+' conftest.er1 >conftest.err
3402 rm -f conftest.er1
3403 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003406 { ac_try='test -z "$ac_c_werror_flag"
3407 || test ! -s conftest.err'
3408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3409 (eval $ac_try) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }; } &&
3413 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; }; then
3419 ac_compiler_gnu=yes
3420else
3421 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003422sed 's/^/| /' conftest.$ac_ext >&5
3423
John Criswell7a73b802003-06-30 21:59:07 +00003424ac_compiler_gnu=no
3425fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003427ac_cv_c_compiler_gnu=$ac_compiler_gnu
3428
3429fi
3430echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3431echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3432GCC=`test $ac_compiler_gnu = yes && echo yes`
3433ac_test_CFLAGS=${CFLAGS+set}
3434ac_save_CFLAGS=$CFLAGS
3435CFLAGS="-g"
3436echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3437echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3438if test "${ac_cv_prog_cc_g+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
3440else
3441 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003442/* confdefs.h. */
3443_ACEOF
3444cat confdefs.h >>conftest.$ac_ext
3445cat >>conftest.$ac_ext <<_ACEOF
3446/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003447
John Criswell7a73b802003-06-30 21:59:07 +00003448int
3449main ()
3450{
3451
3452 ;
3453 return 0;
3454}
3455_ACEOF
3456rm -f conftest.$ac_objext
3457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003458 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003459 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003460 grep -v '^ *+' conftest.er1 >conftest.err
3461 rm -f conftest.er1
3462 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003465 { ac_try='test -z "$ac_c_werror_flag"
3466 || test ! -s conftest.err'
3467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3468 (eval $ac_try) 2>&5
3469 ac_status=$?
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); }; } &&
3472 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3474 (eval $ac_try) 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }; }; then
3478 ac_cv_prog_cc_g=yes
3479else
3480 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003481sed 's/^/| /' conftest.$ac_ext >&5
3482
John Criswell7a73b802003-06-30 21:59:07 +00003483ac_cv_prog_cc_g=no
3484fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003486fi
3487echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3488echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3489if test "$ac_test_CFLAGS" = set; then
3490 CFLAGS=$ac_save_CFLAGS
3491elif test $ac_cv_prog_cc_g = yes; then
3492 if test "$GCC" = yes; then
3493 CFLAGS="-g -O2"
3494 else
3495 CFLAGS="-g"
3496 fi
3497else
3498 if test "$GCC" = yes; then
3499 CFLAGS="-O2"
3500 else
3501 CFLAGS=
3502 fi
3503fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003504echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3505echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3506if test "${ac_cv_prog_cc_stdc+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508else
3509 ac_cv_prog_cc_stdc=no
3510ac_save_CC=$CC
3511cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003512/* confdefs.h. */
3513_ACEOF
3514cat confdefs.h >>conftest.$ac_ext
3515cat >>conftest.$ac_ext <<_ACEOF
3516/* end confdefs.h. */
3517#include <stdarg.h>
3518#include <stdio.h>
3519#include <sys/types.h>
3520#include <sys/stat.h>
3521/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3522struct buf { int x; };
3523FILE * (*rcsopen) (struct buf *, struct stat *, int);
3524static char *e (p, i)
3525 char **p;
3526 int i;
3527{
3528 return p[i];
3529}
3530static char *f (char * (*g) (char **, int), char **p, ...)
3531{
3532 char *s;
3533 va_list v;
3534 va_start (v,p);
3535 s = g (p, va_arg (v,int));
3536 va_end (v);
3537 return s;
3538}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003539
3540/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3541 function prototypes and stuff, but not '\xHH' hex character constants.
3542 These don't provoke an error unfortunately, instead are silently treated
3543 as 'x'. The following induces an error, until -std1 is added to get
3544 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3545 array size at least. It's necessary to write '\x00'==0 to get something
3546 that's true only with -std1. */
3547int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3548
John Criswell0c38eaf2003-09-10 15:17:25 +00003549int test (int i, double x);
3550struct s1 {int (*f) (int a);};
3551struct s2 {int (*f) (double a);};
3552int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3553int argc;
3554char **argv;
3555int
3556main ()
3557{
3558return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3559 ;
3560 return 0;
3561}
3562_ACEOF
3563# Don't try gcc -ansi; that turns off useful extensions and
3564# breaks some systems' header files.
3565# AIX -qlanglvl=ansi
3566# Ultrix and OSF/1 -std1
3567# HP-UX 10.20 and later -Ae
3568# HP-UX older versions -Aa -D_HPUX_SOURCE
3569# SVR4 -Xc -D__EXTENSIONS__
3570for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3571do
3572 CC="$ac_save_CC $ac_arg"
3573 rm -f conftest.$ac_objext
3574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003575 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003576 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003582 { ac_try='test -z "$ac_c_werror_flag"
3583 || test ! -s conftest.err'
3584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3585 (eval $ac_try) 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; } &&
3589 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 (eval $ac_try) 2>&5
3592 ac_status=$?
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; }; then
3595 ac_cv_prog_cc_stdc=$ac_arg
3596break
3597else
3598 echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
3600
3601fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003602rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003603done
3604rm -f conftest.$ac_ext conftest.$ac_objext
3605CC=$ac_save_CC
3606
3607fi
3608
3609case "x$ac_cv_prog_cc_stdc" in
3610 x|xno)
3611 echo "$as_me:$LINENO: result: none needed" >&5
3612echo "${ECHO_T}none needed" >&6 ;;
3613 *)
3614 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3615echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3616 CC="$CC $ac_cv_prog_cc_stdc" ;;
3617esac
3618
John Criswell7a73b802003-06-30 21:59:07 +00003619# Some people use a C++ compiler to compile C. Since we use `exit',
3620# in C++ we need to declare it. In case someone uses the same compiler
3621# for both compiling C and C++ we need to have the C++ compiler decide
3622# the declaration of exit, since it's the most demanding environment.
3623cat >conftest.$ac_ext <<_ACEOF
3624#ifndef __cplusplus
3625 choke me
3626#endif
3627_ACEOF
3628rm -f conftest.$ac_objext
3629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003630 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003631 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003637 { ac_try='test -z "$ac_c_werror_flag"
3638 || test ! -s conftest.err'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 (eval $ac_try) 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; } &&
3644 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 (eval $ac_try) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }; }; then
3650 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003651 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003652 'extern "C" void std::exit (int) throw (); using std::exit;' \
3653 'extern "C" void std::exit (int); using std::exit;' \
3654 'extern "C" void exit (int) throw ();' \
3655 'extern "C" void exit (int);' \
3656 'void exit (int);'
3657do
3658 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003659/* confdefs.h. */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003664$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003665#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003666int
3667main ()
3668{
3669exit (42);
3670 ;
3671 return 0;
3672}
3673_ACEOF
3674rm -f conftest.$ac_objext
3675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003676 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003677 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003678 grep -v '^ *+' conftest.er1 >conftest.err
3679 rm -f conftest.er1
3680 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003683 { ac_try='test -z "$ac_c_werror_flag"
3684 || test ! -s conftest.err'
3685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686 (eval $ac_try) 2>&5
3687 ac_status=$?
3688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3689 (exit $ac_status); }; } &&
3690 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692 (eval $ac_try) 2>&5
3693 ac_status=$?
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; }; then
3696 :
3697else
3698 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003699sed 's/^/| /' conftest.$ac_ext >&5
3700
John Criswell7a73b802003-06-30 21:59:07 +00003701continue
3702fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003704 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003705/* confdefs.h. */
3706_ACEOF
3707cat confdefs.h >>conftest.$ac_ext
3708cat >>conftest.$ac_ext <<_ACEOF
3709/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003710$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003711int
3712main ()
3713{
3714exit (42);
3715 ;
3716 return 0;
3717}
3718_ACEOF
3719rm -f conftest.$ac_objext
3720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003721 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003722 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003723 grep -v '^ *+' conftest.er1 >conftest.err
3724 rm -f conftest.er1
3725 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003728 { ac_try='test -z "$ac_c_werror_flag"
3729 || test ! -s conftest.err'
3730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3731 (eval $ac_try) 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; } &&
3735 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3737 (eval $ac_try) 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; }; then
3741 break
3742else
3743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003744sed 's/^/| /' conftest.$ac_ext >&5
3745
John Criswell7a73b802003-06-30 21:59:07 +00003746fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003748done
3749rm -f conftest*
3750if test -n "$ac_declaration"; then
3751 echo '#ifdef __cplusplus' >>confdefs.h
3752 echo $ac_declaration >>confdefs.h
3753 echo '#endif' >>confdefs.h
3754fi
3755
3756else
3757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003758sed 's/^/| /' conftest.$ac_ext >&5
3759
John Criswell7a73b802003-06-30 21:59:07 +00003760fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003762ac_ext=c
3763ac_cpp='$CPP $CPPFLAGS'
3764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766ac_compiler_gnu=$ac_cv_c_compiler_gnu
3767
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003768ac_ext=cc
3769ac_cpp='$CXXCPP $CPPFLAGS'
3770ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3771ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3772ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3773if test -n "$ac_tool_prefix"; then
3774 for ac_prog in $CCC g++
3775 do
3776 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3777set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3778echo "$as_me:$LINENO: checking for $ac_word" >&5
3779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003781 echo $ECHO_N "(cached) $ECHO_C" >&6
3782else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003783 if test -n "$CXX"; then
3784 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3785else
3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003788do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3796 fi
3797done
3798done
3799
3800fi
3801fi
3802CXX=$ac_cv_prog_CXX
3803if test -n "$CXX"; then
3804 echo "$as_me:$LINENO: result: $CXX" >&5
3805echo "${ECHO_T}$CXX" >&6
3806else
3807 echo "$as_me:$LINENO: result: no" >&5
3808echo "${ECHO_T}no" >&6
3809fi
3810
3811 test -n "$CXX" && break
3812 done
3813fi
3814if test -z "$CXX"; then
3815 ac_ct_CXX=$CXX
3816 for ac_prog in $CCC g++
3817do
3818 # Extract the first word of "$ac_prog", so it can be a program name with args.
3819set dummy $ac_prog; ac_word=$2
3820echo "$as_me:$LINENO: checking for $ac_word" >&5
3821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3824else
3825 if test -n "$ac_ct_CXX"; then
3826 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3827else
3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835 ac_cv_prog_ac_ct_CXX="$ac_prog"
3836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3838 fi
3839done
3840done
3841
3842fi
3843fi
3844ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3845if test -n "$ac_ct_CXX"; then
3846 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3847echo "${ECHO_T}$ac_ct_CXX" >&6
3848else
3849 echo "$as_me:$LINENO: result: no" >&5
3850echo "${ECHO_T}no" >&6
3851fi
3852
3853 test -n "$ac_ct_CXX" && break
3854done
3855test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3856
3857 CXX=$ac_ct_CXX
3858fi
3859
3860
3861# Provide some information about the compiler.
3862echo "$as_me:$LINENO:" \
3863 "checking for C++ compiler version" >&5
3864ac_compiler=`set X $ac_compile; echo $2`
3865{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3866 (eval $ac_compiler --version </dev/null >&5) 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }
3870{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3871 (eval $ac_compiler -v </dev/null >&5) 2>&5
3872 ac_status=$?
3873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874 (exit $ac_status); }
3875{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3876 (eval $ac_compiler -V </dev/null >&5) 2>&5
3877 ac_status=$?
3878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879 (exit $ac_status); }
3880
3881echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3882echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3883if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3885else
John Criswell7a73b802003-06-30 21:59:07 +00003886 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003887/* confdefs.h. */
3888_ACEOF
3889cat confdefs.h >>conftest.$ac_ext
3890cat >>conftest.$ac_ext <<_ACEOF
3891/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003892
3893int
3894main ()
3895{
3896#ifndef __GNUC__
3897 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003898#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003899
3900 ;
3901 return 0;
3902}
John Criswell7a73b802003-06-30 21:59:07 +00003903_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003904rm -f conftest.$ac_objext
3905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3906 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003907 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003908 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003909 rm -f conftest.er1
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003912 (exit $ac_status); } &&
3913 { ac_try='test -z "$ac_cxx_werror_flag"
3914 || test ! -s conftest.err'
3915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 (eval $ac_try) 2>&5
3917 ac_status=$?
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); }; } &&
3920 { ac_try='test -s conftest.$ac_objext'
3921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 (eval $ac_try) 2>&5
3923 ac_status=$?
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); }; }; then
3926 ac_compiler_gnu=yes
3927else
3928 echo "$as_me: failed program was:" >&5
3929sed 's/^/| /' conftest.$ac_ext >&5
3930
3931ac_compiler_gnu=no
3932fi
3933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3934ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3935
3936fi
3937echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3938echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3939GXX=`test $ac_compiler_gnu = yes && echo yes`
3940ac_test_CXXFLAGS=${CXXFLAGS+set}
3941ac_save_CXXFLAGS=$CXXFLAGS
3942CXXFLAGS="-g"
3943echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3944echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3945if test "${ac_cv_prog_cxx_g+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3947else
3948 cat >conftest.$ac_ext <<_ACEOF
3949/* confdefs.h. */
3950_ACEOF
3951cat confdefs.h >>conftest.$ac_ext
3952cat >>conftest.$ac_ext <<_ACEOF
3953/* end confdefs.h. */
3954
3955int
3956main ()
3957{
3958
3959 ;
3960 return 0;
3961}
3962_ACEOF
3963rm -f conftest.$ac_objext
3964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3965 (eval $ac_compile) 2>conftest.er1
3966 ac_status=$?
3967 grep -v '^ *+' conftest.er1 >conftest.err
3968 rm -f conftest.er1
3969 cat conftest.err >&5
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } &&
3972 { ac_try='test -z "$ac_cxx_werror_flag"
3973 || test ! -s conftest.err'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 (eval $ac_try) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; } &&
3979 { ac_try='test -s conftest.$ac_objext'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981 (eval $ac_try) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 ac_cv_prog_cxx_g=yes
3986else
3987 echo "$as_me: failed program was:" >&5
3988sed 's/^/| /' conftest.$ac_ext >&5
3989
3990ac_cv_prog_cxx_g=no
3991fi
3992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3993fi
3994echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3995echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3996if test "$ac_test_CXXFLAGS" = set; then
3997 CXXFLAGS=$ac_save_CXXFLAGS
3998elif test $ac_cv_prog_cxx_g = yes; then
3999 if test "$GXX" = yes; then
4000 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004001 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004002 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004003 fi
4004else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004005 if test "$GXX" = yes; then
4006 CXXFLAGS="-O2"
4007 else
4008 CXXFLAGS=
4009 fi
John Criswell7a73b802003-06-30 21:59:07 +00004010fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004011for ac_declaration in \
4012 '' \
4013 'extern "C" void std::exit (int) throw (); using std::exit;' \
4014 'extern "C" void std::exit (int); using std::exit;' \
4015 'extern "C" void exit (int) throw ();' \
4016 'extern "C" void exit (int);' \
4017 'void exit (int);'
4018do
4019 cat >conftest.$ac_ext <<_ACEOF
4020/* confdefs.h. */
4021_ACEOF
4022cat confdefs.h >>conftest.$ac_ext
4023cat >>conftest.$ac_ext <<_ACEOF
4024/* end confdefs.h. */
4025$ac_declaration
4026#include <stdlib.h>
4027int
4028main ()
4029{
4030exit (42);
4031 ;
4032 return 0;
4033}
4034_ACEOF
4035rm -f conftest.$ac_objext
4036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4037 (eval $ac_compile) 2>conftest.er1
4038 ac_status=$?
4039 grep -v '^ *+' conftest.er1 >conftest.err
4040 rm -f conftest.er1
4041 cat conftest.err >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try='test -z "$ac_cxx_werror_flag"
4045 || test ! -s conftest.err'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 (eval $ac_try) 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 (eval $ac_try) 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004057 :
4058else
4059 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004060sed 's/^/| /' conftest.$ac_ext >&5
4061
John Criswell7a73b802003-06-30 21:59:07 +00004062continue
4063fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004065 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004066/* confdefs.h. */
4067_ACEOF
4068cat confdefs.h >>conftest.$ac_ext
4069cat >>conftest.$ac_ext <<_ACEOF
4070/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004071$ac_declaration
4072int
4073main ()
4074{
4075exit (42);
4076 ;
4077 return 0;
4078}
John Criswell7a73b802003-06-30 21:59:07 +00004079_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004080rm -f conftest.$ac_objext
4081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4082 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004083 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004084 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004085 rm -f conftest.er1
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004088 (exit $ac_status); } &&
4089 { ac_try='test -z "$ac_cxx_werror_flag"
4090 || test ! -s conftest.err'
4091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 (eval $ac_try) 2>&5
4093 ac_status=$?
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 (eval $ac_try) 2>&5
4099 ac_status=$?
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004102 break
John Criswell7a73b802003-06-30 21:59:07 +00004103else
4104 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004105sed 's/^/| /' conftest.$ac_ext >&5
4106
John Criswell7a73b802003-06-30 21:59:07 +00004107fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004109done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004110rm -f conftest*
4111if test -n "$ac_declaration"; then
4112 echo '#ifdef __cplusplus' >>confdefs.h
4113 echo $ac_declaration >>confdefs.h
4114 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004115fi
4116
4117ac_ext=c
4118ac_cpp='$CPP $CPPFLAGS'
4119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122
John Criswell7a73b802003-06-30 21:59:07 +00004123echo "$as_me:$LINENO: checking " >&5
4124echo $ECHO_N "checking ... $ECHO_C" >&6
4125if test "${ac_cv_has_flex+set}" = set; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 for ac_prog in flex lex
4129do
4130 # Extract the first word of "$ac_prog", so it can be a program name with args.
4131set dummy $ac_prog; ac_word=$2
4132echo "$as_me:$LINENO: checking for $ac_word" >&5
4133echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4134if test "${ac_cv_prog_LEX+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4136else
4137 if test -n "$LEX"; then
4138 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4139else
4140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141for as_dir in $PATH
4142do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4147 ac_cv_prog_LEX="$ac_prog"
4148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4150 fi
4151done
4152done
4153
4154fi
4155fi
4156LEX=$ac_cv_prog_LEX
4157if test -n "$LEX"; then
4158 echo "$as_me:$LINENO: result: $LEX" >&5
4159echo "${ECHO_T}$LEX" >&6
4160else
4161 echo "$as_me:$LINENO: result: no" >&5
4162echo "${ECHO_T}no" >&6
4163fi
4164
4165 test -n "$LEX" && break
4166done
4167test -n "$LEX" || LEX=":"
4168
4169if test -z "$LEXLIB"
4170then
4171 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4172echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4173if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175else
4176 ac_check_lib_save_LIBS=$LIBS
4177LIBS="-lfl $LIBS"
4178cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004179/* confdefs.h. */
4180_ACEOF
4181cat confdefs.h >>conftest.$ac_ext
4182cat >>conftest.$ac_ext <<_ACEOF
4183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004184
4185/* Override any gcc2 internal prototype to avoid an error. */
4186#ifdef __cplusplus
4187extern "C"
4188#endif
4189/* We use char because int might match the return type of a gcc2
4190 builtin and then its argument prototype would still apply. */
4191char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004192int
4193main ()
4194{
4195yywrap ();
4196 ;
4197 return 0;
4198}
4199_ACEOF
4200rm -f conftest.$ac_objext conftest$ac_exeext
4201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004202 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004203 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004204 grep -v '^ *+' conftest.er1 >conftest.err
4205 rm -f conftest.er1
4206 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004209 { ac_try='test -z "$ac_c_werror_flag"
4210 || test ! -s conftest.err'
4211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4212 (eval $ac_try) 2>&5
4213 ac_status=$?
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); }; } &&
4216 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4218 (eval $ac_try) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then
4222 ac_cv_lib_fl_yywrap=yes
4223else
4224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004225sed 's/^/| /' conftest.$ac_ext >&5
4226
John Criswell7a73b802003-06-30 21:59:07 +00004227ac_cv_lib_fl_yywrap=no
4228fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004229rm -f conftest.err conftest.$ac_objext \
4230 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004231LIBS=$ac_check_lib_save_LIBS
4232fi
4233echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4234echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4235if test $ac_cv_lib_fl_yywrap = yes; then
4236 LEXLIB="-lfl"
4237else
4238 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4239echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4240if test "${ac_cv_lib_l_yywrap+set}" = set; then
4241 echo $ECHO_N "(cached) $ECHO_C" >&6
4242else
4243 ac_check_lib_save_LIBS=$LIBS
4244LIBS="-ll $LIBS"
4245cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004246/* confdefs.h. */
4247_ACEOF
4248cat confdefs.h >>conftest.$ac_ext
4249cat >>conftest.$ac_ext <<_ACEOF
4250/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004251
4252/* Override any gcc2 internal prototype to avoid an error. */
4253#ifdef __cplusplus
4254extern "C"
4255#endif
4256/* We use char because int might match the return type of a gcc2
4257 builtin and then its argument prototype would still apply. */
4258char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004259int
4260main ()
4261{
4262yywrap ();
4263 ;
4264 return 0;
4265}
4266_ACEOF
4267rm -f conftest.$ac_objext conftest$ac_exeext
4268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004269 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004270 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004271 grep -v '^ *+' conftest.er1 >conftest.err
4272 rm -f conftest.er1
4273 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004276 { ac_try='test -z "$ac_c_werror_flag"
4277 || test ! -s conftest.err'
4278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279 (eval $ac_try) 2>&5
4280 ac_status=$?
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; } &&
4283 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4285 (eval $ac_try) 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4289 ac_cv_lib_l_yywrap=yes
4290else
4291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004292sed 's/^/| /' conftest.$ac_ext >&5
4293
John Criswell7a73b802003-06-30 21:59:07 +00004294ac_cv_lib_l_yywrap=no
4295fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004296rm -f conftest.err conftest.$ac_objext \
4297 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004298LIBS=$ac_check_lib_save_LIBS
4299fi
4300echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4301echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4302if test $ac_cv_lib_l_yywrap = yes; then
4303 LEXLIB="-ll"
4304fi
4305
4306fi
4307
4308fi
4309
4310if test "x$LEX" != "x:"; then
4311 echo "$as_me:$LINENO: checking lex output file root" >&5
4312echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4313if test "${ac_cv_prog_lex_root+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4315else
4316 # The minimal lex program is just a single line: %%. But some broken lexes
4317# (Solaris, I think it was) want two %% lines, so accommodate them.
4318cat >conftest.l <<_ACEOF
4319%%
4320%%
4321_ACEOF
4322{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4323 (eval $LEX conftest.l) 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }
4327if test -f lex.yy.c; then
4328 ac_cv_prog_lex_root=lex.yy
4329elif test -f lexyy.c; then
4330 ac_cv_prog_lex_root=lexyy
4331else
4332 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4333echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4334 { (exit 1); exit 1; }; }
4335fi
4336fi
4337echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4338echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4339rm -f conftest.l
4340LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4341
4342echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4343echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4344if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346else
4347 # POSIX says lex can declare yytext either as a pointer or an array; the
4348# default is implementation-dependent. Figure out which it is, since
4349# not all implementations provide the %pointer and %array declarations.
4350ac_cv_prog_lex_yytext_pointer=no
4351echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4352ac_save_LIBS=$LIBS
4353LIBS="$LIBS $LEXLIB"
4354cat >conftest.$ac_ext <<_ACEOF
4355`cat $LEX_OUTPUT_ROOT.c`
4356_ACEOF
4357rm -f conftest.$ac_objext conftest$ac_exeext
4358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004359 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004360 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004361 grep -v '^ *+' conftest.er1 >conftest.err
4362 rm -f conftest.er1
4363 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004366 { ac_try='test -z "$ac_c_werror_flag"
4367 || test ! -s conftest.err'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4369 (eval $ac_try) 2>&5
4370 ac_status=$?
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; } &&
4373 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4375 (eval $ac_try) 2>&5
4376 ac_status=$?
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_prog_lex_yytext_pointer=yes
4380else
4381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004382sed 's/^/| /' conftest.$ac_ext >&5
4383
John Criswell7a73b802003-06-30 21:59:07 +00004384fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004385rm -f conftest.err conftest.$ac_objext \
4386 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004387LIBS=$ac_save_LIBS
4388rm -f "${LEX_OUTPUT_ROOT}.c"
4389
4390fi
4391echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4392echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4393if test $ac_cv_prog_lex_yytext_pointer = yes; then
4394
4395cat >>confdefs.h <<\_ACEOF
4396#define YYTEXT_POINTER 1
4397_ACEOF
4398
4399fi
4400
4401fi
4402
4403fi
4404echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4405echo "${ECHO_T}$ac_cv_has_flex" >&6
4406if test "$LEX" != "flex"; then
4407 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4408echo "$as_me: error: flex not found but required" >&2;}
4409 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004410else
4411 FLEX=flex
4412
John Criswell7a73b802003-06-30 21:59:07 +00004413fi
4414
4415echo "$as_me:$LINENO: checking " >&5
4416echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004417if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004418 echo $ECHO_N "(cached) $ECHO_C" >&6
4419else
4420 for ac_prog in 'bison -y' byacc
4421do
4422 # Extract the first word of "$ac_prog", so it can be a program name with args.
4423set dummy $ac_prog; ac_word=$2
4424echo "$as_me:$LINENO: checking for $ac_word" >&5
4425echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426if test "${ac_cv_prog_YACC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4428else
4429 if test -n "$YACC"; then
4430 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4431else
4432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433for as_dir in $PATH
4434do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4439 ac_cv_prog_YACC="$ac_prog"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4442 fi
4443done
4444done
4445
4446fi
4447fi
4448YACC=$ac_cv_prog_YACC
4449if test -n "$YACC"; then
4450 echo "$as_me:$LINENO: result: $YACC" >&5
4451echo "${ECHO_T}$YACC" >&6
4452else
4453 echo "$as_me:$LINENO: result: no" >&5
4454echo "${ECHO_T}no" >&6
4455fi
4456
4457 test -n "$YACC" && break
4458done
4459test -n "$YACC" || YACC="yacc"
4460
John Criswell7a73b802003-06-30 21:59:07 +00004461fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004462echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4463echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004464if test "$YACC" != "bison -y"; then
4465 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4466echo "$as_me: error: bison not found but required" >&2;}
4467 { (exit 1); exit 1; }; }
4468else
Brian Gaeke12810632004-01-13 06:52:10 +00004469 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004470
4471fi
4472
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004473echo "$as_me:$LINENO: checking for GNU make" >&5
4474echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4475if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004476 echo $ECHO_N "(cached) $ECHO_C" >&6
4477else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004478 llvm_cv_gnu_make_command=''
4479 for a in "$MAKE" make gmake gnumake ; do
4480 if test -z "$a" ; then continue ; fi ;
4481 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4482 then
4483 llvm_cv_gnu_make_command=$a ;
4484 break;
John Criswell47fdd832003-07-14 16:52:07 +00004485 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004486 done
John Criswell7a73b802003-06-30 21:59:07 +00004487fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004488echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4489echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4490 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4491 ifGNUmake='' ;
4492 else
4493 ifGNUmake='#' ;
4494 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4495echo "${ECHO_T}\"Not found\"" >&6;
4496 fi
John Criswell7a73b802003-06-30 21:59:07 +00004497
John Criswell7a73b802003-06-30 21:59:07 +00004498
4499echo "$as_me:$LINENO: checking whether ln -s works" >&5
4500echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4501LN_S=$as_ln_s
4502if test "$LN_S" = "ln -s"; then
4503 echo "$as_me:$LINENO: result: yes" >&5
4504echo "${ECHO_T}yes" >&6
4505else
4506 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4507echo "${ECHO_T}no, using $LN_S" >&6
4508fi
4509
Reid Spencer8a2d4712004-12-16 17:48:14 +00004510# Extract the first word of "cmp", so it can be a program name with args.
4511set dummy cmp; ac_word=$2
4512echo "$as_me:$LINENO: checking for $ac_word" >&5
4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4514if test "${ac_cv_path_CMP+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 case $CMP in
4518 [\\/]* | ?:[\\/]*)
4519 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4520 ;;
4521 *)
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH
4524do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4532 fi
4533done
4534done
4535
4536 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4537 ;;
4538esac
4539fi
4540CMP=$ac_cv_path_CMP
4541
4542if test -n "$CMP"; then
4543 echo "$as_me:$LINENO: result: $CMP" >&5
4544echo "${ECHO_T}$CMP" >&6
4545else
4546 echo "$as_me:$LINENO: result: no" >&5
4547echo "${ECHO_T}no" >&6
4548fi
4549
4550# Extract the first word of "cp", so it can be a program name with args.
4551set dummy cp; ac_word=$2
4552echo "$as_me:$LINENO: checking for $ac_word" >&5
4553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4554if test "${ac_cv_path_CP+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
4557 case $CP in
4558 [\\/]* | ?:[\\/]*)
4559 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4560 ;;
4561 *)
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4569 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573done
4574done
4575
4576 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4577 ;;
4578esac
4579fi
4580CP=$ac_cv_path_CP
4581
4582if test -n "$CP"; then
4583 echo "$as_me:$LINENO: result: $CP" >&5
4584echo "${ECHO_T}$CP" >&6
4585else
4586 echo "$as_me:$LINENO: result: no" >&5
4587echo "${ECHO_T}no" >&6
4588fi
4589
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004590# Extract the first word of "date", so it can be a program name with args.
4591set dummy date; ac_word=$2
4592echo "$as_me:$LINENO: checking for $ac_word" >&5
4593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4594if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004597 case $DATE in
4598 [\\/]* | ?:[\\/]*)
4599 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004600 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004601 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603for as_dir in $PATH
4604do
4605 IFS=$as_save_IFS
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4609 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004612 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004613done
4614done
John Criswell7a73b802003-06-30 21:59:07 +00004615
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004616 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004617 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004618esac
John Criswell7a73b802003-06-30 21:59:07 +00004619fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004620DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004621
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004622if test -n "$DATE"; then
4623 echo "$as_me:$LINENO: result: $DATE" >&5
4624echo "${ECHO_T}$DATE" >&6
4625else
4626 echo "$as_me:$LINENO: result: no" >&5
4627echo "${ECHO_T}no" >&6
4628fi
John Criswell7a73b802003-06-30 21:59:07 +00004629
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004630# Extract the first word of "find", so it can be a program name with args.
4631set dummy find; ac_word=$2
4632echo "$as_me:$LINENO: checking for $ac_word" >&5
4633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4634if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004635 echo $ECHO_N "(cached) $ECHO_C" >&6
4636else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004637 case $FIND in
4638 [\\/]* | ?:[\\/]*)
4639 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4640 ;;
4641 *)
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643for as_dir in $PATH
4644do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653done
4654done
4655
4656 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4657 ;;
4658esac
4659fi
4660FIND=$ac_cv_path_FIND
4661
4662if test -n "$FIND"; then
4663 echo "$as_me:$LINENO: result: $FIND" >&5
4664echo "${ECHO_T}$FIND" >&6
4665else
4666 echo "$as_me:$LINENO: result: no" >&5
4667echo "${ECHO_T}no" >&6
4668fi
4669
4670# Extract the first word of "grep", so it can be a program name with args.
4671set dummy grep; ac_word=$2
4672echo "$as_me:$LINENO: checking for $ac_word" >&5
4673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4674if test "${ac_cv_path_GREP+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4676else
4677 case $GREP in
4678 [\\/]* | ?:[\\/]*)
4679 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4680 ;;
4681 *)
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693done
4694done
4695
4696 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4697 ;;
4698esac
4699fi
4700GREP=$ac_cv_path_GREP
4701
4702if test -n "$GREP"; then
4703 echo "$as_me:$LINENO: result: $GREP" >&5
4704echo "${ECHO_T}$GREP" >&6
4705else
4706 echo "$as_me:$LINENO: result: no" >&5
4707echo "${ECHO_T}no" >&6
4708fi
4709
Reid Spencer502935f2004-12-22 05:56:56 +00004710# Extract the first word of "llvm-gcc", so it can be a program name with args.
4711set dummy llvm-gcc; ac_word=$2
4712echo "$as_me:$LINENO: checking for $ac_word" >&5
4713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714if test "${ac_cv_path_LLVMGCC+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4716else
4717 case $LLVMGCC in
4718 [\\/]* | ?:[\\/]*)
4719 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
4720 ;;
4721 *)
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733done
4734done
4735
4736 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
4737 ;;
4738esac
4739fi
4740LLVMGCC=$ac_cv_path_LLVMGCC
4741
4742if test -n "$LLVMGCC"; then
4743 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
4744echo "${ECHO_T}$LLVMGCC" >&6
4745else
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
4748fi
4749
4750# Extract the first word of "llvm-g++", so it can be a program name with args.
4751set dummy llvm-g++; ac_word=$2
4752echo "$as_me:$LINENO: checking for $ac_word" >&5
4753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4754if test "${ac_cv_path_LLVMGXX+set}" = set; then
4755 echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
4757 case $LLVMGXX in
4758 [\\/]* | ?:[\\/]*)
4759 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
4760 ;;
4761 *)
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763for as_dir in $PATH
4764do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 for ac_exec_ext in '' $ac_executable_extensions; do
4768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4769 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
4770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 break 2
4772 fi
4773done
4774done
4775
4776 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
4777 ;;
4778esac
4779fi
4780LLVMGXX=$ac_cv_path_LLVMGXX
4781
4782if test -n "$LLVMGXX"; then
4783 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
4784echo "${ECHO_T}$LLVMGXX" >&6
4785else
4786 echo "$as_me:$LINENO: result: no" >&5
4787echo "${ECHO_T}no" >&6
4788fi
4789
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004790# Extract the first word of "mkdir", so it can be a program name with args.
4791set dummy mkdir; ac_word=$2
4792echo "$as_me:$LINENO: checking for $ac_word" >&5
4793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794if test "${ac_cv_path_MKDIR+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796else
4797 case $MKDIR in
4798 [\\/]* | ?:[\\/]*)
4799 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4800 ;;
4801 *)
4802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4809 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 break 2
4812 fi
4813done
4814done
4815
4816 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4817 ;;
4818esac
4819fi
4820MKDIR=$ac_cv_path_MKDIR
4821
4822if test -n "$MKDIR"; then
4823 echo "$as_me:$LINENO: result: $MKDIR" >&5
4824echo "${ECHO_T}$MKDIR" >&6
4825else
4826 echo "$as_me:$LINENO: result: no" >&5
4827echo "${ECHO_T}no" >&6
4828fi
4829
4830# Extract the first word of "mv", so it can be a program name with args.
4831set dummy mv; ac_word=$2
4832echo "$as_me:$LINENO: checking for $ac_word" >&5
4833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4834if test "${ac_cv_path_MV+set}" = set; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4836else
4837 case $MV in
4838 [\\/]* | ?:[\\/]*)
4839 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4840 ;;
4841 *)
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853done
4854done
4855
4856 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4857 ;;
4858esac
4859fi
4860MV=$ac_cv_path_MV
4861
4862if test -n "$MV"; then
4863 echo "$as_me:$LINENO: result: $MV" >&5
4864echo "${ECHO_T}$MV" >&6
4865else
4866 echo "$as_me:$LINENO: result: no" >&5
4867echo "${ECHO_T}no" >&6
4868fi
4869
4870# Extract the first word of "pax", so it can be a program name with args.
4871set dummy pax; ac_word=$2
4872echo "$as_me:$LINENO: checking for $ac_word" >&5
4873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4874if test "${ac_cv_path_PAX+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876else
4877 case $PAX in
4878 [\\/]* | ?:[\\/]*)
4879 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4880 ;;
4881 *)
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4889 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4892 fi
4893done
4894done
4895
4896 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4897 ;;
4898esac
4899fi
4900PAX=$ac_cv_path_PAX
4901
4902if test -n "$PAX"; then
4903 echo "$as_me:$LINENO: result: $PAX" >&5
4904echo "${ECHO_T}$PAX" >&6
4905else
4906 echo "$as_me:$LINENO: result: no" >&5
4907echo "${ECHO_T}no" >&6
4908fi
4909
4910if test -n "$ac_tool_prefix"; then
4911 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4912set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4913echo "$as_me:$LINENO: checking for $ac_word" >&5
4914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4915if test "${ac_cv_prog_RANLIB+set}" = set; then
4916 echo $ECHO_N "(cached) $ECHO_C" >&6
4917else
4918 if test -n "$RANLIB"; then
4919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4920else
4921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922for as_dir in $PATH
4923do
4924 IFS=$as_save_IFS
4925 test -z "$as_dir" && as_dir=.
4926 for ac_exec_ext in '' $ac_executable_extensions; do
4927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4928 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4930 break 2
4931 fi
4932done
4933done
4934
4935fi
4936fi
4937RANLIB=$ac_cv_prog_RANLIB
4938if test -n "$RANLIB"; then
4939 echo "$as_me:$LINENO: result: $RANLIB" >&5
4940echo "${ECHO_T}$RANLIB" >&6
4941else
4942 echo "$as_me:$LINENO: result: no" >&5
4943echo "${ECHO_T}no" >&6
4944fi
4945
4946fi
4947if test -z "$ac_cv_prog_RANLIB"; then
4948 ac_ct_RANLIB=$RANLIB
4949 # Extract the first word of "ranlib", so it can be a program name with args.
4950set dummy ranlib; ac_word=$2
4951echo "$as_me:$LINENO: checking for $ac_word" >&5
4952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4953if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4955else
4956 if test -n "$ac_ct_RANLIB"; then
4957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4958else
4959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960for as_dir in $PATH
4961do
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966 ac_cv_prog_ac_ct_RANLIB="ranlib"
4967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 break 2
4969 fi
4970done
4971done
4972
4973 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4974fi
4975fi
4976ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4977if test -n "$ac_ct_RANLIB"; then
4978 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4979echo "${ECHO_T}$ac_ct_RANLIB" >&6
4980else
4981 echo "$as_me:$LINENO: result: no" >&5
4982echo "${ECHO_T}no" >&6
4983fi
4984
4985 RANLIB=$ac_ct_RANLIB
4986else
4987 RANLIB="$ac_cv_prog_RANLIB"
4988fi
4989
4990# Extract the first word of "rm", so it can be a program name with args.
4991set dummy rm; ac_word=$2
4992echo "$as_me:$LINENO: checking for $ac_word" >&5
4993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994if test "${ac_cv_path_RM+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997 case $RM in
4998 [\\/]* | ?:[\\/]*)
4999 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5000 ;;
5001 *)
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003for as_dir in $PATH
5004do
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 break 2
5012 fi
5013done
5014done
5015
5016 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5017 ;;
5018esac
5019fi
5020RM=$ac_cv_path_RM
5021
5022if test -n "$RM"; then
5023 echo "$as_me:$LINENO: result: $RM" >&5
5024echo "${ECHO_T}$RM" >&6
5025else
5026 echo "$as_me:$LINENO: result: no" >&5
5027echo "${ECHO_T}no" >&6
5028fi
5029
5030# Extract the first word of "sed", so it can be a program name with args.
5031set dummy sed; ac_word=$2
5032echo "$as_me:$LINENO: checking for $ac_word" >&5
5033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5034if test "${ac_cv_path_SED+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036else
5037 case $SED in
5038 [\\/]* | ?:[\\/]*)
5039 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5040 ;;
5041 *)
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043for as_dir in $PATH
5044do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5052 fi
5053done
5054done
5055
5056 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5057 ;;
5058esac
5059fi
5060SED=$ac_cv_path_SED
5061
5062if test -n "$SED"; then
5063 echo "$as_me:$LINENO: result: $SED" >&5
5064echo "${ECHO_T}$SED" >&6
5065else
5066 echo "$as_me:$LINENO: result: no" >&5
5067echo "${ECHO_T}no" >&6
5068fi
5069
5070# Extract the first word of "tar", so it can be a program name with args.
5071set dummy tar; ac_word=$2
5072echo "$as_me:$LINENO: checking for $ac_word" >&5
5073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5074if test "${ac_cv_path_TAR+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076else
5077 case $TAR in
5078 [\\/]* | ?:[\\/]*)
5079 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5080 ;;
5081 *)
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in $PATH
5084do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5092 fi
5093done
5094done
5095
5096 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5097 ;;
5098esac
5099fi
5100TAR=$ac_cv_path_TAR
5101
5102if test -n "$TAR"; then
5103 echo "$as_me:$LINENO: result: $TAR" >&5
5104echo "${ECHO_T}$TAR" >&6
5105else
5106 echo "$as_me:$LINENO: result: no" >&5
5107echo "${ECHO_T}no" >&6
5108fi
5109
5110
5111# Find a good install program. We prefer a C program (faster),
5112# so one script is as good as another. But avoid the broken or
5113# incompatible versions:
5114# SysV /etc/install, /usr/sbin/install
5115# SunOS /usr/etc/install
5116# IRIX /sbin/install
5117# AIX /bin/install
5118# AmigaOS /C/install, which installs bootblocks on floppy discs
5119# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5120# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5121# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5122# OS/2's system install, which has a completely different semantic
5123# ./install, which can be erroneously created by make from ./install.sh.
5124echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5125echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5126if test -z "$INSTALL"; then
5127if test "${ac_cv_path_install+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129else
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131for as_dir in $PATH
5132do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5135 # Account for people who put trailing slashes in PATH elements.
5136case $as_dir/ in
5137 ./ | .// | /cC/* | \
5138 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5139 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5140 /usr/ucb/* ) ;;
5141 *)
5142 # OSF1 and SCO ODT 3.0 have their own names for install.
5143 # Don't use installbsd from OSF since it installs stuff as root
5144 # by default.
5145 for ac_prog in ginstall scoinst install; do
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5148 if test $ac_prog = install &&
5149 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5150 # AIX install. It has an incompatible calling convention.
5151 :
5152 elif test $ac_prog = install &&
5153 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5154 # program-specific install script used by HP pwplus--don't use.
5155 :
5156 else
5157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5158 break 3
5159 fi
5160 fi
5161 done
5162 done
5163 ;;
5164esac
5165done
5166
5167
5168fi
5169 if test "${ac_cv_path_install+set}" = set; then
5170 INSTALL=$ac_cv_path_install
5171 else
5172 # As a last resort, use the slow shell script. We don't cache a
5173 # path for INSTALL within a source directory, because that will
5174 # break other packages using the cache if that directory is
5175 # removed, or if the path is relative.
5176 INSTALL=$ac_install_sh
5177 fi
5178fi
5179echo "$as_me:$LINENO: result: $INSTALL" >&5
5180echo "${ECHO_T}$INSTALL" >&6
5181
5182# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5183# It thinks the first close brace ends the variable substitution.
5184test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5185
5186test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5187
5188test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5189
5190
5191# Extract the first word of "bzip2", so it can be a program name with args.
5192set dummy bzip2; ac_word=$2
5193echo "$as_me:$LINENO: checking for $ac_word" >&5
5194echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195if test "${ac_cv_path_BZIP2+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5197else
5198 case $BZIP2 in
5199 [\\/]* | ?:[\\/]*)
5200 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5201 ;;
5202 *)
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204for as_dir in $PATH
5205do
5206 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5210 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2
5213 fi
5214done
5215done
5216
5217 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5218 ;;
5219esac
5220fi
5221BZIP2=$ac_cv_path_BZIP2
5222
5223if test -n "$BZIP2"; then
5224 echo "$as_me:$LINENO: result: $BZIP2" >&5
5225echo "${ECHO_T}$BZIP2" >&6
5226else
5227 echo "$as_me:$LINENO: result: no" >&5
5228echo "${ECHO_T}no" >&6
5229fi
5230
5231# Extract the first word of "dot", so it can be a program name with args.
5232set dummy dot; ac_word=$2
5233echo "$as_me:$LINENO: checking for $ac_word" >&5
5234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5235if test "${ac_cv_path_DOT+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238 case $DOT in
5239 [\\/]* | ?:[\\/]*)
5240 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5241 ;;
5242 *)
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5244for as_dir in $PATH
5245do
5246 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2
5253 fi
5254done
5255done
5256
5257 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5258 ;;
5259esac
5260fi
5261DOT=$ac_cv_path_DOT
5262
5263if test -n "$DOT"; then
5264 echo "$as_me:$LINENO: result: $DOT" >&5
5265echo "${ECHO_T}$DOT" >&6
5266else
5267 echo "$as_me:$LINENO: result: no" >&5
5268echo "${ECHO_T}no" >&6
5269fi
5270
5271# Extract the first word of "doxygen", so it can be a program name with args.
5272set dummy doxygen; ac_word=$2
5273echo "$as_me:$LINENO: checking for $ac_word" >&5
5274echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5275if test "${ac_cv_path_DOXYGEN+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5277else
5278 case $DOXYGEN in
5279 [\\/]* | ?:[\\/]*)
5280 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5281 ;;
5282 *)
5283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284for as_dir in $PATH
5285do
5286 IFS=$as_save_IFS
5287 test -z "$as_dir" && as_dir=.
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5290 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5292 break 2
5293 fi
5294done
5295done
5296
5297 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5298 ;;
5299esac
5300fi
5301DOXYGEN=$ac_cv_path_DOXYGEN
5302
5303if test -n "$DOXYGEN"; then
5304 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5305echo "${ECHO_T}$DOXYGEN" >&6
5306else
5307 echo "$as_me:$LINENO: result: no" >&5
5308echo "${ECHO_T}no" >&6
5309fi
5310
5311# Extract the first word of "etags", so it can be a program name with args.
5312set dummy etags; ac_word=$2
5313echo "$as_me:$LINENO: checking for $ac_word" >&5
5314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5315if test "${ac_cv_path_ETAGS+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317else
5318 case $ETAGS in
5319 [\\/]* | ?:[\\/]*)
5320 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5321 ;;
5322 *)
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324for as_dir in $PATH
5325do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334done
5335done
5336
5337 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5338 ;;
5339esac
5340fi
5341ETAGS=$ac_cv_path_ETAGS
5342
5343if test -n "$ETAGS"; then
5344 echo "$as_me:$LINENO: result: $ETAGS" >&5
5345echo "${ECHO_T}$ETAGS" >&6
5346else
5347 echo "$as_me:$LINENO: result: no" >&5
5348echo "${ECHO_T}no" >&6
5349fi
5350
5351# Extract the first word of "groff", so it can be a program name with args.
5352set dummy groff; ac_word=$2
5353echo "$as_me:$LINENO: checking for $ac_word" >&5
5354echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5355if test "${ac_cv_path_GROFF+set}" = set; then
5356 echo $ECHO_N "(cached) $ECHO_C" >&6
5357else
5358 case $GROFF in
5359 [\\/]* | ?:[\\/]*)
5360 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5361 ;;
5362 *)
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH
5365do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5370 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374done
5375done
5376
5377 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5378 ;;
5379esac
5380fi
5381GROFF=$ac_cv_path_GROFF
5382
5383if test -n "$GROFF"; then
5384 echo "$as_me:$LINENO: result: $GROFF" >&5
5385echo "${ECHO_T}$GROFF" >&6
5386else
5387 echo "$as_me:$LINENO: result: no" >&5
5388echo "${ECHO_T}no" >&6
5389fi
5390
5391# Extract the first word of "gzip", so it can be a program name with args.
5392set dummy gzip; ac_word=$2
5393echo "$as_me:$LINENO: checking for $ac_word" >&5
5394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5395if test "${ac_cv_path_GZIP+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5397else
5398 case $GZIP in
5399 [\\/]* | ?:[\\/]*)
5400 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5401 ;;
5402 *)
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH
5405do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2
5413 fi
5414done
5415done
5416
5417 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5418 ;;
5419esac
5420fi
5421GZIP=$ac_cv_path_GZIP
5422
5423if test -n "$GZIP"; then
5424 echo "$as_me:$LINENO: result: $GZIP" >&5
5425echo "${ECHO_T}$GZIP" >&6
5426else
5427 echo "$as_me:$LINENO: result: no" >&5
5428echo "${ECHO_T}no" >&6
5429fi
5430
5431# Extract the first word of "pod2html", so it can be a program name with args.
5432set dummy pod2html; ac_word=$2
5433echo "$as_me:$LINENO: checking for $ac_word" >&5
5434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435if test "${ac_cv_path_POD2HTML+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5437else
5438 case $POD2HTML in
5439 [\\/]* | ?:[\\/]*)
5440 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5441 ;;
5442 *)
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5453 fi
5454done
5455done
5456
5457 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5458 ;;
5459esac
5460fi
5461POD2HTML=$ac_cv_path_POD2HTML
5462
5463if test -n "$POD2HTML"; then
5464 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5465echo "${ECHO_T}$POD2HTML" >&6
5466else
5467 echo "$as_me:$LINENO: result: no" >&5
5468echo "${ECHO_T}no" >&6
5469fi
5470
5471# Extract the first word of "pod2man", so it can be a program name with args.
5472set dummy pod2man; ac_word=$2
5473echo "$as_me:$LINENO: checking for $ac_word" >&5
5474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5475if test "${ac_cv_path_POD2MAN+set}" = set; then
5476 echo $ECHO_N "(cached) $ECHO_C" >&6
5477else
5478 case $POD2MAN in
5479 [\\/]* | ?:[\\/]*)
5480 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5481 ;;
5482 *)
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484for as_dir in $PATH
5485do
5486 IFS=$as_save_IFS
5487 test -z "$as_dir" && as_dir=.
5488 for ac_exec_ext in '' $ac_executable_extensions; do
5489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5490 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5492 break 2
5493 fi
5494done
5495done
5496
5497 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5498 ;;
5499esac
5500fi
5501POD2MAN=$ac_cv_path_POD2MAN
5502
5503if test -n "$POD2MAN"; then
5504 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5505echo "${ECHO_T}$POD2MAN" >&6
5506else
5507 echo "$as_me:$LINENO: result: no" >&5
5508echo "${ECHO_T}no" >&6
5509fi
5510
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005511# Extract the first word of "runtest", so it can be a program name with args.
5512set dummy runtest; ac_word=$2
5513echo "$as_me:$LINENO: checking for $ac_word" >&5
5514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5515if test "${ac_cv_path_RUNTEST+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517else
5518 case $RUNTEST in
5519 [\\/]* | ?:[\\/]*)
5520 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5521 ;;
5522 *)
5523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524for as_dir in $PATH
5525do
5526 IFS=$as_save_IFS
5527 test -z "$as_dir" && as_dir=.
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5530 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5532 break 2
5533 fi
5534done
5535done
5536
5537 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5538 ;;
5539esac
5540fi
5541RUNTEST=$ac_cv_path_RUNTEST
5542
5543if test -n "$RUNTEST"; then
5544 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5545echo "${ECHO_T}$RUNTEST" >&6
5546else
5547 echo "$as_me:$LINENO: result: no" >&5
5548echo "${ECHO_T}no" >&6
5549fi
5550
Reid Spencer0fcb9412004-11-30 08:11:54 +00005551
Reid Spencer0fcb9412004-11-30 08:11:54 +00005552no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005553echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5554echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005555
5556# Check whether --with-tclinclude or --without-tclinclude was given.
5557if test "${with_tclinclude+set}" = set; then
5558 withval="$with_tclinclude"
5559 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005560else
5561 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005562fi;
5563if test "${ac_cv_path_tclsh+set}" = set; then
5564 echo $ECHO_N "(cached) $ECHO_C" >&6
5565else
5566
5567if test x"${with_tclinclude}" != x ; then
5568 if test -f ${with_tclinclude}/tclsh ; then
5569 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5570 elif test -f ${with_tclinclude}/src/tclsh ; then
5571 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5572 else
5573 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5574echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5575 { (exit 1); exit 1; }; }
5576 fi
5577fi
5578
Reid Spencer0fcb9412004-11-30 08:11:54 +00005579if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005580 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005581echo "${ECHO_T}none" >&6
Reid Spencerfc757b52004-12-02 07:31:22 +00005582 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 .tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
Reid Spencercda35f82004-12-02 04:17:20 +00005583do
5584 # Extract the first word of "$ac_prog", so it can be a program name with args.
5585set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005586echo "$as_me:$LINENO: checking for $ac_word" >&5
5587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005588if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590else
Reid Spencercda35f82004-12-02 04:17:20 +00005591 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005592 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005593 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005594 ;;
5595 *)
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597for as_dir in $PATH
5598do
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005603 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5606 fi
5607done
5608done
5609
5610 ;;
5611esac
5612fi
Reid Spencercda35f82004-12-02 04:17:20 +00005613TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005614
Reid Spencercda35f82004-12-02 04:17:20 +00005615if test -n "$TCLSH"; then
5616 echo "$as_me:$LINENO: result: $TCLSH" >&5
5617echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005618else
5619 echo "$as_me:$LINENO: result: no" >&5
5620echo "${ECHO_T}no" >&6
5621fi
5622
Reid Spencercda35f82004-12-02 04:17:20 +00005623 test -n "$TCLSH" && break
5624done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005625
Reid Spencercda35f82004-12-02 04:17:20 +00005626 if test x"${TCLSH}" = x ; then
5627 ac_cv_path_tclsh='';
5628 else
5629 ac_cv_path_tclsh="${TCLSH}";
5630 fi
5631else
5632 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5633echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5634 TCLSH="${ac_cv_path_tclsh}"
5635
5636fi
5637
5638fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005639
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005640# Extract the first word of "zip", so it can be a program name with args.
5641set dummy zip; ac_word=$2
5642echo "$as_me:$LINENO: checking for $ac_word" >&5
5643echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5644if test "${ac_cv_path_ZIP+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5646else
5647 case $ZIP in
5648 [\\/]* | ?:[\\/]*)
5649 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5650 ;;
5651 *)
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653for as_dir in $PATH
5654do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663done
5664done
5665
5666 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5667 ;;
5668esac
5669fi
5670ZIP=$ac_cv_path_ZIP
5671
5672if test -n "$ZIP"; then
5673 echo "$as_me:$LINENO: result: $ZIP" >&5
5674echo "${ECHO_T}$ZIP" >&6
5675else
5676 echo "$as_me:$LINENO: result: no" >&5
5677echo "${ECHO_T}no" >&6
5678fi
5679
5680
5681echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5682echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5683if test "${llvm_cv_link_use_r+set}" = set; then
5684 echo $ECHO_N "(cached) $ECHO_C" >&6
5685else
5686 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005687ac_cpp='$CPP $CPPFLAGS'
5688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5690ac_compiler_gnu=$ac_cv_c_compiler_gnu
5691
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005692 oldcflags="$CFLAGS"
5693 CFLAGS="$CFLAGS -Wl,-R."
5694 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005695/* confdefs.h. */
5696_ACEOF
5697cat confdefs.h >>conftest.$ac_ext
5698cat >>conftest.$ac_ext <<_ACEOF
5699/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005700
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005701int
5702main ()
5703{
5704int main() { return 0; }
5705 ;
5706 return 0;
5707}
John Criswell47fdd832003-07-14 16:52:07 +00005708_ACEOF
5709rm -f conftest.$ac_objext conftest$ac_exeext
5710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005711 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005712 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005717 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005718 { ac_try='test -z "$ac_c_werror_flag"
5719 || test ! -s conftest.err'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 (eval $ac_try) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; } &&
5725 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5727 (eval $ac_try) 2>&5
5728 ac_status=$?
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005731 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005732else
John Criswell47fdd832003-07-14 16:52:07 +00005733 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005734sed 's/^/| /' conftest.$ac_ext >&5
5735
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005736llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005737fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005738rm -f conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005740 CFLAGS="$oldcflags"
5741 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005742ac_cpp='$CPP $CPPFLAGS'
5743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5745ac_compiler_gnu=$ac_cv_c_compiler_gnu
5746
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005747
John Criswell7a73b802003-06-30 21:59:07 +00005748fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005749echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5750echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5751if test "$llvm_cv_link_use_r" = yes ; then
5752
5753cat >>confdefs.h <<\_ACEOF
5754#define HAVE_LINK_R 1
5755_ACEOF
5756
John Criswell47fdd832003-07-14 16:52:07 +00005757 fi
John Criswell47fdd832003-07-14 16:52:07 +00005758
John Criswell47fdd832003-07-14 16:52:07 +00005759
John Criswell47fdd832003-07-14 16:52:07 +00005760
John Criswell7a73b802003-06-30 21:59:07 +00005761
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005762echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5763echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5764if test "${ac_cv_c_const+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766else
5767 cat >conftest.$ac_ext <<_ACEOF
5768/* confdefs.h. */
5769_ACEOF
5770cat confdefs.h >>conftest.$ac_ext
5771cat >>conftest.$ac_ext <<_ACEOF
5772/* end confdefs.h. */
5773
5774int
5775main ()
5776{
5777/* FIXME: Include the comments suggested by Paul. */
5778#ifndef __cplusplus
5779 /* Ultrix mips cc rejects this. */
5780 typedef int charset[2];
5781 const charset x;
5782 /* SunOS 4.1.1 cc rejects this. */
5783 char const *const *ccp;
5784 char **p;
5785 /* NEC SVR4.0.2 mips cc rejects this. */
5786 struct point {int x, y;};
5787 static struct point const zero = {0,0};
5788 /* AIX XL C 1.02.0.0 rejects this.
5789 It does not let you subtract one const X* pointer from another in
5790 an arm of an if-expression whose if-part is not a constant
5791 expression */
5792 const char *g = "string";
5793 ccp = &g + (g ? g-g : 0);
5794 /* HPUX 7.0 cc rejects these. */
5795 ++ccp;
5796 p = (char**) ccp;
5797 ccp = (char const *const *) p;
5798 { /* SCO 3.2v4 cc rejects this. */
5799 char *t;
5800 char const *s = 0 ? (char *) 0 : (char const *) 0;
5801
5802 *t++ = 0;
5803 }
5804 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5805 int x[] = {25, 17};
5806 const int *foo = &x[0];
5807 ++foo;
5808 }
5809 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5810 typedef const int *iptr;
5811 iptr p = 0;
5812 ++p;
5813 }
5814 { /* AIX XL C 1.02.0.0 rejects this saying
5815 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5816 struct s { int j; const int *ap[3]; };
5817 struct s *b; b->j = 5;
5818 }
5819 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5820 const int foo = 10;
5821 }
5822#endif
5823
5824 ;
5825 return 0;
5826}
5827_ACEOF
5828rm -f conftest.$ac_objext
5829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5830 (eval $ac_compile) 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } &&
5837 { ac_try='test -z "$ac_c_werror_flag"
5838 || test ! -s conftest.err'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840 (eval $ac_try) 2>&5
5841 ac_status=$?
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; } &&
5844 { ac_try='test -s conftest.$ac_objext'
5845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846 (eval $ac_try) 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_cv_c_const=yes
5851else
5852 echo "$as_me: failed program was:" >&5
5853sed 's/^/| /' conftest.$ac_ext >&5
5854
5855ac_cv_c_const=no
5856fi
5857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5858fi
5859echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5860echo "${ECHO_T}$ac_cv_c_const" >&6
5861if test $ac_cv_c_const = no; then
5862
5863cat >>confdefs.h <<\_ACEOF
5864#define const
5865_ACEOF
5866
5867fi
5868
5869
5870echo "$as_me:$LINENO: checking for egrep" >&5
5871echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5872if test "${ac_cv_prog_egrep+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5874else
5875 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5876 then ac_cv_prog_egrep='grep -E'
5877 else ac_cv_prog_egrep='egrep'
5878 fi
5879fi
5880echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5881echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5882 EGREP=$ac_cv_prog_egrep
5883
John Criswell7a73b802003-06-30 21:59:07 +00005884
5885echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5886echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5887if test "${ac_cv_header_stdc+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889else
5890 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005891/* confdefs.h. */
5892_ACEOF
5893cat confdefs.h >>conftest.$ac_ext
5894cat >>conftest.$ac_ext <<_ACEOF
5895/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005896#include <stdlib.h>
5897#include <stdarg.h>
5898#include <string.h>
5899#include <float.h>
5900
John Criswell0c38eaf2003-09-10 15:17:25 +00005901int
5902main ()
5903{
5904
5905 ;
5906 return 0;
5907}
John Criswell7a73b802003-06-30 21:59:07 +00005908_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005909rm -f conftest.$ac_objext
5910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005911 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005912 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005913 grep -v '^ *+' conftest.er1 >conftest.err
5914 rm -f conftest.er1
5915 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005917 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005918 { ac_try='test -z "$ac_c_werror_flag"
5919 || test ! -s conftest.err'
5920 { (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); }; } &&
5925 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 (eval $ac_try) 2>&5
5928 ac_status=$?
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005931 ac_cv_header_stdc=yes
5932else
5933 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005934sed 's/^/| /' conftest.$ac_ext >&5
5935
5936ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005937fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005939
5940if test $ac_cv_header_stdc = yes; then
5941 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5942 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005943/* confdefs.h. */
5944_ACEOF
5945cat confdefs.h >>conftest.$ac_ext
5946cat >>conftest.$ac_ext <<_ACEOF
5947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005948#include <string.h>
5949
5950_ACEOF
5951if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005952 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005953 :
5954else
5955 ac_cv_header_stdc=no
5956fi
5957rm -f conftest*
5958
5959fi
5960
5961if test $ac_cv_header_stdc = yes; then
5962 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5963 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005964/* confdefs.h. */
5965_ACEOF
5966cat confdefs.h >>conftest.$ac_ext
5967cat >>conftest.$ac_ext <<_ACEOF
5968/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005969#include <stdlib.h>
5970
5971_ACEOF
5972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005973 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005974 :
5975else
5976 ac_cv_header_stdc=no
5977fi
5978rm -f conftest*
5979
5980fi
5981
5982if test $ac_cv_header_stdc = yes; then
5983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5984 if test "$cross_compiling" = yes; then
5985 :
5986else
5987 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005988/* confdefs.h. */
5989_ACEOF
5990cat confdefs.h >>conftest.$ac_ext
5991cat >>conftest.$ac_ext <<_ACEOF
5992/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005993#include <ctype.h>
5994#if ((' ' & 0x0FF) == 0x020)
5995# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5996# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5997#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005998# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005999 (('a' <= (c) && (c) <= 'i') \
6000 || ('j' <= (c) && (c) <= 'r') \
6001 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006002# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6003#endif
6004
6005#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6006int
6007main ()
6008{
6009 int i;
6010 for (i = 0; i < 256; i++)
6011 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006012 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006013 exit(2);
6014 exit (0);
6015}
6016_ACEOF
6017rm -f conftest$ac_exeext
6018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>&5
6020 ac_status=$?
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6024 (eval $ac_try) 2>&5
6025 ac_status=$?
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; }; then
6028 :
6029else
6030 echo "$as_me: program exited with status $ac_status" >&5
6031echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006032sed 's/^/| /' conftest.$ac_ext >&5
6033
John Criswell7a73b802003-06-30 21:59:07 +00006034( exit $ac_status )
6035ac_cv_header_stdc=no
6036fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006037rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006038fi
6039fi
6040fi
6041echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6042echo "${ECHO_T}$ac_cv_header_stdc" >&6
6043if test $ac_cv_header_stdc = yes; then
6044
6045cat >>confdefs.h <<\_ACEOF
6046#define STDC_HEADERS 1
6047_ACEOF
6048
6049fi
6050
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006051
6052
6053
6054
6055
6056ac_header_dirent=no
6057for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6058 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6059echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6060echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6061if eval "test \"\${$as_ac_Header+set}\" = set"; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6063else
6064 cat >conftest.$ac_ext <<_ACEOF
6065/* confdefs.h. */
6066_ACEOF
6067cat confdefs.h >>conftest.$ac_ext
6068cat >>conftest.$ac_ext <<_ACEOF
6069/* end confdefs.h. */
6070#include <sys/types.h>
6071#include <$ac_hdr>
6072
6073int
6074main ()
6075{
6076if ((DIR *) 0)
6077return 0;
6078 ;
6079 return 0;
6080}
6081_ACEOF
6082rm -f conftest.$ac_objext
6083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6084 (eval $ac_compile) 2>conftest.er1
6085 ac_status=$?
6086 grep -v '^ *+' conftest.er1 >conftest.err
6087 rm -f conftest.er1
6088 cat conftest.err >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -z "$ac_c_werror_flag"
6092 || test ! -s conftest.err'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 (eval $ac_try) 2>&5
6095 ac_status=$?
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; } &&
6098 { ac_try='test -s conftest.$ac_objext'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6100 (eval $ac_try) 2>&5
6101 ac_status=$?
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then
6104 eval "$as_ac_Header=yes"
6105else
6106 echo "$as_me: failed program was:" >&5
6107sed 's/^/| /' conftest.$ac_ext >&5
6108
6109eval "$as_ac_Header=no"
6110fi
6111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6112fi
6113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6114echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6115if test `eval echo '${'$as_ac_Header'}'` = yes; then
6116 cat >>confdefs.h <<_ACEOF
6117#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6118_ACEOF
6119
6120ac_header_dirent=$ac_hdr; break
6121fi
6122
6123done
6124# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6125if test $ac_header_dirent = dirent.h; then
6126 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6127echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6128if test "${ac_cv_search_opendir+set}" = set; then
6129 echo $ECHO_N "(cached) $ECHO_C" >&6
6130else
6131 ac_func_search_save_LIBS=$LIBS
6132ac_cv_search_opendir=no
6133cat >conftest.$ac_ext <<_ACEOF
6134/* confdefs.h. */
6135_ACEOF
6136cat confdefs.h >>conftest.$ac_ext
6137cat >>conftest.$ac_ext <<_ACEOF
6138/* end confdefs.h. */
6139
6140/* Override any gcc2 internal prototype to avoid an error. */
6141#ifdef __cplusplus
6142extern "C"
6143#endif
6144/* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6146char opendir ();
6147int
6148main ()
6149{
6150opendir ();
6151 ;
6152 return 0;
6153}
6154_ACEOF
6155rm -f conftest.$ac_objext conftest$ac_exeext
6156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157 (eval $ac_link) 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -z "$ac_c_werror_flag"
6165 || test ! -s conftest.err'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 (eval $ac_try) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try='test -s conftest$ac_exeext'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 (eval $ac_try) 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6177 ac_cv_search_opendir="none required"
6178else
6179 echo "$as_me: failed program was:" >&5
6180sed 's/^/| /' conftest.$ac_ext >&5
6181
6182fi
6183rm -f conftest.err conftest.$ac_objext \
6184 conftest$ac_exeext conftest.$ac_ext
6185if test "$ac_cv_search_opendir" = no; then
6186 for ac_lib in dir; do
6187 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6188 cat >conftest.$ac_ext <<_ACEOF
6189/* confdefs.h. */
6190_ACEOF
6191cat confdefs.h >>conftest.$ac_ext
6192cat >>conftest.$ac_ext <<_ACEOF
6193/* end confdefs.h. */
6194
6195/* Override any gcc2 internal prototype to avoid an error. */
6196#ifdef __cplusplus
6197extern "C"
6198#endif
6199/* We use char because int might match the return type of a gcc2
6200 builtin and then its argument prototype would still apply. */
6201char opendir ();
6202int
6203main ()
6204{
6205opendir ();
6206 ;
6207 return 0;
6208}
6209_ACEOF
6210rm -f conftest.$ac_objext conftest$ac_exeext
6211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6212 (eval $ac_link) 2>conftest.er1
6213 ac_status=$?
6214 grep -v '^ *+' conftest.er1 >conftest.err
6215 rm -f conftest.er1
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } &&
6219 { ac_try='test -z "$ac_c_werror_flag"
6220 || test ! -s conftest.err'
6221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 (eval $ac_try) 2>&5
6223 ac_status=$?
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); }; } &&
6226 { ac_try='test -s conftest$ac_exeext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6228 (eval $ac_try) 2>&5
6229 ac_status=$?
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 ac_cv_search_opendir="-l$ac_lib"
6233break
6234else
6235 echo "$as_me: failed program was:" >&5
6236sed 's/^/| /' conftest.$ac_ext >&5
6237
6238fi
6239rm -f conftest.err conftest.$ac_objext \
6240 conftest$ac_exeext conftest.$ac_ext
6241 done
6242fi
6243LIBS=$ac_func_search_save_LIBS
6244fi
6245echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6246echo "${ECHO_T}$ac_cv_search_opendir" >&6
6247if test "$ac_cv_search_opendir" != no; then
6248 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6249
6250fi
6251
6252else
6253 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6254echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6255if test "${ac_cv_search_opendir+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257else
6258 ac_func_search_save_LIBS=$LIBS
6259ac_cv_search_opendir=no
6260cat >conftest.$ac_ext <<_ACEOF
6261/* confdefs.h. */
6262_ACEOF
6263cat confdefs.h >>conftest.$ac_ext
6264cat >>conftest.$ac_ext <<_ACEOF
6265/* end confdefs.h. */
6266
6267/* Override any gcc2 internal prototype to avoid an error. */
6268#ifdef __cplusplus
6269extern "C"
6270#endif
6271/* We use char because int might match the return type of a gcc2
6272 builtin and then its argument prototype would still apply. */
6273char opendir ();
6274int
6275main ()
6276{
6277opendir ();
6278 ;
6279 return 0;
6280}
6281_ACEOF
6282rm -f conftest.$ac_objext conftest$ac_exeext
6283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6284 (eval $ac_link) 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } &&
6291 { ac_try='test -z "$ac_c_werror_flag"
6292 || test ! -s conftest.err'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6294 (eval $ac_try) 2>&5
6295 ac_status=$?
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest$ac_exeext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300 (eval $ac_try) 2>&5
6301 ac_status=$?
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 ac_cv_search_opendir="none required"
6305else
6306 echo "$as_me: failed program was:" >&5
6307sed 's/^/| /' conftest.$ac_ext >&5
6308
6309fi
6310rm -f conftest.err conftest.$ac_objext \
6311 conftest$ac_exeext conftest.$ac_ext
6312if test "$ac_cv_search_opendir" = no; then
6313 for ac_lib in x; do
6314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6315 cat >conftest.$ac_ext <<_ACEOF
6316/* confdefs.h. */
6317_ACEOF
6318cat confdefs.h >>conftest.$ac_ext
6319cat >>conftest.$ac_ext <<_ACEOF
6320/* end confdefs.h. */
6321
6322/* Override any gcc2 internal prototype to avoid an error. */
6323#ifdef __cplusplus
6324extern "C"
6325#endif
6326/* We use char because int might match the return type of a gcc2
6327 builtin and then its argument prototype would still apply. */
6328char opendir ();
6329int
6330main ()
6331{
6332opendir ();
6333 ;
6334 return 0;
6335}
6336_ACEOF
6337rm -f conftest.$ac_objext conftest$ac_exeext
6338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6339 (eval $ac_link) 2>conftest.er1
6340 ac_status=$?
6341 grep -v '^ *+' conftest.er1 >conftest.err
6342 rm -f conftest.er1
6343 cat conftest.err >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
6346 { ac_try='test -z "$ac_c_werror_flag"
6347 || test ! -s conftest.err'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; } &&
6353 { ac_try='test -s conftest$ac_exeext'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 (eval $ac_try) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
6359 ac_cv_search_opendir="-l$ac_lib"
6360break
6361else
6362 echo "$as_me: failed program was:" >&5
6363sed 's/^/| /' conftest.$ac_ext >&5
6364
6365fi
6366rm -f conftest.err conftest.$ac_objext \
6367 conftest$ac_exeext conftest.$ac_ext
6368 done
6369fi
6370LIBS=$ac_func_search_save_LIBS
6371fi
6372echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6373echo "${ECHO_T}$ac_cv_search_opendir" >&6
6374if test "$ac_cv_search_opendir" != no; then
6375 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6376
6377fi
6378
6379fi
6380
John Criswell7a73b802003-06-30 21:59:07 +00006381# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006392 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006393do
6394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6395echo "$as_me:$LINENO: checking for $ac_header" >&5
6396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6397if eval "test \"\${$as_ac_Header+set}\" = set"; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399else
6400 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006401/* confdefs.h. */
6402_ACEOF
6403cat confdefs.h >>conftest.$ac_ext
6404cat >>conftest.$ac_ext <<_ACEOF
6405/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006406$ac_includes_default
6407
6408#include <$ac_header>
6409_ACEOF
6410rm -f conftest.$ac_objext
6411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006412 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006413 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006414 grep -v '^ *+' conftest.er1 >conftest.err
6415 rm -f conftest.er1
6416 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006419 { ac_try='test -z "$ac_c_werror_flag"
6420 || test ! -s conftest.err'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; } &&
6426 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; }; then
6432 eval "$as_ac_Header=yes"
6433else
6434 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006435sed 's/^/| /' conftest.$ac_ext >&5
6436
John Criswell7a73b802003-06-30 21:59:07 +00006437eval "$as_ac_Header=no"
6438fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006440fi
6441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6443if test `eval echo '${'$as_ac_Header'}'` = yes; then
6444 cat >>confdefs.h <<_ACEOF
6445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6446_ACEOF
6447
6448fi
6449
6450done
6451
6452
6453
6454for ac_header in dlfcn.h
6455do
6456as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006457if eval "test \"\${$as_ac_Header+set}\" = set"; then
6458 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6460if eval "test \"\${$as_ac_Header+set}\" = set"; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006462fi
6463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006465else
Brian Gaeke0a621332004-09-08 20:38:05 +00006466 # Is the header compilable?
6467echo "$as_me:$LINENO: checking $ac_header usability" >&5
6468echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6469cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006470/* confdefs.h. */
6471_ACEOF
6472cat confdefs.h >>conftest.$ac_ext
6473cat >>conftest.$ac_ext <<_ACEOF
6474/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006475$ac_includes_default
6476#include <$ac_header>
6477_ACEOF
6478rm -f conftest.$ac_objext
6479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006480 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006481 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006482 grep -v '^ *+' conftest.er1 >conftest.err
6483 rm -f conftest.er1
6484 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006487 { ac_try='test -z "$ac_c_werror_flag"
6488 || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6490 (eval $ac_try) 2>&5
6491 ac_status=$?
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006500 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006501else
6502 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006503sed 's/^/| /' conftest.$ac_ext >&5
6504
Brian Gaeke0a621332004-09-08 20:38:05 +00006505ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006506fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006508echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6509echo "${ECHO_T}$ac_header_compiler" >&6
6510
6511# Is the header present?
6512echo "$as_me:$LINENO: checking $ac_header presence" >&5
6513echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6514cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006515/* confdefs.h. */
6516_ACEOF
6517cat confdefs.h >>conftest.$ac_ext
6518cat >>conftest.$ac_ext <<_ACEOF
6519/* end confdefs.h. */
6520#include <$ac_header>
6521_ACEOF
6522if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } >/dev/null; then
6530 if test -s conftest.err; then
6531 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006533 else
6534 ac_cpp_err=
6535 fi
6536else
6537 ac_cpp_err=yes
6538fi
6539if test -z "$ac_cpp_err"; then
6540 ac_header_preproc=yes
6541else
6542 echo "$as_me: failed program was:" >&5
6543sed 's/^/| /' conftest.$ac_ext >&5
6544
6545 ac_header_preproc=no
6546fi
6547rm -f conftest.err conftest.$ac_ext
6548echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6549echo "${ECHO_T}$ac_header_preproc" >&6
6550
6551# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006552case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6553 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6555echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6557echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6558 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006559 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006560 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6562echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6564echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6566echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6568echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6572echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006573 (
6574 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006575## ----------------------------------- ##
6576## Report this to llvmbugs@cs.uiuc.edu ##
6577## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006578_ASBOX
6579 ) |
6580 sed "s/^/$as_me: WARNING: /" >&2
6581 ;;
6582esac
6583echo "$as_me:$LINENO: checking for $ac_header" >&5
6584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6585if eval "test \"\${$as_ac_Header+set}\" = set"; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006588 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006589fi
6590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006592
6593fi
John Criswell7a73b802003-06-30 21:59:07 +00006594if test `eval echo '${'$as_ac_Header'}'` = yes; then
6595 cat >>confdefs.h <<_ACEOF
6596#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597_ACEOF
6598
6599fi
6600
6601done
6602
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006603# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6604if test "${enable_ltdl_install+set}" = set; then
6605 enableval="$enable_ltdl_install"
6606
6607fi;
6608
6609
6610
6611if test x"${enable_ltdl_install-no}" != xno; then
6612 INSTALL_LTDL_TRUE=
6613 INSTALL_LTDL_FALSE='#'
6614else
6615 INSTALL_LTDL_TRUE='#'
6616 INSTALL_LTDL_FALSE=
6617fi
6618
6619
6620
6621if test x"${enable_ltdl_convenience-no}" != xno; then
6622 CONVENIENCE_LTDL_TRUE=
6623 CONVENIENCE_LTDL_FALSE='#'
6624else
6625 CONVENIENCE_LTDL_TRUE='#'
6626 CONVENIENCE_LTDL_FALSE=
6627fi
6628
6629
6630echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6631echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6632library_names_spec=
6633libname_spec='lib$name'
6634soname_spec=
6635shrext_cmds=".so"
6636postinstall_cmds=
6637postuninstall_cmds=
6638finish_cmds=
6639finish_eval=
6640shlibpath_var=
6641shlibpath_overrides_runpath=unknown
6642version_type=none
6643dynamic_linker="$host_os ld.so"
6644sys_lib_dlsearch_path_spec="/lib /usr/lib"
6645if test "$GCC" = yes; then
6646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6647 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6648 # if the path contains ";" then we assume it to be the separator
6649 # otherwise default to the standard path separator (i.e. ":") - it is
6650 # assumed that no part of a normal pathname contains ";" but that should
6651 # okay in the real world where ";" in dirpaths is itself problematic.
6652 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6653 else
6654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6655 fi
6656else
6657 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6658fi
6659need_lib_prefix=unknown
6660hardcode_into_libs=no
6661
6662# when you set need_version to no, make sure it does not cause -set_version
6663# flags to be left without arguments
6664need_version=unknown
6665
6666case $host_os in
6667aix3*)
6668 version_type=linux
6669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6670 shlibpath_var=LIBPATH
6671
6672 # AIX 3 has no versioning support, so we append a major version to the name.
6673 soname_spec='${libname}${release}${shared_ext}$major'
6674 ;;
6675
6676aix4* | aix5*)
6677 version_type=linux
6678 need_lib_prefix=no
6679 need_version=no
6680 hardcode_into_libs=yes
6681 if test "$host_cpu" = ia64; then
6682 # AIX 5 supports IA64
6683 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6684 shlibpath_var=LD_LIBRARY_PATH
6685 else
6686 # With GCC up to 2.95.x, collect2 would create an import file
6687 # for dependence libraries. The import file would start with
6688 # the line `#! .'. This would cause the generated library to
6689 # depend on `.', always an invalid library. This was fixed in
6690 # development snapshots of GCC prior to 3.0.
6691 case $host_os in
6692 aix4 | aix4.[01] | aix4.[01].*)
6693 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6694 echo ' yes '
6695 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6696 :
6697 else
6698 can_build_shared=no
6699 fi
6700 ;;
6701 esac
6702 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6703 # soname into executable. Probably we can add versioning support to
6704 # collect2, so additional links can be useful in future.
6705 if test "$aix_use_runtimelinking" = yes; then
6706 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6707 # instead of lib<name>.a to let people know that these are not
6708 # typical AIX shared libraries.
6709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6710 else
6711 # We preserve .a as extension for shared libraries through AIX4.2
6712 # and later when we are not doing run time linking.
6713 library_names_spec='${libname}${release}.a $libname.a'
6714 soname_spec='${libname}${release}${shared_ext}$major'
6715 fi
6716 shlibpath_var=LIBPATH
6717 fi
6718 ;;
6719
6720amigaos*)
6721 library_names_spec='$libname.ixlibrary $libname.a'
6722 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6723 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'
6724 ;;
6725
6726beos*)
6727 library_names_spec='${libname}${shared_ext}'
6728 dynamic_linker="$host_os ld.so"
6729 shlibpath_var=LIBRARY_PATH
6730 ;;
6731
6732bsdi[45]*)
6733 version_type=linux
6734 need_version=no
6735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6736 soname_spec='${libname}${release}${shared_ext}$major'
6737 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6738 shlibpath_var=LD_LIBRARY_PATH
6739 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6740 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6741 # the default ld.so.conf also contains /usr/contrib/lib and
6742 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6743 # libtool to hard-code these into programs
6744 ;;
6745
6746cygwin* | mingw* | pw32*)
6747 version_type=windows
6748 shrext_cmds=".dll"
6749 need_version=no
6750 need_lib_prefix=no
6751
6752 case $GCC,$host_os in
6753 yes,cygwin* | yes,mingw* | yes,pw32*)
6754 library_names_spec='$libname.dll.a'
6755 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6756 postinstall_cmds='base_file=`basename \${file}`~
6757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6758 dldir=$destdir/`dirname \$dlpath`~
6759 test -d \$dldir || mkdir -p \$dldir~
6760 $install_prog $dir/$dlname \$dldir/$dlname'
6761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6762 dlpath=$dir/\$dldll~
6763 $rm \$dlpath'
6764 shlibpath_overrides_runpath=yes
6765
6766 case $host_os in
6767 cygwin*)
6768 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6769 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6770 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6771 ;;
6772 mingw*)
6773 # MinGW DLLs use traditional 'lib' prefix
6774 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6775 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6776 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6777 # It is most probably a Windows format PATH printed by
6778 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6779 # path with ; separators, and with drive letters. We can handle the
6780 # drive letters (cygwin fileutils understands them), so leave them,
6781 # especially as we might pass files found there to a mingw objdump,
6782 # which wouldn't understand a cygwinified path. Ahh.
6783 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6784 else
6785 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6786 fi
6787 ;;
6788 pw32*)
6789 # pw32 DLLs use 'pw' prefix rather than 'lib'
6790 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6791 ;;
6792 esac
6793 ;;
6794
6795 *)
6796 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6797 ;;
6798 esac
6799 dynamic_linker='Win32 ld.exe'
6800 # FIXME: first we should search . and the directory the executable is in
6801 shlibpath_var=PATH
6802 ;;
6803
6804darwin* | rhapsody*)
6805 dynamic_linker="$host_os dyld"
6806 version_type=darwin
6807 need_lib_prefix=no
6808 need_version=no
6809 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6810 soname_spec='${libname}${release}${major}$shared_ext'
6811 shlibpath_overrides_runpath=yes
6812 shlibpath_var=DYLD_LIBRARY_PATH
6813 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6814 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6815 if test "$GCC" = yes; then
6816 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"`
6817 else
6818 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6819 fi
6820 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6821 ;;
6822
6823dgux*)
6824 version_type=linux
6825 need_lib_prefix=no
6826 need_version=no
6827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6828 soname_spec='${libname}${release}${shared_ext}$major'
6829 shlibpath_var=LD_LIBRARY_PATH
6830 ;;
6831
6832freebsd1*)
6833 dynamic_linker=no
6834 ;;
6835
6836kfreebsd*-gnu)
6837 version_type=linux
6838 need_lib_prefix=no
6839 need_version=no
6840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6841 soname_spec='${libname}${release}${shared_ext}$major'
6842 shlibpath_var=LD_LIBRARY_PATH
6843 shlibpath_overrides_runpath=no
6844 hardcode_into_libs=yes
6845 dynamic_linker='GNU ld.so'
6846 ;;
6847
6848freebsd*)
6849 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6850 version_type=freebsd-$objformat
6851 case $version_type in
6852 freebsd-elf*)
6853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6854 need_version=no
6855 need_lib_prefix=no
6856 ;;
6857 freebsd-*)
6858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6859 need_version=yes
6860 ;;
6861 esac
6862 shlibpath_var=LD_LIBRARY_PATH
6863 case $host_os in
6864 freebsd2*)
6865 shlibpath_overrides_runpath=yes
6866 ;;
6867 freebsd3.01* | freebsdelf3.01*)
6868 shlibpath_overrides_runpath=yes
6869 hardcode_into_libs=yes
6870 ;;
6871 *) # from 3.2 on
6872 shlibpath_overrides_runpath=no
6873 hardcode_into_libs=yes
6874 ;;
6875 esac
6876 ;;
6877
6878gnu*)
6879 version_type=linux
6880 need_lib_prefix=no
6881 need_version=no
6882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6883 soname_spec='${libname}${release}${shared_ext}$major'
6884 shlibpath_var=LD_LIBRARY_PATH
6885 hardcode_into_libs=yes
6886 ;;
6887
6888hpux9* | hpux10* | hpux11*)
6889 # Give a soname corresponding to the major version so that dld.sl refuses to
6890 # link against other versions.
6891 version_type=sunos
6892 need_lib_prefix=no
6893 need_version=no
6894 case "$host_cpu" in
6895 ia64*)
6896 shrext_cmds='.so'
6897 hardcode_into_libs=yes
6898 dynamic_linker="$host_os dld.so"
6899 shlibpath_var=LD_LIBRARY_PATH
6900 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6902 soname_spec='${libname}${release}${shared_ext}$major'
6903 if test "X$HPUX_IA64_MODE" = X32; then
6904 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6905 else
6906 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6907 fi
6908 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6909 ;;
6910 hppa*64*)
6911 shrext_cmds='.sl'
6912 hardcode_into_libs=yes
6913 dynamic_linker="$host_os dld.sl"
6914 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6917 soname_spec='${libname}${release}${shared_ext}$major'
6918 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6919 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6920 ;;
6921 *)
6922 shrext_cmds='.sl'
6923 dynamic_linker="$host_os dld.sl"
6924 shlibpath_var=SHLIB_PATH
6925 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6927 soname_spec='${libname}${release}${shared_ext}$major'
6928 ;;
6929 esac
6930 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6931 postinstall_cmds='chmod 555 $lib'
6932 ;;
6933
6934irix5* | irix6* | nonstopux*)
6935 case $host_os in
6936 nonstopux*) version_type=nonstopux ;;
6937 *)
6938 if test "$lt_cv_prog_gnu_ld" = yes; then
6939 version_type=linux
6940 else
6941 version_type=irix
6942 fi ;;
6943 esac
6944 need_lib_prefix=no
6945 need_version=no
6946 soname_spec='${libname}${release}${shared_ext}$major'
6947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6948 case $host_os in
6949 irix5* | nonstopux*)
6950 libsuff= shlibsuff=
6951 ;;
6952 *)
6953 case $LD in # libtool.m4 will add one of these switches to LD
6954 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6955 libsuff= shlibsuff= libmagic=32-bit;;
6956 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6957 libsuff=32 shlibsuff=N32 libmagic=N32;;
6958 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6959 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6960 *) libsuff= shlibsuff= libmagic=never-match;;
6961 esac
6962 ;;
6963 esac
6964 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6965 shlibpath_overrides_runpath=no
6966 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6967 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6968 hardcode_into_libs=yes
6969 ;;
6970
6971# No shared lib support for Linux oldld, aout, or coff.
6972linux*oldld* | linux*aout* | linux*coff*)
6973 dynamic_linker=no
6974 ;;
6975
6976# This must be Linux ELF.
6977linux*)
6978 version_type=linux
6979 need_lib_prefix=no
6980 need_version=no
6981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6982 soname_spec='${libname}${release}${shared_ext}$major'
6983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6984 shlibpath_var=LD_LIBRARY_PATH
6985 shlibpath_overrides_runpath=no
6986 # This implies no fast_install, which is unacceptable.
6987 # Some rework will be needed to allow for fast_install
6988 # before this can be enabled.
6989 hardcode_into_libs=yes
6990
6991 # Append ld.so.conf contents to the search path
6992 if test -f /etc/ld.so.conf; then
6993 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6994 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6995 fi
6996
6997 # We used to test for /lib/ld.so.1 and disable shared libraries on
6998 # powerpc, because MkLinux only supported shared libraries with the
6999 # GNU dynamic linker. Since this was broken with cross compilers,
7000 # most powerpc-linux boxes support dynamic linking these days and
7001 # people can always --disable-shared, the test was removed, and we
7002 # assume the GNU/Linux dynamic linker is in use.
7003 dynamic_linker='GNU/Linux ld.so'
7004 ;;
7005
7006knetbsd*-gnu)
7007 version_type=linux
7008 need_lib_prefix=no
7009 need_version=no
7010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7011 soname_spec='${libname}${release}${shared_ext}$major'
7012 shlibpath_var=LD_LIBRARY_PATH
7013 shlibpath_overrides_runpath=no
7014 hardcode_into_libs=yes
7015 dynamic_linker='GNU ld.so'
7016 ;;
7017
7018netbsd*)
7019 version_type=sunos
7020 need_lib_prefix=no
7021 need_version=no
7022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7025 dynamic_linker='NetBSD (a.out) ld.so'
7026 else
7027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7028 soname_spec='${libname}${release}${shared_ext}$major'
7029 dynamic_linker='NetBSD ld.elf_so'
7030 fi
7031 shlibpath_var=LD_LIBRARY_PATH
7032 shlibpath_overrides_runpath=yes
7033 hardcode_into_libs=yes
7034 ;;
7035
7036newsos6)
7037 version_type=linux
7038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7039 shlibpath_var=LD_LIBRARY_PATH
7040 shlibpath_overrides_runpath=yes
7041 ;;
7042
7043nto-qnx*)
7044 version_type=linux
7045 need_lib_prefix=no
7046 need_version=no
7047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7048 soname_spec='${libname}${release}${shared_ext}$major'
7049 shlibpath_var=LD_LIBRARY_PATH
7050 shlibpath_overrides_runpath=yes
7051 ;;
7052
7053openbsd*)
7054 version_type=sunos
7055 need_lib_prefix=no
7056 need_version=no
7057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7058 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7059 shlibpath_var=LD_LIBRARY_PATH
7060 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7061 case $host_os in
7062 openbsd2.[89] | openbsd2.[89].*)
7063 shlibpath_overrides_runpath=no
7064 ;;
7065 *)
7066 shlibpath_overrides_runpath=yes
7067 ;;
7068 esac
7069 else
7070 shlibpath_overrides_runpath=yes
7071 fi
7072 ;;
7073
7074os2*)
7075 libname_spec='$name'
7076 shrext_cmds=".dll"
7077 need_lib_prefix=no
7078 library_names_spec='$libname${shared_ext} $libname.a'
7079 dynamic_linker='OS/2 ld.exe'
7080 shlibpath_var=LIBPATH
7081 ;;
7082
7083osf3* | osf4* | osf5*)
7084 version_type=osf
7085 need_lib_prefix=no
7086 need_version=no
7087 soname_spec='${libname}${release}${shared_ext}$major'
7088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7089 shlibpath_var=LD_LIBRARY_PATH
7090 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7091 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7092 ;;
7093
7094sco3.2v5*)
7095 version_type=osf
7096 soname_spec='${libname}${release}${shared_ext}$major'
7097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7098 shlibpath_var=LD_LIBRARY_PATH
7099 ;;
7100
7101solaris*)
7102 version_type=linux
7103 need_lib_prefix=no
7104 need_version=no
7105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7106 soname_spec='${libname}${release}${shared_ext}$major'
7107 shlibpath_var=LD_LIBRARY_PATH
7108 shlibpath_overrides_runpath=yes
7109 hardcode_into_libs=yes
7110 # ldd complains unless libraries are executable
7111 postinstall_cmds='chmod +x $lib'
7112 ;;
7113
7114sunos4*)
7115 version_type=sunos
7116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7117 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7118 shlibpath_var=LD_LIBRARY_PATH
7119 shlibpath_overrides_runpath=yes
7120 if test "$with_gnu_ld" = yes; then
7121 need_lib_prefix=no
7122 fi
7123 need_version=yes
7124 ;;
7125
7126sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7127 version_type=linux
7128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7129 soname_spec='${libname}${release}${shared_ext}$major'
7130 shlibpath_var=LD_LIBRARY_PATH
7131 case $host_vendor in
7132 sni)
7133 shlibpath_overrides_runpath=no
7134 need_lib_prefix=no
7135 export_dynamic_flag_spec='${wl}-Blargedynsym'
7136 runpath_var=LD_RUN_PATH
7137 ;;
7138 siemens)
7139 need_lib_prefix=no
7140 ;;
7141 motorola)
7142 need_lib_prefix=no
7143 need_version=no
7144 shlibpath_overrides_runpath=no
7145 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7146 ;;
7147 esac
7148 ;;
7149
7150sysv4*MP*)
7151 if test -d /usr/nec ;then
7152 version_type=linux
7153 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7154 soname_spec='$libname${shared_ext}.$major'
7155 shlibpath_var=LD_LIBRARY_PATH
7156 fi
7157 ;;
7158
7159uts4*)
7160 version_type=linux
7161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7162 soname_spec='${libname}${release}${shared_ext}$major'
7163 shlibpath_var=LD_LIBRARY_PATH
7164 ;;
7165
7166*)
7167 dynamic_linker=no
7168 ;;
7169esac
7170echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7171echo "${ECHO_T}$dynamic_linker" >&6
7172test "$dynamic_linker" = no && can_build_shared=no
7173
7174
7175echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7176echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7177if test "${libltdl_cv_shlibext+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179else
7180
7181module=yes
7182eval libltdl_cv_shlibext=$shrext_cmds
7183
7184fi
7185echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7186echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7187if test -n "$libltdl_cv_shlibext"; then
7188
7189cat >>confdefs.h <<_ACEOF
7190#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7191_ACEOF
7192
7193fi
7194
7195
7196echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7197echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7198if test "${libltdl_cv_shlibpath_var+set}" = set; then
7199 echo $ECHO_N "(cached) $ECHO_C" >&6
7200else
7201 libltdl_cv_shlibpath_var="$shlibpath_var"
7202fi
7203echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7204echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7205if test -n "$libltdl_cv_shlibpath_var"; then
7206
7207cat >>confdefs.h <<_ACEOF
7208#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7209_ACEOF
7210
7211fi
7212
7213
7214echo "$as_me:$LINENO: checking for the default library search path" >&5
7215echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7216if test "${libltdl_cv_sys_search_path+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218else
7219 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7220fi
7221echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7222echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7223if test -n "$libltdl_cv_sys_search_path"; then
7224 sys_search_path=
7225 for dir in $libltdl_cv_sys_search_path; do
7226 if test -z "$sys_search_path"; then
7227 sys_search_path="$dir"
7228 else
7229 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7230 fi
7231 done
7232
7233cat >>confdefs.h <<_ACEOF
7234#define LTDL_SYSSEARCHPATH "$sys_search_path"
7235_ACEOF
7236
7237fi
7238
7239echo "$as_me:$LINENO: checking for objdir" >&5
7240echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7241if test "${libltdl_cv_objdir+set}" = set; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7243else
7244 libltdl_cv_objdir="$objdir"
7245 if test -n "$objdir"; then
7246 :
7247 else
7248 rm -f .libs 2>/dev/null
7249 mkdir .libs 2>/dev/null
7250 if test -d .libs; then
7251 libltdl_cv_objdir=.libs
7252 else
7253 # MS-DOS does not allow filenames that begin with a dot.
7254 libltdl_cv_objdir=_libs
7255 fi
7256 rmdir .libs 2>/dev/null
7257 fi
7258
7259fi
7260echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7261echo "${ECHO_T}$libltdl_cv_objdir" >&6
7262
7263cat >>confdefs.h <<_ACEOF
7264#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7265_ACEOF
7266
7267
7268echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7269echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7270if test "${lt_cv_path_NM+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273 if test -n "$NM"; then
7274 # Let the user override the test.
7275 lt_cv_path_NM="$NM"
7276else
7277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7278 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7279 IFS="$lt_save_ifs"
7280 test -z "$ac_dir" && ac_dir=.
7281 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7282 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7283 # Check to see if the nm accepts a BSD-compat flag.
7284 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7285 # nm: unknown option "B" ignored
7286 # Tru64's nm complains that /dev/null is an invalid object file
7287 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7288 */dev/null* | *'Invalid file or object type'*)
7289 lt_cv_path_NM="$tmp_nm -B"
7290 break
7291 ;;
7292 *)
7293 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7294 */dev/null*)
7295 lt_cv_path_NM="$tmp_nm -p"
7296 break
7297 ;;
7298 *)
7299 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7300 continue # so that we can try to find one that supports BSD flags
7301 ;;
7302 esac
7303 esac
7304 fi
7305 done
7306 IFS="$lt_save_ifs"
7307 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7308fi
7309fi
7310echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7311echo "${ECHO_T}$lt_cv_path_NM" >&6
7312NM="$lt_cv_path_NM"
7313
7314
7315
7316
7317
7318# Check for command to grab the raw symbol name followed by C symbol from nm.
7319echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7320echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7321if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7323else
7324
7325# These are sane defaults that work on at least a few old systems.
7326# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7327
7328# Character class describing NM global symbol codes.
7329symcode='[BCDEGRST]'
7330
7331# Regexp to match symbols that can be accessed directly from C.
7332sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7333
7334# Transform the above into a raw symbol and a C symbol.
7335symxfrm='\1 \2\3 \3'
7336
7337# Transform an extracted symbol line into a proper C declaration
7338lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7339
7340# Transform an extracted symbol line into symbol name and symbol address
7341lt_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'"
7342
7343# Define system-specific variables.
7344case $host_os in
7345aix*)
7346 symcode='[BCDT]'
7347 ;;
7348cygwin* | mingw* | pw32*)
7349 symcode='[ABCDGISTW]'
7350 ;;
7351hpux*) # Its linker distinguishes data from code symbols
7352 if test "$host_cpu" = ia64; then
7353 symcode='[ABCDEGRST]'
7354 fi
7355 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7356 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'"
7357 ;;
7358linux*)
7359 if test "$host_cpu" = ia64; then
7360 symcode='[ABCDGIRSTW]'
7361 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7362 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'"
7363 fi
7364 ;;
7365irix* | nonstopux*)
7366 symcode='[BCDEGRST]'
7367 ;;
7368osf*)
7369 symcode='[BCDEGQRST]'
7370 ;;
7371solaris* | sysv5*)
7372 symcode='[BDRT]'
7373 ;;
7374sysv4)
7375 symcode='[DFNSTU]'
7376 ;;
7377esac
7378
7379# Handle CRLF in mingw tool chain
7380opt_cr=
7381case $build_os in
7382mingw*)
7383 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7384 ;;
7385esac
7386
7387# If we're using GNU nm, then use its standard symbol codes.
7388case `$NM -V 2>&1` in
7389*GNU* | *'with BFD'*)
7390 symcode='[ABCDGIRSTW]' ;;
7391esac
7392
7393# Try without a prefix undercore, then with it.
7394for ac_symprfx in "" "_"; do
7395
7396 # Write the raw and C identifiers.
7397 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7398
7399 # Check to see that the pipe works correctly.
7400 pipe_works=no
7401
7402 rm -f conftest*
7403 cat > conftest.$ac_ext <<EOF
7404#ifdef __cplusplus
7405extern "C" {
7406#endif
7407char nm_test_var;
7408void nm_test_func(){}
7409#ifdef __cplusplus
7410}
7411#endif
7412int main(){nm_test_var='a';nm_test_func();return(0);}
7413EOF
7414
7415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7416 (eval $ac_compile) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; then
7420 # Now try to grab the symbols.
7421 nlist=conftest.nm
7422 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7423 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7424 ac_status=$?
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && test -s "$nlist"; then
7427 # Try sorting and uniquifying the output.
7428 if sort "$nlist" | uniq > "$nlist"T; then
7429 mv -f "$nlist"T "$nlist"
7430 else
7431 rm -f "$nlist"T
7432 fi
7433
7434 # Make sure that we snagged all the symbols we need.
7435 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7436 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7437 cat <<EOF > conftest.$ac_ext
7438#ifdef __cplusplus
7439extern "C" {
7440#endif
7441
7442EOF
7443 # Now generate the symbol file.
7444 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7445
7446 cat <<EOF >> conftest.$ac_ext
7447#if defined (__STDC__) && __STDC__
7448# define lt_ptr_t void *
7449#else
7450# define lt_ptr_t char *
7451# define const
7452#endif
7453
7454/* The mapping between symbol names and symbols. */
7455const struct {
7456 const char *name;
7457 lt_ptr_t address;
7458}
7459lt_preloaded_symbols[] =
7460{
7461EOF
7462 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7463 cat <<\EOF >> conftest.$ac_ext
7464 {0, (lt_ptr_t) 0}
7465};
7466
7467#ifdef __cplusplus
7468}
7469#endif
7470EOF
7471 # Now try linking the two files.
7472 mv conftest.$ac_objext conftstm.$ac_objext
7473 lt_save_LIBS="$LIBS"
7474 lt_save_CFLAGS="$CFLAGS"
7475 LIBS="conftstm.$ac_objext"
7476 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7478 (eval $ac_link) 2>&5
7479 ac_status=$?
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7482 pipe_works=yes
7483 fi
7484 LIBS="$lt_save_LIBS"
7485 CFLAGS="$lt_save_CFLAGS"
7486 else
7487 echo "cannot find nm_test_func in $nlist" >&5
7488 fi
7489 else
7490 echo "cannot find nm_test_var in $nlist" >&5
7491 fi
7492 else
7493 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7494 fi
7495 else
7496 echo "$progname: failed program was:" >&5
7497 cat conftest.$ac_ext >&5
7498 fi
7499 rm -f conftest* conftst*
7500
7501 # Do not use the global_symbol_pipe unless it works.
7502 if test "$pipe_works" = yes; then
7503 break
7504 else
7505 lt_cv_sys_global_symbol_pipe=
7506 fi
7507done
7508
7509fi
7510
7511if test -z "$lt_cv_sys_global_symbol_pipe"; then
7512 lt_cv_sys_global_symbol_to_cdecl=
7513fi
7514if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7515 echo "$as_me:$LINENO: result: failed" >&5
7516echo "${ECHO_T}failed" >&6
7517else
7518 echo "$as_me:$LINENO: result: ok" >&5
7519echo "${ECHO_T}ok" >&6
7520fi
7521
7522
7523echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7524echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7525if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527else
7528 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7529 libltdl_cv_preloaded_symbols=yes
7530 else
7531 libltdl_cv_preloaded_symbols=no
7532 fi
7533
7534fi
7535echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7536echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7537if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7538
7539cat >>confdefs.h <<\_ACEOF
7540#define HAVE_PRELOADED_SYMBOLS 1
7541_ACEOF
7542
7543fi
7544
7545LIBADD_DL=
7546
7547ac_ext=c
7548ac_cpp='$CPP $CPPFLAGS'
7549ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551ac_compiler_gnu=$ac_cv_c_compiler_gnu
7552
7553
7554echo "$as_me:$LINENO: checking for shl_load" >&5
7555echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7556if test "${ac_cv_func_shl_load+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7558else
7559 cat >conftest.$ac_ext <<_ACEOF
7560/* confdefs.h. */
7561_ACEOF
7562cat confdefs.h >>conftest.$ac_ext
7563cat >>conftest.$ac_ext <<_ACEOF
7564/* end confdefs.h. */
7565/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7567#define shl_load innocuous_shl_load
7568
7569/* System header to define __stub macros and hopefully few prototypes,
7570 which can conflict with char shl_load (); below.
7571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7572 <limits.h> exists even on freestanding compilers. */
7573
7574#ifdef __STDC__
7575# include <limits.h>
7576#else
7577# include <assert.h>
7578#endif
7579
7580#undef shl_load
7581
7582/* Override any gcc2 internal prototype to avoid an error. */
7583#ifdef __cplusplus
7584extern "C"
7585{
7586#endif
7587/* We use char because int might match the return type of a gcc2
7588 builtin and then its argument prototype would still apply. */
7589char shl_load ();
7590/* The GNU C library defines this for functions which it implements
7591 to always fail with ENOSYS. Some functions are actually named
7592 something starting with __ and the normal name is an alias. */
7593#if defined (__stub_shl_load) || defined (__stub___shl_load)
7594choke me
7595#else
7596char (*f) () = shl_load;
7597#endif
7598#ifdef __cplusplus
7599}
7600#endif
7601
7602int
7603main ()
7604{
7605return f != shl_load;
7606 ;
7607 return 0;
7608}
7609_ACEOF
7610rm -f conftest.$ac_objext conftest$ac_exeext
7611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7612 (eval $ac_link) 2>conftest.er1
7613 ac_status=$?
7614 grep -v '^ *+' conftest.er1 >conftest.err
7615 rm -f conftest.er1
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -z "$ac_c_werror_flag"
7620 || test ! -s conftest.err'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622 (eval $ac_try) 2>&5
7623 ac_status=$?
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; } &&
7626 { ac_try='test -s conftest$ac_exeext'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7628 (eval $ac_try) 2>&5
7629 ac_status=$?
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; }; then
7632 ac_cv_func_shl_load=yes
7633else
7634 echo "$as_me: failed program was:" >&5
7635sed 's/^/| /' conftest.$ac_ext >&5
7636
7637ac_cv_func_shl_load=no
7638fi
7639rm -f conftest.err conftest.$ac_objext \
7640 conftest$ac_exeext conftest.$ac_ext
7641fi
7642echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7643echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7644if test $ac_cv_func_shl_load = yes; then
7645
7646cat >>confdefs.h <<\_ACEOF
7647#define HAVE_SHL_LOAD 1
7648_ACEOF
7649
7650else
7651 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7652echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7653if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655else
7656 ac_check_lib_save_LIBS=$LIBS
7657LIBS="-ldld $LIBS"
7658cat >conftest.$ac_ext <<_ACEOF
7659/* confdefs.h. */
7660_ACEOF
7661cat confdefs.h >>conftest.$ac_ext
7662cat >>conftest.$ac_ext <<_ACEOF
7663/* end confdefs.h. */
7664
7665/* Override any gcc2 internal prototype to avoid an error. */
7666#ifdef __cplusplus
7667extern "C"
7668#endif
7669/* We use char because int might match the return type of a gcc2
7670 builtin and then its argument prototype would still apply. */
7671char shl_load ();
7672int
7673main ()
7674{
7675shl_load ();
7676 ;
7677 return 0;
7678}
7679_ACEOF
7680rm -f conftest.$ac_objext conftest$ac_exeext
7681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7682 (eval $ac_link) 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try='test -z "$ac_c_werror_flag"
7690 || test ! -s conftest.err'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 (eval $ac_try) 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; } &&
7696 { ac_try='test -s conftest$ac_exeext'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7698 (eval $ac_try) 2>&5
7699 ac_status=$?
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_lib_dld_shl_load=yes
7703else
7704 echo "$as_me: failed program was:" >&5
7705sed 's/^/| /' conftest.$ac_ext >&5
7706
7707ac_cv_lib_dld_shl_load=no
7708fi
7709rm -f conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711LIBS=$ac_check_lib_save_LIBS
7712fi
7713echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7714echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7715if test $ac_cv_lib_dld_shl_load = yes; then
7716
7717cat >>confdefs.h <<\_ACEOF
7718#define HAVE_SHL_LOAD 1
7719_ACEOF
7720
7721 LIBADD_DL="$LIBADD_DL -ldld"
7722else
7723 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7724echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7725if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7727else
7728 ac_check_lib_save_LIBS=$LIBS
7729LIBS="-ldl $LIBS"
7730cat >conftest.$ac_ext <<_ACEOF
7731/* confdefs.h. */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h. */
7736
7737/* Override any gcc2 internal prototype to avoid an error. */
7738#ifdef __cplusplus
7739extern "C"
7740#endif
7741/* We use char because int might match the return type of a gcc2
7742 builtin and then its argument prototype would still apply. */
7743char dlopen ();
7744int
7745main ()
7746{
7747dlopen ();
7748 ;
7749 return 0;
7750}
7751_ACEOF
7752rm -f conftest.$ac_objext conftest$ac_exeext
7753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7754 (eval $ac_link) 2>conftest.er1
7755 ac_status=$?
7756 grep -v '^ *+' conftest.er1 >conftest.err
7757 rm -f conftest.er1
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } &&
7761 { ac_try='test -z "$ac_c_werror_flag"
7762 || test ! -s conftest.err'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; } &&
7768 { ac_try='test -s conftest$ac_exeext'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 (eval $ac_try) 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7774 ac_cv_lib_dl_dlopen=yes
7775else
7776 echo "$as_me: failed program was:" >&5
7777sed 's/^/| /' conftest.$ac_ext >&5
7778
7779ac_cv_lib_dl_dlopen=no
7780fi
7781rm -f conftest.err conftest.$ac_objext \
7782 conftest$ac_exeext conftest.$ac_ext
7783LIBS=$ac_check_lib_save_LIBS
7784fi
7785echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7786echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7787if test $ac_cv_lib_dl_dlopen = yes; then
7788
7789cat >>confdefs.h <<\_ACEOF
7790#define HAVE_LIBDL 1
7791_ACEOF
7792
7793 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7794else
7795 cat >conftest.$ac_ext <<_ACEOF
7796/* confdefs.h. */
7797_ACEOF
7798cat confdefs.h >>conftest.$ac_ext
7799cat >>conftest.$ac_ext <<_ACEOF
7800/* end confdefs.h. */
7801#if HAVE_DLFCN_H
7802# include <dlfcn.h>
7803#endif
7804
7805int
7806main ()
7807{
7808dlopen(0, 0);
7809 ;
7810 return 0;
7811}
7812_ACEOF
7813rm -f conftest.$ac_objext conftest$ac_exeext
7814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7815 (eval $ac_link) 2>conftest.er1
7816 ac_status=$?
7817 grep -v '^ *+' conftest.er1 >conftest.err
7818 rm -f conftest.er1
7819 cat conftest.err >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } &&
7822 { ac_try='test -z "$ac_c_werror_flag"
7823 || test ! -s conftest.err'
7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 (eval $ac_try) 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; } &&
7829 { ac_try='test -s conftest$ac_exeext'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7835
7836cat >>confdefs.h <<\_ACEOF
7837#define HAVE_LIBDL 1
7838_ACEOF
7839 libltdl_cv_func_dlopen="yes"
7840else
7841 echo "$as_me: failed program was:" >&5
7842sed 's/^/| /' conftest.$ac_ext >&5
7843
7844echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7845echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7846if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7847 echo $ECHO_N "(cached) $ECHO_C" >&6
7848else
7849 ac_check_lib_save_LIBS=$LIBS
7850LIBS="-lsvld $LIBS"
7851cat >conftest.$ac_ext <<_ACEOF
7852/* confdefs.h. */
7853_ACEOF
7854cat confdefs.h >>conftest.$ac_ext
7855cat >>conftest.$ac_ext <<_ACEOF
7856/* end confdefs.h. */
7857
7858/* Override any gcc2 internal prototype to avoid an error. */
7859#ifdef __cplusplus
7860extern "C"
7861#endif
7862/* We use char because int might match the return type of a gcc2
7863 builtin and then its argument prototype would still apply. */
7864char dlopen ();
7865int
7866main ()
7867{
7868dlopen ();
7869 ;
7870 return 0;
7871}
7872_ACEOF
7873rm -f conftest.$ac_objext conftest$ac_exeext
7874if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>conftest.er1
7876 ac_status=$?
7877 grep -v '^ *+' conftest.er1 >conftest.err
7878 rm -f conftest.er1
7879 cat conftest.err >&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } &&
7882 { ac_try='test -z "$ac_c_werror_flag"
7883 || test ! -s conftest.err'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; } &&
7889 { ac_try='test -s conftest$ac_exeext'
7890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7891 (eval $ac_try) 2>&5
7892 ac_status=$?
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_lib_svld_dlopen=yes
7896else
7897 echo "$as_me: failed program was:" >&5
7898sed 's/^/| /' conftest.$ac_ext >&5
7899
7900ac_cv_lib_svld_dlopen=no
7901fi
7902rm -f conftest.err conftest.$ac_objext \
7903 conftest$ac_exeext conftest.$ac_ext
7904LIBS=$ac_check_lib_save_LIBS
7905fi
7906echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7907echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7908if test $ac_cv_lib_svld_dlopen = yes; then
7909
7910cat >>confdefs.h <<\_ACEOF
7911#define HAVE_LIBDL 1
7912_ACEOF
7913
7914 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7915else
7916 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7917echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7918if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7920else
7921 ac_check_lib_save_LIBS=$LIBS
7922LIBS="-ldld $LIBS"
7923cat >conftest.$ac_ext <<_ACEOF
7924/* confdefs.h. */
7925_ACEOF
7926cat confdefs.h >>conftest.$ac_ext
7927cat >>conftest.$ac_ext <<_ACEOF
7928/* end confdefs.h. */
7929
7930/* Override any gcc2 internal prototype to avoid an error. */
7931#ifdef __cplusplus
7932extern "C"
7933#endif
7934/* We use char because int might match the return type of a gcc2
7935 builtin and then its argument prototype would still apply. */
7936char dld_link ();
7937int
7938main ()
7939{
7940dld_link ();
7941 ;
7942 return 0;
7943}
7944_ACEOF
7945rm -f conftest.$ac_objext conftest$ac_exeext
7946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7947 (eval $ac_link) 2>conftest.er1
7948 ac_status=$?
7949 grep -v '^ *+' conftest.er1 >conftest.err
7950 rm -f conftest.er1
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } &&
7954 { ac_try='test -z "$ac_c_werror_flag"
7955 || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try='test -s conftest$ac_exeext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 (eval $ac_try) 2>&5
7964 ac_status=$?
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_cv_lib_dld_dld_link=yes
7968else
7969 echo "$as_me: failed program was:" >&5
7970sed 's/^/| /' conftest.$ac_ext >&5
7971
7972ac_cv_lib_dld_dld_link=no
7973fi
7974rm -f conftest.err conftest.$ac_objext \
7975 conftest$ac_exeext conftest.$ac_ext
7976LIBS=$ac_check_lib_save_LIBS
7977fi
7978echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7979echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7980if test $ac_cv_lib_dld_dld_link = yes; then
7981
7982cat >>confdefs.h <<\_ACEOF
7983#define HAVE_DLD 1
7984_ACEOF
7985
7986 LIBADD_DL="$LIBADD_DL -ldld"
7987else
7988 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7989echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7990if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993 cat >conftest.$ac_ext <<_ACEOF
7994/* confdefs.h. */
7995_ACEOF
7996cat confdefs.h >>conftest.$ac_ext
7997cat >>conftest.$ac_ext <<_ACEOF
7998/* end confdefs.h. */
7999/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8001#define _dyld_func_lookup innocuous__dyld_func_lookup
8002
8003/* System header to define __stub macros and hopefully few prototypes,
8004 which can conflict with char _dyld_func_lookup (); below.
8005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8006 <limits.h> exists even on freestanding compilers. */
8007
8008#ifdef __STDC__
8009# include <limits.h>
8010#else
8011# include <assert.h>
8012#endif
8013
8014#undef _dyld_func_lookup
8015
8016/* Override any gcc2 internal prototype to avoid an error. */
8017#ifdef __cplusplus
8018extern "C"
8019{
8020#endif
8021/* We use char because int might match the return type of a gcc2
8022 builtin and then its argument prototype would still apply. */
8023char _dyld_func_lookup ();
8024/* The GNU C library defines this for functions which it implements
8025 to always fail with ENOSYS. Some functions are actually named
8026 something starting with __ and the normal name is an alias. */
8027#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8028choke me
8029#else
8030char (*f) () = _dyld_func_lookup;
8031#endif
8032#ifdef __cplusplus
8033}
8034#endif
8035
8036int
8037main ()
8038{
8039return f != _dyld_func_lookup;
8040 ;
8041 return 0;
8042}
8043_ACEOF
8044rm -f conftest.$ac_objext conftest$ac_exeext
8045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8046 (eval $ac_link) 2>conftest.er1
8047 ac_status=$?
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
8053 { ac_try='test -z "$ac_c_werror_flag"
8054 || test ! -s conftest.err'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest$ac_exeext'
8061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_func__dyld_func_lookup=yes
8067else
8068 echo "$as_me: failed program was:" >&5
8069sed 's/^/| /' conftest.$ac_ext >&5
8070
8071ac_cv_func__dyld_func_lookup=no
8072fi
8073rm -f conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
8075fi
8076echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8077echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8078if test $ac_cv_func__dyld_func_lookup = yes; then
8079
8080cat >>confdefs.h <<\_ACEOF
8081#define HAVE_DYLD 1
8082_ACEOF
8083
8084fi
8085
8086
8087fi
8088
8089
8090fi
8091
8092
8093fi
8094rm -f conftest.err conftest.$ac_objext \
8095 conftest$ac_exeext conftest.$ac_ext
8096
8097fi
8098
8099
8100fi
8101
8102
8103fi
8104
8105
8106if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8107then
8108 lt_save_LIBS="$LIBS"
8109 LIBS="$LIBS $LIBADD_DL"
8110
8111for ac_func in dlerror
8112do
8113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8114echo "$as_me:$LINENO: checking for $ac_func" >&5
8115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8116if eval "test \"\${$as_ac_var+set}\" = set"; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8118else
8119 cat >conftest.$ac_ext <<_ACEOF
8120/* confdefs.h. */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */
8125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8127#define $ac_func innocuous_$ac_func
8128
8129/* System header to define __stub macros and hopefully few prototypes,
8130 which can conflict with char $ac_func (); below.
8131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8132 <limits.h> exists even on freestanding compilers. */
8133
8134#ifdef __STDC__
8135# include <limits.h>
8136#else
8137# include <assert.h>
8138#endif
8139
8140#undef $ac_func
8141
8142/* Override any gcc2 internal prototype to avoid an error. */
8143#ifdef __cplusplus
8144extern "C"
8145{
8146#endif
8147/* We use char because int might match the return type of a gcc2
8148 builtin and then its argument prototype would still apply. */
8149char $ac_func ();
8150/* The GNU C library defines this for functions which it implements
8151 to always fail with ENOSYS. Some functions are actually named
8152 something starting with __ and the normal name is an alias. */
8153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8154choke me
8155#else
8156char (*f) () = $ac_func;
8157#endif
8158#ifdef __cplusplus
8159}
8160#endif
8161
8162int
8163main ()
8164{
8165return f != $ac_func;
8166 ;
8167 return 0;
8168}
8169_ACEOF
8170rm -f conftest.$ac_objext conftest$ac_exeext
8171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8172 (eval $ac_link) 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } &&
8179 { ac_try='test -z "$ac_c_werror_flag"
8180 || test ! -s conftest.err'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 (eval $ac_try) 2>&5
8183 ac_status=$?
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; } &&
8186 { ac_try='test -s conftest$ac_exeext'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 (eval $ac_try) 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; }; then
8192 eval "$as_ac_var=yes"
8193else
8194 echo "$as_me: failed program was:" >&5
8195sed 's/^/| /' conftest.$ac_ext >&5
8196
8197eval "$as_ac_var=no"
8198fi
8199rm -f conftest.err conftest.$ac_objext \
8200 conftest$ac_exeext conftest.$ac_ext
8201fi
8202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8203echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8204if test `eval echo '${'$as_ac_var'}'` = yes; then
8205 cat >>confdefs.h <<_ACEOF
8206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8207_ACEOF
8208
8209fi
8210done
8211
8212 LIBS="$lt_save_LIBS"
8213fi
8214ac_ext=c
8215ac_cpp='$CPP $CPPFLAGS'
8216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8218ac_compiler_gnu=$ac_cv_c_compiler_gnu
8219
8220
8221
8222echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8223echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8224if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8225 echo $ECHO_N "(cached) $ECHO_C" >&6
8226else
8227 ac_cv_sys_symbol_underscore=no
8228 cat > conftest.$ac_ext <<EOF
8229void nm_test_func(){}
8230int main(){nm_test_func;return 0;}
8231EOF
8232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8233 (eval $ac_compile) 2>&5
8234 ac_status=$?
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; then
8237 # Now try to grab the symbols.
8238 ac_nlist=conftest.nm
8239 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8240 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && test -s "$ac_nlist"; then
8244 # See whether the symbols have a leading underscore.
8245 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8246 ac_cv_sys_symbol_underscore=yes
8247 else
8248 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8249 :
8250 else
8251 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8252 fi
8253 fi
8254 else
8255 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8256 fi
8257 else
8258 echo "configure: failed program was:" >&5
8259 cat conftest.c >&5
8260 fi
8261 rm -rf conftest*
8262
8263fi
8264echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8265echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8266
8267
8268if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8269 if test x"$libltdl_cv_func_dlopen" = xyes ||
8270 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8271 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8272echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8273if test "${libltdl_cv_need_uscore+set}" = set; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8275else
8276 libltdl_cv_need_uscore=unknown
8277 save_LIBS="$LIBS"
8278 LIBS="$LIBS $LIBADD_DL"
8279 if test "$cross_compiling" = yes; then :
8280 libltdl_cv_need_uscore=cross
8281else
8282 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8283 lt_status=$lt_dlunknown
8284 cat > conftest.$ac_ext <<EOF
Reid Spencer7b3e8512004-12-24 06:29:05 +00008285#line 8285 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008286#include "confdefs.h"
8287
8288#if HAVE_DLFCN_H
8289#include <dlfcn.h>
8290#endif
8291
8292#include <stdio.h>
8293
8294#ifdef RTLD_GLOBAL
8295# define LT_DLGLOBAL RTLD_GLOBAL
8296#else
8297# ifdef DL_GLOBAL
8298# define LT_DLGLOBAL DL_GLOBAL
8299# else
8300# define LT_DLGLOBAL 0
8301# endif
8302#endif
8303
8304/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8305 find out it does not work in some platform. */
8306#ifndef LT_DLLAZY_OR_NOW
8307# ifdef RTLD_LAZY
8308# define LT_DLLAZY_OR_NOW RTLD_LAZY
8309# else
8310# ifdef DL_LAZY
8311# define LT_DLLAZY_OR_NOW DL_LAZY
8312# else
8313# ifdef RTLD_NOW
8314# define LT_DLLAZY_OR_NOW RTLD_NOW
8315# else
8316# ifdef DL_NOW
8317# define LT_DLLAZY_OR_NOW DL_NOW
8318# else
8319# define LT_DLLAZY_OR_NOW 0
8320# endif
8321# endif
8322# endif
8323# endif
8324#endif
8325
8326#ifdef __cplusplus
8327extern "C" void exit (int);
8328#endif
8329
8330void fnord() { int i=42;}
8331int main ()
8332{
8333 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8334 int status = $lt_dlunknown;
8335
8336 if (self)
8337 {
8338 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8339 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8340 /* dlclose (self); */
8341 }
8342
8343 exit (status);
8344}
8345EOF
8346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8347 (eval $ac_link) 2>&5
8348 ac_status=$?
8349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8351 (./conftest; exit; ) 2>/dev/null
8352 lt_status=$?
8353 case x$lt_status in
8354 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8355 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8356 x$lt_unknown|x*) ;;
8357 esac
8358 else :
8359 # compilation failed
8360
8361 fi
8362fi
8363rm -fr conftest*
8364
8365 LIBS="$save_LIBS"
8366
8367fi
8368echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8369echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8370 fi
8371fi
8372
8373if test x"$libltdl_cv_need_uscore" = xyes; then
8374
8375cat >>confdefs.h <<\_ACEOF
8376#define NEED_USCORE 1
8377_ACEOF
8378
8379fi
8380
8381
8382echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8383echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8384if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8386else
8387 # PORTME does your system automatically load deplibs for dlopen?
8388 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8389 # For now, we just catch OSes we know something about -- in the
8390 # future, we'll try test this programmatically.
8391 libltdl_cv_sys_dlopen_deplibs=unknown
8392 case "$host_os" in
8393 aix3*|aix4.1.*|aix4.2.*)
8394 # Unknown whether this is true for these versions of AIX, but
8395 # we want this `case' here to explicitly catch those versions.
8396 libltdl_cv_sys_dlopen_deplibs=unknown
8397 ;;
8398 aix[45]*)
8399 libltdl_cv_sys_dlopen_deplibs=yes
8400 ;;
8401 darwin*)
8402 # Assuming the user has installed a libdl from somewhere, this is true
8403 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8404 libltdl_cv_sys_dlopen_deplibs=yes
8405 ;;
8406 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8407 # GNU and its variants, using gnu ld.so (Glibc)
8408 libltdl_cv_sys_dlopen_deplibs=yes
8409 ;;
8410 hpux10*|hpux11*)
8411 libltdl_cv_sys_dlopen_deplibs=yes
8412 ;;
8413 irix[12345]*|irix6.[01]*)
8414 # Catch all versions of IRIX before 6.2, and indicate that we don't
8415 # know how it worked for any of those versions.
8416 libltdl_cv_sys_dlopen_deplibs=unknown
8417 ;;
8418 irix*)
8419 # The case above catches anything before 6.2, and it's known that
8420 # at 6.2 and later dlopen does load deplibs.
8421 libltdl_cv_sys_dlopen_deplibs=yes
8422 ;;
8423 netbsd*)
8424 libltdl_cv_sys_dlopen_deplibs=yes
8425 ;;
8426 openbsd*)
8427 libltdl_cv_sys_dlopen_deplibs=yes
8428 ;;
8429 osf[1234]*)
8430 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8431 # it did *not* use an RPATH in a shared library to find objects the
8432 # library depends on, so we explictly say `no'.
8433 libltdl_cv_sys_dlopen_deplibs=no
8434 ;;
8435 osf5.0|osf5.0a|osf5.1)
8436 # dlopen *does* load deplibs and with the right loader patch applied
8437 # it even uses RPATH in a shared library to search for shared objects
8438 # that the library depends on, but there's no easy way to know if that
8439 # patch is installed. Since this is the case, all we can really
8440 # say is unknown -- it depends on the patch being installed. If
8441 # it is, this changes to `yes'. Without it, it would be `no'.
8442 libltdl_cv_sys_dlopen_deplibs=unknown
8443 ;;
8444 osf*)
8445 # the two cases above should catch all versions of osf <= 5.1. Read
8446 # the comments above for what we know about them.
8447 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8448 # is used to find them so we can finally say `yes'.
8449 libltdl_cv_sys_dlopen_deplibs=yes
8450 ;;
8451 solaris*)
8452 libltdl_cv_sys_dlopen_deplibs=yes
8453 ;;
8454 esac
8455
8456fi
8457echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8458echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8459if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8460
8461cat >>confdefs.h <<\_ACEOF
8462#define LTDL_DLOPEN_DEPLIBS 1
8463_ACEOF
8464
8465fi
8466
8467
8468for ac_header in argz.h
8469do
8470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8471if eval "test \"\${$as_ac_Header+set}\" = set"; then
8472 echo "$as_me:$LINENO: checking for $ac_header" >&5
8473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8474if eval "test \"\${$as_ac_Header+set}\" = set"; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8476fi
8477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8479else
8480 # Is the header compilable?
8481echo "$as_me:$LINENO: checking $ac_header usability" >&5
8482echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8483cat >conftest.$ac_ext <<_ACEOF
8484/* confdefs.h. */
8485_ACEOF
8486cat confdefs.h >>conftest.$ac_ext
8487cat >>conftest.$ac_ext <<_ACEOF
8488/* end confdefs.h. */
8489$ac_includes_default
8490#include <$ac_header>
8491_ACEOF
8492rm -f conftest.$ac_objext
8493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494 (eval $ac_compile) 2>conftest.er1
8495 ac_status=$?
8496 grep -v '^ *+' conftest.er1 >conftest.err
8497 rm -f conftest.er1
8498 cat conftest.err >&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -z "$ac_c_werror_flag"
8502 || test ! -s conftest.err'
8503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8504 (eval $ac_try) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); }; } &&
8508 { ac_try='test -s conftest.$ac_objext'
8509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 (eval $ac_try) 2>&5
8511 ac_status=$?
8512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513 (exit $ac_status); }; }; then
8514 ac_header_compiler=yes
8515else
8516 echo "$as_me: failed program was:" >&5
8517sed 's/^/| /' conftest.$ac_ext >&5
8518
8519ac_header_compiler=no
8520fi
8521rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8522echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8523echo "${ECHO_T}$ac_header_compiler" >&6
8524
8525# Is the header present?
8526echo "$as_me:$LINENO: checking $ac_header presence" >&5
8527echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8528cat >conftest.$ac_ext <<_ACEOF
8529/* confdefs.h. */
8530_ACEOF
8531cat confdefs.h >>conftest.$ac_ext
8532cat >>conftest.$ac_ext <<_ACEOF
8533/* end confdefs.h. */
8534#include <$ac_header>
8535_ACEOF
8536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } >/dev/null; then
8544 if test -s conftest.err; then
8545 ac_cpp_err=$ac_c_preproc_warn_flag
8546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8547 else
8548 ac_cpp_err=
8549 fi
8550else
8551 ac_cpp_err=yes
8552fi
8553if test -z "$ac_cpp_err"; then
8554 ac_header_preproc=yes
8555else
8556 echo "$as_me: failed program was:" >&5
8557sed 's/^/| /' conftest.$ac_ext >&5
8558
8559 ac_header_preproc=no
8560fi
8561rm -f conftest.err conftest.$ac_ext
8562echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8563echo "${ECHO_T}$ac_header_preproc" >&6
8564
8565# So? What about this header?
8566case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8567 yes:no: )
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8569echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8571echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8572 ac_header_preproc=yes
8573 ;;
8574 no:yes:* )
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8576echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8578echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8580echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8582echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8584echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8586echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8587 (
8588 cat <<\_ASBOX
8589## ----------------------------------- ##
8590## Report this to llvmbugs@cs.uiuc.edu ##
8591## ----------------------------------- ##
8592_ASBOX
8593 ) |
8594 sed "s/^/$as_me: WARNING: /" >&2
8595 ;;
8596esac
8597echo "$as_me:$LINENO: checking for $ac_header" >&5
8598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8599if eval "test \"\${$as_ac_Header+set}\" = set"; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8601else
8602 eval "$as_ac_Header=\$ac_header_preproc"
8603fi
8604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8606
8607fi
8608if test `eval echo '${'$as_ac_Header'}'` = yes; then
8609 cat >>confdefs.h <<_ACEOF
8610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8611_ACEOF
8612
8613fi
8614
8615done
8616
8617
8618echo "$as_me:$LINENO: checking for error_t" >&5
8619echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8620if test "${ac_cv_type_error_t+set}" = set; then
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622else
8623 cat >conftest.$ac_ext <<_ACEOF
8624/* confdefs.h. */
8625_ACEOF
8626cat confdefs.h >>conftest.$ac_ext
8627cat >>conftest.$ac_ext <<_ACEOF
8628/* end confdefs.h. */
8629#if HAVE_ARGZ_H
8630# include <argz.h>
8631#endif
8632
8633int
8634main ()
8635{
8636if ((error_t *) 0)
8637 return 0;
8638if (sizeof (error_t))
8639 return 0;
8640 ;
8641 return 0;
8642}
8643_ACEOF
8644rm -f conftest.$ac_objext
8645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8646 (eval $ac_compile) 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag"
8654 || test ! -s conftest.err'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; } &&
8660 { ac_try='test -s conftest.$ac_objext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8662 (eval $ac_try) 2>&5
8663 ac_status=$?
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_type_error_t=yes
8667else
8668 echo "$as_me: failed program was:" >&5
8669sed 's/^/| /' conftest.$ac_ext >&5
8670
8671ac_cv_type_error_t=no
8672fi
8673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8674fi
8675echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8676echo "${ECHO_T}$ac_cv_type_error_t" >&6
8677if test $ac_cv_type_error_t = yes; then
8678
8679cat >>confdefs.h <<_ACEOF
8680#define HAVE_ERROR_T 1
8681_ACEOF
8682
8683
8684else
8685
8686cat >>confdefs.h <<\_ACEOF
8687#define error_t int
8688_ACEOF
8689
8690fi
8691
8692
8693
8694
8695
8696
8697
8698for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8699do
8700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8701echo "$as_me:$LINENO: checking for $ac_func" >&5
8702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8703if eval "test \"\${$as_ac_var+set}\" = set"; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705else
8706 cat >conftest.$ac_ext <<_ACEOF
8707/* confdefs.h. */
8708_ACEOF
8709cat confdefs.h >>conftest.$ac_ext
8710cat >>conftest.$ac_ext <<_ACEOF
8711/* end confdefs.h. */
8712/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8714#define $ac_func innocuous_$ac_func
8715
8716/* System header to define __stub macros and hopefully few prototypes,
8717 which can conflict with char $ac_func (); below.
8718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8719 <limits.h> exists even on freestanding compilers. */
8720
8721#ifdef __STDC__
8722# include <limits.h>
8723#else
8724# include <assert.h>
8725#endif
8726
8727#undef $ac_func
8728
8729/* Override any gcc2 internal prototype to avoid an error. */
8730#ifdef __cplusplus
8731extern "C"
8732{
8733#endif
8734/* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8736char $ac_func ();
8737/* The GNU C library defines this for functions which it implements
8738 to always fail with ENOSYS. Some functions are actually named
8739 something starting with __ and the normal name is an alias. */
8740#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8741choke me
8742#else
8743char (*f) () = $ac_func;
8744#endif
8745#ifdef __cplusplus
8746}
8747#endif
8748
8749int
8750main ()
8751{
8752return f != $ac_func;
8753 ;
8754 return 0;
8755}
8756_ACEOF
8757rm -f conftest.$ac_objext conftest$ac_exeext
8758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>conftest.er1
8760 ac_status=$?
8761 grep -v '^ *+' conftest.er1 >conftest.err
8762 rm -f conftest.er1
8763 cat conftest.err >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); } &&
8766 { ac_try='test -z "$ac_c_werror_flag"
8767 || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 (eval $ac_try) 2>&5
8770 ac_status=$?
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8775 (eval $ac_try) 2>&5
8776 ac_status=$?
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 eval "$as_ac_var=yes"
8780else
8781 echo "$as_me: failed program was:" >&5
8782sed 's/^/| /' conftest.$ac_ext >&5
8783
8784eval "$as_ac_var=no"
8785fi
8786rm -f conftest.err conftest.$ac_objext \
8787 conftest$ac_exeext conftest.$ac_ext
8788fi
8789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8790echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8791if test `eval echo '${'$as_ac_var'}'` = yes; then
8792 cat >>confdefs.h <<_ACEOF
8793#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8794_ACEOF
8795
8796fi
8797done
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8827 stdio.h unistd.h
8828do
8829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8830if eval "test \"\${$as_ac_Header+set}\" = set"; then
8831 echo "$as_me:$LINENO: checking for $ac_header" >&5
8832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8833if eval "test \"\${$as_ac_Header+set}\" = set"; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8835fi
8836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8838else
8839 # Is the header compilable?
8840echo "$as_me:$LINENO: checking $ac_header usability" >&5
8841echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8842cat >conftest.$ac_ext <<_ACEOF
8843/* confdefs.h. */
8844_ACEOF
8845cat confdefs.h >>conftest.$ac_ext
8846cat >>conftest.$ac_ext <<_ACEOF
8847/* end confdefs.h. */
8848$ac_includes_default
8849#include <$ac_header>
8850_ACEOF
8851rm -f conftest.$ac_objext
8852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8853 (eval $ac_compile) 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try='test -z "$ac_c_werror_flag"
8861 || test ! -s conftest.err'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; } &&
8867 { ac_try='test -s conftest.$ac_objext'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 (eval $ac_try) 2>&5
8870 ac_status=$?
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 ac_header_compiler=yes
8874else
8875 echo "$as_me: failed program was:" >&5
8876sed 's/^/| /' conftest.$ac_ext >&5
8877
8878ac_header_compiler=no
8879fi
8880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8881echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8882echo "${ECHO_T}$ac_header_compiler" >&6
8883
8884# Is the header present?
8885echo "$as_me:$LINENO: checking $ac_header presence" >&5
8886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8887cat >conftest.$ac_ext <<_ACEOF
8888/* confdefs.h. */
8889_ACEOF
8890cat confdefs.h >>conftest.$ac_ext
8891cat >>conftest.$ac_ext <<_ACEOF
8892/* end confdefs.h. */
8893#include <$ac_header>
8894_ACEOF
8895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8897 ac_status=$?
8898 grep -v '^ *+' conftest.er1 >conftest.err
8899 rm -f conftest.er1
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } >/dev/null; then
8903 if test -s conftest.err; then
8904 ac_cpp_err=$ac_c_preproc_warn_flag
8905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8906 else
8907 ac_cpp_err=
8908 fi
8909else
8910 ac_cpp_err=yes
8911fi
8912if test -z "$ac_cpp_err"; then
8913 ac_header_preproc=yes
8914else
8915 echo "$as_me: failed program was:" >&5
8916sed 's/^/| /' conftest.$ac_ext >&5
8917
8918 ac_header_preproc=no
8919fi
8920rm -f conftest.err conftest.$ac_ext
8921echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8922echo "${ECHO_T}$ac_header_preproc" >&6
8923
8924# So? What about this header?
8925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8926 yes:no: )
8927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8928echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8930echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8931 ac_header_preproc=yes
8932 ;;
8933 no:yes:* )
8934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8935echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8937echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8939echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8941echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8943echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8945echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8946 (
8947 cat <<\_ASBOX
8948## ----------------------------------- ##
8949## Report this to llvmbugs@cs.uiuc.edu ##
8950## ----------------------------------- ##
8951_ASBOX
8952 ) |
8953 sed "s/^/$as_me: WARNING: /" >&2
8954 ;;
8955esac
8956echo "$as_me:$LINENO: checking for $ac_header" >&5
8957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8958if eval "test \"\${$as_ac_Header+set}\" = set"; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8960else
8961 eval "$as_ac_Header=\$ac_header_preproc"
8962fi
8963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8965
8966fi
8967if test `eval echo '${'$as_ac_Header'}'` = yes; then
8968 cat >>confdefs.h <<_ACEOF
8969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8970_ACEOF
8971
8972fi
8973
8974done
8975
8976
8977
8978
8979
8980for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8981do
8982as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8983if eval "test \"\${$as_ac_Header+set}\" = set"; then
8984 echo "$as_me:$LINENO: checking for $ac_header" >&5
8985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8986if eval "test \"\${$as_ac_Header+set}\" = set"; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8988fi
8989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8991else
8992 # Is the header compilable?
8993echo "$as_me:$LINENO: checking $ac_header usability" >&5
8994echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8995cat >conftest.$ac_ext <<_ACEOF
8996/* confdefs.h. */
8997_ACEOF
8998cat confdefs.h >>conftest.$ac_ext
8999cat >>conftest.$ac_ext <<_ACEOF
9000/* end confdefs.h. */
9001$ac_includes_default
9002#include <$ac_header>
9003_ACEOF
9004rm -f conftest.$ac_objext
9005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9006 (eval $ac_compile) 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } &&
9013 { ac_try='test -z "$ac_c_werror_flag"
9014 || test ! -s conftest.err'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9016 (eval $ac_try) 2>&5
9017 ac_status=$?
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; } &&
9020 { ac_try='test -s conftest.$ac_objext'
9021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9022 (eval $ac_try) 2>&5
9023 ac_status=$?
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9026 ac_header_compiler=yes
9027else
9028 echo "$as_me: failed program was:" >&5
9029sed 's/^/| /' conftest.$ac_ext >&5
9030
9031ac_header_compiler=no
9032fi
9033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9034echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9035echo "${ECHO_T}$ac_header_compiler" >&6
9036
9037# Is the header present?
9038echo "$as_me:$LINENO: checking $ac_header presence" >&5
9039echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9040cat >conftest.$ac_ext <<_ACEOF
9041/* confdefs.h. */
9042_ACEOF
9043cat confdefs.h >>conftest.$ac_ext
9044cat >>conftest.$ac_ext <<_ACEOF
9045/* end confdefs.h. */
9046#include <$ac_header>
9047_ACEOF
9048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9050 ac_status=$?
9051 grep -v '^ *+' conftest.er1 >conftest.err
9052 rm -f conftest.er1
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } >/dev/null; then
9056 if test -s conftest.err; then
9057 ac_cpp_err=$ac_c_preproc_warn_flag
9058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9059 else
9060 ac_cpp_err=
9061 fi
9062else
9063 ac_cpp_err=yes
9064fi
9065if test -z "$ac_cpp_err"; then
9066 ac_header_preproc=yes
9067else
9068 echo "$as_me: failed program was:" >&5
9069sed 's/^/| /' conftest.$ac_ext >&5
9070
9071 ac_header_preproc=no
9072fi
9073rm -f conftest.err conftest.$ac_ext
9074echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9075echo "${ECHO_T}$ac_header_preproc" >&6
9076
9077# So? What about this header?
9078case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9079 yes:no: )
9080 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9081echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9083echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9084 ac_header_preproc=yes
9085 ;;
9086 no:yes:* )
9087 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9088echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9089 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9090echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9092echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9094echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9096echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9097 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9098echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9099 (
9100 cat <<\_ASBOX
9101## ----------------------------------- ##
9102## Report this to llvmbugs@cs.uiuc.edu ##
9103## ----------------------------------- ##
9104_ASBOX
9105 ) |
9106 sed "s/^/$as_me: WARNING: /" >&2
9107 ;;
9108esac
9109echo "$as_me:$LINENO: checking for $ac_header" >&5
9110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9111if eval "test \"\${$as_ac_Header+set}\" = set"; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9113else
9114 eval "$as_ac_Header=\$ac_header_preproc"
9115fi
9116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9117echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9118
9119fi
9120if test `eval echo '${'$as_ac_Header'}'` = yes; then
9121 cat >>confdefs.h <<_ACEOF
9122#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9123_ACEOF
9124
9125fi
9126
9127done
9128
9129
9130
9131for ac_header in string.h strings.h
9132do
9133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9134if eval "test \"\${$as_ac_Header+set}\" = set"; then
9135 echo "$as_me:$LINENO: checking for $ac_header" >&5
9136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9137if eval "test \"\${$as_ac_Header+set}\" = set"; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9139fi
9140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9141echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9142else
9143 # Is the header compilable?
9144echo "$as_me:$LINENO: checking $ac_header usability" >&5
9145echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9146cat >conftest.$ac_ext <<_ACEOF
9147/* confdefs.h. */
9148_ACEOF
9149cat confdefs.h >>conftest.$ac_ext
9150cat >>conftest.$ac_ext <<_ACEOF
9151/* end confdefs.h. */
9152$ac_includes_default
9153#include <$ac_header>
9154_ACEOF
9155rm -f conftest.$ac_objext
9156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>conftest.er1
9158 ac_status=$?
9159 grep -v '^ *+' conftest.er1 >conftest.err
9160 rm -f conftest.er1
9161 cat conftest.err >&5
9162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163 (exit $ac_status); } &&
9164 { ac_try='test -z "$ac_c_werror_flag"
9165 || test ! -s conftest.err'
9166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167 (eval $ac_try) 2>&5
9168 ac_status=$?
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); }; } &&
9171 { ac_try='test -s conftest.$ac_objext'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; }; then
9177 ac_header_compiler=yes
9178else
9179 echo "$as_me: failed program was:" >&5
9180sed 's/^/| /' conftest.$ac_ext >&5
9181
9182ac_header_compiler=no
9183fi
9184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9185echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9186echo "${ECHO_T}$ac_header_compiler" >&6
9187
9188# Is the header present?
9189echo "$as_me:$LINENO: checking $ac_header presence" >&5
9190echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9191cat >conftest.$ac_ext <<_ACEOF
9192/* confdefs.h. */
9193_ACEOF
9194cat confdefs.h >>conftest.$ac_ext
9195cat >>conftest.$ac_ext <<_ACEOF
9196/* end confdefs.h. */
9197#include <$ac_header>
9198_ACEOF
9199if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9200 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } >/dev/null; then
9207 if test -s conftest.err; then
9208 ac_cpp_err=$ac_c_preproc_warn_flag
9209 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9210 else
9211 ac_cpp_err=
9212 fi
9213else
9214 ac_cpp_err=yes
9215fi
9216if test -z "$ac_cpp_err"; then
9217 ac_header_preproc=yes
9218else
9219 echo "$as_me: failed program was:" >&5
9220sed 's/^/| /' conftest.$ac_ext >&5
9221
9222 ac_header_preproc=no
9223fi
9224rm -f conftest.err conftest.$ac_ext
9225echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9226echo "${ECHO_T}$ac_header_preproc" >&6
9227
9228# So? What about this header?
9229case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9230 yes:no: )
9231 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9232echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9234echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9235 ac_header_preproc=yes
9236 ;;
9237 no:yes:* )
9238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9239echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9241echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9242 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9243echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9245echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9247echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9249echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9250 (
9251 cat <<\_ASBOX
9252## ----------------------------------- ##
9253## Report this to llvmbugs@cs.uiuc.edu ##
9254## ----------------------------------- ##
9255_ASBOX
9256 ) |
9257 sed "s/^/$as_me: WARNING: /" >&2
9258 ;;
9259esac
9260echo "$as_me:$LINENO: checking for $ac_header" >&5
9261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9262if eval "test \"\${$as_ac_Header+set}\" = set"; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264else
9265 eval "$as_ac_Header=\$ac_header_preproc"
9266fi
9267echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9268echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9269
9270fi
9271if test `eval echo '${'$as_ac_Header'}'` = yes; then
9272 cat >>confdefs.h <<_ACEOF
9273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9274_ACEOF
9275 break
9276fi
9277
9278done
9279
9280
9281
9282
9283for ac_func in strchr index
9284do
9285as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9286echo "$as_me:$LINENO: checking for $ac_func" >&5
9287echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9288if eval "test \"\${$as_ac_var+set}\" = set"; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9290else
9291 cat >conftest.$ac_ext <<_ACEOF
9292/* confdefs.h. */
9293_ACEOF
9294cat confdefs.h >>conftest.$ac_ext
9295cat >>conftest.$ac_ext <<_ACEOF
9296/* end confdefs.h. */
9297/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9299#define $ac_func innocuous_$ac_func
9300
9301/* System header to define __stub macros and hopefully few prototypes,
9302 which can conflict with char $ac_func (); below.
9303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9304 <limits.h> exists even on freestanding compilers. */
9305
9306#ifdef __STDC__
9307# include <limits.h>
9308#else
9309# include <assert.h>
9310#endif
9311
9312#undef $ac_func
9313
9314/* Override any gcc2 internal prototype to avoid an error. */
9315#ifdef __cplusplus
9316extern "C"
9317{
9318#endif
9319/* We use char because int might match the return type of a gcc2
9320 builtin and then its argument prototype would still apply. */
9321char $ac_func ();
9322/* The GNU C library defines this for functions which it implements
9323 to always fail with ENOSYS. Some functions are actually named
9324 something starting with __ and the normal name is an alias. */
9325#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9326choke me
9327#else
9328char (*f) () = $ac_func;
9329#endif
9330#ifdef __cplusplus
9331}
9332#endif
9333
9334int
9335main ()
9336{
9337return f != $ac_func;
9338 ;
9339 return 0;
9340}
9341_ACEOF
9342rm -f conftest.$ac_objext conftest$ac_exeext
9343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9344 (eval $ac_link) 2>conftest.er1
9345 ac_status=$?
9346 grep -v '^ *+' conftest.er1 >conftest.err
9347 rm -f conftest.er1
9348 cat conftest.err >&5
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); } &&
9351 { ac_try='test -z "$ac_c_werror_flag"
9352 || test ! -s conftest.err'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 (eval $ac_try) 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; } &&
9358 { ac_try='test -s conftest$ac_exeext'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 (eval $ac_try) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; }; then
9364 eval "$as_ac_var=yes"
9365else
9366 echo "$as_me: failed program was:" >&5
9367sed 's/^/| /' conftest.$ac_ext >&5
9368
9369eval "$as_ac_var=no"
9370fi
9371rm -f conftest.err conftest.$ac_objext \
9372 conftest$ac_exeext conftest.$ac_ext
9373fi
9374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9375echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9376if test `eval echo '${'$as_ac_var'}'` = yes; then
9377 cat >>confdefs.h <<_ACEOF
9378#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9379_ACEOF
9380 break
9381fi
9382done
9383
9384
9385
9386for ac_func in strrchr rindex
9387do
9388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9389echo "$as_me:$LINENO: checking for $ac_func" >&5
9390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9391if eval "test \"\${$as_ac_var+set}\" = set"; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9393else
9394 cat >conftest.$ac_ext <<_ACEOF
9395/* confdefs.h. */
9396_ACEOF
9397cat confdefs.h >>conftest.$ac_ext
9398cat >>conftest.$ac_ext <<_ACEOF
9399/* end confdefs.h. */
9400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9402#define $ac_func innocuous_$ac_func
9403
9404/* System header to define __stub macros and hopefully few prototypes,
9405 which can conflict with char $ac_func (); below.
9406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9407 <limits.h> exists even on freestanding compilers. */
9408
9409#ifdef __STDC__
9410# include <limits.h>
9411#else
9412# include <assert.h>
9413#endif
9414
9415#undef $ac_func
9416
9417/* Override any gcc2 internal prototype to avoid an error. */
9418#ifdef __cplusplus
9419extern "C"
9420{
9421#endif
9422/* We use char because int might match the return type of a gcc2
9423 builtin and then its argument prototype would still apply. */
9424char $ac_func ();
9425/* The GNU C library defines this for functions which it implements
9426 to always fail with ENOSYS. Some functions are actually named
9427 something starting with __ and the normal name is an alias. */
9428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9429choke me
9430#else
9431char (*f) () = $ac_func;
9432#endif
9433#ifdef __cplusplus
9434}
9435#endif
9436
9437int
9438main ()
9439{
9440return f != $ac_func;
9441 ;
9442 return 0;
9443}
9444_ACEOF
9445rm -f conftest.$ac_objext conftest$ac_exeext
9446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447 (eval $ac_link) 2>conftest.er1
9448 ac_status=$?
9449 grep -v '^ *+' conftest.er1 >conftest.err
9450 rm -f conftest.er1
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } &&
9454 { ac_try='test -z "$ac_c_werror_flag"
9455 || test ! -s conftest.err'
9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457 (eval $ac_try) 2>&5
9458 ac_status=$?
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); }; } &&
9461 { ac_try='test -s conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 eval "$as_ac_var=yes"
9468else
9469 echo "$as_me: failed program was:" >&5
9470sed 's/^/| /' conftest.$ac_ext >&5
9471
9472eval "$as_ac_var=no"
9473fi
9474rm -f conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
9476fi
9477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9478echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9479if test `eval echo '${'$as_ac_var'}'` = yes; then
9480 cat >>confdefs.h <<_ACEOF
9481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9482_ACEOF
9483 break
9484fi
9485done
9486
9487
9488
9489for ac_func in memcpy bcopy
9490do
9491as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9492echo "$as_me:$LINENO: checking for $ac_func" >&5
9493echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9494if eval "test \"\${$as_ac_var+set}\" = set"; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496else
9497 cat >conftest.$ac_ext <<_ACEOF
9498/* confdefs.h. */
9499_ACEOF
9500cat confdefs.h >>conftest.$ac_ext
9501cat >>conftest.$ac_ext <<_ACEOF
9502/* end confdefs.h. */
9503/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9505#define $ac_func innocuous_$ac_func
9506
9507/* System header to define __stub macros and hopefully few prototypes,
9508 which can conflict with char $ac_func (); below.
9509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9510 <limits.h> exists even on freestanding compilers. */
9511
9512#ifdef __STDC__
9513# include <limits.h>
9514#else
9515# include <assert.h>
9516#endif
9517
9518#undef $ac_func
9519
9520/* Override any gcc2 internal prototype to avoid an error. */
9521#ifdef __cplusplus
9522extern "C"
9523{
9524#endif
9525/* We use char because int might match the return type of a gcc2
9526 builtin and then its argument prototype would still apply. */
9527char $ac_func ();
9528/* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9532choke me
9533#else
9534char (*f) () = $ac_func;
9535#endif
9536#ifdef __cplusplus
9537}
9538#endif
9539
9540int
9541main ()
9542{
9543return f != $ac_func;
9544 ;
9545 return 0;
9546}
9547_ACEOF
9548rm -f conftest.$ac_objext conftest$ac_exeext
9549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9550 (eval $ac_link) 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -z "$ac_c_werror_flag"
9558 || test ! -s conftest.err'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 (eval $ac_try) 2>&5
9561 ac_status=$?
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; } &&
9564 { ac_try='test -s conftest$ac_exeext'
9565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 (eval $ac_try) 2>&5
9567 ac_status=$?
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); }; }; then
9570 eval "$as_ac_var=yes"
9571else
9572 echo "$as_me: failed program was:" >&5
9573sed 's/^/| /' conftest.$ac_ext >&5
9574
9575eval "$as_ac_var=no"
9576fi
9577rm -f conftest.err conftest.$ac_objext \
9578 conftest$ac_exeext conftest.$ac_ext
9579fi
9580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9581echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9582if test `eval echo '${'$as_ac_var'}'` = yes; then
9583 cat >>confdefs.h <<_ACEOF
9584#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9585_ACEOF
9586 break
9587fi
9588done
9589
9590
9591
9592for ac_func in memmove strcmp
9593do
9594as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9595echo "$as_me:$LINENO: checking for $ac_func" >&5
9596echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9597if eval "test \"\${$as_ac_var+set}\" = set"; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9599else
9600 cat >conftest.$ac_ext <<_ACEOF
9601/* confdefs.h. */
9602_ACEOF
9603cat confdefs.h >>conftest.$ac_ext
9604cat >>conftest.$ac_ext <<_ACEOF
9605/* end confdefs.h. */
9606/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9608#define $ac_func innocuous_$ac_func
9609
9610/* System header to define __stub macros and hopefully few prototypes,
9611 which can conflict with char $ac_func (); below.
9612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9613 <limits.h> exists even on freestanding compilers. */
9614
9615#ifdef __STDC__
9616# include <limits.h>
9617#else
9618# include <assert.h>
9619#endif
9620
9621#undef $ac_func
9622
9623/* Override any gcc2 internal prototype to avoid an error. */
9624#ifdef __cplusplus
9625extern "C"
9626{
9627#endif
9628/* We use char because int might match the return type of a gcc2
9629 builtin and then its argument prototype would still apply. */
9630char $ac_func ();
9631/* The GNU C library defines this for functions which it implements
9632 to always fail with ENOSYS. Some functions are actually named
9633 something starting with __ and the normal name is an alias. */
9634#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9635choke me
9636#else
9637char (*f) () = $ac_func;
9638#endif
9639#ifdef __cplusplus
9640}
9641#endif
9642
9643int
9644main ()
9645{
9646return f != $ac_func;
9647 ;
9648 return 0;
9649}
9650_ACEOF
9651rm -f conftest.$ac_objext conftest$ac_exeext
9652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9653 (eval $ac_link) 2>conftest.er1
9654 ac_status=$?
9655 grep -v '^ *+' conftest.er1 >conftest.err
9656 rm -f conftest.er1
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } &&
9660 { ac_try='test -z "$ac_c_werror_flag"
9661 || test ! -s conftest.err'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 (eval $ac_try) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; } &&
9667 { ac_try='test -s conftest$ac_exeext'
9668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 (eval $ac_try) 2>&5
9670 ac_status=$?
9671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672 (exit $ac_status); }; }; then
9673 eval "$as_ac_var=yes"
9674else
9675 echo "$as_me: failed program was:" >&5
9676sed 's/^/| /' conftest.$ac_ext >&5
9677
9678eval "$as_ac_var=no"
9679fi
9680rm -f conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9682fi
9683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9684echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9685if test `eval echo '${'$as_ac_var'}'` = yes; then
9686 cat >>confdefs.h <<_ACEOF
9687#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9688_ACEOF
9689
9690fi
9691done
9692
9693
9694
9695
9696for ac_func in closedir opendir readdir
9697do
9698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9699echo "$as_me:$LINENO: checking for $ac_func" >&5
9700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9701if eval "test \"\${$as_ac_var+set}\" = set"; then
9702 echo $ECHO_N "(cached) $ECHO_C" >&6
9703else
9704 cat >conftest.$ac_ext <<_ACEOF
9705/* confdefs.h. */
9706_ACEOF
9707cat confdefs.h >>conftest.$ac_ext
9708cat >>conftest.$ac_ext <<_ACEOF
9709/* end confdefs.h. */
9710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9712#define $ac_func innocuous_$ac_func
9713
9714/* System header to define __stub macros and hopefully few prototypes,
9715 which can conflict with char $ac_func (); below.
9716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9717 <limits.h> exists even on freestanding compilers. */
9718
9719#ifdef __STDC__
9720# include <limits.h>
9721#else
9722# include <assert.h>
9723#endif
9724
9725#undef $ac_func
9726
9727/* Override any gcc2 internal prototype to avoid an error. */
9728#ifdef __cplusplus
9729extern "C"
9730{
9731#endif
9732/* We use char because int might match the return type of a gcc2
9733 builtin and then its argument prototype would still apply. */
9734char $ac_func ();
9735/* The GNU C library defines this for functions which it implements
9736 to always fail with ENOSYS. Some functions are actually named
9737 something starting with __ and the normal name is an alias. */
9738#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9739choke me
9740#else
9741char (*f) () = $ac_func;
9742#endif
9743#ifdef __cplusplus
9744}
9745#endif
9746
9747int
9748main ()
9749{
9750return f != $ac_func;
9751 ;
9752 return 0;
9753}
9754_ACEOF
9755rm -f conftest.$ac_objext conftest$ac_exeext
9756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9757 (eval $ac_link) 2>conftest.er1
9758 ac_status=$?
9759 grep -v '^ *+' conftest.er1 >conftest.err
9760 rm -f conftest.er1
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } &&
9764 { ac_try='test -z "$ac_c_werror_flag"
9765 || test ! -s conftest.err'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 (eval $ac_try) 2>&5
9768 ac_status=$?
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; } &&
9771 { ac_try='test -s conftest$ac_exeext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9773 (eval $ac_try) 2>&5
9774 ac_status=$?
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 eval "$as_ac_var=yes"
9778else
9779 echo "$as_me: failed program was:" >&5
9780sed 's/^/| /' conftest.$ac_ext >&5
9781
9782eval "$as_ac_var=no"
9783fi
9784rm -f conftest.err conftest.$ac_objext \
9785 conftest$ac_exeext conftest.$ac_ext
9786fi
9787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9788echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9789if test `eval echo '${'$as_ac_var'}'` = yes; then
9790 cat >>confdefs.h <<_ACEOF
9791#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9792_ACEOF
9793
9794fi
9795done
9796
9797
9798# Check whether --enable-shared or --disable-shared was given.
9799if test "${enable_shared+set}" = set; then
9800 enableval="$enable_shared"
9801 p=${PACKAGE-default}
9802 case $enableval in
9803 yes) enable_shared=yes ;;
9804 no) enable_shared=no ;;
9805 *)
9806 enable_shared=no
9807 # Look at the argument we got. We use all the common list separators.
9808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9809 for pkg in $enableval; do
9810 IFS="$lt_save_ifs"
9811 if test "X$pkg" = "X$p"; then
9812 enable_shared=yes
9813 fi
9814 done
9815 IFS="$lt_save_ifs"
9816 ;;
9817 esac
9818else
9819 enable_shared=yes
9820fi;
9821
9822# Check whether --enable-static or --disable-static was given.
9823if test "${enable_static+set}" = set; then
9824 enableval="$enable_static"
9825 p=${PACKAGE-default}
9826 case $enableval in
9827 yes) enable_static=yes ;;
9828 no) enable_static=no ;;
9829 *)
9830 enable_static=no
9831 # Look at the argument we got. We use all the common list separators.
9832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9833 for pkg in $enableval; do
9834 IFS="$lt_save_ifs"
9835 if test "X$pkg" = "X$p"; then
9836 enable_static=yes
9837 fi
9838 done
9839 IFS="$lt_save_ifs"
9840 ;;
9841 esac
9842else
9843 enable_static=yes
9844fi;
9845
9846# Check whether --enable-fast-install or --disable-fast-install was given.
9847if test "${enable_fast_install+set}" = set; then
9848 enableval="$enable_fast_install"
9849 p=${PACKAGE-default}
9850 case $enableval in
9851 yes) enable_fast_install=yes ;;
9852 no) enable_fast_install=no ;;
9853 *)
9854 enable_fast_install=no
9855 # Look at the argument we got. We use all the common list separators.
9856 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9857 for pkg in $enableval; do
9858 IFS="$lt_save_ifs"
9859 if test "X$pkg" = "X$p"; then
9860 enable_fast_install=yes
9861 fi
9862 done
9863 IFS="$lt_save_ifs"
9864 ;;
9865 esac
9866else
9867 enable_fast_install=yes
9868fi;
9869
9870echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9871echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9872if test "${lt_cv_path_SED+set}" = set; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9874else
9875 # Loop through the user's path and test for sed and gsed.
9876# Then use that list of sed's as ones to test for truncation.
9877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878for as_dir in $PATH
9879do
9880 IFS=$as_save_IFS
9881 test -z "$as_dir" && as_dir=.
9882 for lt_ac_prog in sed gsed; do
9883 for ac_exec_ext in '' $ac_executable_extensions; do
9884 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9885 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9886 fi
9887 done
9888 done
9889done
9890lt_ac_max=0
9891lt_ac_count=0
9892# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9893# along with /bin/sed that truncates output.
9894for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9895 test ! -f $lt_ac_sed && break
9896 cat /dev/null > conftest.in
9897 lt_ac_count=0
9898 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9899 # Check for GNU sed and select it if it is found.
9900 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9901 lt_cv_path_SED=$lt_ac_sed
9902 break
9903 fi
9904 while true; do
9905 cat conftest.in conftest.in >conftest.tmp
9906 mv conftest.tmp conftest.in
9907 cp conftest.in conftest.nl
9908 echo >>conftest.nl
9909 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9910 cmp -s conftest.out conftest.nl || break
9911 # 10000 chars as input seems more than enough
9912 test $lt_ac_count -gt 10 && break
9913 lt_ac_count=`expr $lt_ac_count + 1`
9914 if test $lt_ac_count -gt $lt_ac_max; then
9915 lt_ac_max=$lt_ac_count
9916 lt_cv_path_SED=$lt_ac_sed
9917 fi
9918 done
9919done
9920
9921fi
9922
9923SED=$lt_cv_path_SED
9924echo "$as_me:$LINENO: result: $SED" >&5
9925echo "${ECHO_T}$SED" >&6
9926
9927
9928# Check whether --with-gnu-ld or --without-gnu-ld was given.
9929if test "${with_gnu_ld+set}" = set; then
9930 withval="$with_gnu_ld"
9931 test "$withval" = no || with_gnu_ld=yes
9932else
9933 with_gnu_ld=no
9934fi;
9935ac_prog=ld
9936if test "$GCC" = yes; then
9937 # Check if gcc -print-prog-name=ld gives a path.
9938 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9939echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9940 case $host in
9941 *-*-mingw*)
9942 # gcc leaves a trailing carriage return which upsets mingw
9943 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9944 *)
9945 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9946 esac
9947 case $ac_prog in
9948 # Accept absolute paths.
9949 [\\/]* | ?:[\\/]*)
9950 re_direlt='/[^/][^/]*/\.\./'
9951 # Canonicalize the pathname of ld
9952 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9953 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9954 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9955 done
9956 test -z "$LD" && LD="$ac_prog"
9957 ;;
9958 "")
9959 # If it fails, then pretend we aren't using GCC.
9960 ac_prog=ld
9961 ;;
9962 *)
9963 # If it is relative, then search for the first ld in PATH.
9964 with_gnu_ld=unknown
9965 ;;
9966 esac
9967elif test "$with_gnu_ld" = yes; then
9968 echo "$as_me:$LINENO: checking for GNU ld" >&5
9969echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9970else
9971 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9972echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9973fi
9974if test "${lt_cv_path_LD+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976else
9977 if test -z "$LD"; then
9978 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9979 for ac_dir in $PATH; do
9980 IFS="$lt_save_ifs"
9981 test -z "$ac_dir" && ac_dir=.
9982 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9983 lt_cv_path_LD="$ac_dir/$ac_prog"
9984 # Check to see if the program is GNU ld. I'd rather use --version,
9985 # but apparently some GNU ld's only accept -v.
9986 # Break only if it was the GNU/non-GNU ld that we prefer.
9987 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9988 *GNU* | *'with BFD'*)
9989 test "$with_gnu_ld" != no && break
9990 ;;
9991 *)
9992 test "$with_gnu_ld" != yes && break
9993 ;;
9994 esac
9995 fi
9996 done
9997 IFS="$lt_save_ifs"
9998else
9999 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10000fi
10001fi
10002
10003LD="$lt_cv_path_LD"
10004if test -n "$LD"; then
10005 echo "$as_me:$LINENO: result: $LD" >&5
10006echo "${ECHO_T}$LD" >&6
10007else
10008 echo "$as_me:$LINENO: result: no" >&5
10009echo "${ECHO_T}no" >&6
10010fi
10011test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10012echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10013 { (exit 1); exit 1; }; }
10014echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10015echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10016if test "${lt_cv_prog_gnu_ld+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018else
10019 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10020case `$LD -v 2>&1 </dev/null` in
10021*GNU* | *'with BFD'*)
10022 lt_cv_prog_gnu_ld=yes
10023 ;;
10024*)
10025 lt_cv_prog_gnu_ld=no
10026 ;;
10027esac
10028fi
10029echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10030echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10031with_gnu_ld=$lt_cv_prog_gnu_ld
10032
10033
10034echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10035echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10036if test "${lt_cv_ld_reload_flag+set}" = set; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10038else
10039 lt_cv_ld_reload_flag='-r'
10040fi
10041echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10042echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10043reload_flag=$lt_cv_ld_reload_flag
10044case $reload_flag in
10045"" | " "*) ;;
10046*) reload_flag=" $reload_flag" ;;
10047esac
10048reload_cmds='$LD$reload_flag -o $output$reload_objs'
10049case $host_os in
10050 darwin*)
10051 if test "$GCC" = yes; then
10052 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10053 else
10054 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10055 fi
10056 ;;
10057esac
10058
10059echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10060echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10061if test "${lt_cv_deplibs_check_method+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063else
10064 lt_cv_file_magic_cmd='$MAGIC_CMD'
10065lt_cv_file_magic_test_file=
10066lt_cv_deplibs_check_method='unknown'
10067# Need to set the preceding variable on all platforms that support
10068# interlibrary dependencies.
10069# 'none' -- dependencies not supported.
10070# `unknown' -- same as none, but documents that we really don't know.
10071# 'pass_all' -- all dependencies passed with no checks.
10072# 'test_compile' -- check by making test program.
10073# 'file_magic [[regex]]' -- check by looking for files in library path
10074# which responds to the $file_magic_cmd with a given extended regex.
10075# If you have `file' or equivalent on your system and you're not sure
10076# whether `pass_all' will *always* work, you probably want this one.
10077
10078case $host_os in
10079aix4* | aix5*)
10080 lt_cv_deplibs_check_method=pass_all
10081 ;;
10082
10083beos*)
10084 lt_cv_deplibs_check_method=pass_all
10085 ;;
10086
10087bsdi[45]*)
10088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10089 lt_cv_file_magic_cmd='/usr/bin/file -L'
10090 lt_cv_file_magic_test_file=/shlib/libc.so
10091 ;;
10092
10093cygwin*)
10094 # func_win32_libid is a shell function defined in ltmain.sh
10095 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10096 lt_cv_file_magic_cmd='func_win32_libid'
10097 ;;
10098
10099mingw* | pw32*)
10100 # Base MSYS/MinGW do not provide the 'file' command needed by
10101 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10102 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10103 lt_cv_file_magic_cmd='$OBJDUMP -f'
10104 ;;
10105
10106darwin* | rhapsody*)
10107 lt_cv_deplibs_check_method=pass_all
10108 ;;
10109
10110freebsd* | kfreebsd*-gnu)
10111 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10112 case $host_cpu in
10113 i*86 )
10114 # Not sure whether the presence of OpenBSD here was a mistake.
10115 # Let's accept both of them until this is cleared up.
10116 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10117 lt_cv_file_magic_cmd=/usr/bin/file
10118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10119 ;;
10120 esac
10121 else
10122 lt_cv_deplibs_check_method=pass_all
10123 fi
10124 ;;
10125
10126gnu*)
10127 lt_cv_deplibs_check_method=pass_all
10128 ;;
10129
10130hpux10.20* | hpux11*)
10131 lt_cv_file_magic_cmd=/usr/bin/file
10132 case "$host_cpu" in
10133 ia64*)
10134 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10135 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10136 ;;
10137 hppa*64*)
10138 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]'
10139 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10140 ;;
10141 *)
10142 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10143 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10144 ;;
10145 esac
10146 ;;
10147
10148irix5* | irix6* | nonstopux*)
10149 case $LD in
10150 *-32|*"-32 ") libmagic=32-bit;;
10151 *-n32|*"-n32 ") libmagic=N32;;
10152 *-64|*"-64 ") libmagic=64-bit;;
10153 *) libmagic=never-match;;
10154 esac
10155 lt_cv_deplibs_check_method=pass_all
10156 ;;
10157
10158# This must be Linux ELF.
10159linux*)
10160 lt_cv_deplibs_check_method=pass_all
10161 ;;
10162
10163netbsd*)
10164 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10166 else
10167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10168 fi
10169 ;;
10170
10171newos6*)
10172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10173 lt_cv_file_magic_cmd=/usr/bin/file
10174 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10175 ;;
10176
10177nto-qnx*)
10178 lt_cv_deplibs_check_method=unknown
10179 ;;
10180
10181openbsd*)
10182 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10183 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10184 else
10185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10186 fi
10187 ;;
10188
10189osf3* | osf4* | osf5*)
10190 lt_cv_deplibs_check_method=pass_all
10191 ;;
10192
10193sco3.2v5*)
10194 lt_cv_deplibs_check_method=pass_all
10195 ;;
10196
10197solaris*)
10198 lt_cv_deplibs_check_method=pass_all
10199 ;;
10200
10201sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10202 case $host_vendor in
10203 motorola)
10204 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]'
10205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10206 ;;
10207 ncr)
10208 lt_cv_deplibs_check_method=pass_all
10209 ;;
10210 sequent)
10211 lt_cv_file_magic_cmd='/bin/file'
10212 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10213 ;;
10214 sni)
10215 lt_cv_file_magic_cmd='/bin/file'
10216 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10217 lt_cv_file_magic_test_file=/lib/libc.so
10218 ;;
10219 siemens)
10220 lt_cv_deplibs_check_method=pass_all
10221 ;;
10222 esac
10223 ;;
10224
10225sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10226 lt_cv_deplibs_check_method=pass_all
10227 ;;
10228esac
10229
10230fi
10231echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10232echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10233file_magic_cmd=$lt_cv_file_magic_cmd
10234deplibs_check_method=$lt_cv_deplibs_check_method
10235test -z "$deplibs_check_method" && deplibs_check_method=unknown
10236
10237
10238
10239# If no C compiler was specified, use CC.
10240LTCC=${LTCC-"$CC"}
10241
10242# Allow CC to be a program name with arguments.
10243compiler=$CC
10244
10245# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10246if test "${enable_libtool_lock+set}" = set; then
10247 enableval="$enable_libtool_lock"
10248
10249fi;
10250test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10251
10252# Some flags need to be propagated to the compiler or linker for good
10253# libtool support.
10254case $host in
10255ia64-*-hpux*)
10256 # Find out which ABI we are using.
10257 echo 'int i;' > conftest.$ac_ext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>&5
10260 ac_status=$?
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); }; then
10263 case `/usr/bin/file conftest.$ac_objext` in
10264 *ELF-32*)
10265 HPUX_IA64_MODE="32"
10266 ;;
10267 *ELF-64*)
10268 HPUX_IA64_MODE="64"
10269 ;;
10270 esac
10271 fi
10272 rm -rf conftest*
10273 ;;
10274*-*-irix6*)
10275 # Find out which ABI we are using.
Reid Spencer7b3e8512004-12-24 06:29:05 +000010276 echo '#line 10276 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278 (eval $ac_compile) 2>&5
10279 ac_status=$?
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; then
10282 if test "$lt_cv_prog_gnu_ld" = yes; then
10283 case `/usr/bin/file conftest.$ac_objext` in
10284 *32-bit*)
10285 LD="${LD-ld} -melf32bsmip"
10286 ;;
10287 *N32*)
10288 LD="${LD-ld} -melf32bmipn32"
10289 ;;
10290 *64-bit*)
10291 LD="${LD-ld} -melf64bmip"
10292 ;;
10293 esac
10294 else
10295 case `/usr/bin/file conftest.$ac_objext` in
10296 *32-bit*)
10297 LD="${LD-ld} -32"
10298 ;;
10299 *N32*)
10300 LD="${LD-ld} -n32"
10301 ;;
10302 *64-bit*)
10303 LD="${LD-ld} -64"
10304 ;;
10305 esac
10306 fi
10307 fi
10308 rm -rf conftest*
10309 ;;
10310
10311x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10312 # Find out which ABI we are using.
10313 echo 'int i;' > conftest.$ac_ext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315 (eval $ac_compile) 2>&5
10316 ac_status=$?
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; then
10319 case "`/usr/bin/file conftest.o`" in
10320 *32-bit*)
10321 case $host in
10322 x86_64-*linux*)
10323 LD="${LD-ld} -m elf_i386"
10324 ;;
10325 ppc64-*linux*|powerpc64-*linux*)
10326 LD="${LD-ld} -m elf32ppclinux"
10327 ;;
10328 s390x-*linux*)
10329 LD="${LD-ld} -m elf_s390"
10330 ;;
10331 sparc64-*linux*)
10332 LD="${LD-ld} -m elf32_sparc"
10333 ;;
10334 esac
10335 ;;
10336 *64-bit*)
10337 case $host in
10338 x86_64-*linux*)
10339 LD="${LD-ld} -m elf_x86_64"
10340 ;;
10341 ppc*-*linux*|powerpc*-*linux*)
10342 LD="${LD-ld} -m elf64ppc"
10343 ;;
10344 s390*-*linux*)
10345 LD="${LD-ld} -m elf64_s390"
10346 ;;
10347 sparc*-*linux*)
10348 LD="${LD-ld} -m elf64_sparc"
10349 ;;
10350 esac
10351 ;;
10352 esac
10353 fi
10354 rm -rf conftest*
10355 ;;
10356
10357*-*-sco3.2v5*)
10358 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10359 SAVE_CFLAGS="$CFLAGS"
10360 CFLAGS="$CFLAGS -belf"
10361 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10362echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10363if test "${lt_cv_cc_needs_belf+set}" = set; then
10364 echo $ECHO_N "(cached) $ECHO_C" >&6
10365else
10366 ac_ext=c
10367ac_cpp='$CPP $CPPFLAGS'
10368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10370ac_compiler_gnu=$ac_cv_c_compiler_gnu
10371
10372 cat >conftest.$ac_ext <<_ACEOF
10373/* confdefs.h. */
10374_ACEOF
10375cat confdefs.h >>conftest.$ac_ext
10376cat >>conftest.$ac_ext <<_ACEOF
10377/* end confdefs.h. */
10378
10379_ACEOF
10380rm -f conftest.$ac_objext conftest$ac_exeext
10381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10382 (eval $ac_link) 2>conftest.er1
10383 ac_status=$?
10384 grep -v '^ *+' conftest.er1 >conftest.err
10385 rm -f conftest.er1
10386 cat conftest.err >&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } &&
10389 { ac_try='test -z "$ac_c_werror_flag"
10390 || test ! -s conftest.err'
10391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392 (eval $ac_try) 2>&5
10393 ac_status=$?
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); }; } &&
10396 { ac_try='test -s conftest$ac_exeext'
10397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398 (eval $ac_try) 2>&5
10399 ac_status=$?
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); }; }; then
10402 lt_cv_cc_needs_belf=yes
10403else
10404 echo "$as_me: failed program was:" >&5
10405sed 's/^/| /' conftest.$ac_ext >&5
10406
10407lt_cv_cc_needs_belf=no
10408fi
10409rm -f conftest.err conftest.$ac_objext \
10410 conftest$ac_exeext conftest.$ac_ext
10411 ac_ext=c
10412ac_cpp='$CPP $CPPFLAGS'
10413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10415ac_compiler_gnu=$ac_cv_c_compiler_gnu
10416
10417fi
10418echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10419echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10420 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10421 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10422 CFLAGS="$SAVE_CFLAGS"
10423 fi
10424 ;;
10425
10426esac
10427
10428need_locks="$enable_libtool_lock"
10429
10430
Reid Spencer2706f8c2004-09-19 23:53:36 +000010431
10432
10433if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10434 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10435 (test "X$CXX" != "Xg++"))) ; then
10436 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010437ac_cpp='$CXXCPP $CPPFLAGS'
10438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10441echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10442echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10443if test -z "$CXXCPP"; then
10444 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010445 echo $ECHO_N "(cached) $ECHO_C" >&6
10446else
John Criswell47fdd832003-07-14 16:52:07 +000010447 # Double quotes because CXXCPP needs to be expanded
10448 for CXXCPP in "$CXX -E" "/lib/cpp"
10449 do
10450 ac_preproc_ok=false
10451for ac_cxx_preproc_warn_flag in '' yes
10452do
10453 # Use a header file that comes with gcc, so configuring glibc
10454 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010455 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10456 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010457 # On the NeXT, cc -E runs the code through the compiler's parser,
10458 # not just through cpp. "Syntax error" is here to catch this case.
10459 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010460/* confdefs.h. */
10461_ACEOF
10462cat confdefs.h >>conftest.$ac_ext
10463cat >>conftest.$ac_ext <<_ACEOF
10464/* end confdefs.h. */
10465#ifdef __STDC__
10466# include <limits.h>
10467#else
10468# include <assert.h>
10469#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010470 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010471_ACEOF
10472if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10473 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10474 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010475 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010476 rm -f conftest.er1
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } >/dev/null; then
10480 if test -s conftest.err; then
10481 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010482 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010483 else
John Criswell47fdd832003-07-14 16:52:07 +000010484 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010485 fi
John Criswell47fdd832003-07-14 16:52:07 +000010486else
10487 ac_cpp_err=yes
10488fi
10489if test -z "$ac_cpp_err"; then
10490 :
10491else
10492 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010493sed 's/^/| /' conftest.$ac_ext >&5
10494
John Criswell47fdd832003-07-14 16:52:07 +000010495 # Broken: fails on valid input.
10496continue
10497fi
10498rm -f conftest.err conftest.$ac_ext
10499
10500 # OK, works on sane cases. Now check whether non-existent headers
10501 # can be detected and how.
10502 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010503/* confdefs.h. */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010508#include <ac_nonexistent.h>
10509_ACEOF
10510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10512 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010513 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } >/dev/null; then
10518 if test -s conftest.err; then
10519 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010520 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010521 else
10522 ac_cpp_err=
10523 fi
10524else
10525 ac_cpp_err=yes
10526fi
10527if test -z "$ac_cpp_err"; then
10528 # Broken: success on invalid input.
10529continue
10530else
10531 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010532sed 's/^/| /' conftest.$ac_ext >&5
10533
John Criswell47fdd832003-07-14 16:52:07 +000010534 # Passes both tests.
10535ac_preproc_ok=:
10536break
10537fi
10538rm -f conftest.err conftest.$ac_ext
10539
10540done
10541# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10542rm -f conftest.err conftest.$ac_ext
10543if $ac_preproc_ok; then
10544 break
John Criswell7a73b802003-06-30 21:59:07 +000010545fi
10546
John Criswell47fdd832003-07-14 16:52:07 +000010547 done
10548 ac_cv_prog_CXXCPP=$CXXCPP
10549
10550fi
10551 CXXCPP=$ac_cv_prog_CXXCPP
10552else
10553 ac_cv_prog_CXXCPP=$CXXCPP
10554fi
10555echo "$as_me:$LINENO: result: $CXXCPP" >&5
10556echo "${ECHO_T}$CXXCPP" >&6
10557ac_preproc_ok=false
10558for ac_cxx_preproc_warn_flag in '' yes
10559do
10560 # Use a header file that comes with gcc, so configuring glibc
10561 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010562 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10563 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010564 # On the NeXT, cc -E runs the code through the compiler's parser,
10565 # not just through cpp. "Syntax error" is here to catch this case.
10566 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010567/* confdefs.h. */
10568_ACEOF
10569cat confdefs.h >>conftest.$ac_ext
10570cat >>conftest.$ac_ext <<_ACEOF
10571/* end confdefs.h. */
10572#ifdef __STDC__
10573# include <limits.h>
10574#else
10575# include <assert.h>
10576#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010577 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010578_ACEOF
10579if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10581 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010582 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } >/dev/null; then
10587 if test -s conftest.err; then
10588 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010589 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010590 else
10591 ac_cpp_err=
10592 fi
10593else
10594 ac_cpp_err=yes
10595fi
10596if test -z "$ac_cpp_err"; then
10597 :
10598else
10599 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010600sed 's/^/| /' conftest.$ac_ext >&5
10601
John Criswell47fdd832003-07-14 16:52:07 +000010602 # Broken: fails on valid input.
10603continue
10604fi
10605rm -f conftest.err conftest.$ac_ext
10606
10607 # OK, works on sane cases. Now check whether non-existent headers
10608 # can be detected and how.
10609 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010610/* confdefs.h. */
10611_ACEOF
10612cat confdefs.h >>conftest.$ac_ext
10613cat >>conftest.$ac_ext <<_ACEOF
10614/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010615#include <ac_nonexistent.h>
10616_ACEOF
10617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10619 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010620 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010621 rm -f conftest.er1
10622 cat conftest.err >&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } >/dev/null; then
10625 if test -s conftest.err; then
10626 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010627 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010628 else
10629 ac_cpp_err=
10630 fi
10631else
10632 ac_cpp_err=yes
10633fi
10634if test -z "$ac_cpp_err"; then
10635 # Broken: success on invalid input.
10636continue
10637else
10638 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010639sed 's/^/| /' conftest.$ac_ext >&5
10640
John Criswell47fdd832003-07-14 16:52:07 +000010641 # Passes both tests.
10642ac_preproc_ok=:
10643break
10644fi
10645rm -f conftest.err conftest.$ac_ext
10646
10647done
10648# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10649rm -f conftest.err conftest.$ac_ext
10650if $ac_preproc_ok; then
10651 :
10652else
John Criswell0c38eaf2003-09-10 15:17:25 +000010653 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10654See \`config.log' for more details." >&5
10655echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10656See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010657 { (exit 1); exit 1; }; }
10658fi
10659
10660ac_ext=cc
10661ac_cpp='$CXXCPP $CPPFLAGS'
10662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10665
Reid Spencer2706f8c2004-09-19 23:53:36 +000010666fi
10667
John Criswell47fdd832003-07-14 16:52:07 +000010668
10669ac_ext=f
10670ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10671ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10672ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10673if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010674 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 +000010675 do
10676 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10677set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10678echo "$as_me:$LINENO: checking for $ac_word" >&5
10679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10680if test "${ac_cv_prog_F77+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10682else
10683 if test -n "$F77"; then
10684 ac_cv_prog_F77="$F77" # Let the user override the test.
10685else
10686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687for as_dir in $PATH
10688do
10689 IFS=$as_save_IFS
10690 test -z "$as_dir" && as_dir=.
10691 for ac_exec_ext in '' $ac_executable_extensions; do
10692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10693 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10695 break 2
10696 fi
10697done
10698done
10699
10700fi
10701fi
10702F77=$ac_cv_prog_F77
10703if test -n "$F77"; then
10704 echo "$as_me:$LINENO: result: $F77" >&5
10705echo "${ECHO_T}$F77" >&6
10706else
10707 echo "$as_me:$LINENO: result: no" >&5
10708echo "${ECHO_T}no" >&6
10709fi
10710
10711 test -n "$F77" && break
10712 done
10713fi
10714if test -z "$F77"; then
10715 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010716 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 +000010717do
10718 # Extract the first word of "$ac_prog", so it can be a program name with args.
10719set dummy $ac_prog; ac_word=$2
10720echo "$as_me:$LINENO: checking for $ac_word" >&5
10721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10722if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10724else
10725 if test -n "$ac_ct_F77"; then
10726 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10727else
10728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729for as_dir in $PATH
10730do
10731 IFS=$as_save_IFS
10732 test -z "$as_dir" && as_dir=.
10733 for ac_exec_ext in '' $ac_executable_extensions; do
10734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10735 ac_cv_prog_ac_ct_F77="$ac_prog"
10736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10737 break 2
10738 fi
10739done
10740done
10741
10742fi
10743fi
10744ac_ct_F77=$ac_cv_prog_ac_ct_F77
10745if test -n "$ac_ct_F77"; then
10746 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10747echo "${ECHO_T}$ac_ct_F77" >&6
10748else
10749 echo "$as_me:$LINENO: result: no" >&5
10750echo "${ECHO_T}no" >&6
10751fi
10752
10753 test -n "$ac_ct_F77" && break
10754done
10755
10756 F77=$ac_ct_F77
10757fi
10758
10759
10760# Provide some information about the compiler.
Reid Spencer7b3e8512004-12-24 06:29:05 +000010761echo "$as_me:10761:" \
John Criswell47fdd832003-07-14 16:52:07 +000010762 "checking for Fortran 77 compiler version" >&5
10763ac_compiler=`set X $ac_compile; echo $2`
10764{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10765 (eval $ac_compiler --version </dev/null >&5) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }
10769{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10770 (eval $ac_compiler -v </dev/null >&5) 2>&5
10771 ac_status=$?
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); }
10774{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10775 (eval $ac_compiler -V </dev/null >&5) 2>&5
10776 ac_status=$?
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010779rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010780
10781# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010782# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010783ac_save_ext=$ac_ext
10784ac_ext=F
10785echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10786echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10787if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10789else
10790 cat >conftest.$ac_ext <<_ACEOF
10791 program main
10792#ifndef __GNUC__
10793 choke me
10794#endif
10795
10796 end
10797_ACEOF
10798rm -f conftest.$ac_objext
10799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010800 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010801 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010802 grep -v '^ *+' conftest.er1 >conftest.err
10803 rm -f conftest.er1
10804 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010807 { ac_try='test -z "$ac_f77_werror_flag"
10808 || test ! -s conftest.err'
10809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10810 (eval $ac_try) 2>&5
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); }; } &&
10814 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10820 ac_compiler_gnu=yes
10821else
10822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010823sed 's/^/| /' conftest.$ac_ext >&5
10824
John Criswell47fdd832003-07-14 16:52:07 +000010825ac_compiler_gnu=no
10826fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010828ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10829
10830fi
10831echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10832echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10833ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010834ac_test_FFLAGS=${FFLAGS+set}
10835ac_save_FFLAGS=$FFLAGS
10836FFLAGS=
10837echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10838echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10839if test "${ac_cv_prog_f77_g+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10841else
10842 FFLAGS=-g
10843cat >conftest.$ac_ext <<_ACEOF
10844 program main
10845
10846 end
10847_ACEOF
10848rm -f conftest.$ac_objext
10849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010850 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010851 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010852 grep -v '^ *+' conftest.er1 >conftest.err
10853 rm -f conftest.er1
10854 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010857 { ac_try='test -z "$ac_f77_werror_flag"
10858 || test ! -s conftest.err'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10861 ac_status=$?
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; } &&
10864 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866 (eval $ac_try) 2>&5
10867 ac_status=$?
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); }; }; then
10870 ac_cv_prog_f77_g=yes
10871else
10872 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010873sed 's/^/| /' conftest.$ac_ext >&5
10874
John Criswell47fdd832003-07-14 16:52:07 +000010875ac_cv_prog_f77_g=no
10876fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010878
10879fi
10880echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10881echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10882if test "$ac_test_FFLAGS" = set; then
10883 FFLAGS=$ac_save_FFLAGS
10884elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010885 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010886 FFLAGS="-g -O2"
10887 else
10888 FFLAGS="-g"
10889 fi
10890else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010891 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010892 FFLAGS="-O2"
10893 else
10894 FFLAGS=
10895 fi
10896fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010897
10898G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010899ac_ext=c
10900ac_cpp='$CPP $CPPFLAGS'
10901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10903ac_compiler_gnu=$ac_cv_c_compiler_gnu
10904
10905
10906
10907# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10908
10909# find the maximum length of command line arguments
10910echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10911echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10912if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914else
10915 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010916 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010917
10918 case $build_os in
10919 msdosdjgpp*)
10920 # On DJGPP, this test can blow up pretty badly due to problems in libc
10921 # (any single argument exceeding 2000 bytes causes a buffer overrun
10922 # during glob expansion). Even if it were fixed, the result of this
10923 # check would be larger than it should be.
10924 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10925 ;;
10926
10927 gnu*)
10928 # Under GNU Hurd, this test is not required because there is
10929 # no limit to the length of command line arguments.
10930 # Libtool will interpret -1 as no limit whatsoever
10931 lt_cv_sys_max_cmd_len=-1;
10932 ;;
10933
10934 cygwin* | mingw*)
10935 # On Win9x/ME, this test blows up -- it succeeds, but takes
10936 # about 5 minutes as the teststring grows exponentially.
10937 # Worse, since 9x/ME are not pre-emptively multitasking,
10938 # you end up with a "frozen" computer, even though with patience
10939 # the test eventually succeeds (with a max line length of 256k).
10940 # Instead, let's just punt: use the minimum linelength reported by
10941 # all of the supported platforms: 8192 (on NT/2K/XP).
10942 lt_cv_sys_max_cmd_len=8192;
10943 ;;
10944
Reid Spencer2706f8c2004-09-19 23:53:36 +000010945 amigaos*)
10946 # On AmigaOS with pdksh, this test takes hours, literally.
10947 # So we just punt and use a minimum line length of 8192.
10948 lt_cv_sys_max_cmd_len=8192;
10949 ;;
10950
10951 netbsd* | freebsd* | openbsd* | darwin* )
10952 # This has been around since 386BSD, at least. Likely further.
10953 if test -x /sbin/sysctl; then
10954 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10955 elif test -x /usr/sbin/sysctl; then
10956 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10957 else
10958 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10959 fi
10960 # And add a safety zone
10961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10962 ;;
10963
John Criswell47fdd832003-07-14 16:52:07 +000010964 *)
10965 # If test is not a shell built-in, we'll probably end up computing a
10966 # maximum length that is only half of the actual maximum length, but
10967 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010968 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10969 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10970 = "XX$teststring") >/dev/null 2>&1 &&
10971 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010972 lt_cv_sys_max_cmd_len=$new_result &&
10973 test $i != 17 # 1/2 MB should be enough
10974 do
10975 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010976 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010977 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010978 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010979 # Add a significant safety factor because C++ compilers can tack on massive
10980 # amounts of additional arguments before passing them to the linker.
10981 # It appears as though 1/2 is a usable value.
10982 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10983 ;;
10984 esac
10985
10986fi
10987
10988if test -n $lt_cv_sys_max_cmd_len ; then
10989 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10990echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10991else
10992 echo "$as_me:$LINENO: result: none" >&5
10993echo "${ECHO_T}none" >&6
10994fi
10995
10996
10997
10998
10999# Check for command to grab the raw symbol name followed by C symbol from nm.
11000echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11001echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11002if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11004else
11005
11006# These are sane defaults that work on at least a few old systems.
11007# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11008
11009# Character class describing NM global symbol codes.
11010symcode='[BCDEGRST]'
11011
11012# Regexp to match symbols that can be accessed directly from C.
11013sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11014
11015# Transform the above into a raw symbol and a C symbol.
11016symxfrm='\1 \2\3 \3'
11017
11018# Transform an extracted symbol line into a proper C declaration
11019lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11020
11021# Transform an extracted symbol line into symbol name and symbol address
11022lt_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'"
11023
11024# Define system-specific variables.
11025case $host_os in
11026aix*)
11027 symcode='[BCDT]'
11028 ;;
11029cygwin* | mingw* | pw32*)
11030 symcode='[ABCDGISTW]'
11031 ;;
11032hpux*) # Its linker distinguishes data from code symbols
11033 if test "$host_cpu" = ia64; then
11034 symcode='[ABCDEGRST]'
11035 fi
11036 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11037 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'"
11038 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011039linux*)
11040 if test "$host_cpu" = ia64; then
11041 symcode='[ABCDGIRSTW]'
11042 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11043 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'"
11044 fi
11045 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011046irix* | nonstopux*)
11047 symcode='[BCDEGRST]'
11048 ;;
11049osf*)
11050 symcode='[BCDEGQRST]'
11051 ;;
11052solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011053 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011054 ;;
11055sysv4)
11056 symcode='[DFNSTU]'
11057 ;;
11058esac
11059
11060# Handle CRLF in mingw tool chain
11061opt_cr=
11062case $build_os in
11063mingw*)
11064 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11065 ;;
11066esac
11067
11068# If we're using GNU nm, then use its standard symbol codes.
11069case `$NM -V 2>&1` in
11070*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011071 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011072esac
11073
11074# Try without a prefix undercore, then with it.
11075for ac_symprfx in "" "_"; do
11076
11077 # Write the raw and C identifiers.
11078 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11079
11080 # Check to see that the pipe works correctly.
11081 pipe_works=no
11082
11083 rm -f conftest*
11084 cat > conftest.$ac_ext <<EOF
11085#ifdef __cplusplus
11086extern "C" {
11087#endif
11088char nm_test_var;
11089void nm_test_func(){}
11090#ifdef __cplusplus
11091}
11092#endif
11093int main(){nm_test_var='a';nm_test_func();return(0);}
11094EOF
11095
11096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11097 (eval $ac_compile) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; then
11101 # Now try to grab the symbols.
11102 nlist=conftest.nm
11103 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11104 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); } && test -s "$nlist"; then
11108 # Try sorting and uniquifying the output.
11109 if sort "$nlist" | uniq > "$nlist"T; then
11110 mv -f "$nlist"T "$nlist"
11111 else
11112 rm -f "$nlist"T
11113 fi
11114
11115 # Make sure that we snagged all the symbols we need.
11116 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11117 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11118 cat <<EOF > conftest.$ac_ext
11119#ifdef __cplusplus
11120extern "C" {
11121#endif
11122
11123EOF
11124 # Now generate the symbol file.
11125 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11126
11127 cat <<EOF >> conftest.$ac_ext
11128#if defined (__STDC__) && __STDC__
11129# define lt_ptr_t void *
11130#else
11131# define lt_ptr_t char *
11132# define const
11133#endif
11134
11135/* The mapping between symbol names and symbols. */
11136const struct {
11137 const char *name;
11138 lt_ptr_t address;
11139}
11140lt_preloaded_symbols[] =
11141{
11142EOF
11143 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11144 cat <<\EOF >> conftest.$ac_ext
11145 {0, (lt_ptr_t) 0}
11146};
11147
11148#ifdef __cplusplus
11149}
11150#endif
11151EOF
11152 # Now try linking the two files.
11153 mv conftest.$ac_objext conftstm.$ac_objext
11154 lt_save_LIBS="$LIBS"
11155 lt_save_CFLAGS="$CFLAGS"
11156 LIBS="conftstm.$ac_objext"
11157 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11159 (eval $ac_link) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11163 pipe_works=yes
11164 fi
11165 LIBS="$lt_save_LIBS"
11166 CFLAGS="$lt_save_CFLAGS"
11167 else
11168 echo "cannot find nm_test_func in $nlist" >&5
11169 fi
11170 else
11171 echo "cannot find nm_test_var in $nlist" >&5
11172 fi
11173 else
11174 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11175 fi
11176 else
11177 echo "$progname: failed program was:" >&5
11178 cat conftest.$ac_ext >&5
11179 fi
11180 rm -f conftest* conftst*
11181
11182 # Do not use the global_symbol_pipe unless it works.
11183 if test "$pipe_works" = yes; then
11184 break
11185 else
11186 lt_cv_sys_global_symbol_pipe=
11187 fi
11188done
11189
11190fi
11191
11192if test -z "$lt_cv_sys_global_symbol_pipe"; then
11193 lt_cv_sys_global_symbol_to_cdecl=
11194fi
11195if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11196 echo "$as_me:$LINENO: result: failed" >&5
11197echo "${ECHO_T}failed" >&6
11198else
11199 echo "$as_me:$LINENO: result: ok" >&5
11200echo "${ECHO_T}ok" >&6
11201fi
11202
11203echo "$as_me:$LINENO: checking for objdir" >&5
11204echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11205if test "${lt_cv_objdir+set}" = set; then
11206 echo $ECHO_N "(cached) $ECHO_C" >&6
11207else
11208 rm -f .libs 2>/dev/null
11209mkdir .libs 2>/dev/null
11210if test -d .libs; then
11211 lt_cv_objdir=.libs
11212else
11213 # MS-DOS does not allow filenames that begin with a dot.
11214 lt_cv_objdir=_libs
11215fi
11216rmdir .libs 2>/dev/null
11217fi
11218echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11219echo "${ECHO_T}$lt_cv_objdir" >&6
11220objdir=$lt_cv_objdir
11221
11222
11223
11224
11225
11226case $host_os in
11227aix3*)
11228 # AIX sometimes has problems with the GCC collect2 program. For some
11229 # reason, if we set the COLLECT_NAMES environment variable, the problems
11230 # vanish in a puff of smoke.
11231 if test "X${COLLECT_NAMES+set}" != Xset; then
11232 COLLECT_NAMES=
11233 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011234 fi
11235 ;;
11236esac
11237
John Criswell47fdd832003-07-14 16:52:07 +000011238# Sed substitution that helps us do robust quoting. It backslashifies
11239# metacharacters that are still active within double-quoted strings.
11240Xsed='sed -e s/^X//'
11241sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11242
11243# Same as above, but do not quote variable references.
11244double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11245
11246# Sed substitution to delay expansion of an escaped shell variable in a
11247# double_quote_subst'ed string.
11248delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11249
11250# Sed substitution to avoid accidental globbing in evaled expressions
11251no_glob_subst='s/\*/\\\*/g'
11252
11253# Constants:
11254rm="rm -f"
11255
11256# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011257default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011258can_build_shared=yes
11259
11260# All known linkers require a `.a' archive for static linking (except M$VC,
11261# which needs '.lib').
11262libext=a
11263ltmain="$ac_aux_dir/ltmain.sh"
11264ofile="$default_ofile"
11265with_gnu_ld="$lt_cv_prog_gnu_ld"
11266
11267if test -n "$ac_tool_prefix"; then
11268 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11269set dummy ${ac_tool_prefix}ar; ac_word=$2
11270echo "$as_me:$LINENO: checking for $ac_word" >&5
11271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11272if test "${ac_cv_prog_AR+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274else
11275 if test -n "$AR"; then
11276 ac_cv_prog_AR="$AR" # Let the user override the test.
11277else
11278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11279for as_dir in $PATH
11280do
11281 IFS=$as_save_IFS
11282 test -z "$as_dir" && as_dir=.
11283 for ac_exec_ext in '' $ac_executable_extensions; do
11284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11285 ac_cv_prog_AR="${ac_tool_prefix}ar"
11286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 break 2
11288 fi
11289done
11290done
11291
11292fi
11293fi
11294AR=$ac_cv_prog_AR
11295if test -n "$AR"; then
11296 echo "$as_me:$LINENO: result: $AR" >&5
11297echo "${ECHO_T}$AR" >&6
11298else
11299 echo "$as_me:$LINENO: result: no" >&5
11300echo "${ECHO_T}no" >&6
11301fi
11302
11303fi
11304if test -z "$ac_cv_prog_AR"; then
11305 ac_ct_AR=$AR
11306 # Extract the first word of "ar", so it can be a program name with args.
11307set dummy ar; ac_word=$2
11308echo "$as_me:$LINENO: checking for $ac_word" >&5
11309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11310if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11311 echo $ECHO_N "(cached) $ECHO_C" >&6
11312else
11313 if test -n "$ac_ct_AR"; then
11314 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11315else
11316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317for as_dir in $PATH
11318do
11319 IFS=$as_save_IFS
11320 test -z "$as_dir" && as_dir=.
11321 for ac_exec_ext in '' $ac_executable_extensions; do
11322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11323 ac_cv_prog_ac_ct_AR="ar"
11324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11325 break 2
11326 fi
11327done
11328done
11329
11330 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11331fi
11332fi
11333ac_ct_AR=$ac_cv_prog_ac_ct_AR
11334if test -n "$ac_ct_AR"; then
11335 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11336echo "${ECHO_T}$ac_ct_AR" >&6
11337else
11338 echo "$as_me:$LINENO: result: no" >&5
11339echo "${ECHO_T}no" >&6
11340fi
11341
11342 AR=$ac_ct_AR
11343else
11344 AR="$ac_cv_prog_AR"
11345fi
11346
John Criswell7a73b802003-06-30 21:59:07 +000011347if test -n "$ac_tool_prefix"; then
11348 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11349set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11350echo "$as_me:$LINENO: checking for $ac_word" >&5
11351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11352if test "${ac_cv_prog_RANLIB+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354else
11355 if test -n "$RANLIB"; then
11356 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11357else
11358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359for as_dir in $PATH
11360do
11361 IFS=$as_save_IFS
11362 test -z "$as_dir" && as_dir=.
11363 for ac_exec_ext in '' $ac_executable_extensions; do
11364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11365 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11367 break 2
11368 fi
11369done
11370done
11371
11372fi
11373fi
11374RANLIB=$ac_cv_prog_RANLIB
11375if test -n "$RANLIB"; then
11376 echo "$as_me:$LINENO: result: $RANLIB" >&5
11377echo "${ECHO_T}$RANLIB" >&6
11378else
11379 echo "$as_me:$LINENO: result: no" >&5
11380echo "${ECHO_T}no" >&6
11381fi
11382
11383fi
11384if test -z "$ac_cv_prog_RANLIB"; then
11385 ac_ct_RANLIB=$RANLIB
11386 # Extract the first word of "ranlib", so it can be a program name with args.
11387set dummy ranlib; ac_word=$2
11388echo "$as_me:$LINENO: checking for $ac_word" >&5
11389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11390if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11391 echo $ECHO_N "(cached) $ECHO_C" >&6
11392else
11393 if test -n "$ac_ct_RANLIB"; then
11394 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11395else
11396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397for as_dir in $PATH
11398do
11399 IFS=$as_save_IFS
11400 test -z "$as_dir" && as_dir=.
11401 for ac_exec_ext in '' $ac_executable_extensions; do
11402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11403 ac_cv_prog_ac_ct_RANLIB="ranlib"
11404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11405 break 2
11406 fi
11407done
11408done
11409
11410 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11411fi
11412fi
11413ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11414if test -n "$ac_ct_RANLIB"; then
11415 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11416echo "${ECHO_T}$ac_ct_RANLIB" >&6
11417else
11418 echo "$as_me:$LINENO: result: no" >&5
11419echo "${ECHO_T}no" >&6
11420fi
11421
11422 RANLIB=$ac_ct_RANLIB
11423else
11424 RANLIB="$ac_cv_prog_RANLIB"
11425fi
11426
11427if test -n "$ac_tool_prefix"; then
11428 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11429set dummy ${ac_tool_prefix}strip; ac_word=$2
11430echo "$as_me:$LINENO: checking for $ac_word" >&5
11431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11432if test "${ac_cv_prog_STRIP+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11434else
11435 if test -n "$STRIP"; then
11436 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11437else
11438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11439for as_dir in $PATH
11440do
11441 IFS=$as_save_IFS
11442 test -z "$as_dir" && as_dir=.
11443 for ac_exec_ext in '' $ac_executable_extensions; do
11444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11445 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11447 break 2
11448 fi
11449done
11450done
11451
11452fi
11453fi
11454STRIP=$ac_cv_prog_STRIP
11455if test -n "$STRIP"; then
11456 echo "$as_me:$LINENO: result: $STRIP" >&5
11457echo "${ECHO_T}$STRIP" >&6
11458else
11459 echo "$as_me:$LINENO: result: no" >&5
11460echo "${ECHO_T}no" >&6
11461fi
11462
11463fi
11464if test -z "$ac_cv_prog_STRIP"; then
11465 ac_ct_STRIP=$STRIP
11466 # Extract the first word of "strip", so it can be a program name with args.
11467set dummy strip; ac_word=$2
11468echo "$as_me:$LINENO: checking for $ac_word" >&5
11469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11470if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11472else
11473 if test -n "$ac_ct_STRIP"; then
11474 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11475else
11476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $PATH
11478do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
11482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11483 ac_cv_prog_ac_ct_STRIP="strip"
11484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11486 fi
11487done
11488done
11489
11490 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11491fi
11492fi
11493ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11494if test -n "$ac_ct_STRIP"; then
11495 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11496echo "${ECHO_T}$ac_ct_STRIP" >&6
11497else
11498 echo "$as_me:$LINENO: result: no" >&5
11499echo "${ECHO_T}no" >&6
11500fi
11501
11502 STRIP=$ac_ct_STRIP
11503else
11504 STRIP="$ac_cv_prog_STRIP"
11505fi
11506
11507
John Criswell7a73b802003-06-30 21:59:07 +000011508old_CC="$CC"
11509old_CFLAGS="$CFLAGS"
11510
11511# Set sane defaults for various variables
11512test -z "$AR" && AR=ar
11513test -z "$AR_FLAGS" && AR_FLAGS=cru
11514test -z "$AS" && AS=as
11515test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011516test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011517test -z "$DLLTOOL" && DLLTOOL=dlltool
11518test -z "$LD" && LD=ld
11519test -z "$LN_S" && LN_S="ln -s"
11520test -z "$MAGIC_CMD" && MAGIC_CMD=file
11521test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011522test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011523test -z "$OBJDUMP" && OBJDUMP=objdump
11524test -z "$RANLIB" && RANLIB=:
11525test -z "$STRIP" && STRIP=:
11526test -z "$ac_objext" && ac_objext=o
11527
John Criswell7a73b802003-06-30 21:59:07 +000011528# Determine commands to create old-style static archives.
11529old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11530old_postinstall_cmds='chmod 644 $oldlib'
11531old_postuninstall_cmds=
11532
11533if test -n "$RANLIB"; then
11534 case $host_os in
11535 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011536 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011537 ;;
11538 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011539 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011540 ;;
11541 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011542 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011543fi
11544
Reid Spencer2706f8c2004-09-19 23:53:36 +000011545cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11546
John Criswell47fdd832003-07-14 16:52:07 +000011547# Only perform the check for file, if the check method requires it
11548case $deplibs_check_method in
11549file_magic*)
11550 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11551 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11552echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11553if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011555else
John Criswell47fdd832003-07-14 16:52:07 +000011556 case $MAGIC_CMD in
11557[\\/*] | ?:[\\/]*)
11558 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11559 ;;
11560*)
11561 lt_save_MAGIC_CMD="$MAGIC_CMD"
11562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11563 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11564 for ac_dir in $ac_dummy; do
11565 IFS="$lt_save_ifs"
11566 test -z "$ac_dir" && ac_dir=.
11567 if test -f $ac_dir/${ac_tool_prefix}file; then
11568 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11569 if test -n "$file_magic_test_file"; then
11570 case $deplibs_check_method in
11571 "file_magic "*)
11572 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11574 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11575 $EGREP "$file_magic_regex" > /dev/null; then
11576 :
11577 else
11578 cat <<EOF 1>&2
11579
11580*** Warning: the command libtool uses to detect shared libraries,
11581*** $file_magic_cmd, produces output that libtool cannot recognize.
11582*** The result is that libtool may fail to recognize shared libraries
11583*** as such. This will affect the creation of libtool libraries that
11584*** depend on shared libraries, but programs linked with such libtool
11585*** libraries will work regardless of this problem. Nevertheless, you
11586*** may want to report the problem to your system manager and/or to
11587*** bug-libtool@gnu.org
11588
11589EOF
11590 fi ;;
11591 esac
11592 fi
11593 break
11594 fi
11595 done
11596 IFS="$lt_save_ifs"
11597 MAGIC_CMD="$lt_save_MAGIC_CMD"
11598 ;;
11599esac
John Criswell7a73b802003-06-30 21:59:07 +000011600fi
John Criswell7a73b802003-06-30 21:59:07 +000011601
John Criswell47fdd832003-07-14 16:52:07 +000011602MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11603if test -n "$MAGIC_CMD"; then
11604 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11605echo "${ECHO_T}$MAGIC_CMD" >&6
11606else
11607 echo "$as_me:$LINENO: result: no" >&5
11608echo "${ECHO_T}no" >&6
11609fi
John Criswell7a73b802003-06-30 21:59:07 +000011610
John Criswell47fdd832003-07-14 16:52:07 +000011611if test -z "$lt_cv_path_MAGIC_CMD"; then
11612 if test -n "$ac_tool_prefix"; then
11613 echo "$as_me:$LINENO: checking for file" >&5
11614echo $ECHO_N "checking for file... $ECHO_C" >&6
11615if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11617else
11618 case $MAGIC_CMD in
11619[\\/*] | ?:[\\/]*)
11620 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11621 ;;
11622*)
11623 lt_save_MAGIC_CMD="$MAGIC_CMD"
11624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11625 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11626 for ac_dir in $ac_dummy; do
11627 IFS="$lt_save_ifs"
11628 test -z "$ac_dir" && ac_dir=.
11629 if test -f $ac_dir/file; then
11630 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11631 if test -n "$file_magic_test_file"; then
11632 case $deplibs_check_method in
11633 "file_magic "*)
11634 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11635 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11636 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11637 $EGREP "$file_magic_regex" > /dev/null; then
11638 :
11639 else
11640 cat <<EOF 1>&2
11641
11642*** Warning: the command libtool uses to detect shared libraries,
11643*** $file_magic_cmd, produces output that libtool cannot recognize.
11644*** The result is that libtool may fail to recognize shared libraries
11645*** as such. This will affect the creation of libtool libraries that
11646*** depend on shared libraries, but programs linked with such libtool
11647*** libraries will work regardless of this problem. Nevertheless, you
11648*** may want to report the problem to your system manager and/or to
11649*** bug-libtool@gnu.org
11650
11651EOF
11652 fi ;;
11653 esac
11654 fi
11655 break
11656 fi
11657 done
11658 IFS="$lt_save_ifs"
11659 MAGIC_CMD="$lt_save_MAGIC_CMD"
11660 ;;
11661esac
11662fi
11663
11664MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11665if test -n "$MAGIC_CMD"; then
11666 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11667echo "${ECHO_T}$MAGIC_CMD" >&6
11668else
11669 echo "$as_me:$LINENO: result: no" >&5
11670echo "${ECHO_T}no" >&6
11671fi
11672
11673 else
11674 MAGIC_CMD=:
11675 fi
11676fi
11677
11678 fi
11679 ;;
11680esac
11681
Reid Spencer17795972004-11-18 09:47:37 +000011682enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011683enable_win32_dll=no
11684
11685# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11686if test "${enable_libtool_lock+set}" = set; then
11687 enableval="$enable_libtool_lock"
11688
11689fi;
11690test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11691
John Criswell7a73b802003-06-30 21:59:07 +000011692
11693# Check whether --with-pic or --without-pic was given.
11694if test "${with_pic+set}" = set; then
11695 withval="$with_pic"
11696 pic_mode="$withval"
11697else
11698 pic_mode=default
11699fi;
11700test -z "$pic_mode" && pic_mode=default
11701
John Criswell47fdd832003-07-14 16:52:07 +000011702# Use C for the default configuration in the libtool script
11703tagname=
11704lt_save_CC="$CC"
11705ac_ext=c
11706ac_cpp='$CPP $CPPFLAGS'
11707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11709ac_compiler_gnu=$ac_cv_c_compiler_gnu
11710
11711
11712# Source file extension for C test sources.
11713ac_ext=c
11714
11715# Object file extension for compiled C test sources.
11716objext=o
11717objext=$objext
11718
11719# Code to be used in simple compile tests
11720lt_simple_compile_test_code="int some_variable = 0;\n"
11721
11722# Code to be used in simple link tests
11723lt_simple_link_test_code='int main(){return(0);}\n'
11724
11725
11726# If no C compiler was specified, use CC.
11727LTCC=${LTCC-"$CC"}
11728
11729# Allow CC to be a program name with arguments.
11730compiler=$CC
11731
11732
11733#
11734# Check for any special shared library compilation flags.
11735#
11736lt_prog_cc_shlib=
11737if test "$GCC" = no; then
11738 case $host_os in
11739 sco3.2v5*)
11740 lt_prog_cc_shlib='-belf'
11741 ;;
11742 esac
11743fi
11744if test -n "$lt_prog_cc_shlib"; then
11745 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11746echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11747 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11748 else
11749 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11750echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11751 lt_cv_prog_cc_can_build_shared=no
11752 fi
11753fi
11754
11755
11756#
11757# Check to make sure the static flag actually works.
11758#
11759echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11760echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11761if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763else
John Criswell47fdd832003-07-14 16:52:07 +000011764 lt_prog_compiler_static_works=no
11765 save_LDFLAGS="$LDFLAGS"
11766 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11767 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11768 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; 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 conftest.err; then
11772 # Append any errors to the config.log.
11773 cat conftest.err 1>&5
11774 else
11775 lt_prog_compiler_static_works=yes
11776 fi
11777 fi
11778 $rm conftest*
11779 LDFLAGS="$save_LDFLAGS"
11780
11781fi
11782echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11783echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11784
11785if test x"$lt_prog_compiler_static_works" = xyes; then
11786 :
11787else
11788 lt_prog_compiler_static=
11789fi
11790
11791
11792
John Criswell47fdd832003-07-14 16:52:07 +000011793
11794lt_prog_compiler_no_builtin_flag=
11795
11796if test "$GCC" = yes; then
11797 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11798
Reid Spencer2706f8c2004-09-19 23:53:36 +000011799
11800echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011801echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11802if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11804else
11805 lt_cv_prog_compiler_rtti_exceptions=no
11806 ac_outfile=conftest.$ac_objext
11807 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11808 lt_compiler_flag="-fno-rtti -fno-exceptions"
11809 # Insert the option either (1) after the last *FLAGS variable, or
11810 # (2) before a word containing "conftest.", or (3) at the end.
11811 # Note that $ac_compile itself does not contain backslashes and begins
11812 # with a dollar sign (not a hyphen), so the echo should work correctly.
11813 # The option is referenced via a variable to avoid confusing sed.
11814 lt_compile=`echo "$ac_compile" | $SED \
11815 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11817 -e 's:$: $lt_compiler_flag:'`
Reid Spencer7b3e8512004-12-24 06:29:05 +000011818 (eval echo "\"\$as_me:11818: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011819 (eval "$lt_compile" 2>conftest.err)
11820 ac_status=$?
11821 cat conftest.err >&5
Reid Spencer7b3e8512004-12-24 06:29:05 +000011822 echo "$as_me:11822: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011823 if (exit $ac_status) && test -s "$ac_outfile"; then
11824 # The compiler can only warn and ignore the option if not recognized
11825 # So say no if there are warnings
11826 if test ! -s conftest.err; then
11827 lt_cv_prog_compiler_rtti_exceptions=yes
11828 fi
11829 fi
11830 $rm conftest*
11831
11832fi
11833echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11834echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11835
11836if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11837 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11838else
11839 :
11840fi
11841
11842fi
11843
11844lt_prog_compiler_wl=
11845lt_prog_compiler_pic=
11846lt_prog_compiler_static=
11847
11848echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11849echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011850
11851 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011852 lt_prog_compiler_wl='-Wl,'
11853 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011854
11855 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011856 aix*)
11857 # All AIX code is PIC.
11858 if test "$host_cpu" = ia64; then
11859 # AIX 5 now supports IA64 processor
11860 lt_prog_compiler_static='-Bstatic'
11861 fi
John Criswell7a73b802003-06-30 21:59:07 +000011862 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011863
John Criswell7a73b802003-06-30 21:59:07 +000011864 amigaos*)
11865 # FIXME: we need at least 68020 code to build shared libraries, but
11866 # adding the `-m68020' flag to GCC prevents building anything better,
11867 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011868 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011869 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011870
11871 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011872 # PIC is the default for these OSes.
11873 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011874
11875 mingw* | pw32* | os2*)
11876 # This hack is so that the source file can tell whether it is being
11877 # built for inclusion in a dll (and should export symbols for example).
11878 lt_prog_compiler_pic='-DDLL_EXPORT'
11879 ;;
11880
John Criswell7a73b802003-06-30 21:59:07 +000011881 darwin* | rhapsody*)
11882 # PIC is the default on this platform
11883 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011884 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011885 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011886
11887 msdosdjgpp*)
11888 # Just because we use GCC doesn't mean we suddenly get shared libraries
11889 # on systems that don't support them.
11890 lt_prog_compiler_can_build_shared=no
11891 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011892 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011893
John Criswell7a73b802003-06-30 21:59:07 +000011894 sysv4*MP*)
11895 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011896 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011897 fi
11898 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011899
11900 hpux*)
11901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11902 # not for PA HP-UX.
11903 case "$host_cpu" in
11904 hppa*64*|ia64*)
11905 # +Z the default
11906 ;;
11907 *)
11908 lt_prog_compiler_pic='-fPIC'
11909 ;;
11910 esac
11911 ;;
11912
John Criswell7a73b802003-06-30 21:59:07 +000011913 *)
John Criswell47fdd832003-07-14 16:52:07 +000011914 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011915 ;;
11916 esac
11917 else
John Criswell47fdd832003-07-14 16:52:07 +000011918 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011919 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011920 aix*)
11921 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011922 if test "$host_cpu" = ia64; then
11923 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011924 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011925 else
John Criswell47fdd832003-07-14 16:52:07 +000011926 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011927 fi
11928 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011929 darwin*)
11930 # PIC is the default on this platform
11931 # Common symbols not allowed in MH_DYLIB files
11932 case "$cc_basename" in
11933 xlc*)
11934 lt_prog_compiler_pic='-qnocommon'
11935 lt_prog_compiler_wl='-Wl,'
11936 ;;
11937 esac
11938 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011939
John Criswell47fdd832003-07-14 16:52:07 +000011940 mingw* | pw32* | os2*)
11941 # This hack is so that the source file can tell whether it is being
11942 # built for inclusion in a dll (and should export symbols for example).
11943 lt_prog_compiler_pic='-DDLL_EXPORT'
11944 ;;
11945
John Criswell7a73b802003-06-30 21:59:07 +000011946 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011947 lt_prog_compiler_wl='-Wl,'
11948 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11949 # not for PA HP-UX.
11950 case "$host_cpu" in
11951 hppa*64*|ia64*)
11952 # +Z the default
11953 ;;
11954 *)
11955 lt_prog_compiler_pic='+Z'
11956 ;;
11957 esac
11958 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11959 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011960 ;;
11961
John Criswell47fdd832003-07-14 16:52:07 +000011962 irix5* | irix6* | nonstopux*)
11963 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011964 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011965 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011966 ;;
11967
11968 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011969 lt_prog_compiler_pic='-KPIC'
11970 lt_prog_compiler_static='-Bstatic'
11971 ;;
11972
11973 linux*)
11974 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011975 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011976 lt_prog_compiler_wl='-Wl,'
11977 lt_prog_compiler_pic='-KPIC'
11978 lt_prog_compiler_static='-static'
11979 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011980 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011981 lt_prog_compiler_wl='-Wl,'
11982 # All Alpha code is PIC.
11983 lt_prog_compiler_static='-non_shared'
11984 ;;
11985 esac
John Criswell7a73b802003-06-30 21:59:07 +000011986 ;;
11987
11988 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011989 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011990 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011991 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011992 ;;
11993
11994 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011995 lt_prog_compiler_pic='-Kpic'
11996 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011997 ;;
11998
11999 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012000 lt_prog_compiler_wl='-Wl,'
12001 lt_prog_compiler_pic='-KPIC'
12002 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012003 ;;
12004
12005 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012006 lt_prog_compiler_wl='-Qoption ld '
12007 lt_prog_compiler_pic='-PIC'
12008 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012009 ;;
12010
12011 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012012 lt_prog_compiler_wl='-Wl,'
12013 lt_prog_compiler_pic='-KPIC'
12014 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012015 ;;
12016
12017 sysv4*MP*)
12018 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012019 lt_prog_compiler_pic='-Kconform_pic'
12020 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012021 fi
12022 ;;
12023
John Criswell47fdd832003-07-14 16:52:07 +000012024 uts4*)
12025 lt_prog_compiler_pic='-pic'
12026 lt_prog_compiler_static='-Bstatic'
12027 ;;
12028
John Criswell7a73b802003-06-30 21:59:07 +000012029 *)
John Criswell47fdd832003-07-14 16:52:07 +000012030 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012031 ;;
12032 esac
12033 fi
12034
John Criswell47fdd832003-07-14 16:52:07 +000012035echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12036echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012037
John Criswell47fdd832003-07-14 16:52:07 +000012038#
12039# Check to make sure the PIC flag actually works.
12040#
12041if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012042
12043echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012044echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12045if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012046 echo $ECHO_N "(cached) $ECHO_C" >&6
12047else
John Criswell47fdd832003-07-14 16:52:07 +000012048 lt_prog_compiler_pic_works=no
12049 ac_outfile=conftest.$ac_objext
12050 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12051 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12052 # Insert the option either (1) after the last *FLAGS variable, or
12053 # (2) before a word containing "conftest.", or (3) at the end.
12054 # Note that $ac_compile itself does not contain backslashes and begins
12055 # with a dollar sign (not a hyphen), so the echo should work correctly.
12056 # The option is referenced via a variable to avoid confusing sed.
12057 lt_compile=`echo "$ac_compile" | $SED \
12058 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12060 -e 's:$: $lt_compiler_flag:'`
Reid Spencer7b3e8512004-12-24 06:29:05 +000012061 (eval echo "\"\$as_me:12061: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012062 (eval "$lt_compile" 2>conftest.err)
12063 ac_status=$?
12064 cat conftest.err >&5
Reid Spencer7b3e8512004-12-24 06:29:05 +000012065 echo "$as_me:12065: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012066 if (exit $ac_status) && test -s "$ac_outfile"; then
12067 # The compiler can only warn and ignore the option if not recognized
12068 # So say no if there are warnings
12069 if test ! -s conftest.err; then
12070 lt_prog_compiler_pic_works=yes
12071 fi
12072 fi
12073 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012074
John Criswell47fdd832003-07-14 16:52:07 +000012075fi
12076echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12077echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012078
John Criswell47fdd832003-07-14 16:52:07 +000012079if test x"$lt_prog_compiler_pic_works" = xyes; then
12080 case $lt_prog_compiler_pic in
12081 "" | " "*) ;;
12082 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12083 esac
John Criswell7a73b802003-06-30 21:59:07 +000012084else
John Criswell47fdd832003-07-14 16:52:07 +000012085 lt_prog_compiler_pic=
12086 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012087fi
12088
John Criswell7a73b802003-06-30 21:59:07 +000012089fi
John Criswell47fdd832003-07-14 16:52:07 +000012090case "$host_os" in
12091 # For platforms which do not support PIC, -DPIC is meaningless:
12092 *djgpp*)
12093 lt_prog_compiler_pic=
12094 ;;
12095 *)
12096 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12097 ;;
12098esac
John Criswell7a73b802003-06-30 21:59:07 +000012099
John Criswell7a73b802003-06-30 21:59:07 +000012100echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12101echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012102if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012103 echo $ECHO_N "(cached) $ECHO_C" >&6
12104else
John Criswell47fdd832003-07-14 16:52:07 +000012105 lt_cv_prog_compiler_c_o=no
12106 $rm -r conftest 2>/dev/null
12107 mkdir conftest
12108 cd conftest
12109 mkdir out
12110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012111
John Criswell47fdd832003-07-14 16:52:07 +000012112 lt_compiler_flag="-o out/conftest2.$ac_objext"
12113 # Insert the option either (1) after the last *FLAGS variable, or
12114 # (2) before a word containing "conftest.", or (3) at the end.
12115 # Note that $ac_compile itself does not contain backslashes and begins
12116 # with a dollar sign (not a hyphen), so the echo should work correctly.
12117 lt_compile=`echo "$ac_compile" | $SED \
12118 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12119 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12120 -e 's:$: $lt_compiler_flag:'`
Reid Spencer7b3e8512004-12-24 06:29:05 +000012121 (eval echo "\"\$as_me:12121: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012122 (eval "$lt_compile" 2>out/conftest.err)
12123 ac_status=$?
12124 cat out/conftest.err >&5
Reid Spencer7b3e8512004-12-24 06:29:05 +000012125 echo "$as_me:12125: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012126 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12127 then
12128 # The compiler can only warn and ignore the option if not recognized
12129 # So say no if there are warnings
12130 if test ! -s out/conftest.err; then
12131 lt_cv_prog_compiler_c_o=yes
12132 fi
12133 fi
12134 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012135 $rm conftest*
12136 # SGI C++ compiler will create directory out/ii_files/ for
12137 # template instantiation
12138 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12139 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012140 cd ..
12141 rmdir conftest
12142 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012143
12144fi
John Criswell47fdd832003-07-14 16:52:07 +000012145echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12146echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012147
John Criswell7a73b802003-06-30 21:59:07 +000012148
John Criswell7a73b802003-06-30 21:59:07 +000012149hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012150if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012151 # do not overwrite the value of need_locks provided by the user
12152 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12153echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12154 hard_links=yes
12155 $rm conftest*
12156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12157 touch conftest.a
12158 ln conftest.a conftest.b 2>&5 || hard_links=no
12159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12160 echo "$as_me:$LINENO: result: $hard_links" >&5
12161echo "${ECHO_T}$hard_links" >&6
12162 if test "$hard_links" = no; then
12163 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12164echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12165 need_locks=warn
12166 fi
12167else
12168 need_locks=no
12169fi
John Criswell7a73b802003-06-30 21:59:07 +000012170
John Criswell47fdd832003-07-14 16:52:07 +000012171echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12172echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12173
12174 runpath_var=
12175 allow_undefined_flag=
12176 enable_shared_with_static_runtimes=no
12177 archive_cmds=
12178 archive_expsym_cmds=
12179 old_archive_From_new_cmds=
12180 old_archive_from_expsyms_cmds=
12181 export_dynamic_flag_spec=
12182 whole_archive_flag_spec=
12183 thread_safe_flag_spec=
12184 hardcode_libdir_flag_spec=
12185 hardcode_libdir_flag_spec_ld=
12186 hardcode_libdir_separator=
12187 hardcode_direct=no
12188 hardcode_minus_L=no
12189 hardcode_shlibpath_var=unsupported
12190 link_all_deplibs=unknown
12191 hardcode_automatic=no
12192 module_cmds=
12193 module_expsym_cmds=
12194 always_export_symbols=no
12195 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12196 # include_expsyms should be a list of space-separated symbols to be *always*
12197 # included in the symbol list
12198 include_expsyms=
12199 # exclude_expsyms can be an extended regexp of symbols to exclude
12200 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12201 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12202 # as well as any symbol that contains `d'.
12203 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12204 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12205 # platforms (ab)use it in PIC code, but their linkers get confused if
12206 # the symbol is explicitly referenced. Since portable code cannot
12207 # rely on this symbol name, it's probably fine to never include it in
12208 # preloaded symbol tables.
12209 extract_expsyms_cmds=
12210
12211 case $host_os in
12212 cygwin* | mingw* | pw32*)
12213 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12214 # When not using gcc, we currently assume that we are using
12215 # Microsoft Visual C++.
12216 if test "$GCC" != yes; then
12217 with_gnu_ld=no
12218 fi
12219 ;;
12220 openbsd*)
12221 with_gnu_ld=no
12222 ;;
12223 esac
12224
12225 ld_shlibs=yes
12226 if test "$with_gnu_ld" = yes; then
12227 # If archive_cmds runs LD, not CC, wlarc should be empty
12228 wlarc='${wl}'
12229
12230 # See if GNU ld supports shared libraries.
12231 case $host_os in
12232 aix3* | aix4* | aix5*)
12233 # On AIX/PPC, the GNU linker is very broken
12234 if test "$host_cpu" != ia64; then
12235 ld_shlibs=no
12236 cat <<EOF 1>&2
12237
12238*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12239*** to be unable to reliably create shared libraries on AIX.
12240*** Therefore, libtool is disabling shared libraries support. If you
12241*** really care for shared libraries, you may want to modify your PATH
12242*** so that a non-GNU linker is found, and then restart.
12243
12244EOF
12245 fi
12246 ;;
12247
12248 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012249 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 +000012250 hardcode_libdir_flag_spec='-L$libdir'
12251 hardcode_minus_L=yes
12252
12253 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12254 # that the semantics of dynamic libraries on AmigaOS, at least up
12255 # to version 4, is to share data among multiple programs linked
12256 # with the same dynamic library. Since this doesn't match the
12257 # behavior of shared libraries on other platforms, we can't use
12258 # them.
12259 ld_shlibs=no
12260 ;;
12261
12262 beos*)
12263 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12264 allow_undefined_flag=unsupported
12265 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12266 # support --undefined. This deserves some investigation. FIXME
12267 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12268 else
12269 ld_shlibs=no
12270 fi
12271 ;;
12272
12273 cygwin* | mingw* | pw32*)
12274 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12275 # as there is no search path for DLLs.
12276 hardcode_libdir_flag_spec='-L$libdir'
12277 allow_undefined_flag=unsupported
12278 always_export_symbols=no
12279 enable_shared_with_static_runtimes=yes
12280 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12281
12282 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12284 # If the export-symbols file already is a .def file (1st line
12285 # is EXPORTS), use it as is; otherwise, prepend...
12286 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12287 cp $export_symbols $output_objdir/$soname.def;
12288 else
12289 echo EXPORTS > $output_objdir/$soname.def;
12290 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012291 fi~
12292 $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 +000012293 else
12294 ld_shlibs=no
12295 fi
12296 ;;
12297
12298 netbsd*)
12299 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12300 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12301 wlarc=
12302 else
12303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12305 fi
12306 ;;
12307
12308 solaris* | sysv5*)
12309 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12310 ld_shlibs=no
12311 cat <<EOF 1>&2
12312
12313*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12314*** create shared libraries on Solaris systems. Therefore, libtool
12315*** is disabling shared libraries support. We urge you to upgrade GNU
12316*** binutils to release 2.9.1 or newer. Another option is to modify
12317*** your PATH or compiler configuration so that the native linker is
12318*** used, and then restart.
12319
12320EOF
12321 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12322 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12323 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12324 else
12325 ld_shlibs=no
12326 fi
12327 ;;
12328
12329 sunos4*)
12330 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12331 wlarc=
12332 hardcode_direct=yes
12333 hardcode_shlibpath_var=no
12334 ;;
12335
Reid Spencer2706f8c2004-09-19 23:53:36 +000012336 linux*)
12337 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12338 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12339 archive_cmds="$tmp_archive_cmds"
12340 supports_anon_versioning=no
12341 case `$LD -v 2>/dev/null` in
12342 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12343 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12344 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12345 *\ 2.11.*) ;; # other 2.11 versions
12346 *) supports_anon_versioning=yes ;;
12347 esac
12348 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012349 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12350cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12351$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012352 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12353 else
12354 archive_expsym_cmds="$tmp_archive_cmds"
12355 fi
12356 else
12357 ld_shlibs=no
12358 fi
12359 ;;
12360
John Criswell47fdd832003-07-14 16:52:07 +000012361 *)
12362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12365 else
12366 ld_shlibs=no
12367 fi
12368 ;;
12369 esac
12370
12371 if test "$ld_shlibs" = yes; then
12372 runpath_var=LD_RUN_PATH
12373 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12374 export_dynamic_flag_spec='${wl}--export-dynamic'
12375 # ancient GNU ld didn't support --whole-archive et. al.
12376 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12377 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12378 else
12379 whole_archive_flag_spec=
12380 fi
12381 fi
12382 else
12383 # PORTME fill in a description of your system's linker (not GNU ld)
12384 case $host_os in
12385 aix3*)
12386 allow_undefined_flag=unsupported
12387 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012388 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 +000012389 # Note: this linker hardcodes the directories in LIBPATH if there
12390 # are no directories specified by -L.
12391 hardcode_minus_L=yes
12392 if test "$GCC" = yes && test -z "$link_static_flag"; then
12393 # Neither direct hardcoding nor static linking is supported with a
12394 # broken collect2.
12395 hardcode_direct=unsupported
12396 fi
12397 ;;
12398
12399 aix4* | aix5*)
12400 if test "$host_cpu" = ia64; then
12401 # On IA64, the linker does run time linking by default, so we don't
12402 # have to do anything special.
12403 aix_use_runtimelinking=no
12404 exp_sym_flag='-Bexport'
12405 no_entry_flag=""
12406 else
12407 # If we're using GNU nm, then we don't want the "-C" option.
12408 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12409 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12410 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'
12411 else
12412 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'
12413 fi
12414 aix_use_runtimelinking=no
12415
12416 # Test if we are trying to use run time linking or normal
12417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12418 # need to do runtime linking.
12419 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12420 for ld_flag in $LDFLAGS; do
12421 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12422 aix_use_runtimelinking=yes
12423 break
12424 fi
12425 done
12426 esac
12427
12428 exp_sym_flag='-bexport'
12429 no_entry_flag='-bnoentry'
12430 fi
12431
12432 # When large executables or shared objects are built, AIX ld can
12433 # have problems creating the table of contents. If linking a library
12434 # or program results in "error TOC overflow" add -mminimal-toc to
12435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12437
12438 archive_cmds=''
12439 hardcode_direct=yes
12440 hardcode_libdir_separator=':'
12441 link_all_deplibs=yes
12442
12443 if test "$GCC" = yes; then
12444 case $host_os in aix4.012|aix4.012.*)
12445 # We only want to do this on AIX 4.2 and lower, the check
12446 # below for broken collect2 doesn't work under 4.3+
12447 collect2name=`${CC} -print-prog-name=collect2`
12448 if test -f "$collect2name" && \
12449 strings "$collect2name" | grep resolve_lib_name >/dev/null
12450 then
12451 # We have reworked collect2
12452 hardcode_direct=yes
12453 else
12454 # We have old collect2
12455 hardcode_direct=unsupported
12456 # It fails to find uninstalled libraries when the uninstalled
12457 # path is not listed in the libpath. Setting hardcode_minus_L
12458 # to unsupported forces relinking
12459 hardcode_minus_L=yes
12460 hardcode_libdir_flag_spec='-L$libdir'
12461 hardcode_libdir_separator=
12462 fi
12463 esac
12464 shared_flag='-shared'
12465 else
12466 # not using gcc
12467 if test "$host_cpu" = ia64; then
12468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12469 # chokes on -Wl,-G. The following line is correct:
12470 shared_flag='-G'
12471 else
12472 if test "$aix_use_runtimelinking" = yes; then
12473 shared_flag='${wl}-G'
12474 else
12475 shared_flag='${wl}-bM:SRE'
12476 fi
12477 fi
12478 fi
12479
12480 # It seems that -bexpall does not export symbols beginning with
12481 # underscore (_), so it is better to generate a list of symbols to export.
12482 always_export_symbols=yes
12483 if test "$aix_use_runtimelinking" = yes; then
12484 # Warning - without using the other runtime loading flags (-brtl),
12485 # -berok will link without error, but may produce a broken library.
12486 allow_undefined_flag='-berok'
12487 # Determine the default libpath from the value encoded in an empty executable.
12488 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012489/* confdefs.h. */
12490_ACEOF
12491cat confdefs.h >>conftest.$ac_ext
12492cat >>conftest.$ac_ext <<_ACEOF
12493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012494
John Criswell7a73b802003-06-30 21:59:07 +000012495int
12496main ()
12497{
John Criswell47fdd832003-07-14 16:52:07 +000012498
John Criswell7a73b802003-06-30 21:59:07 +000012499 ;
12500 return 0;
12501}
12502_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012503rm -f conftest.$ac_objext conftest$ac_exeext
12504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012505 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012506 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012507 grep -v '^ *+' conftest.er1 >conftest.err
12508 rm -f conftest.er1
12509 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012512 { ac_try='test -z "$ac_c_werror_flag"
12513 || test ! -s conftest.err'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; } &&
12519 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012525
John Criswell47fdd832003-07-14 16:52:07 +000012526aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12527}'`
12528# Check for a 64-bit object if we didn't find anything.
12529if 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; }
12530}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012531else
12532 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012533sed 's/^/| /' conftest.$ac_ext >&5
12534
John Criswell7a73b802003-06-30 21:59:07 +000012535fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012536rm -f conftest.err conftest.$ac_objext \
12537 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012538if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012539
John Criswell47fdd832003-07-14 16:52:07 +000012540 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12541 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"
12542 else
12543 if test "$host_cpu" = ia64; then
12544 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12545 allow_undefined_flag="-z nodefs"
12546 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"
12547 else
12548 # Determine the default libpath from the value encoded in an empty executable.
12549 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012550/* confdefs.h. */
12551_ACEOF
12552cat confdefs.h >>conftest.$ac_ext
12553cat >>conftest.$ac_ext <<_ACEOF
12554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012555
John Criswell47fdd832003-07-14 16:52:07 +000012556int
12557main ()
12558{
John Criswell7a73b802003-06-30 21:59:07 +000012559
John Criswell47fdd832003-07-14 16:52:07 +000012560 ;
12561 return 0;
12562}
12563_ACEOF
12564rm -f conftest.$ac_objext conftest$ac_exeext
12565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012566 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012567 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012573 { ac_try='test -z "$ac_c_werror_flag"
12574 || test ! -s conftest.err'
12575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12576 (eval $ac_try) 2>&5
12577 ac_status=$?
12578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12579 (exit $ac_status); }; } &&
12580 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12582 (eval $ac_try) 2>&5
12583 ac_status=$?
12584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12585 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012586
John Criswell47fdd832003-07-14 16:52:07 +000012587aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12588}'`
12589# Check for a 64-bit object if we didn't find anything.
12590if 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; }
12591}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012592else
John Criswell47fdd832003-07-14 16:52:07 +000012593 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012594sed 's/^/| /' conftest.$ac_ext >&5
12595
John Criswell47fdd832003-07-14 16:52:07 +000012596fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012597rm -f conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012599if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012600
John Criswell47fdd832003-07-14 16:52:07 +000012601 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12602 # Warning - without using the other run time loading flags,
12603 # -berok will link without error, but may produce a broken library.
12604 no_undefined_flag=' ${wl}-bernotok'
12605 allow_undefined_flag=' ${wl}-berok'
12606 # -bexpall does not export symbols beginning with underscore (_)
12607 always_export_symbols=yes
12608 # Exported symbols can be pulled into shared objects from archives
12609 whole_archive_flag_spec=' '
12610 archive_cmds_need_lc=yes
12611 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012612 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 +000012613 fi
12614 fi
John Criswell7a73b802003-06-30 21:59:07 +000012615 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012616
12617 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012618 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 +000012619 hardcode_libdir_flag_spec='-L$libdir'
12620 hardcode_minus_L=yes
12621 # see comment about different semantics on the GNU ld section
12622 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012623 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012624
Reid Spencer2706f8c2004-09-19 23:53:36 +000012625 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012626 export_dynamic_flag_spec=-rdynamic
12627 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012628
John Criswell47fdd832003-07-14 16:52:07 +000012629 cygwin* | mingw* | pw32*)
12630 # When not using gcc, we currently assume that we are using
12631 # Microsoft Visual C++.
12632 # hardcode_libdir_flag_spec is actually meaningless, as there is
12633 # no search path for DLLs.
12634 hardcode_libdir_flag_spec=' '
12635 allow_undefined_flag=unsupported
12636 # Tell ltmain to make .lib files, not .a files.
12637 libext=lib
12638 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012639 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012640 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012641 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012642 # The linker will automatically build a .lib file if we build a DLL.
12643 old_archive_From_new_cmds='true'
12644 # FIXME: Should let the user specify the lib program.
12645 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12646 fix_srcfile_path='`cygpath -w "$srcfile"`'
12647 enable_shared_with_static_runtimes=yes
12648 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012649
John Criswell47fdd832003-07-14 16:52:07 +000012650 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012651 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012652 rhapsody* | darwin1.[012])
12653 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12654 ;;
12655 *) # Darwin 1.3 on
12656 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12657 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12658 else
12659 case ${MACOSX_DEPLOYMENT_TARGET} in
12660 10.[012])
12661 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12662 ;;
12663 10.*)
12664 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12665 ;;
12666 esac
12667 fi
12668 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012669 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012670 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012671 hardcode_direct=no
12672 hardcode_automatic=yes
12673 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012674 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012675 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012676 if test "$GCC" = yes ; then
12677 output_verbose_link_cmd='echo'
12678 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12679 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12680 # 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 +000012681 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}'
12682 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 +000012683 else
12684 case "$cc_basename" in
12685 xlc*)
12686 output_verbose_link_cmd='echo'
12687 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12688 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12689 # 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 +000012690 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}'
12691 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 +000012692 ;;
12693 *)
12694 ld_shlibs=no
12695 ;;
12696 esac
John Criswell7a73b802003-06-30 21:59:07 +000012697 fi
John Criswell47fdd832003-07-14 16:52:07 +000012698 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012699
John Criswell47fdd832003-07-14 16:52:07 +000012700 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012701 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012702 hardcode_libdir_flag_spec='-L$libdir'
12703 hardcode_shlibpath_var=no
12704 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012705
John Criswell47fdd832003-07-14 16:52:07 +000012706 freebsd1*)
12707 ld_shlibs=no
12708 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012709
John Criswell47fdd832003-07-14 16:52:07 +000012710 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12711 # support. Future versions do this automatically, but an explicit c++rt0.o
12712 # does not break anything, and helps significantly (at the cost of a little
12713 # extra space).
12714 freebsd2.2*)
12715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12716 hardcode_libdir_flag_spec='-R$libdir'
12717 hardcode_direct=yes
12718 hardcode_shlibpath_var=no
12719 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012720
John Criswell47fdd832003-07-14 16:52:07 +000012721 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12722 freebsd2*)
12723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12724 hardcode_direct=yes
12725 hardcode_minus_L=yes
12726 hardcode_shlibpath_var=no
12727 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012728
John Criswell47fdd832003-07-14 16:52:07 +000012729 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012730 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012731 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12732 hardcode_libdir_flag_spec='-R$libdir'
12733 hardcode_direct=yes
12734 hardcode_shlibpath_var=no
12735 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012736
John Criswell47fdd832003-07-14 16:52:07 +000012737 hpux9*)
12738 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012739 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 +000012740 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012741 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 +000012742 fi
12743 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12744 hardcode_libdir_separator=:
12745 hardcode_direct=yes
12746
12747 # hardcode_minus_L: Not really in the search PATH,
12748 # but as the default location of the library.
12749 hardcode_minus_L=yes
12750 export_dynamic_flag_spec='${wl}-E'
12751 ;;
12752
12753 hpux10* | hpux11*)
12754 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12755 case "$host_cpu" in
12756 hppa*64*|ia64*)
12757 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12758 ;;
12759 *)
12760 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12761 ;;
12762 esac
12763 else
12764 case "$host_cpu" in
12765 hppa*64*|ia64*)
12766 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12767 ;;
12768 *)
12769 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12770 ;;
12771 esac
12772 fi
12773 if test "$with_gnu_ld" = no; then
12774 case "$host_cpu" in
12775 hppa*64*)
12776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12777 hardcode_libdir_flag_spec_ld='+b $libdir'
12778 hardcode_libdir_separator=:
12779 hardcode_direct=no
12780 hardcode_shlibpath_var=no
12781 ;;
12782 ia64*)
12783 hardcode_libdir_flag_spec='-L$libdir'
12784 hardcode_direct=no
12785 hardcode_shlibpath_var=no
12786
12787 # hardcode_minus_L: Not really in the search PATH,
12788 # but as the default location of the library.
12789 hardcode_minus_L=yes
12790 ;;
12791 *)
12792 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12793 hardcode_libdir_separator=:
12794 hardcode_direct=yes
12795 export_dynamic_flag_spec='${wl}-E'
12796
12797 # hardcode_minus_L: Not really in the search PATH,
12798 # but as the default location of the library.
12799 hardcode_minus_L=yes
12800 ;;
12801 esac
12802 fi
12803 ;;
12804
12805 irix5* | irix6* | nonstopux*)
12806 if test "$GCC" = yes; then
12807 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'
12808 else
12809 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'
12810 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12811 fi
12812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12813 hardcode_libdir_separator=:
12814 link_all_deplibs=yes
12815 ;;
12816
12817 netbsd*)
12818 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12820 else
12821 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12822 fi
12823 hardcode_libdir_flag_spec='-R$libdir'
12824 hardcode_direct=yes
12825 hardcode_shlibpath_var=no
12826 ;;
12827
12828 newsos6)
12829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12830 hardcode_direct=yes
12831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12832 hardcode_libdir_separator=:
12833 hardcode_shlibpath_var=no
12834 ;;
12835
12836 openbsd*)
12837 hardcode_direct=yes
12838 hardcode_shlibpath_var=no
12839 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12840 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012841 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 +000012842 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12843 export_dynamic_flag_spec='${wl}-E'
12844 else
12845 case $host_os in
12846 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12847 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12848 hardcode_libdir_flag_spec='-R$libdir'
12849 ;;
12850 *)
12851 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12852 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12853 ;;
12854 esac
12855 fi
12856 ;;
12857
12858 os2*)
12859 hardcode_libdir_flag_spec='-L$libdir'
12860 hardcode_minus_L=yes
12861 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012862 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 +000012863 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12864 ;;
12865
12866 osf3*)
12867 if test "$GCC" = yes; then
12868 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12869 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'
12870 else
12871 allow_undefined_flag=' -expect_unresolved \*'
12872 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'
12873 fi
12874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12875 hardcode_libdir_separator=:
12876 ;;
12877
12878 osf4* | osf5*) # as osf3* with the addition of -msym flag
12879 if test "$GCC" = yes; then
12880 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12881 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'
12882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12883 else
12884 allow_undefined_flag=' -expect_unresolved \*'
12885 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 +000012886 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12887 $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'
12888
John Criswell47fdd832003-07-14 16:52:07 +000012889 # Both c and cxx compiler support -rpath directly
12890 hardcode_libdir_flag_spec='-rpath $libdir'
12891 fi
12892 hardcode_libdir_separator=:
12893 ;;
12894
12895 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12897 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012898 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012899 runpath_var=LD_RUN_PATH
12900 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012901 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012902
John Criswell47fdd832003-07-14 16:52:07 +000012903 solaris*)
12904 no_undefined_flag=' -z text'
12905 if test "$GCC" = yes; then
12906 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012907 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12908 $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 +000012909 else
12910 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012911 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12912 $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 +000012913 fi
12914 hardcode_libdir_flag_spec='-R$libdir'
12915 hardcode_shlibpath_var=no
12916 case $host_os in
12917 solaris2.[0-5] | solaris2.[0-5].*) ;;
12918 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12919 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12920 esac
12921 link_all_deplibs=yes
12922 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012923
John Criswell47fdd832003-07-14 16:52:07 +000012924 sunos4*)
12925 if test "x$host_vendor" = xsequent; then
12926 # Use $CC to link under sequent, because it throws in some extra .o
12927 # files that make .init and .fini sections work.
12928 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12929 else
12930 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12931 fi
12932 hardcode_libdir_flag_spec='-L$libdir'
12933 hardcode_direct=yes
12934 hardcode_minus_L=yes
12935 hardcode_shlibpath_var=no
12936 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012937
John Criswell47fdd832003-07-14 16:52:07 +000012938 sysv4)
12939 case $host_vendor in
12940 sni)
12941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12942 hardcode_direct=yes # is this really true???
12943 ;;
12944 siemens)
12945 ## LD is ld it makes a PLAMLIB
12946 ## CC just makes a GrossModule.
12947 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12948 reload_cmds='$CC -r -o $output$reload_objs'
12949 hardcode_direct=no
12950 ;;
12951 motorola)
12952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12953 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12954 ;;
12955 esac
12956 runpath_var='LD_RUN_PATH'
12957 hardcode_shlibpath_var=no
12958 ;;
12959
12960 sysv4.3*)
12961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12962 hardcode_shlibpath_var=no
12963 export_dynamic_flag_spec='-Bexport'
12964 ;;
12965
12966 sysv4*MP*)
12967 if test -d /usr/nec; then
12968 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12969 hardcode_shlibpath_var=no
12970 runpath_var=LD_RUN_PATH
12971 hardcode_runpath_var=yes
12972 ld_shlibs=yes
12973 fi
12974 ;;
12975
12976 sysv4.2uw2*)
12977 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12978 hardcode_direct=yes
12979 hardcode_minus_L=no
12980 hardcode_shlibpath_var=no
12981 hardcode_runpath_var=yes
12982 runpath_var=LD_RUN_PATH
12983 ;;
12984
12985 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12986 no_undefined_flag='${wl}-z ${wl}text'
12987 if test "$GCC" = yes; then
12988 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12989 else
12990 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12991 fi
12992 runpath_var='LD_RUN_PATH'
12993 hardcode_shlibpath_var=no
12994 ;;
12995
12996 sysv5*)
12997 no_undefined_flag=' -z text'
12998 # $CC -shared without GNU ld will not create a library from C++
12999 # object files and a static libstdc++, better avoid it by now
13000 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013001 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13002 $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 +000013003 hardcode_libdir_flag_spec=
13004 hardcode_shlibpath_var=no
13005 runpath_var='LD_RUN_PATH'
13006 ;;
13007
13008 uts4*)
13009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13010 hardcode_libdir_flag_spec='-L$libdir'
13011 hardcode_shlibpath_var=no
13012 ;;
13013
13014 *)
13015 ld_shlibs=no
13016 ;;
13017 esac
13018 fi
13019
John Criswell7a73b802003-06-30 21:59:07 +000013020echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13021echo "${ECHO_T}$ld_shlibs" >&6
13022test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013023
John Criswell47fdd832003-07-14 16:52:07 +000013024variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13025if test "$GCC" = yes; then
13026 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13027fi
13028
13029#
13030# Do we need to explicitly link libc?
13031#
13032case "x$archive_cmds_need_lc" in
13033x|xyes)
13034 # Assume -lc should be added
13035 archive_cmds_need_lc=yes
13036
13037 if test "$enable_shared" = yes && test "$GCC" = yes; then
13038 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013039 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013040 # FIXME: we may have to deal with multi-command sequences.
13041 ;;
13042 '$CC '*)
13043 # Test whether the compiler implicitly links with -lc since on some
13044 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13045 # to ld, don't add -lc before -lgcc.
13046 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13047echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13048 $rm conftest*
13049 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13050
13051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052 (eval $ac_compile) 2>&5
13053 ac_status=$?
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); } 2>conftest.err; then
13056 soname=conftest
13057 lib=conftest
13058 libobjs=conftest.$ac_objext
13059 deplibs=
13060 wl=$lt_prog_compiler_wl
13061 compiler_flags=-v
13062 linker_flags=-v
13063 verstring=
13064 output_objdir=.
13065 libname=conftest
13066 lt_save_allow_undefined_flag=$allow_undefined_flag
13067 allow_undefined_flag=
13068 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13069 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13070 ac_status=$?
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }
13073 then
13074 archive_cmds_need_lc=no
13075 else
13076 archive_cmds_need_lc=yes
13077 fi
13078 allow_undefined_flag=$lt_save_allow_undefined_flag
13079 else
13080 cat conftest.err 1>&5
13081 fi
13082 $rm conftest*
13083 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13084echo "${ECHO_T}$archive_cmds_need_lc" >&6
13085 ;;
13086 esac
13087 fi
13088 ;;
13089esac
13090
John Criswell7a73b802003-06-30 21:59:07 +000013091echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13092echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13093library_names_spec=
13094libname_spec='lib$name'
13095soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013096shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013097postinstall_cmds=
13098postuninstall_cmds=
13099finish_cmds=
13100finish_eval=
13101shlibpath_var=
13102shlibpath_overrides_runpath=unknown
13103version_type=none
13104dynamic_linker="$host_os ld.so"
13105sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013106if test "$GCC" = yes; then
13107 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13108 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13109 # if the path contains ";" then we assume it to be the separator
13110 # otherwise default to the standard path separator (i.e. ":") - it is
13111 # assumed that no part of a normal pathname contains ";" but that should
13112 # okay in the real world where ";" in dirpaths is itself problematic.
13113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13114 else
13115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13116 fi
13117else
13118 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13119fi
13120need_lib_prefix=unknown
13121hardcode_into_libs=no
13122
13123# when you set need_version to no, make sure it does not cause -set_version
13124# flags to be left without arguments
13125need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013126
13127case $host_os in
13128aix3*)
13129 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013130 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013131 shlibpath_var=LIBPATH
13132
John Criswell47fdd832003-07-14 16:52:07 +000013133 # AIX 3 has no versioning support, so we append a major version to the name.
13134 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013135 ;;
13136
13137aix4* | aix5*)
13138 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013139 need_lib_prefix=no
13140 need_version=no
13141 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013142 if test "$host_cpu" = ia64; then
13143 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013144 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013145 shlibpath_var=LD_LIBRARY_PATH
13146 else
13147 # With GCC up to 2.95.x, collect2 would create an import file
13148 # for dependence libraries. The import file would start with
13149 # the line `#! .'. This would cause the generated library to
13150 # depend on `.', always an invalid library. This was fixed in
13151 # development snapshots of GCC prior to 3.0.
13152 case $host_os in
13153 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013154 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13155 echo ' yes '
13156 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13157 :
13158 else
13159 can_build_shared=no
13160 fi
13161 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013162 esac
John Criswell47fdd832003-07-14 16:52:07 +000013163 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13164 # soname into executable. Probably we can add versioning support to
13165 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013166 if test "$aix_use_runtimelinking" = yes; then
13167 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13168 # instead of lib<name>.a to let people know that these are not
13169 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013171 else
13172 # We preserve .a as extension for shared libraries through AIX4.2
13173 # and later when we are not doing run time linking.
13174 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013175 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013176 fi
13177 shlibpath_var=LIBPATH
13178 fi
13179 ;;
13180
13181amigaos*)
13182 library_names_spec='$libname.ixlibrary $libname.a'
13183 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013184 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 +000013185 ;;
13186
13187beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013188 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013189 dynamic_linker="$host_os ld.so"
13190 shlibpath_var=LIBRARY_PATH
13191 ;;
13192
Reid Spencer2706f8c2004-09-19 23:53:36 +000013193bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013194 version_type=linux
13195 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13197 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013198 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13199 shlibpath_var=LD_LIBRARY_PATH
13200 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13201 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013202 # the default ld.so.conf also contains /usr/contrib/lib and
13203 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13204 # libtool to hard-code these into programs
13205 ;;
13206
13207cygwin* | mingw* | pw32*)
13208 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013209 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013210 need_version=no
13211 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013212
John Criswell7a73b802003-06-30 21:59:07 +000013213 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013214 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013215 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013216 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013217 postinstall_cmds='base_file=`basename \${file}`~
13218 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13219 dldir=$destdir/`dirname \$dlpath`~
13220 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013221 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013222 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13223 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013224 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013225 shlibpath_overrides_runpath=yes
13226
13227 case $host_os in
13228 cygwin*)
13229 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13230 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 +000013231 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013232 ;;
13233 mingw*)
13234 # MinGW DLLs use traditional 'lib' prefix
13235 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13236 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13237 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13238 # It is most probably a Windows format PATH printed by
13239 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13240 # path with ; separators, and with drive letters. We can handle the
13241 # drive letters (cygwin fileutils understands them), so leave them,
13242 # especially as we might pass files found there to a mingw objdump,
13243 # which wouldn't understand a cygwinified path. Ahh.
13244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13245 else
13246 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13247 fi
13248 ;;
13249 pw32*)
13250 # pw32 DLLs use 'pw' prefix rather than 'lib'
13251 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13252 ;;
13253 esac
John Criswell7a73b802003-06-30 21:59:07 +000013254 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013255
John Criswell7a73b802003-06-30 21:59:07 +000013256 *)
John Criswell47fdd832003-07-14 16:52:07 +000013257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013258 ;;
13259 esac
13260 dynamic_linker='Win32 ld.exe'
13261 # FIXME: first we should search . and the directory the executable is in
13262 shlibpath_var=PATH
13263 ;;
13264
13265darwin* | rhapsody*)
13266 dynamic_linker="$host_os dyld"
13267 version_type=darwin
13268 need_lib_prefix=no
13269 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013270 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013271 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013272 shlibpath_overrides_runpath=yes
13273 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013274 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013275 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013276 if test "$GCC" = yes; then
13277 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"`
13278 else
13279 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013280 fi
13281 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13282 ;;
13283
13284dgux*)
13285 version_type=linux
13286 need_lib_prefix=no
13287 need_version=no
13288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13289 soname_spec='${libname}${release}${shared_ext}$major'
13290 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013291 ;;
13292
13293freebsd1*)
13294 dynamic_linker=no
13295 ;;
13296
Reid Spencer2706f8c2004-09-19 23:53:36 +000013297kfreebsd*-gnu)
13298 version_type=linux
13299 need_lib_prefix=no
13300 need_version=no
13301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13302 soname_spec='${libname}${release}${shared_ext}$major'
13303 shlibpath_var=LD_LIBRARY_PATH
13304 shlibpath_overrides_runpath=no
13305 hardcode_into_libs=yes
13306 dynamic_linker='GNU ld.so'
13307 ;;
13308
John Criswell7a73b802003-06-30 21:59:07 +000013309freebsd*)
13310 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13311 version_type=freebsd-$objformat
13312 case $version_type in
13313 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013315 need_version=no
13316 need_lib_prefix=no
13317 ;;
13318 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013319 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013320 need_version=yes
13321 ;;
13322 esac
13323 shlibpath_var=LD_LIBRARY_PATH
13324 case $host_os in
13325 freebsd2*)
13326 shlibpath_overrides_runpath=yes
13327 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013328 freebsd3.01* | freebsdelf3.01*)
13329 shlibpath_overrides_runpath=yes
13330 hardcode_into_libs=yes
13331 ;;
13332 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013333 shlibpath_overrides_runpath=no
13334 hardcode_into_libs=yes
13335 ;;
13336 esac
13337 ;;
13338
13339gnu*)
13340 version_type=linux
13341 need_lib_prefix=no
13342 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13344 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013345 shlibpath_var=LD_LIBRARY_PATH
13346 hardcode_into_libs=yes
13347 ;;
13348
13349hpux9* | hpux10* | hpux11*)
13350 # Give a soname corresponding to the major version so that dld.sl refuses to
13351 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013352 version_type=sunos
13353 need_lib_prefix=no
13354 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013355 case "$host_cpu" in
13356 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013357 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013358 hardcode_into_libs=yes
13359 dynamic_linker="$host_os dld.so"
13360 shlibpath_var=LD_LIBRARY_PATH
13361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13363 soname_spec='${libname}${release}${shared_ext}$major'
13364 if test "X$HPUX_IA64_MODE" = X32; then
13365 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13366 else
13367 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13368 fi
13369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13370 ;;
13371 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013372 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013373 hardcode_into_libs=yes
13374 dynamic_linker="$host_os dld.sl"
13375 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13378 soname_spec='${libname}${release}${shared_ext}$major'
13379 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13381 ;;
13382 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013383 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013384 dynamic_linker="$host_os dld.sl"
13385 shlibpath_var=SHLIB_PATH
13386 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13388 soname_spec='${libname}${release}${shared_ext}$major'
13389 ;;
13390 esac
John Criswell7a73b802003-06-30 21:59:07 +000013391 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13392 postinstall_cmds='chmod 555 $lib'
13393 ;;
13394
John Criswell47fdd832003-07-14 16:52:07 +000013395irix5* | irix6* | nonstopux*)
13396 case $host_os in
13397 nonstopux*) version_type=nonstopux ;;
13398 *)
13399 if test "$lt_cv_prog_gnu_ld" = yes; then
13400 version_type=linux
13401 else
13402 version_type=irix
13403 fi ;;
13404 esac
John Criswell7a73b802003-06-30 21:59:07 +000013405 need_lib_prefix=no
13406 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013407 soname_spec='${libname}${release}${shared_ext}$major'
13408 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 +000013409 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013410 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013411 libsuff= shlibsuff=
13412 ;;
13413 *)
13414 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013415 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13416 libsuff= shlibsuff= libmagic=32-bit;;
13417 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13418 libsuff=32 shlibsuff=N32 libmagic=N32;;
13419 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13420 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013421 *) libsuff= shlibsuff= libmagic=never-match;;
13422 esac
13423 ;;
13424 esac
13425 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13426 shlibpath_overrides_runpath=no
13427 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13428 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013429 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013430 ;;
13431
13432# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013433linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013434 dynamic_linker=no
13435 ;;
13436
13437# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013438linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013439 version_type=linux
13440 need_lib_prefix=no
13441 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13443 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013444 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13445 shlibpath_var=LD_LIBRARY_PATH
13446 shlibpath_overrides_runpath=no
13447 # This implies no fast_install, which is unacceptable.
13448 # Some rework will be needed to allow for fast_install
13449 # before this can be enabled.
13450 hardcode_into_libs=yes
13451
Reid Spencer2706f8c2004-09-19 23:53:36 +000013452 # Append ld.so.conf contents to the search path
13453 if test -f /etc/ld.so.conf; then
13454 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13455 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13456 fi
13457
John Criswell7a73b802003-06-30 21:59:07 +000013458 # We used to test for /lib/ld.so.1 and disable shared libraries on
13459 # powerpc, because MkLinux only supported shared libraries with the
13460 # GNU dynamic linker. Since this was broken with cross compilers,
13461 # most powerpc-linux boxes support dynamic linking these days and
13462 # people can always --disable-shared, the test was removed, and we
13463 # assume the GNU/Linux dynamic linker is in use.
13464 dynamic_linker='GNU/Linux ld.so'
13465 ;;
13466
Reid Spencer2706f8c2004-09-19 23:53:36 +000013467knetbsd*-gnu)
13468 version_type=linux
13469 need_lib_prefix=no
13470 need_version=no
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13472 soname_spec='${libname}${release}${shared_ext}$major'
13473 shlibpath_var=LD_LIBRARY_PATH
13474 shlibpath_overrides_runpath=no
13475 hardcode_into_libs=yes
13476 dynamic_linker='GNU ld.so'
13477 ;;
13478
John Criswell7a73b802003-06-30 21:59:07 +000013479netbsd*)
13480 version_type=sunos
13481 need_lib_prefix=no
13482 need_version=no
13483 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13486 dynamic_linker='NetBSD (a.out) ld.so'
13487 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013489 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013490 dynamic_linker='NetBSD ld.elf_so'
13491 fi
13492 shlibpath_var=LD_LIBRARY_PATH
13493 shlibpath_overrides_runpath=yes
13494 hardcode_into_libs=yes
13495 ;;
13496
13497newsos6)
13498 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 shlibpath_overrides_runpath=yes
13502 ;;
13503
Reid Spencer2706f8c2004-09-19 23:53:36 +000013504nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013505 version_type=linux
13506 need_lib_prefix=no
13507 need_version=no
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13509 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013510 shlibpath_var=LD_LIBRARY_PATH
13511 shlibpath_overrides_runpath=yes
13512 ;;
13513
13514openbsd*)
13515 version_type=sunos
13516 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013517 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13520 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013521 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 +000013522 case $host_os in
13523 openbsd2.[89] | openbsd2.[89].*)
13524 shlibpath_overrides_runpath=no
13525 ;;
13526 *)
13527 shlibpath_overrides_runpath=yes
13528 ;;
13529 esac
John Criswell7a73b802003-06-30 21:59:07 +000013530 else
13531 shlibpath_overrides_runpath=yes
13532 fi
John Criswell7a73b802003-06-30 21:59:07 +000013533 ;;
13534
13535os2*)
13536 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013537 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013538 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013539 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013540 dynamic_linker='OS/2 ld.exe'
13541 shlibpath_var=LIBPATH
13542 ;;
13543
13544osf3* | osf4* | osf5*)
13545 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013546 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013547 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013548 soname_spec='${libname}${release}${shared_ext}$major'
13549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013550 shlibpath_var=LD_LIBRARY_PATH
13551 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13552 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13553 ;;
13554
13555sco3.2v5*)
13556 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013557 soname_spec='${libname}${release}${shared_ext}$major'
13558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013559 shlibpath_var=LD_LIBRARY_PATH
13560 ;;
13561
13562solaris*)
13563 version_type=linux
13564 need_lib_prefix=no
13565 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013568 shlibpath_var=LD_LIBRARY_PATH
13569 shlibpath_overrides_runpath=yes
13570 hardcode_into_libs=yes
13571 # ldd complains unless libraries are executable
13572 postinstall_cmds='chmod +x $lib'
13573 ;;
13574
13575sunos4*)
13576 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013578 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13579 shlibpath_var=LD_LIBRARY_PATH
13580 shlibpath_overrides_runpath=yes
13581 if test "$with_gnu_ld" = yes; then
13582 need_lib_prefix=no
13583 fi
13584 need_version=yes
13585 ;;
13586
13587sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13588 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13590 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013591 shlibpath_var=LD_LIBRARY_PATH
13592 case $host_vendor in
13593 sni)
13594 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013595 need_lib_prefix=no
13596 export_dynamic_flag_spec='${wl}-Blargedynsym'
13597 runpath_var=LD_RUN_PATH
13598 ;;
13599 siemens)
13600 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013601 ;;
13602 motorola)
13603 need_lib_prefix=no
13604 need_version=no
13605 shlibpath_overrides_runpath=no
13606 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13607 ;;
13608 esac
13609 ;;
13610
John Criswell7a73b802003-06-30 21:59:07 +000013611sysv4*MP*)
13612 if test -d /usr/nec ;then
13613 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013614 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13615 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013616 shlibpath_var=LD_LIBRARY_PATH
13617 fi
13618 ;;
13619
John Criswell47fdd832003-07-14 16:52:07 +000013620uts4*)
13621 version_type=linux
13622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623 soname_spec='${libname}${release}${shared_ext}$major'
13624 shlibpath_var=LD_LIBRARY_PATH
13625 ;;
13626
John Criswell7a73b802003-06-30 21:59:07 +000013627*)
13628 dynamic_linker=no
13629 ;;
13630esac
13631echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13632echo "${ECHO_T}$dynamic_linker" >&6
13633test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013634
Reid Spencer2706f8c2004-09-19 23:53:36 +000013635echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13636echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13637hardcode_action=
13638if test -n "$hardcode_libdir_flag_spec" || \
13639 test -n "$runpath_var" || \
13640 test "X$hardcode_automatic" = "Xyes" ; then
13641
13642 # We can hardcode non-existant directories.
13643 if test "$hardcode_direct" != no &&
13644 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13645 # have to relink, otherwise we might link with an installed library
13646 # when we should be linking with a yet-to-be-installed one
13647 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13648 test "$hardcode_minus_L" != no; then
13649 # Linking always hardcodes the temporary library directory.
13650 hardcode_action=relink
13651 else
13652 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13653 hardcode_action=immediate
13654 fi
13655else
13656 # We cannot hardcode anything, or else we can only hardcode existing
13657 # directories.
13658 hardcode_action=unsupported
13659fi
13660echo "$as_me:$LINENO: result: $hardcode_action" >&5
13661echo "${ECHO_T}$hardcode_action" >&6
13662
13663if test "$hardcode_action" = relink; then
13664 # Fast installation is not supported
13665 enable_fast_install=no
13666elif test "$shlibpath_overrides_runpath" = yes ||
13667 test "$enable_shared" = no; then
13668 # Fast installation is not necessary
13669 enable_fast_install=needless
13670fi
13671
13672striplib=
13673old_striplib=
13674echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13675echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13676if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13677 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13678 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13679 echo "$as_me:$LINENO: result: yes" >&5
13680echo "${ECHO_T}yes" >&6
13681else
13682# FIXME - insert some real tests, host_os isn't really good enough
13683 case $host_os in
13684 darwin*)
13685 if test -n "$STRIP" ; then
13686 striplib="$STRIP -x"
13687 echo "$as_me:$LINENO: result: yes" >&5
13688echo "${ECHO_T}yes" >&6
13689 else
13690 echo "$as_me:$LINENO: result: no" >&5
13691echo "${ECHO_T}no" >&6
13692fi
13693 ;;
13694 *)
13695 echo "$as_me:$LINENO: result: no" >&5
13696echo "${ECHO_T}no" >&6
13697 ;;
13698 esac
13699fi
13700
John Criswell7a73b802003-06-30 21:59:07 +000013701if test "x$enable_dlopen" != xyes; then
13702 enable_dlopen=unknown
13703 enable_dlopen_self=unknown
13704 enable_dlopen_self_static=unknown
13705else
13706 lt_cv_dlopen=no
13707 lt_cv_dlopen_libs=
13708
13709 case $host_os in
13710 beos*)
13711 lt_cv_dlopen="load_add_on"
13712 lt_cv_dlopen_libs=
13713 lt_cv_dlopen_self=yes
13714 ;;
13715
John Criswell47fdd832003-07-14 16:52:07 +000013716 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013717 lt_cv_dlopen="LoadLibrary"
13718 lt_cv_dlopen_libs=
13719 ;;
13720
John Criswell47fdd832003-07-14 16:52:07 +000013721 cygwin*)
13722 lt_cv_dlopen="dlopen"
13723 lt_cv_dlopen_libs=
13724 ;;
13725
13726 darwin*)
13727 # if libdl is installed we need to link against it
13728 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13729echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13730if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13731 echo $ECHO_N "(cached) $ECHO_C" >&6
13732else
13733 ac_check_lib_save_LIBS=$LIBS
13734LIBS="-ldl $LIBS"
13735cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013736/* confdefs.h. */
13737_ACEOF
13738cat confdefs.h >>conftest.$ac_ext
13739cat >>conftest.$ac_ext <<_ACEOF
13740/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013741
13742/* Override any gcc2 internal prototype to avoid an error. */
13743#ifdef __cplusplus
13744extern "C"
13745#endif
13746/* We use char because int might match the return type of a gcc2
13747 builtin and then its argument prototype would still apply. */
13748char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013749int
13750main ()
13751{
13752dlopen ();
13753 ;
13754 return 0;
13755}
13756_ACEOF
13757rm -f conftest.$ac_objext conftest$ac_exeext
13758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013759 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013760 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013761 grep -v '^ *+' conftest.er1 >conftest.err
13762 rm -f conftest.er1
13763 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013766 { ac_try='test -z "$ac_c_werror_flag"
13767 || test ! -s conftest.err'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; } &&
13773 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 ac_cv_lib_dl_dlopen=yes
13780else
13781 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013782sed 's/^/| /' conftest.$ac_ext >&5
13783
John Criswell47fdd832003-07-14 16:52:07 +000013784ac_cv_lib_dl_dlopen=no
13785fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013786rm -f conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013788LIBS=$ac_check_lib_save_LIBS
13789fi
13790echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13791echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13792if test $ac_cv_lib_dl_dlopen = yes; then
13793 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13794else
13795
13796 lt_cv_dlopen="dyld"
13797 lt_cv_dlopen_libs=
13798 lt_cv_dlopen_self=yes
13799
13800fi
13801
13802 ;;
13803
John Criswell7a73b802003-06-30 21:59:07 +000013804 *)
13805 echo "$as_me:$LINENO: checking for shl_load" >&5
13806echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13807if test "${ac_cv_func_shl_load+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13809else
13810 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013811/* confdefs.h. */
13812_ACEOF
13813cat confdefs.h >>conftest.$ac_ext
13814cat >>conftest.$ac_ext <<_ACEOF
13815/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013816/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13818#define shl_load innocuous_shl_load
13819
John Criswell7a73b802003-06-30 21:59:07 +000013820/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013821 which can conflict with char shl_load (); below.
13822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13823 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013824
John Criswell0c38eaf2003-09-10 15:17:25 +000013825#ifdef __STDC__
13826# include <limits.h>
13827#else
13828# include <assert.h>
13829#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013830
13831#undef shl_load
13832
John Criswell7a73b802003-06-30 21:59:07 +000013833/* Override any gcc2 internal prototype to avoid an error. */
13834#ifdef __cplusplus
13835extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013836{
John Criswell7a73b802003-06-30 21:59:07 +000013837#endif
13838/* We use char because int might match the return type of a gcc2
13839 builtin and then its argument prototype would still apply. */
13840char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013841/* The GNU C library defines this for functions which it implements
13842 to always fail with ENOSYS. Some functions are actually named
13843 something starting with __ and the normal name is an alias. */
13844#if defined (__stub_shl_load) || defined (__stub___shl_load)
13845choke me
13846#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013847char (*f) () = shl_load;
13848#endif
13849#ifdef __cplusplus
13850}
John Criswell7a73b802003-06-30 21:59:07 +000013851#endif
13852
John Criswell0c38eaf2003-09-10 15:17:25 +000013853int
13854main ()
13855{
13856return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013857 ;
13858 return 0;
13859}
13860_ACEOF
13861rm -f conftest.$ac_objext conftest$ac_exeext
13862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013863 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013864 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013865 grep -v '^ *+' conftest.er1 >conftest.err
13866 rm -f conftest.er1
13867 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013870 { ac_try='test -z "$ac_c_werror_flag"
13871 || test ! -s conftest.err'
13872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13873 (eval $ac_try) 2>&5
13874 ac_status=$?
13875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13876 (exit $ac_status); }; } &&
13877 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13879 (eval $ac_try) 2>&5
13880 ac_status=$?
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); }; }; then
13883 ac_cv_func_shl_load=yes
13884else
13885 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013886sed 's/^/| /' conftest.$ac_ext >&5
13887
John Criswell7a73b802003-06-30 21:59:07 +000013888ac_cv_func_shl_load=no
13889fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013890rm -f conftest.err conftest.$ac_objext \
13891 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013892fi
13893echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13894echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13895if test $ac_cv_func_shl_load = yes; then
13896 lt_cv_dlopen="shl_load"
13897else
13898 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13899echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13900if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902else
13903 ac_check_lib_save_LIBS=$LIBS
13904LIBS="-ldld $LIBS"
13905cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013906/* confdefs.h. */
13907_ACEOF
13908cat confdefs.h >>conftest.$ac_ext
13909cat >>conftest.$ac_ext <<_ACEOF
13910/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013911
13912/* Override any gcc2 internal prototype to avoid an error. */
13913#ifdef __cplusplus
13914extern "C"
13915#endif
13916/* We use char because int might match the return type of a gcc2
13917 builtin and then its argument prototype would still apply. */
13918char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013919int
13920main ()
13921{
13922shl_load ();
13923 ;
13924 return 0;
13925}
13926_ACEOF
13927rm -f conftest.$ac_objext conftest$ac_exeext
13928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013929 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013930 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013931 grep -v '^ *+' conftest.er1 >conftest.err
13932 rm -f conftest.er1
13933 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013936 { ac_try='test -z "$ac_c_werror_flag"
13937 || test ! -s conftest.err'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13940 ac_status=$?
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; } &&
13943 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13945 (eval $ac_try) 2>&5
13946 ac_status=$?
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); }; }; then
13949 ac_cv_lib_dld_shl_load=yes
13950else
13951 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013952sed 's/^/| /' conftest.$ac_ext >&5
13953
John Criswell7a73b802003-06-30 21:59:07 +000013954ac_cv_lib_dld_shl_load=no
13955fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013956rm -f conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013958LIBS=$ac_check_lib_save_LIBS
13959fi
13960echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13961echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13962if test $ac_cv_lib_dld_shl_load = yes; then
13963 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13964else
13965 echo "$as_me:$LINENO: checking for dlopen" >&5
13966echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13967if test "${ac_cv_func_dlopen+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13969else
13970 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013971/* confdefs.h. */
13972_ACEOF
13973cat confdefs.h >>conftest.$ac_ext
13974cat >>conftest.$ac_ext <<_ACEOF
13975/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013976/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13978#define dlopen innocuous_dlopen
13979
John Criswell7a73b802003-06-30 21:59:07 +000013980/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013981 which can conflict with char dlopen (); below.
13982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13983 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013984
John Criswell0c38eaf2003-09-10 15:17:25 +000013985#ifdef __STDC__
13986# include <limits.h>
13987#else
13988# include <assert.h>
13989#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013990
13991#undef dlopen
13992
John Criswell7a73b802003-06-30 21:59:07 +000013993/* Override any gcc2 internal prototype to avoid an error. */
13994#ifdef __cplusplus
13995extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013996{
John Criswell7a73b802003-06-30 21:59:07 +000013997#endif
13998/* We use char because int might match the return type of a gcc2
13999 builtin and then its argument prototype would still apply. */
14000char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014001/* The GNU C library defines this for functions which it implements
14002 to always fail with ENOSYS. Some functions are actually named
14003 something starting with __ and the normal name is an alias. */
14004#if defined (__stub_dlopen) || defined (__stub___dlopen)
14005choke me
14006#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014007char (*f) () = dlopen;
14008#endif
14009#ifdef __cplusplus
14010}
John Criswell7a73b802003-06-30 21:59:07 +000014011#endif
14012
John Criswell0c38eaf2003-09-10 15:17:25 +000014013int
14014main ()
14015{
14016return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014017 ;
14018 return 0;
14019}
14020_ACEOF
14021rm -f conftest.$ac_objext conftest$ac_exeext
14022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014023 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014024 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014025 grep -v '^ *+' conftest.er1 >conftest.err
14026 rm -f conftest.er1
14027 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014030 { ac_try='test -z "$ac_c_werror_flag"
14031 || test ! -s conftest.err'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14043 ac_cv_func_dlopen=yes
14044else
14045 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014046sed 's/^/| /' conftest.$ac_ext >&5
14047
John Criswell7a73b802003-06-30 21:59:07 +000014048ac_cv_func_dlopen=no
14049fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014050rm -f conftest.err conftest.$ac_objext \
14051 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014052fi
14053echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14054echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14055if test $ac_cv_func_dlopen = yes; then
14056 lt_cv_dlopen="dlopen"
14057else
14058 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14059echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14060if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14061 echo $ECHO_N "(cached) $ECHO_C" >&6
14062else
14063 ac_check_lib_save_LIBS=$LIBS
14064LIBS="-ldl $LIBS"
14065cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014066/* confdefs.h. */
14067_ACEOF
14068cat confdefs.h >>conftest.$ac_ext
14069cat >>conftest.$ac_ext <<_ACEOF
14070/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014071
14072/* Override any gcc2 internal prototype to avoid an error. */
14073#ifdef __cplusplus
14074extern "C"
14075#endif
14076/* We use char because int might match the return type of a gcc2
14077 builtin and then its argument prototype would still apply. */
14078char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014079int
14080main ()
14081{
14082dlopen ();
14083 ;
14084 return 0;
14085}
14086_ACEOF
14087rm -f conftest.$ac_objext conftest$ac_exeext
14088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014089 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014090 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014091 grep -v '^ *+' conftest.er1 >conftest.err
14092 rm -f conftest.er1
14093 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014096 { ac_try='test -z "$ac_c_werror_flag"
14097 || test ! -s conftest.err'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; } &&
14103 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 ac_cv_lib_dl_dlopen=yes
14110else
14111 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014112sed 's/^/| /' conftest.$ac_ext >&5
14113
John Criswell7a73b802003-06-30 21:59:07 +000014114ac_cv_lib_dl_dlopen=no
14115fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014116rm -f conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014118LIBS=$ac_check_lib_save_LIBS
14119fi
14120echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14121echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14122if test $ac_cv_lib_dl_dlopen = yes; then
14123 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14124else
14125 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14126echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14127if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14128 echo $ECHO_N "(cached) $ECHO_C" >&6
14129else
14130 ac_check_lib_save_LIBS=$LIBS
14131LIBS="-lsvld $LIBS"
14132cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014133/* confdefs.h. */
14134_ACEOF
14135cat confdefs.h >>conftest.$ac_ext
14136cat >>conftest.$ac_ext <<_ACEOF
14137/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014138
14139/* Override any gcc2 internal prototype to avoid an error. */
14140#ifdef __cplusplus
14141extern "C"
14142#endif
14143/* We use char because int might match the return type of a gcc2
14144 builtin and then its argument prototype would still apply. */
14145char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014146int
14147main ()
14148{
14149dlopen ();
14150 ;
14151 return 0;
14152}
14153_ACEOF
14154rm -f conftest.$ac_objext conftest$ac_exeext
14155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014156 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014157 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014163 { ac_try='test -z "$ac_c_werror_flag"
14164 || test ! -s conftest.err'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14167 ac_status=$?
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; } &&
14170 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14172 (eval $ac_try) 2>&5
14173 ac_status=$?
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); }; }; then
14176 ac_cv_lib_svld_dlopen=yes
14177else
14178 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014179sed 's/^/| /' conftest.$ac_ext >&5
14180
John Criswell7a73b802003-06-30 21:59:07 +000014181ac_cv_lib_svld_dlopen=no
14182fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014183rm -f conftest.err conftest.$ac_objext \
14184 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014185LIBS=$ac_check_lib_save_LIBS
14186fi
14187echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14188echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14189if test $ac_cv_lib_svld_dlopen = yes; then
14190 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14191else
14192 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14193echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14194if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196else
14197 ac_check_lib_save_LIBS=$LIBS
14198LIBS="-ldld $LIBS"
14199cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014200/* confdefs.h. */
14201_ACEOF
14202cat confdefs.h >>conftest.$ac_ext
14203cat >>conftest.$ac_ext <<_ACEOF
14204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014205
14206/* Override any gcc2 internal prototype to avoid an error. */
14207#ifdef __cplusplus
14208extern "C"
14209#endif
14210/* We use char because int might match the return type of a gcc2
14211 builtin and then its argument prototype would still apply. */
14212char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014213int
14214main ()
14215{
14216dld_link ();
14217 ;
14218 return 0;
14219}
14220_ACEOF
14221rm -f conftest.$ac_objext conftest$ac_exeext
14222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014223 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014224 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014230 { ac_try='test -z "$ac_c_werror_flag"
14231 || test ! -s conftest.err'
14232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14233 (eval $ac_try) 2>&5
14234 ac_status=$?
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); }; } &&
14237 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 ac_cv_lib_dld_dld_link=yes
14244else
14245 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014246sed 's/^/| /' conftest.$ac_ext >&5
14247
John Criswell7a73b802003-06-30 21:59:07 +000014248ac_cv_lib_dld_dld_link=no
14249fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014250rm -f conftest.err conftest.$ac_objext \
14251 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014252LIBS=$ac_check_lib_save_LIBS
14253fi
14254echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14255echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14256if test $ac_cv_lib_dld_dld_link = yes; then
14257 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14258fi
14259
14260
14261fi
14262
14263
14264fi
14265
14266
14267fi
14268
14269
14270fi
14271
14272
14273fi
14274
14275 ;;
14276 esac
14277
14278 if test "x$lt_cv_dlopen" != xno; then
14279 enable_dlopen=yes
14280 else
14281 enable_dlopen=no
14282 fi
14283
14284 case $lt_cv_dlopen in
14285 dlopen)
14286 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014287 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014288
14289 save_LDFLAGS="$LDFLAGS"
14290 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14291
14292 save_LIBS="$LIBS"
14293 LIBS="$lt_cv_dlopen_libs $LIBS"
14294
14295 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14296echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14297if test "${lt_cv_dlopen_self+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14299else
14300 if test "$cross_compiling" = yes; then :
14301 lt_cv_dlopen_self=cross
14302else
John Criswell47fdd832003-07-14 16:52:07 +000014303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014304 lt_status=$lt_dlunknown
14305 cat > conftest.$ac_ext <<EOF
Reid Spencer7b3e8512004-12-24 06:29:05 +000014306#line 14306 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014307#include "confdefs.h"
14308
14309#if HAVE_DLFCN_H
14310#include <dlfcn.h>
14311#endif
14312
14313#include <stdio.h>
14314
14315#ifdef RTLD_GLOBAL
14316# define LT_DLGLOBAL RTLD_GLOBAL
14317#else
14318# ifdef DL_GLOBAL
14319# define LT_DLGLOBAL DL_GLOBAL
14320# else
14321# define LT_DLGLOBAL 0
14322# endif
14323#endif
14324
14325/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14326 find out it does not work in some platform. */
14327#ifndef LT_DLLAZY_OR_NOW
14328# ifdef RTLD_LAZY
14329# define LT_DLLAZY_OR_NOW RTLD_LAZY
14330# else
14331# ifdef DL_LAZY
14332# define LT_DLLAZY_OR_NOW DL_LAZY
14333# else
14334# ifdef RTLD_NOW
14335# define LT_DLLAZY_OR_NOW RTLD_NOW
14336# else
14337# ifdef DL_NOW
14338# define LT_DLLAZY_OR_NOW DL_NOW
14339# else
14340# define LT_DLLAZY_OR_NOW 0
14341# endif
14342# endif
14343# endif
14344# endif
14345#endif
14346
14347#ifdef __cplusplus
14348extern "C" void exit (int);
14349#endif
14350
14351void fnord() { int i=42;}
14352int main ()
14353{
14354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14355 int status = $lt_dlunknown;
14356
14357 if (self)
14358 {
14359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14360 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14361 /* dlclose (self); */
14362 }
14363
14364 exit (status);
14365}
14366EOF
14367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14368 (eval $ac_link) 2>&5
14369 ac_status=$?
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14372 (./conftest; exit; ) 2>/dev/null
14373 lt_status=$?
14374 case x$lt_status in
14375 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14376 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14377 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14378 esac
14379 else :
14380 # compilation failed
14381 lt_cv_dlopen_self=no
14382 fi
14383fi
14384rm -fr conftest*
14385
14386
14387fi
14388echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14389echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14390
14391 if test "x$lt_cv_dlopen_self" = xyes; then
14392 LDFLAGS="$LDFLAGS $link_static_flag"
14393 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14394echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14395if test "${lt_cv_dlopen_self_static+set}" = set; then
14396 echo $ECHO_N "(cached) $ECHO_C" >&6
14397else
14398 if test "$cross_compiling" = yes; then :
14399 lt_cv_dlopen_self_static=cross
14400else
John Criswell47fdd832003-07-14 16:52:07 +000014401 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014402 lt_status=$lt_dlunknown
14403 cat > conftest.$ac_ext <<EOF
Reid Spencer7b3e8512004-12-24 06:29:05 +000014404#line 14404 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014405#include "confdefs.h"
14406
14407#if HAVE_DLFCN_H
14408#include <dlfcn.h>
14409#endif
14410
14411#include <stdio.h>
14412
14413#ifdef RTLD_GLOBAL
14414# define LT_DLGLOBAL RTLD_GLOBAL
14415#else
14416# ifdef DL_GLOBAL
14417# define LT_DLGLOBAL DL_GLOBAL
14418# else
14419# define LT_DLGLOBAL 0
14420# endif
14421#endif
14422
14423/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14424 find out it does not work in some platform. */
14425#ifndef LT_DLLAZY_OR_NOW
14426# ifdef RTLD_LAZY
14427# define LT_DLLAZY_OR_NOW RTLD_LAZY
14428# else
14429# ifdef DL_LAZY
14430# define LT_DLLAZY_OR_NOW DL_LAZY
14431# else
14432# ifdef RTLD_NOW
14433# define LT_DLLAZY_OR_NOW RTLD_NOW
14434# else
14435# ifdef DL_NOW
14436# define LT_DLLAZY_OR_NOW DL_NOW
14437# else
14438# define LT_DLLAZY_OR_NOW 0
14439# endif
14440# endif
14441# endif
14442# endif
14443#endif
14444
14445#ifdef __cplusplus
14446extern "C" void exit (int);
14447#endif
14448
14449void fnord() { int i=42;}
14450int main ()
14451{
14452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14453 int status = $lt_dlunknown;
14454
14455 if (self)
14456 {
14457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14458 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14459 /* dlclose (self); */
14460 }
14461
14462 exit (status);
14463}
14464EOF
14465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14466 (eval $ac_link) 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14470 (./conftest; exit; ) 2>/dev/null
14471 lt_status=$?
14472 case x$lt_status in
14473 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14474 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14475 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14476 esac
14477 else :
14478 # compilation failed
14479 lt_cv_dlopen_self_static=no
14480 fi
14481fi
14482rm -fr conftest*
14483
14484
14485fi
14486echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14487echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14488 fi
14489
14490 CPPFLAGS="$save_CPPFLAGS"
14491 LDFLAGS="$save_LDFLAGS"
14492 LIBS="$save_LIBS"
14493 ;;
14494 esac
14495
14496 case $lt_cv_dlopen_self in
14497 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14498 *) enable_dlopen_self=unknown ;;
14499 esac
14500
14501 case $lt_cv_dlopen_self_static in
14502 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14503 *) enable_dlopen_self_static=unknown ;;
14504 esac
14505fi
14506
14507
John Criswell47fdd832003-07-14 16:52:07 +000014508# Report which librarie types wil actually be built
14509echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14510echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14511echo "$as_me:$LINENO: result: $can_build_shared" >&5
14512echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014513
John Criswell47fdd832003-07-14 16:52:07 +000014514echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14515echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14516test "$can_build_shared" = "no" && enable_shared=no
14517
14518# On AIX, shared libraries and static libraries use the same namespace, and
14519# are all built from PIC.
14520case "$host_os" in
14521aix3*)
14522 test "$enable_shared" = yes && enable_static=no
14523 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014524 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014525 postinstall_cmds='$RANLIB $lib'
14526 fi
14527 ;;
14528
Reid Spencer2706f8c2004-09-19 23:53:36 +000014529aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014530 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14531 test "$enable_shared" = yes && enable_static=no
14532 fi
John Criswell7a73b802003-06-30 21:59:07 +000014533 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014534esac
14535echo "$as_me:$LINENO: result: $enable_shared" >&5
14536echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014537
John Criswell47fdd832003-07-14 16:52:07 +000014538echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14539echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14540# Make sure either enable_shared or enable_static is yes.
14541test "$enable_shared" = yes || enable_static=yes
14542echo "$as_me:$LINENO: result: $enable_static" >&5
14543echo "${ECHO_T}$enable_static" >&6
14544
14545# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014546# libtool distribution, otherwise you forgot to ship ltmain.sh
14547# with your package, and you will get complaints that there are
14548# no rules to generate ltmain.sh.
14549if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014550 # See if we are running on zsh, and set the options which allow our commands through
14551 # without removal of \ escapes.
14552 if test -n "${ZSH_VERSION+set}" ; then
14553 setopt NO_GLOB_SUBST
14554 fi
John Criswell7a73b802003-06-30 21:59:07 +000014555 # Now quote all the things that may contain metacharacters while being
14556 # careful not to overquote the AC_SUBSTed values. We take copies of the
14557 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014558 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14559 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014560 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14561 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14562 deplibs_check_method reload_flag reload_cmds need_locks \
14563 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14564 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014565 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014566 old_postinstall_cmds old_postuninstall_cmds \
14567 compiler \
14568 CC \
14569 LD \
14570 lt_prog_compiler_wl \
14571 lt_prog_compiler_pic \
14572 lt_prog_compiler_static \
14573 lt_prog_compiler_no_builtin_flag \
14574 export_dynamic_flag_spec \
14575 thread_safe_flag_spec \
14576 whole_archive_flag_spec \
14577 enable_shared_with_static_runtimes \
14578 old_archive_cmds \
14579 old_archive_from_new_cmds \
14580 predep_objects \
14581 postdep_objects \
14582 predeps \
14583 postdeps \
14584 compiler_lib_search_path \
14585 archive_cmds \
14586 archive_expsym_cmds \
14587 postinstall_cmds \
14588 postuninstall_cmds \
14589 old_archive_from_expsyms_cmds \
14590 allow_undefined_flag \
14591 no_undefined_flag \
14592 export_symbols_cmds \
14593 hardcode_libdir_flag_spec \
14594 hardcode_libdir_flag_spec_ld \
14595 hardcode_libdir_separator \
14596 hardcode_automatic \
14597 module_cmds \
14598 module_expsym_cmds \
14599 lt_cv_prog_compiler_c_o \
14600 exclude_expsyms \
14601 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014602
14603 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014604 old_archive_cmds | \
14605 old_archive_from_new_cmds | \
14606 archive_cmds | \
14607 archive_expsym_cmds | \
14608 module_cmds | \
14609 module_expsym_cmds | \
14610 old_archive_from_expsyms_cmds | \
14611 export_symbols_cmds | \
14612 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014613 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014614 old_postinstall_cmds | old_postuninstall_cmds | \
14615 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014616 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014617 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 +000014618 ;;
14619 *)
14620 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14621 ;;
14622 esac
14623 done
14624
John Criswell47fdd832003-07-14 16:52:07 +000014625 case $lt_echo in
14626 *'\$0 --fallback-echo"')
14627 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14628 ;;
14629 esac
14630
14631cfgfile="${ofile}T"
14632 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14633 $rm -f "$cfgfile"
14634 { echo "$as_me:$LINENO: creating $ofile" >&5
14635echo "$as_me: creating $ofile" >&6;}
14636
14637 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014638#! $SHELL
14639
John Criswell47fdd832003-07-14 16:52:07 +000014640# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014641# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14642# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14643#
John Criswell47fdd832003-07-14 16:52:07 +000014644# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14645# Free Software Foundation, Inc.
14646#
14647# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014648# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14649#
14650# This program is free software; you can redistribute it and/or modify
14651# it under the terms of the GNU General Public License as published by
14652# the Free Software Foundation; either version 2 of the License, or
14653# (at your option) any later version.
14654#
14655# This program is distributed in the hope that it will be useful, but
14656# WITHOUT ANY WARRANTY; without even the implied warranty of
14657# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14658# General Public License for more details.
14659#
14660# You should have received a copy of the GNU General Public License
14661# along with this program; if not, write to the Free Software
14662# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14663#
14664# As a special exception to the GNU General Public License, if you
14665# distribute this file as part of a program that contains a
14666# configuration script generated by Autoconf, you may include it under
14667# the same distribution terms that you use for the rest of that program.
14668
John Criswell47fdd832003-07-14 16:52:07 +000014669# A sed program that does not truncate output.
14670SED=$lt_SED
14671
John Criswell7a73b802003-06-30 21:59:07 +000014672# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014673Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014674
14675# The HP-UX ksh and POSIX shell print the target directory to stdout
14676# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014677(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014678
John Criswell47fdd832003-07-14 16:52:07 +000014679# The names of the tagged configurations supported by this script.
14680available_tags=
14681
John Criswell7a73b802003-06-30 21:59:07 +000014682# ### BEGIN LIBTOOL CONFIG
14683
14684# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14685
14686# Shell to use when invoking shell scripts.
14687SHELL=$lt_SHELL
14688
14689# Whether or not to build shared libraries.
14690build_libtool_libs=$enable_shared
14691
14692# Whether or not to build static libraries.
14693build_old_libs=$enable_static
14694
14695# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014696build_libtool_need_lc=$archive_cmds_need_lc
14697
14698# Whether or not to disallow shared libs when runtime libs are static
14699allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014700
14701# Whether or not to optimize for fast installation.
14702fast_install=$enable_fast_install
14703
14704# The host system.
14705host_alias=$host_alias
14706host=$host
14707
14708# An echo program that does not interpret backslashes.
14709echo=$lt_echo
14710
14711# The archiver.
14712AR=$lt_AR
14713AR_FLAGS=$lt_AR_FLAGS
14714
John Criswell47fdd832003-07-14 16:52:07 +000014715# A C compiler.
14716LTCC=$lt_LTCC
14717
14718# A language-specific compiler.
14719CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014720
14721# Is the compiler the GNU C compiler?
14722with_gcc=$GCC
14723
John Criswell47fdd832003-07-14 16:52:07 +000014724# An ERE matcher.
14725EGREP=$lt_EGREP
14726
John Criswell7a73b802003-06-30 21:59:07 +000014727# The linker used to build libraries.
14728LD=$lt_LD
14729
14730# Whether we need hard or soft links.
14731LN_S=$lt_LN_S
14732
14733# A BSD-compatible nm program.
14734NM=$lt_NM
14735
14736# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014737STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014738
14739# Used to examine libraries when file_magic_cmd begins "file"
14740MAGIC_CMD=$MAGIC_CMD
14741
14742# Used on cygwin: DLL creation program.
14743DLLTOOL="$DLLTOOL"
14744
14745# Used on cygwin: object dumper.
14746OBJDUMP="$OBJDUMP"
14747
14748# Used on cygwin: assembler.
14749AS="$AS"
14750
14751# The name of the directory that contains temporary libtool files.
14752objdir=$objdir
14753
14754# How to create reloadable object files.
14755reload_flag=$lt_reload_flag
14756reload_cmds=$lt_reload_cmds
14757
14758# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014759wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014760
14761# Object file suffix (normally "o").
14762objext="$ac_objext"
14763
14764# Old archive suffix (normally "a").
14765libext="$libext"
14766
John Criswell47fdd832003-07-14 16:52:07 +000014767# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014768shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014769
John Criswell7a73b802003-06-30 21:59:07 +000014770# Executable file suffix (normally "").
14771exeext="$exeext"
14772
14773# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014774pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014775pic_mode=$pic_mode
14776
John Criswell47fdd832003-07-14 16:52:07 +000014777# What is the maximum length of a command?
14778max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014779
John Criswell47fdd832003-07-14 16:52:07 +000014780# Does compiler simultaneously support -c and -o options?
14781compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014782
14783# Must we lock files when doing compilation ?
14784need_locks=$lt_need_locks
14785
14786# Do we need the lib prefix for modules?
14787need_lib_prefix=$need_lib_prefix
14788
14789# Do we need a version for libraries?
14790need_version=$need_version
14791
14792# Whether dlopen is supported.
14793dlopen_support=$enable_dlopen
14794
14795# Whether dlopen of programs is supported.
14796dlopen_self=$enable_dlopen_self
14797
14798# Whether dlopen of statically linked programs is supported.
14799dlopen_self_static=$enable_dlopen_self_static
14800
14801# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014802link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014803
14804# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014805no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014806
14807# Compiler flag to allow reflexive dlopens.
14808export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14809
14810# Compiler flag to generate shared objects directly from archives.
14811whole_archive_flag_spec=$lt_whole_archive_flag_spec
14812
14813# Compiler flag to generate thread-safe objects.
14814thread_safe_flag_spec=$lt_thread_safe_flag_spec
14815
14816# Library versioning type.
14817version_type=$version_type
14818
14819# Format of library name prefix.
14820libname_spec=$lt_libname_spec
14821
14822# List of archive names. First name is the real one, the rest are links.
14823# The last name is the one that the linker finds with -lNAME.
14824library_names_spec=$lt_library_names_spec
14825
14826# The coded name of the library, if different from the real name.
14827soname_spec=$lt_soname_spec
14828
14829# Commands used to build and install an old-style archive.
14830RANLIB=$lt_RANLIB
14831old_archive_cmds=$lt_old_archive_cmds
14832old_postinstall_cmds=$lt_old_postinstall_cmds
14833old_postuninstall_cmds=$lt_old_postuninstall_cmds
14834
14835# Create an old-style archive from a shared archive.
14836old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14837
14838# Create a temporary old-style archive to link instead of a shared archive.
14839old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14840
14841# Commands used to build and install a shared archive.
14842archive_cmds=$lt_archive_cmds
14843archive_expsym_cmds=$lt_archive_expsym_cmds
14844postinstall_cmds=$lt_postinstall_cmds
14845postuninstall_cmds=$lt_postuninstall_cmds
14846
John Criswell47fdd832003-07-14 16:52:07 +000014847# Commands used to build a loadable module (assumed same as above if empty)
14848module_cmds=$lt_module_cmds
14849module_expsym_cmds=$lt_module_expsym_cmds
14850
John Criswell7a73b802003-06-30 21:59:07 +000014851# Commands to strip libraries.
14852old_striplib=$lt_old_striplib
14853striplib=$lt_striplib
14854
John Criswell47fdd832003-07-14 16:52:07 +000014855# Dependencies to place before the objects being linked to create a
14856# shared library.
14857predep_objects=$lt_predep_objects
14858
14859# Dependencies to place after the objects being linked to create a
14860# shared library.
14861postdep_objects=$lt_postdep_objects
14862
14863# Dependencies to place before the objects being linked to create a
14864# shared library.
14865predeps=$lt_predeps
14866
14867# Dependencies to place after the objects being linked to create a
14868# shared library.
14869postdeps=$lt_postdeps
14870
14871# The library search path used internally by the compiler when linking
14872# a shared library.
14873compiler_lib_search_path=$lt_compiler_lib_search_path
14874
John Criswell7a73b802003-06-30 21:59:07 +000014875# Method to check whether dependent libraries are shared objects.
14876deplibs_check_method=$lt_deplibs_check_method
14877
14878# Command to use when deplibs_check_method == file_magic.
14879file_magic_cmd=$lt_file_magic_cmd
14880
14881# Flag that allows shared libraries with undefined symbols to be built.
14882allow_undefined_flag=$lt_allow_undefined_flag
14883
14884# Flag that forces no undefined symbols.
14885no_undefined_flag=$lt_no_undefined_flag
14886
14887# Commands used to finish a libtool library installation in a directory.
14888finish_cmds=$lt_finish_cmds
14889
14890# Same as above, but a single script fragment to be evaled but not shown.
14891finish_eval=$lt_finish_eval
14892
14893# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014894global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014895
14896# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014897global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014898
14899# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014900global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014901
14902# This is the shared library runtime path variable.
14903runpath_var=$runpath_var
14904
14905# This is the shared library path variable.
14906shlibpath_var=$shlibpath_var
14907
14908# Is shlibpath searched before the hard-coded library search path?
14909shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14910
14911# How to hardcode a shared library path into an executable.
14912hardcode_action=$hardcode_action
14913
14914# Whether we should hardcode library paths into libraries.
14915hardcode_into_libs=$hardcode_into_libs
14916
14917# Flag to hardcode \$libdir into a binary during linking.
14918# This must work even if \$libdir does not exist.
14919hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14920
John Criswell47fdd832003-07-14 16:52:07 +000014921# If ld is used when linking, flag to hardcode \$libdir into
14922# a binary during linking. This must work even if \$libdir does
14923# not exist.
14924hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14925
John Criswell7a73b802003-06-30 21:59:07 +000014926# Whether we need a single -rpath flag with a separated argument.
14927hardcode_libdir_separator=$lt_hardcode_libdir_separator
14928
John Criswell47fdd832003-07-14 16:52:07 +000014929# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014930# resulting binary.
14931hardcode_direct=$hardcode_direct
14932
14933# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14934# resulting binary.
14935hardcode_minus_L=$hardcode_minus_L
14936
14937# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14938# the resulting binary.
14939hardcode_shlibpath_var=$hardcode_shlibpath_var
14940
John Criswell47fdd832003-07-14 16:52:07 +000014941# Set to yes if building a shared library automatically hardcodes DIR into the library
14942# and all subsequent libraries and executables linked against it.
14943hardcode_automatic=$hardcode_automatic
14944
John Criswell7a73b802003-06-30 21:59:07 +000014945# Variables whose values should be saved in libtool wrapper scripts and
14946# restored at relink time.
14947variables_saved_for_relink="$variables_saved_for_relink"
14948
14949# Whether libtool must link a program against all its dependency libraries.
14950link_all_deplibs=$link_all_deplibs
14951
14952# Compile-time system search path for libraries
14953sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14954
14955# Run-time system search path for libraries
14956sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14957
14958# Fix the shell variable \$srcfile for the compiler.
14959fix_srcfile_path="$fix_srcfile_path"
14960
14961# Set to yes if exported symbols are required.
14962always_export_symbols=$always_export_symbols
14963
14964# The commands to list exported symbols.
14965export_symbols_cmds=$lt_export_symbols_cmds
14966
14967# The commands to extract the exported symbol list from a shared archive.
14968extract_expsyms_cmds=$lt_extract_expsyms_cmds
14969
14970# Symbols that should not be listed in the preloaded symbols.
14971exclude_expsyms=$lt_exclude_expsyms
14972
14973# Symbols that must always be exported.
14974include_expsyms=$lt_include_expsyms
14975
14976# ### END LIBTOOL CONFIG
14977
14978__EOF__
14979
John Criswell47fdd832003-07-14 16:52:07 +000014980
John Criswell7a73b802003-06-30 21:59:07 +000014981 case $host_os in
14982 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014983 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014984
14985# AIX sometimes has problems with the GCC collect2 program. For some
14986# reason, if we set the COLLECT_NAMES environment variable, the problems
14987# vanish in a puff of smoke.
14988if test "X${COLLECT_NAMES+set}" != Xset; then
14989 COLLECT_NAMES=
14990 export COLLECT_NAMES
14991fi
14992EOF
14993 ;;
14994 esac
14995
John Criswell7a73b802003-06-30 21:59:07 +000014996 # We use sed instead of cat because bash on DJGPP gets confused if
14997 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14998 # text mode, it properly converts lines to CR/LF. This bash problem
14999 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015000 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015001
John Criswell47fdd832003-07-14 16:52:07 +000015002 mv -f "$cfgfile" "$ofile" || \
15003 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015004 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015005
15006else
15007 # If there is no Makefile yet, we rely on a make rule to execute
15008 # `config.status --recheck' to rerun these tests and create the
15009 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015010 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15011 if test -f "$ltmain_in"; then
15012 test -f Makefile && make "$ltmain"
15013 fi
John Criswell7a73b802003-06-30 21:59:07 +000015014fi
John Criswell7a73b802003-06-30 21:59:07 +000015015
15016
John Criswell47fdd832003-07-14 16:52:07 +000015017ac_ext=c
15018ac_cpp='$CPP $CPPFLAGS'
15019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15021ac_compiler_gnu=$ac_cv_c_compiler_gnu
15022
15023CC="$lt_save_CC"
15024
15025
15026# Check whether --with-tags or --without-tags was given.
15027if test "${with_tags+set}" = set; then
15028 withval="$with_tags"
15029 tagnames="$withval"
15030fi;
15031
15032if test -f "$ltmain" && test -n "$tagnames"; then
15033 if test ! -f "${ofile}"; then
15034 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15035echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15036 fi
15037
15038 if test -z "$LTCC"; then
15039 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15040 if test -z "$LTCC"; then
15041 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15042echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15043 else
15044 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15045echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15046 fi
15047 fi
15048
15049 # Extract list of available tagged configurations in $ofile.
15050 # Note that this assumes the entire list is on one line.
15051 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15052
15053 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15054 for tagname in $tagnames; do
15055 IFS="$lt_save_ifs"
15056 # Check whether tagname contains only valid characters
15057 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15058 "") ;;
15059 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15060echo "$as_me: error: invalid tag name: $tagname" >&2;}
15061 { (exit 1); exit 1; }; }
15062 ;;
15063 esac
15064
15065 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15066 then
15067 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15068echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15069 { (exit 1); exit 1; }; }
15070 fi
15071
15072 # Update the list of available tags.
15073 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015074 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015075
15076 case $tagname in
15077 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015078 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15079 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15080 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015081 ac_ext=cc
15082ac_cpp='$CXXCPP $CPPFLAGS'
15083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15086
15087
15088
15089
15090archive_cmds_need_lc_CXX=no
15091allow_undefined_flag_CXX=
15092always_export_symbols_CXX=no
15093archive_expsym_cmds_CXX=
15094export_dynamic_flag_spec_CXX=
15095hardcode_direct_CXX=no
15096hardcode_libdir_flag_spec_CXX=
15097hardcode_libdir_flag_spec_ld_CXX=
15098hardcode_libdir_separator_CXX=
15099hardcode_minus_L_CXX=no
15100hardcode_automatic_CXX=no
15101module_cmds_CXX=
15102module_expsym_cmds_CXX=
15103link_all_deplibs_CXX=unknown
15104old_archive_cmds_CXX=$old_archive_cmds
15105no_undefined_flag_CXX=
15106whole_archive_flag_spec_CXX=
15107enable_shared_with_static_runtimes_CXX=no
15108
15109# Dependencies to place before and after the object being linked:
15110predep_objects_CXX=
15111postdep_objects_CXX=
15112predeps_CXX=
15113postdeps_CXX=
15114compiler_lib_search_path_CXX=
15115
15116# Source file extension for C++ test sources.
15117ac_ext=cc
15118
15119# Object file extension for compiled C++ test sources.
15120objext=o
15121objext_CXX=$objext
15122
15123# Code to be used in simple compile tests
15124lt_simple_compile_test_code="int some_variable = 0;\n"
15125
15126# Code to be used in simple link tests
15127lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15128
15129# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15130
15131# If no C compiler was specified, use CC.
15132LTCC=${LTCC-"$CC"}
15133
15134# Allow CC to be a program name with arguments.
15135compiler=$CC
15136
15137
15138# Allow CC to be a program name with arguments.
15139lt_save_CC=$CC
15140lt_save_LD=$LD
15141lt_save_GCC=$GCC
15142GCC=$GXX
15143lt_save_with_gnu_ld=$with_gnu_ld
15144lt_save_path_LD=$lt_cv_path_LD
15145if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15146 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15147else
15148 unset lt_cv_prog_gnu_ld
15149fi
15150if test -n "${lt_cv_path_LDCXX+set}"; then
15151 lt_cv_path_LD=$lt_cv_path_LDCXX
15152else
15153 unset lt_cv_path_LD
15154fi
15155test -z "${LDCXX+set}" || LD=$LDCXX
15156CC=${CXX-"c++"}
15157compiler=$CC
15158compiler_CXX=$CC
15159cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15160
15161# We don't want -fno-exception wen compiling C++ code, so set the
15162# no_builtin_flag separately
15163if test "$GXX" = yes; then
15164 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15165else
15166 lt_prog_compiler_no_builtin_flag_CXX=
15167fi
15168
15169if test "$GXX" = yes; then
15170 # Set up default GNU C++ configuration
15171
15172
15173# Check whether --with-gnu-ld or --without-gnu-ld was given.
15174if test "${with_gnu_ld+set}" = set; then
15175 withval="$with_gnu_ld"
15176 test "$withval" = no || with_gnu_ld=yes
15177else
15178 with_gnu_ld=no
15179fi;
15180ac_prog=ld
15181if test "$GCC" = yes; then
15182 # Check if gcc -print-prog-name=ld gives a path.
15183 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15184echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15185 case $host in
15186 *-*-mingw*)
15187 # gcc leaves a trailing carriage return which upsets mingw
15188 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15189 *)
15190 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15191 esac
15192 case $ac_prog in
15193 # Accept absolute paths.
15194 [\\/]* | ?:[\\/]*)
15195 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015196 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015197 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15198 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15199 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15200 done
15201 test -z "$LD" && LD="$ac_prog"
15202 ;;
15203 "")
15204 # If it fails, then pretend we aren't using GCC.
15205 ac_prog=ld
15206 ;;
15207 *)
15208 # If it is relative, then search for the first ld in PATH.
15209 with_gnu_ld=unknown
15210 ;;
15211 esac
15212elif test "$with_gnu_ld" = yes; then
15213 echo "$as_me:$LINENO: checking for GNU ld" >&5
15214echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15215else
15216 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15217echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15218fi
15219if test "${lt_cv_path_LD+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15221else
15222 if test -z "$LD"; then
15223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15224 for ac_dir in $PATH; do
15225 IFS="$lt_save_ifs"
15226 test -z "$ac_dir" && ac_dir=.
15227 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15228 lt_cv_path_LD="$ac_dir/$ac_prog"
15229 # Check to see if the program is GNU ld. I'd rather use --version,
15230 # but apparently some GNU ld's only accept -v.
15231 # Break only if it was the GNU/non-GNU ld that we prefer.
15232 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15233 *GNU* | *'with BFD'*)
15234 test "$with_gnu_ld" != no && break
15235 ;;
15236 *)
15237 test "$with_gnu_ld" != yes && break
15238 ;;
15239 esac
15240 fi
15241 done
15242 IFS="$lt_save_ifs"
15243else
15244 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15245fi
15246fi
15247
15248LD="$lt_cv_path_LD"
15249if test -n "$LD"; then
15250 echo "$as_me:$LINENO: result: $LD" >&5
15251echo "${ECHO_T}$LD" >&6
15252else
15253 echo "$as_me:$LINENO: result: no" >&5
15254echo "${ECHO_T}no" >&6
15255fi
15256test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15257echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15258 { (exit 1); exit 1; }; }
15259echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15260echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15261if test "${lt_cv_prog_gnu_ld+set}" = set; then
15262 echo $ECHO_N "(cached) $ECHO_C" >&6
15263else
15264 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015265case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015266*GNU* | *'with BFD'*)
15267 lt_cv_prog_gnu_ld=yes
15268 ;;
15269*)
15270 lt_cv_prog_gnu_ld=no
15271 ;;
15272esac
15273fi
15274echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15275echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15276with_gnu_ld=$lt_cv_prog_gnu_ld
15277
15278
15279
15280 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15281 # archiving commands below assume that GNU ld is being used.
15282 if test "$with_gnu_ld" = yes; then
15283 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15284 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'
15285
15286 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15287 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15288
15289 # If archive_cmds runs LD, not CC, wlarc should be empty
15290 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15291 # investigate it a little bit more. (MM)
15292 wlarc='${wl}'
15293
15294 # ancient GNU ld didn't support --whole-archive et. al.
15295 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15296 grep 'no-whole-archive' > /dev/null; then
15297 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15298 else
15299 whole_archive_flag_spec_CXX=
15300 fi
15301 else
15302 with_gnu_ld=no
15303 wlarc=
15304
15305 # A generic and very simple default shared library creation
15306 # command for GNU C++ for the case where it uses the native
15307 # linker, instead of GNU ld. If possible, this setting should
15308 # overridden to take advantage of the native linker features on
15309 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015310 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015311 fi
15312
15313 # Commands to make compiler produce verbose output that lists
15314 # what "hidden" libraries, object files and flags are used when
15315 # linking a shared library.
15316 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15317
15318else
15319 GXX=no
15320 with_gnu_ld=no
15321 wlarc=
15322fi
15323
15324# PORTME: fill in a description of your system's C++ link characteristics
15325echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15326echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15327ld_shlibs_CXX=yes
15328case $host_os in
15329 aix3*)
15330 # FIXME: insert proper C++ library support
15331 ld_shlibs_CXX=no
15332 ;;
15333 aix4* | aix5*)
15334 if test "$host_cpu" = ia64; then
15335 # On IA64, the linker does run time linking by default, so we don't
15336 # have to do anything special.
15337 aix_use_runtimelinking=no
15338 exp_sym_flag='-Bexport'
15339 no_entry_flag=""
15340 else
15341 aix_use_runtimelinking=no
15342
15343 # Test if we are trying to use run time linking or normal
15344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15345 # need to do runtime linking.
15346 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15347 for ld_flag in $LDFLAGS; do
15348 case $ld_flag in
15349 *-brtl*)
15350 aix_use_runtimelinking=yes
15351 break
15352 ;;
15353 esac
15354 done
15355 esac
15356
15357 exp_sym_flag='-bexport'
15358 no_entry_flag='-bnoentry'
15359 fi
15360
15361 # When large executables or shared objects are built, AIX ld can
15362 # have problems creating the table of contents. If linking a library
15363 # or program results in "error TOC overflow" add -mminimal-toc to
15364 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15365 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15366
15367 archive_cmds_CXX=''
15368 hardcode_direct_CXX=yes
15369 hardcode_libdir_separator_CXX=':'
15370 link_all_deplibs_CXX=yes
15371
15372 if test "$GXX" = yes; then
15373 case $host_os in aix4.012|aix4.012.*)
15374 # We only want to do this on AIX 4.2 and lower, the check
15375 # below for broken collect2 doesn't work under 4.3+
15376 collect2name=`${CC} -print-prog-name=collect2`
15377 if test -f "$collect2name" && \
15378 strings "$collect2name" | grep resolve_lib_name >/dev/null
15379 then
15380 # We have reworked collect2
15381 hardcode_direct_CXX=yes
15382 else
15383 # We have old collect2
15384 hardcode_direct_CXX=unsupported
15385 # It fails to find uninstalled libraries when the uninstalled
15386 # path is not listed in the libpath. Setting hardcode_minus_L
15387 # to unsupported forces relinking
15388 hardcode_minus_L_CXX=yes
15389 hardcode_libdir_flag_spec_CXX='-L$libdir'
15390 hardcode_libdir_separator_CXX=
15391 fi
15392 esac
15393 shared_flag='-shared'
15394 else
15395 # not using gcc
15396 if test "$host_cpu" = ia64; then
15397 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15398 # chokes on -Wl,-G. The following line is correct:
15399 shared_flag='-G'
15400 else
15401 if test "$aix_use_runtimelinking" = yes; then
15402 shared_flag='${wl}-G'
15403 else
15404 shared_flag='${wl}-bM:SRE'
15405 fi
15406 fi
15407 fi
15408
15409 # It seems that -bexpall does not export symbols beginning with
15410 # underscore (_), so it is better to generate a list of symbols to export.
15411 always_export_symbols_CXX=yes
15412 if test "$aix_use_runtimelinking" = yes; then
15413 # Warning - without using the other runtime loading flags (-brtl),
15414 # -berok will link without error, but may produce a broken library.
15415 allow_undefined_flag_CXX='-berok'
15416 # Determine the default libpath from the value encoded in an empty executable.
15417 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015418/* confdefs.h. */
15419_ACEOF
15420cat confdefs.h >>conftest.$ac_ext
15421cat >>conftest.$ac_ext <<_ACEOF
15422/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015423
John Criswell47fdd832003-07-14 16:52:07 +000015424int
15425main ()
15426{
15427
15428 ;
15429 return 0;
15430}
15431_ACEOF
15432rm -f conftest.$ac_objext conftest$ac_exeext
15433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015434 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015435 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015436 grep -v '^ *+' conftest.er1 >conftest.err
15437 rm -f conftest.er1
15438 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015441 { ac_try='test -z "$ac_cxx_werror_flag"
15442 || test ! -s conftest.err'
15443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15444 (eval $ac_try) 2>&5
15445 ac_status=$?
15446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15447 (exit $ac_status); }; } &&
15448 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; }; then
15454
15455aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15456}'`
15457# Check for a 64-bit object if we didn't find anything.
15458if 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; }
15459}'`; fi
15460else
15461 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015462sed 's/^/| /' conftest.$ac_ext >&5
15463
John Criswell47fdd832003-07-14 16:52:07 +000015464fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015465rm -f conftest.err conftest.$ac_objext \
15466 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015467if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15468
15469 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15470
15471 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"
15472 else
15473 if test "$host_cpu" = ia64; then
15474 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15475 allow_undefined_flag_CXX="-z nodefs"
15476 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"
15477 else
15478 # Determine the default libpath from the value encoded in an empty executable.
15479 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015480/* confdefs.h. */
15481_ACEOF
15482cat confdefs.h >>conftest.$ac_ext
15483cat >>conftest.$ac_ext <<_ACEOF
15484/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015485
John Criswell47fdd832003-07-14 16:52:07 +000015486int
15487main ()
15488{
15489
15490 ;
15491 return 0;
15492}
15493_ACEOF
15494rm -f conftest.$ac_objext conftest$ac_exeext
15495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015496 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015497 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015498 grep -v '^ *+' conftest.er1 >conftest.err
15499 rm -f conftest.er1
15500 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015503 { ac_try='test -z "$ac_cxx_werror_flag"
15504 || test ! -s conftest.err'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15507 ac_status=$?
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; } &&
15510 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15512 (eval $ac_try) 2>&5
15513 ac_status=$?
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; }; then
15516
15517aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15518}'`
15519# Check for a 64-bit object if we didn't find anything.
15520if 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; }
15521}'`; fi
15522else
15523 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015524sed 's/^/| /' conftest.$ac_ext >&5
15525
John Criswell47fdd832003-07-14 16:52:07 +000015526fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015527rm -f conftest.err conftest.$ac_objext \
15528 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015529if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15530
15531 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15532 # Warning - without using the other run time loading flags,
15533 # -berok will link without error, but may produce a broken library.
15534 no_undefined_flag_CXX=' ${wl}-bernotok'
15535 allow_undefined_flag_CXX=' ${wl}-berok'
15536 # -bexpall does not export symbols beginning with underscore (_)
15537 always_export_symbols_CXX=yes
15538 # Exported symbols can be pulled into shared objects from archives
15539 whole_archive_flag_spec_CXX=' '
15540 archive_cmds_need_lc_CXX=yes
15541 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015542 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 +000015543 fi
15544 fi
15545 ;;
15546 chorus*)
15547 case $cc_basename in
15548 *)
15549 # FIXME: insert proper C++ library support
15550 ld_shlibs_CXX=no
15551 ;;
15552 esac
15553 ;;
15554
Reid Spencer2706f8c2004-09-19 23:53:36 +000015555
John Criswell47fdd832003-07-14 16:52:07 +000015556 cygwin* | mingw* | pw32*)
15557 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15558 # as there is no search path for DLLs.
15559 hardcode_libdir_flag_spec_CXX='-L$libdir'
15560 allow_undefined_flag_CXX=unsupported
15561 always_export_symbols_CXX=no
15562 enable_shared_with_static_runtimes_CXX=yes
15563
15564 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15565 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'
15566 # If the export-symbols file already is a .def file (1st line
15567 # is EXPORTS), use it as is; otherwise, prepend...
15568 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15569 cp $export_symbols $output_objdir/$soname.def;
15570 else
15571 echo EXPORTS > $output_objdir/$soname.def;
15572 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015573 fi~
15574 $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 +000015575 else
15576 ld_shlibs_CXX=no
15577 fi
15578 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015579 darwin* | rhapsody*)
15580 case "$host_os" in
15581 rhapsody* | darwin1.[012])
15582 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15583 ;;
15584 *) # Darwin 1.3 on
15585 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15586 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15587 else
15588 case ${MACOSX_DEPLOYMENT_TARGET} in
15589 10.[012])
15590 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15591 ;;
15592 10.*)
15593 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15594 ;;
15595 esac
15596 fi
15597 ;;
15598 esac
15599 archive_cmds_need_lc_CXX=no
15600 hardcode_direct_CXX=no
15601 hardcode_automatic_CXX=yes
15602 hardcode_shlibpath_var_CXX=unsupported
15603 whole_archive_flag_spec_CXX=''
15604 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015605
Reid Spencer2706f8c2004-09-19 23:53:36 +000015606 if test "$GXX" = yes ; then
15607 lt_int_apple_cc_single_mod=no
15608 output_verbose_link_cmd='echo'
15609 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15610 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015611 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015612 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015613 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 +000015614 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015615 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 +000015616 fi
15617 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15618 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15619 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015620 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 +000015621 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015622 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 +000015623 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015624 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 +000015625 else
15626 case "$cc_basename" in
15627 xlc*)
15628 output_verbose_link_cmd='echo'
15629 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'
15630 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15631 # 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 +000015632 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}'
15633 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 +000015634 ;;
15635 *)
15636 ld_shlibs_CXX=no
15637 ;;
15638 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015639 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015640 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015641
15642 dgux*)
15643 case $cc_basename in
15644 ec++)
15645 # FIXME: insert proper C++ library support
15646 ld_shlibs_CXX=no
15647 ;;
15648 ghcx)
15649 # Green Hills C++ Compiler
15650 # FIXME: insert proper C++ library support
15651 ld_shlibs_CXX=no
15652 ;;
15653 *)
15654 # FIXME: insert proper C++ library support
15655 ld_shlibs_CXX=no
15656 ;;
15657 esac
15658 ;;
15659 freebsd12*)
15660 # C++ shared libraries reported to be fairly broken before switch to ELF
15661 ld_shlibs_CXX=no
15662 ;;
15663 freebsd-elf*)
15664 archive_cmds_need_lc_CXX=no
15665 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015666 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015667 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15668 # conventions
15669 ld_shlibs_CXX=yes
15670 ;;
15671 gnu*)
15672 ;;
15673 hpux9*)
15674 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15675 hardcode_libdir_separator_CXX=:
15676 export_dynamic_flag_spec_CXX='${wl}-E'
15677 hardcode_direct_CXX=yes
15678 hardcode_minus_L_CXX=yes # Not in the search PATH,
15679 # but as the default
15680 # location of the library.
15681
15682 case $cc_basename in
15683 CC)
15684 # FIXME: insert proper C++ library support
15685 ld_shlibs_CXX=no
15686 ;;
15687 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015688 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 +000015689 # Commands to make compiler produce verbose output that lists
15690 # what "hidden" libraries, object files and flags are used when
15691 # linking a shared library.
15692 #
15693 # There doesn't appear to be a way to prevent this compiler from
15694 # explicitly linking system object files so we need to strip them
15695 # from the output so that they don't get included in the library
15696 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015697 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 +000015698 ;;
15699 *)
15700 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015701 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 +000015702 else
15703 # FIXME: insert proper C++ library support
15704 ld_shlibs_CXX=no
15705 fi
15706 ;;
15707 esac
15708 ;;
15709 hpux10*|hpux11*)
15710 if test $with_gnu_ld = no; then
15711 case "$host_cpu" in
15712 hppa*64*)
15713 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15714 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15715 hardcode_libdir_separator_CXX=:
15716 ;;
15717 ia64*)
15718 hardcode_libdir_flag_spec_CXX='-L$libdir'
15719 ;;
15720 *)
15721 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15722 hardcode_libdir_separator_CXX=:
15723 export_dynamic_flag_spec_CXX='${wl}-E'
15724 ;;
15725 esac
15726 fi
15727 case "$host_cpu" in
15728 hppa*64*)
15729 hardcode_direct_CXX=no
15730 hardcode_shlibpath_var_CXX=no
15731 ;;
15732 ia64*)
15733 hardcode_direct_CXX=no
15734 hardcode_shlibpath_var_CXX=no
15735 hardcode_minus_L_CXX=yes # Not in the search PATH,
15736 # but as the default
15737 # location of the library.
15738 ;;
15739 *)
15740 hardcode_direct_CXX=yes
15741 hardcode_minus_L_CXX=yes # Not in the search PATH,
15742 # but as the default
15743 # location of the library.
15744 ;;
15745 esac
15746
15747 case $cc_basename in
15748 CC)
15749 # FIXME: insert proper C++ library support
15750 ld_shlibs_CXX=no
15751 ;;
15752 aCC)
15753 case "$host_cpu" in
15754 hppa*64*|ia64*)
15755 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15756 ;;
15757 *)
15758 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15759 ;;
15760 esac
15761 # Commands to make compiler produce verbose output that lists
15762 # what "hidden" libraries, object files and flags are used when
15763 # linking a shared library.
15764 #
15765 # There doesn't appear to be a way to prevent this compiler from
15766 # explicitly linking system object files so we need to strip them
15767 # from the output so that they don't get included in the library
15768 # dependencies.
15769 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'
15770 ;;
15771 *)
15772 if test "$GXX" = yes; then
15773 if test $with_gnu_ld = no; then
15774 case "$host_cpu" in
15775 ia64*|hppa*64*)
15776 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15777 ;;
15778 *)
15779 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'
15780 ;;
15781 esac
15782 fi
15783 else
15784 # FIXME: insert proper C++ library support
15785 ld_shlibs_CXX=no
15786 fi
15787 ;;
15788 esac
15789 ;;
15790 irix5* | irix6*)
15791 case $cc_basename in
15792 CC)
15793 # SGI C++
15794 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'
15795
15796 # Archives containing C++ object files must be created using
15797 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15798 # necessary to make sure instantiated templates are included
15799 # in the archive.
15800 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15801 ;;
15802 *)
15803 if test "$GXX" = yes; then
15804 if test "$with_gnu_ld" = no; then
15805 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'
15806 else
15807 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'
15808 fi
15809 fi
15810 link_all_deplibs_CXX=yes
15811 ;;
15812 esac
15813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15814 hardcode_libdir_separator_CXX=:
15815 ;;
15816 linux*)
15817 case $cc_basename in
15818 KCC)
15819 # Kuck and Associates, Inc. (KAI) C++ Compiler
15820
15821 # KCC will only create a shared library if the output file
15822 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15823 # to its proper name (with version) after linking.
15824 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'
15825 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'
15826 # Commands to make compiler produce verbose output that lists
15827 # what "hidden" libraries, object files and flags are used when
15828 # linking a shared library.
15829 #
15830 # There doesn't appear to be a way to prevent this compiler from
15831 # explicitly linking system object files so we need to strip them
15832 # from the output so that they don't get included in the library
15833 # dependencies.
15834 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'
15835
15836 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15837 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15838
15839 # Archives containing C++ object files must be created using
15840 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15841 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15842 ;;
15843 icpc)
15844 # Intel C++
15845 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015846 # version 8.0 and above of icpc choke on multiply defined symbols
15847 # if we add $predep_objects and $postdep_objects, however 7.1 and
15848 # earlier do not add the objects themselves.
15849 case `$CC -V 2>&1` in
15850 *"Version 7."*)
15851 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15852 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'
15853 ;;
15854 *) # Version 8.0 or newer
15855 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15856 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15857 ;;
15858 esac
John Criswell47fdd832003-07-14 16:52:07 +000015859 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015860 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15861 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15862 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15863 ;;
15864 cxx)
15865 # Compaq C++
15866 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15867 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'
15868
15869 runpath_var=LD_RUN_PATH
15870 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15871 hardcode_libdir_separator_CXX=:
15872
15873 # Commands to make compiler produce verbose output that lists
15874 # what "hidden" libraries, object files and flags are used when
15875 # linking a shared library.
15876 #
15877 # There doesn't appear to be a way to prevent this compiler from
15878 # explicitly linking system object files so we need to strip them
15879 # from the output so that they don't get included in the library
15880 # dependencies.
15881 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'
15882 ;;
15883 esac
15884 ;;
15885 lynxos*)
15886 # FIXME: insert proper C++ library support
15887 ld_shlibs_CXX=no
15888 ;;
15889 m88k*)
15890 # FIXME: insert proper C++ library support
15891 ld_shlibs_CXX=no
15892 ;;
15893 mvs*)
15894 case $cc_basename in
15895 cxx)
15896 # FIXME: insert proper C++ library support
15897 ld_shlibs_CXX=no
15898 ;;
15899 *)
15900 # FIXME: insert proper C++ library support
15901 ld_shlibs_CXX=no
15902 ;;
15903 esac
15904 ;;
15905 netbsd*)
15906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15907 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15908 wlarc=
15909 hardcode_libdir_flag_spec_CXX='-R$libdir'
15910 hardcode_direct_CXX=yes
15911 hardcode_shlibpath_var_CXX=no
15912 fi
15913 # Workaround some broken pre-1.5 toolchains
15914 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15915 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015916 openbsd2*)
15917 # C++ shared libraries are fairly broken
15918 ld_shlibs_CXX=no
15919 ;;
15920 openbsd*)
15921 hardcode_direct_CXX=yes
15922 hardcode_shlibpath_var_CXX=no
15923 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15924 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15925 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15926 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15927 export_dynamic_flag_spec_CXX='${wl}-E'
15928 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15929 fi
15930 output_verbose_link_cmd='echo'
15931 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015932 osf3*)
15933 case $cc_basename in
15934 KCC)
15935 # Kuck and Associates, Inc. (KAI) C++ Compiler
15936
15937 # KCC will only create a shared library if the output file
15938 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15939 # to its proper name (with version) after linking.
15940 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'
15941
15942 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15943 hardcode_libdir_separator_CXX=:
15944
15945 # Archives containing C++ object files must be created using
15946 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15947 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15948
15949 ;;
15950 RCC)
15951 # Rational C++ 2.4.1
15952 # FIXME: insert proper C++ library support
15953 ld_shlibs_CXX=no
15954 ;;
15955 cxx)
15956 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15957 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'
15958
15959 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15960 hardcode_libdir_separator_CXX=:
15961
15962 # Commands to make compiler produce verbose output that lists
15963 # what "hidden" libraries, object files and flags are used when
15964 # linking a shared library.
15965 #
15966 # There doesn't appear to be a way to prevent this compiler from
15967 # explicitly linking system object files so we need to strip them
15968 # from the output so that they don't get included in the library
15969 # dependencies.
15970 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'
15971 ;;
15972 *)
15973 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15974 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15975 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'
15976
15977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15978 hardcode_libdir_separator_CXX=:
15979
15980 # Commands to make compiler produce verbose output that lists
15981 # what "hidden" libraries, object files and flags are used when
15982 # linking a shared library.
15983 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15984
15985 else
15986 # FIXME: insert proper C++ library support
15987 ld_shlibs_CXX=no
15988 fi
15989 ;;
15990 esac
15991 ;;
15992 osf4* | osf5*)
15993 case $cc_basename in
15994 KCC)
15995 # Kuck and Associates, Inc. (KAI) C++ Compiler
15996
15997 # KCC will only create a shared library if the output file
15998 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15999 # to its proper name (with version) after linking.
16000 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'
16001
16002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16003 hardcode_libdir_separator_CXX=:
16004
16005 # Archives containing C++ object files must be created using
16006 # the KAI C++ compiler.
16007 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16008 ;;
16009 RCC)
16010 # Rational C++ 2.4.1
16011 # FIXME: insert proper C++ library support
16012 ld_shlibs_CXX=no
16013 ;;
16014 cxx)
16015 allow_undefined_flag_CXX=' -expect_unresolved \*'
16016 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 +000016017 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16018 echo "-hidden">> $lib.exp~
16019 $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~
16020 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016021
16022 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16023 hardcode_libdir_separator_CXX=:
16024
16025 # Commands to make compiler produce verbose output that lists
16026 # what "hidden" libraries, object files and flags are used when
16027 # linking a shared library.
16028 #
16029 # There doesn't appear to be a way to prevent this compiler from
16030 # explicitly linking system object files so we need to strip them
16031 # from the output so that they don't get included in the library
16032 # dependencies.
16033 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'
16034 ;;
16035 *)
16036 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16037 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16038 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'
16039
16040 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16041 hardcode_libdir_separator_CXX=:
16042
16043 # Commands to make compiler produce verbose output that lists
16044 # what "hidden" libraries, object files and flags are used when
16045 # linking a shared library.
16046 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16047
16048 else
16049 # FIXME: insert proper C++ library support
16050 ld_shlibs_CXX=no
16051 fi
16052 ;;
16053 esac
16054 ;;
16055 psos*)
16056 # FIXME: insert proper C++ library support
16057 ld_shlibs_CXX=no
16058 ;;
16059 sco*)
16060 archive_cmds_need_lc_CXX=no
16061 case $cc_basename in
16062 CC)
16063 # FIXME: insert proper C++ library support
16064 ld_shlibs_CXX=no
16065 ;;
16066 *)
16067 # FIXME: insert proper C++ library support
16068 ld_shlibs_CXX=no
16069 ;;
16070 esac
16071 ;;
16072 sunos4*)
16073 case $cc_basename in
16074 CC)
16075 # Sun C++ 4.x
16076 # FIXME: insert proper C++ library support
16077 ld_shlibs_CXX=no
16078 ;;
16079 lcc)
16080 # Lucid
16081 # FIXME: insert proper C++ library support
16082 ld_shlibs_CXX=no
16083 ;;
16084 *)
16085 # FIXME: insert proper C++ library support
16086 ld_shlibs_CXX=no
16087 ;;
16088 esac
16089 ;;
16090 solaris*)
16091 case $cc_basename in
16092 CC)
16093 # Sun C++ 4.2, 5.x and Centerline C++
16094 no_undefined_flag_CXX=' -zdefs'
16095 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 +000016096 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16097 $CC -G${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 +000016098
16099 hardcode_libdir_flag_spec_CXX='-R$libdir'
16100 hardcode_shlibpath_var_CXX=no
16101 case $host_os in
16102 solaris2.0-5 | solaris2.0-5.*) ;;
16103 *)
16104 # The C++ compiler is used as linker so we must use $wl
16105 # flag to pass the commands to the underlying system
16106 # linker.
16107 # Supported since Solaris 2.6 (maybe 2.5.1?)
16108 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16109 ;;
16110 esac
16111 link_all_deplibs_CXX=yes
16112
16113 # Commands to make compiler produce verbose output that lists
16114 # what "hidden" libraries, object files and flags are used when
16115 # linking a shared library.
16116 #
16117 # There doesn't appear to be a way to prevent this compiler from
16118 # explicitly linking system object files so we need to strip them
16119 # from the output so that they don't get included in the library
16120 # dependencies.
16121 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'
16122
16123 # Archives containing C++ object files must be created using
16124 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16125 # necessary to make sure instantiated templates are included
16126 # in the archive.
16127 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16128 ;;
16129 gcx)
16130 # Green Hills C++ Compiler
16131 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16132
16133 # The C++ compiler must be used to create the archive.
16134 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16135 ;;
16136 *)
16137 # GNU C++ compiler with Solaris linker
16138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16139 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16140 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016141 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 +000016142 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16143 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16144
John Criswell47fdd832003-07-14 16:52:07 +000016145 # Commands to make compiler produce verbose output that lists
16146 # what "hidden" libraries, object files and flags are used when
16147 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016148 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016149 else
16150 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16151 # platform.
16152 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 +000016153 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16154 $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 +000016155
16156 # Commands to make compiler produce verbose output that lists
16157 # what "hidden" libraries, object files and flags are used when
16158 # linking a shared library.
16159 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16160 fi
16161
16162 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16163 fi
16164 ;;
16165 esac
16166 ;;
16167 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16168 archive_cmds_need_lc_CXX=no
16169 ;;
16170 tandem*)
16171 case $cc_basename in
16172 NCC)
16173 # NonStop-UX NCC 3.20
16174 # FIXME: insert proper C++ library support
16175 ld_shlibs_CXX=no
16176 ;;
16177 *)
16178 # FIXME: insert proper C++ library support
16179 ld_shlibs_CXX=no
16180 ;;
16181 esac
16182 ;;
16183 vxworks*)
16184 # FIXME: insert proper C++ library support
16185 ld_shlibs_CXX=no
16186 ;;
16187 *)
16188 # FIXME: insert proper C++ library support
16189 ld_shlibs_CXX=no
16190 ;;
16191esac
16192echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16193echo "${ECHO_T}$ld_shlibs_CXX" >&6
16194test "$ld_shlibs_CXX" = no && can_build_shared=no
16195
16196GCC_CXX="$GXX"
16197LD_CXX="$LD"
16198
John Criswell47fdd832003-07-14 16:52:07 +000016199
16200cat > conftest.$ac_ext <<EOF
16201class Foo
16202{
16203public:
16204 Foo (void) { a = 0; }
16205private:
16206 int a;
16207};
16208EOF
16209
16210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16211 (eval $ac_compile) 2>&5
16212 ac_status=$?
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); }; then
16215 # Parse the compiler output and extract the necessary
16216 # objects, libraries and library flags.
16217
16218 # Sentinel used to keep track of whether or not we are before
16219 # the conftest object file.
16220 pre_test_object_deps_done=no
16221
16222 # The `*' in the case matches for architectures that use `case' in
16223 # $output_verbose_cmd can trigger glob expansion during the loop
16224 # eval without this substitution.
16225 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16226
16227 for p in `eval $output_verbose_link_cmd`; do
16228 case $p in
16229
16230 -L* | -R* | -l*)
16231 # Some compilers place space between "-{L,R}" and the path.
16232 # Remove the space.
16233 if test $p = "-L" \
16234 || test $p = "-R"; then
16235 prev=$p
16236 continue
16237 else
16238 prev=
16239 fi
16240
16241 if test "$pre_test_object_deps_done" = no; then
16242 case $p in
16243 -L* | -R*)
16244 # Internal compiler library paths should come after those
16245 # provided the user. The postdeps already come after the
16246 # user supplied libs so there is no need to process them.
16247 if test -z "$compiler_lib_search_path_CXX"; then
16248 compiler_lib_search_path_CXX="${prev}${p}"
16249 else
16250 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16251 fi
16252 ;;
16253 # The "-l" case would never come before the object being
16254 # linked, so don't bother handling this case.
16255 esac
16256 else
16257 if test -z "$postdeps_CXX"; then
16258 postdeps_CXX="${prev}${p}"
16259 else
16260 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16261 fi
16262 fi
16263 ;;
16264
16265 *.$objext)
16266 # This assumes that the test object file only shows up
16267 # once in the compiler output.
16268 if test "$p" = "conftest.$objext"; then
16269 pre_test_object_deps_done=yes
16270 continue
16271 fi
16272
16273 if test "$pre_test_object_deps_done" = no; then
16274 if test -z "$predep_objects_CXX"; then
16275 predep_objects_CXX="$p"
16276 else
16277 predep_objects_CXX="$predep_objects_CXX $p"
16278 fi
16279 else
16280 if test -z "$postdep_objects_CXX"; then
16281 postdep_objects_CXX="$p"
16282 else
16283 postdep_objects_CXX="$postdep_objects_CXX $p"
16284 fi
16285 fi
16286 ;;
16287
16288 *) ;; # Ignore the rest.
16289
16290 esac
16291 done
16292
16293 # Clean up.
16294 rm -f a.out a.exe
16295else
16296 echo "libtool.m4: error: problem compiling CXX test program"
16297fi
16298
16299$rm -f confest.$objext
16300
16301case " $postdeps_CXX " in
16302*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16303esac
16304
16305lt_prog_compiler_wl_CXX=
16306lt_prog_compiler_pic_CXX=
16307lt_prog_compiler_static_CXX=
16308
16309echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16310echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16311
16312 # C++ specific cases for pic, static, wl, etc.
16313 if test "$GXX" = yes; then
16314 lt_prog_compiler_wl_CXX='-Wl,'
16315 lt_prog_compiler_static_CXX='-static'
16316
16317 case $host_os in
16318 aix*)
16319 # All AIX code is PIC.
16320 if test "$host_cpu" = ia64; then
16321 # AIX 5 now supports IA64 processor
16322 lt_prog_compiler_static_CXX='-Bstatic'
16323 fi
16324 ;;
16325 amigaos*)
16326 # FIXME: we need at least 68020 code to build shared libraries, but
16327 # adding the `-m68020' flag to GCC prevents building anything better,
16328 # like `-m68040'.
16329 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16330 ;;
16331 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16332 # PIC is the default for these OSes.
16333 ;;
16334 mingw* | os2* | pw32*)
16335 # This hack is so that the source file can tell whether it is being
16336 # built for inclusion in a dll (and should export symbols for example).
16337 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16338 ;;
16339 darwin* | rhapsody*)
16340 # PIC is the default on this platform
16341 # Common symbols not allowed in MH_DYLIB files
16342 lt_prog_compiler_pic_CXX='-fno-common'
16343 ;;
16344 *djgpp*)
16345 # DJGPP does not support shared libraries at all
16346 lt_prog_compiler_pic_CXX=
16347 ;;
16348 sysv4*MP*)
16349 if test -d /usr/nec; then
16350 lt_prog_compiler_pic_CXX=-Kconform_pic
16351 fi
16352 ;;
16353 hpux*)
16354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16355 # not for PA HP-UX.
16356 case "$host_cpu" in
16357 hppa*64*|ia64*)
16358 ;;
16359 *)
16360 lt_prog_compiler_pic_CXX='-fPIC'
16361 ;;
16362 esac
16363 ;;
16364 *)
16365 lt_prog_compiler_pic_CXX='-fPIC'
16366 ;;
16367 esac
16368 else
16369 case $host_os in
16370 aix4* | aix5*)
16371 # All AIX code is PIC.
16372 if test "$host_cpu" = ia64; then
16373 # AIX 5 now supports IA64 processor
16374 lt_prog_compiler_static_CXX='-Bstatic'
16375 else
16376 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16377 fi
16378 ;;
16379 chorus*)
16380 case $cc_basename in
16381 cxch68)
16382 # Green Hills C++ Compiler
16383 # _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"
16384 ;;
16385 esac
16386 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016387 darwin*)
16388 # PIC is the default on this platform
16389 # Common symbols not allowed in MH_DYLIB files
16390 case "$cc_basename" in
16391 xlc*)
16392 lt_prog_compiler_pic_CXX='-qnocommon'
16393 lt_prog_compiler_wl_CXX='-Wl,'
16394 ;;
16395 esac
16396 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016397 dgux*)
16398 case $cc_basename in
16399 ec++)
16400 lt_prog_compiler_pic_CXX='-KPIC'
16401 ;;
16402 ghcx)
16403 # Green Hills C++ Compiler
16404 lt_prog_compiler_pic_CXX='-pic'
16405 ;;
16406 *)
16407 ;;
16408 esac
16409 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016410 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016411 # FreeBSD uses GNU C++
16412 ;;
16413 hpux9* | hpux10* | hpux11*)
16414 case $cc_basename in
16415 CC)
16416 lt_prog_compiler_wl_CXX='-Wl,'
16417 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16418 if test "$host_cpu" != ia64; then
16419 lt_prog_compiler_pic_CXX='+Z'
16420 fi
16421 ;;
16422 aCC)
16423 lt_prog_compiler_wl_CXX='-Wl,'
16424 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16425 case "$host_cpu" in
16426 hppa*64*|ia64*)
16427 # +Z the default
16428 ;;
16429 *)
16430 lt_prog_compiler_pic_CXX='+Z'
16431 ;;
16432 esac
16433 ;;
16434 *)
16435 ;;
16436 esac
16437 ;;
16438 irix5* | irix6* | nonstopux*)
16439 case $cc_basename in
16440 CC)
16441 lt_prog_compiler_wl_CXX='-Wl,'
16442 lt_prog_compiler_static_CXX='-non_shared'
16443 # CC pic flag -KPIC is the default.
16444 ;;
16445 *)
16446 ;;
16447 esac
16448 ;;
16449 linux*)
16450 case $cc_basename in
16451 KCC)
16452 # KAI C++ Compiler
16453 lt_prog_compiler_wl_CXX='--backend -Wl,'
16454 lt_prog_compiler_pic_CXX='-fPIC'
16455 ;;
16456 icpc)
16457 # Intel C++
16458 lt_prog_compiler_wl_CXX='-Wl,'
16459 lt_prog_compiler_pic_CXX='-KPIC'
16460 lt_prog_compiler_static_CXX='-static'
16461 ;;
16462 cxx)
16463 # Compaq C++
16464 # Make sure the PIC flag is empty. It appears that all Alpha
16465 # Linux and Compaq Tru64 Unix objects are PIC.
16466 lt_prog_compiler_pic_CXX=
16467 lt_prog_compiler_static_CXX='-non_shared'
16468 ;;
16469 *)
16470 ;;
16471 esac
16472 ;;
16473 lynxos*)
16474 ;;
16475 m88k*)
16476 ;;
16477 mvs*)
16478 case $cc_basename in
16479 cxx)
16480 lt_prog_compiler_pic_CXX='-W c,exportall'
16481 ;;
16482 *)
16483 ;;
16484 esac
16485 ;;
16486 netbsd*)
16487 ;;
16488 osf3* | osf4* | osf5*)
16489 case $cc_basename in
16490 KCC)
16491 lt_prog_compiler_wl_CXX='--backend -Wl,'
16492 ;;
16493 RCC)
16494 # Rational C++ 2.4.1
16495 lt_prog_compiler_pic_CXX='-pic'
16496 ;;
16497 cxx)
16498 # Digital/Compaq C++
16499 lt_prog_compiler_wl_CXX='-Wl,'
16500 # Make sure the PIC flag is empty. It appears that all Alpha
16501 # Linux and Compaq Tru64 Unix objects are PIC.
16502 lt_prog_compiler_pic_CXX=
16503 lt_prog_compiler_static_CXX='-non_shared'
16504 ;;
16505 *)
16506 ;;
16507 esac
16508 ;;
16509 psos*)
16510 ;;
16511 sco*)
16512 case $cc_basename in
16513 CC)
16514 lt_prog_compiler_pic_CXX='-fPIC'
16515 ;;
16516 *)
16517 ;;
16518 esac
16519 ;;
16520 solaris*)
16521 case $cc_basename in
16522 CC)
16523 # Sun C++ 4.2, 5.x and Centerline C++
16524 lt_prog_compiler_pic_CXX='-KPIC'
16525 lt_prog_compiler_static_CXX='-Bstatic'
16526 lt_prog_compiler_wl_CXX='-Qoption ld '
16527 ;;
16528 gcx)
16529 # Green Hills C++ Compiler
16530 lt_prog_compiler_pic_CXX='-PIC'
16531 ;;
16532 *)
16533 ;;
16534 esac
16535 ;;
16536 sunos4*)
16537 case $cc_basename in
16538 CC)
16539 # Sun C++ 4.x
16540 lt_prog_compiler_pic_CXX='-pic'
16541 lt_prog_compiler_static_CXX='-Bstatic'
16542 ;;
16543 lcc)
16544 # Lucid
16545 lt_prog_compiler_pic_CXX='-pic'
16546 ;;
16547 *)
16548 ;;
16549 esac
16550 ;;
16551 tandem*)
16552 case $cc_basename in
16553 NCC)
16554 # NonStop-UX NCC 3.20
16555 lt_prog_compiler_pic_CXX='-KPIC'
16556 ;;
16557 *)
16558 ;;
16559 esac
16560 ;;
16561 unixware*)
16562 ;;
16563 vxworks*)
16564 ;;
16565 *)
16566 lt_prog_compiler_can_build_shared_CXX=no
16567 ;;
16568 esac
16569 fi
16570
16571echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16572echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16573
16574#
16575# Check to make sure the PIC flag actually works.
16576#
16577if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016578
16579echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016580echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16581if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16582 echo $ECHO_N "(cached) $ECHO_C" >&6
16583else
16584 lt_prog_compiler_pic_works_CXX=no
16585 ac_outfile=conftest.$ac_objext
16586 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16587 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16588 # Insert the option either (1) after the last *FLAGS variable, or
16589 # (2) before a word containing "conftest.", or (3) at the end.
16590 # Note that $ac_compile itself does not contain backslashes and begins
16591 # with a dollar sign (not a hyphen), so the echo should work correctly.
16592 # The option is referenced via a variable to avoid confusing sed.
16593 lt_compile=`echo "$ac_compile" | $SED \
16594 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16596 -e 's:$: $lt_compiler_flag:'`
Reid Spencer7b3e8512004-12-24 06:29:05 +000016597 (eval echo "\"\$as_me:16597: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016598 (eval "$lt_compile" 2>conftest.err)
16599 ac_status=$?
16600 cat conftest.err >&5
Reid Spencer7b3e8512004-12-24 06:29:05 +000016601 echo "$as_me:16601: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016602 if (exit $ac_status) && test -s "$ac_outfile"; then
16603 # The compiler can only warn and ignore the option if not recognized
16604 # So say no if there are warnings
16605 if test ! -s conftest.err; then
16606 lt_prog_compiler_pic_works_CXX=yes
16607 fi
16608 fi
16609 $rm conftest*
16610
16611fi
16612echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16613echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16614
16615if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16616 case $lt_prog_compiler_pic_CXX in
16617 "" | " "*) ;;
16618 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16619 esac
16620else
16621 lt_prog_compiler_pic_CXX=
16622 lt_prog_compiler_can_build_shared_CXX=no
16623fi
16624
16625fi
16626case "$host_os" in
16627 # For platforms which do not support PIC, -DPIC is meaningless:
16628 *djgpp*)
16629 lt_prog_compiler_pic_CXX=
16630 ;;
16631 *)
16632 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16633 ;;
16634esac
16635
16636echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16637echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16638if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16640else
16641 lt_cv_prog_compiler_c_o_CXX=no
16642 $rm -r conftest 2>/dev/null
16643 mkdir conftest
16644 cd conftest
16645 mkdir out
16646 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16647
John Criswell47fdd832003-07-14 16:52:07 +000016648 lt_compiler_flag="-o out/conftest2.$ac_objext"
16649 # Insert the option either (1) after the last *FLAGS variable, or
16650 # (2) before a word containing "conftest.", or (3) at the end.
16651 # Note that $ac_compile itself does not contain backslashes and begins
16652 # with a dollar sign (not a hyphen), so the echo should work correctly.
16653 lt_compile=`echo "$ac_compile" | $SED \
16654 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16656 -e 's:$: $lt_compiler_flag:'`
Reid Spencer7b3e8512004-12-24 06:29:05 +000016657 (eval echo "\"\$as_me:16657: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016658 (eval "$lt_compile" 2>out/conftest.err)
16659 ac_status=$?
16660 cat out/conftest.err >&5
Reid Spencer7b3e8512004-12-24 06:29:05 +000016661 echo "$as_me:16661: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016662 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16663 then
16664 # The compiler can only warn and ignore the option if not recognized
16665 # So say no if there are warnings
16666 if test ! -s out/conftest.err; then
16667 lt_cv_prog_compiler_c_o_CXX=yes
16668 fi
16669 fi
16670 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016671 $rm conftest*
16672 # SGI C++ compiler will create directory out/ii_files/ for
16673 # template instantiation
16674 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16675 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016676 cd ..
16677 rmdir conftest
16678 $rm conftest*
16679
16680fi
16681echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16682echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16683
16684
16685hard_links="nottested"
16686if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16687 # do not overwrite the value of need_locks provided by the user
16688 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16689echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16690 hard_links=yes
16691 $rm conftest*
16692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16693 touch conftest.a
16694 ln conftest.a conftest.b 2>&5 || hard_links=no
16695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16696 echo "$as_me:$LINENO: result: $hard_links" >&5
16697echo "${ECHO_T}$hard_links" >&6
16698 if test "$hard_links" = no; then
16699 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16700echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16701 need_locks=warn
16702 fi
16703else
16704 need_locks=no
16705fi
16706
16707echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16708echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16709
16710 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16711 case $host_os in
16712 aix4* | aix5*)
16713 # If we're using GNU nm, then we don't want the "-C" option.
16714 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16715 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16716 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'
16717 else
16718 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'
16719 fi
16720 ;;
16721 pw32*)
16722 export_symbols_cmds_CXX="$ltdll_cmds"
16723 ;;
16724 cygwin* | mingw*)
16725 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16726 ;;
16727 *)
16728 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16729 ;;
16730 esac
16731
16732echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16733echo "${ECHO_T}$ld_shlibs_CXX" >&6
16734test "$ld_shlibs_CXX" = no && can_build_shared=no
16735
16736variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16737if test "$GCC" = yes; then
16738 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16739fi
16740
16741#
16742# Do we need to explicitly link libc?
16743#
16744case "x$archive_cmds_need_lc_CXX" in
16745x|xyes)
16746 # Assume -lc should be added
16747 archive_cmds_need_lc_CXX=yes
16748
16749 if test "$enable_shared" = yes && test "$GCC" = yes; then
16750 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016751 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016752 # FIXME: we may have to deal with multi-command sequences.
16753 ;;
16754 '$CC '*)
16755 # Test whether the compiler implicitly links with -lc since on some
16756 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16757 # to ld, don't add -lc before -lgcc.
16758 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16759echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16760 $rm conftest*
16761 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16762
16763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16764 (eval $ac_compile) 2>&5
16765 ac_status=$?
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); } 2>conftest.err; then
16768 soname=conftest
16769 lib=conftest
16770 libobjs=conftest.$ac_objext
16771 deplibs=
16772 wl=$lt_prog_compiler_wl_CXX
16773 compiler_flags=-v
16774 linker_flags=-v
16775 verstring=
16776 output_objdir=.
16777 libname=conftest
16778 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16779 allow_undefined_flag_CXX=
16780 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16781 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16782 ac_status=$?
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); }
16785 then
16786 archive_cmds_need_lc_CXX=no
16787 else
16788 archive_cmds_need_lc_CXX=yes
16789 fi
16790 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16791 else
16792 cat conftest.err 1>&5
16793 fi
16794 $rm conftest*
16795 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16796echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16797 ;;
16798 esac
16799 fi
16800 ;;
16801esac
16802
John Criswell47fdd832003-07-14 16:52:07 +000016803echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16804echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16805library_names_spec=
16806libname_spec='lib$name'
16807soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016808shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016809postinstall_cmds=
16810postuninstall_cmds=
16811finish_cmds=
16812finish_eval=
16813shlibpath_var=
16814shlibpath_overrides_runpath=unknown
16815version_type=none
16816dynamic_linker="$host_os ld.so"
16817sys_lib_dlsearch_path_spec="/lib /usr/lib"
16818if test "$GCC" = yes; then
16819 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16820 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16821 # if the path contains ";" then we assume it to be the separator
16822 # otherwise default to the standard path separator (i.e. ":") - it is
16823 # assumed that no part of a normal pathname contains ";" but that should
16824 # okay in the real world where ";" in dirpaths is itself problematic.
16825 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16826 else
16827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16828 fi
16829else
16830 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16831fi
16832need_lib_prefix=unknown
16833hardcode_into_libs=no
16834
16835# when you set need_version to no, make sure it does not cause -set_version
16836# flags to be left without arguments
16837need_version=unknown
16838
16839case $host_os in
16840aix3*)
16841 version_type=linux
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16843 shlibpath_var=LIBPATH
16844
16845 # AIX 3 has no versioning support, so we append a major version to the name.
16846 soname_spec='${libname}${release}${shared_ext}$major'
16847 ;;
16848
16849aix4* | aix5*)
16850 version_type=linux
16851 need_lib_prefix=no
16852 need_version=no
16853 hardcode_into_libs=yes
16854 if test "$host_cpu" = ia64; then
16855 # AIX 5 supports IA64
16856 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16857 shlibpath_var=LD_LIBRARY_PATH
16858 else
16859 # With GCC up to 2.95.x, collect2 would create an import file
16860 # for dependence libraries. The import file would start with
16861 # the line `#! .'. This would cause the generated library to
16862 # depend on `.', always an invalid library. This was fixed in
16863 # development snapshots of GCC prior to 3.0.
16864 case $host_os in
16865 aix4 | aix4.[01] | aix4.[01].*)
16866 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16867 echo ' yes '
16868 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16869 :
16870 else
16871 can_build_shared=no
16872 fi
16873 ;;
16874 esac
16875 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16876 # soname into executable. Probably we can add versioning support to
16877 # collect2, so additional links can be useful in future.
16878 if test "$aix_use_runtimelinking" = yes; then
16879 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16880 # instead of lib<name>.a to let people know that these are not
16881 # typical AIX shared libraries.
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883 else
16884 # We preserve .a as extension for shared libraries through AIX4.2
16885 # and later when we are not doing run time linking.
16886 library_names_spec='${libname}${release}.a $libname.a'
16887 soname_spec='${libname}${release}${shared_ext}$major'
16888 fi
16889 shlibpath_var=LIBPATH
16890 fi
16891 ;;
16892
16893amigaos*)
16894 library_names_spec='$libname.ixlibrary $libname.a'
16895 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016896 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 +000016897 ;;
16898
16899beos*)
16900 library_names_spec='${libname}${shared_ext}'
16901 dynamic_linker="$host_os ld.so"
16902 shlibpath_var=LIBRARY_PATH
16903 ;;
16904
Reid Spencer2706f8c2004-09-19 23:53:36 +000016905bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016906 version_type=linux
16907 need_version=no
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16911 shlibpath_var=LD_LIBRARY_PATH
16912 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16913 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16914 # the default ld.so.conf also contains /usr/contrib/lib and
16915 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16916 # libtool to hard-code these into programs
16917 ;;
16918
16919cygwin* | mingw* | pw32*)
16920 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016921 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016922 need_version=no
16923 need_lib_prefix=no
16924
16925 case $GCC,$host_os in
16926 yes,cygwin* | yes,mingw* | yes,pw32*)
16927 library_names_spec='$libname.dll.a'
16928 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016929 postinstall_cmds='base_file=`basename \${file}`~
16930 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16931 dldir=$destdir/`dirname \$dlpath`~
16932 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016933 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016934 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16935 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016936 $rm \$dlpath'
16937 shlibpath_overrides_runpath=yes
16938
16939 case $host_os in
16940 cygwin*)
16941 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16942 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 +000016943 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016944 ;;
16945 mingw*)
16946 # MinGW DLLs use traditional 'lib' prefix
16947 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16948 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16949 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16950 # It is most probably a Windows format PATH printed by
16951 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16952 # path with ; separators, and with drive letters. We can handle the
16953 # drive letters (cygwin fileutils understands them), so leave them,
16954 # especially as we might pass files found there to a mingw objdump,
16955 # which wouldn't understand a cygwinified path. Ahh.
16956 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16957 else
16958 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16959 fi
16960 ;;
16961 pw32*)
16962 # pw32 DLLs use 'pw' prefix rather than 'lib'
16963 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16964 ;;
16965 esac
16966 ;;
16967
16968 *)
16969 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16970 ;;
16971 esac
16972 dynamic_linker='Win32 ld.exe'
16973 # FIXME: first we should search . and the directory the executable is in
16974 shlibpath_var=PATH
16975 ;;
16976
16977darwin* | rhapsody*)
16978 dynamic_linker="$host_os dyld"
16979 version_type=darwin
16980 need_lib_prefix=no
16981 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016982 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016983 soname_spec='${libname}${release}${major}$shared_ext'
16984 shlibpath_overrides_runpath=yes
16985 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016986 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016987 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016988 if test "$GCC" = yes; then
16989 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"`
16990 else
16991 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016992 fi
16993 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16994 ;;
16995
16996dgux*)
16997 version_type=linux
16998 need_lib_prefix=no
16999 need_version=no
17000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17001 soname_spec='${libname}${release}${shared_ext}$major'
17002 shlibpath_var=LD_LIBRARY_PATH
17003 ;;
17004
17005freebsd1*)
17006 dynamic_linker=no
17007 ;;
17008
Reid Spencer2706f8c2004-09-19 23:53:36 +000017009kfreebsd*-gnu)
17010 version_type=linux
17011 need_lib_prefix=no
17012 need_version=no
17013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17014 soname_spec='${libname}${release}${shared_ext}$major'
17015 shlibpath_var=LD_LIBRARY_PATH
17016 shlibpath_overrides_runpath=no
17017 hardcode_into_libs=yes
17018 dynamic_linker='GNU ld.so'
17019 ;;
17020
John Criswell47fdd832003-07-14 16:52:07 +000017021freebsd*)
17022 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17023 version_type=freebsd-$objformat
17024 case $version_type in
17025 freebsd-elf*)
17026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17027 need_version=no
17028 need_lib_prefix=no
17029 ;;
17030 freebsd-*)
17031 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17032 need_version=yes
17033 ;;
17034 esac
17035 shlibpath_var=LD_LIBRARY_PATH
17036 case $host_os in
17037 freebsd2*)
17038 shlibpath_overrides_runpath=yes
17039 ;;
17040 freebsd3.01* | freebsdelf3.01*)
17041 shlibpath_overrides_runpath=yes
17042 hardcode_into_libs=yes
17043 ;;
17044 *) # from 3.2 on
17045 shlibpath_overrides_runpath=no
17046 hardcode_into_libs=yes
17047 ;;
17048 esac
17049 ;;
17050
17051gnu*)
17052 version_type=linux
17053 need_lib_prefix=no
17054 need_version=no
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17056 soname_spec='${libname}${release}${shared_ext}$major'
17057 shlibpath_var=LD_LIBRARY_PATH
17058 hardcode_into_libs=yes
17059 ;;
17060
17061hpux9* | hpux10* | hpux11*)
17062 # Give a soname corresponding to the major version so that dld.sl refuses to
17063 # link against other versions.
17064 version_type=sunos
17065 need_lib_prefix=no
17066 need_version=no
17067 case "$host_cpu" in
17068 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017069 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017070 hardcode_into_libs=yes
17071 dynamic_linker="$host_os dld.so"
17072 shlibpath_var=LD_LIBRARY_PATH
17073 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17075 soname_spec='${libname}${release}${shared_ext}$major'
17076 if test "X$HPUX_IA64_MODE" = X32; then
17077 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17078 else
17079 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17080 fi
17081 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17082 ;;
17083 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017084 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017085 hardcode_into_libs=yes
17086 dynamic_linker="$host_os dld.sl"
17087 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17088 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17092 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17093 ;;
17094 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017095 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017096 dynamic_linker="$host_os dld.sl"
17097 shlibpath_var=SHLIB_PATH
17098 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 ;;
17102 esac
17103 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17104 postinstall_cmds='chmod 555 $lib'
17105 ;;
17106
17107irix5* | irix6* | nonstopux*)
17108 case $host_os in
17109 nonstopux*) version_type=nonstopux ;;
17110 *)
17111 if test "$lt_cv_prog_gnu_ld" = yes; then
17112 version_type=linux
17113 else
17114 version_type=irix
17115 fi ;;
17116 esac
17117 need_lib_prefix=no
17118 need_version=no
17119 soname_spec='${libname}${release}${shared_ext}$major'
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17121 case $host_os in
17122 irix5* | nonstopux*)
17123 libsuff= shlibsuff=
17124 ;;
17125 *)
17126 case $LD in # libtool.m4 will add one of these switches to LD
17127 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17128 libsuff= shlibsuff= libmagic=32-bit;;
17129 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17130 libsuff=32 shlibsuff=N32 libmagic=N32;;
17131 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17132 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17133 *) libsuff= shlibsuff= libmagic=never-match;;
17134 esac
17135 ;;
17136 esac
17137 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17138 shlibpath_overrides_runpath=no
17139 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17140 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17141 hardcode_into_libs=yes
17142 ;;
17143
17144# No shared lib support for Linux oldld, aout, or coff.
17145linux*oldld* | linux*aout* | linux*coff*)
17146 dynamic_linker=no
17147 ;;
17148
17149# This must be Linux ELF.
17150linux*)
17151 version_type=linux
17152 need_lib_prefix=no
17153 need_version=no
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155 soname_spec='${libname}${release}${shared_ext}$major'
17156 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 shlibpath_overrides_runpath=no
17159 # This implies no fast_install, which is unacceptable.
17160 # Some rework will be needed to allow for fast_install
17161 # before this can be enabled.
17162 hardcode_into_libs=yes
17163
Reid Spencer2706f8c2004-09-19 23:53:36 +000017164 # Append ld.so.conf contents to the search path
17165 if test -f /etc/ld.so.conf; then
17166 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17167 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17168 fi
17169
John Criswell47fdd832003-07-14 16:52:07 +000017170 # We used to test for /lib/ld.so.1 and disable shared libraries on
17171 # powerpc, because MkLinux only supported shared libraries with the
17172 # GNU dynamic linker. Since this was broken with cross compilers,
17173 # most powerpc-linux boxes support dynamic linking these days and
17174 # people can always --disable-shared, the test was removed, and we
17175 # assume the GNU/Linux dynamic linker is in use.
17176 dynamic_linker='GNU/Linux ld.so'
17177 ;;
17178
Reid Spencer2706f8c2004-09-19 23:53:36 +000017179knetbsd*-gnu)
17180 version_type=linux
17181 need_lib_prefix=no
17182 need_version=no
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 shlibpath_var=LD_LIBRARY_PATH
17186 shlibpath_overrides_runpath=no
17187 hardcode_into_libs=yes
17188 dynamic_linker='GNU ld.so'
17189 ;;
17190
John Criswell47fdd832003-07-14 16:52:07 +000017191netbsd*)
17192 version_type=sunos
17193 need_lib_prefix=no
17194 need_version=no
17195 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17197 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17198 dynamic_linker='NetBSD (a.out) ld.so'
17199 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017201 soname_spec='${libname}${release}${shared_ext}$major'
17202 dynamic_linker='NetBSD ld.elf_so'
17203 fi
17204 shlibpath_var=LD_LIBRARY_PATH
17205 shlibpath_overrides_runpath=yes
17206 hardcode_into_libs=yes
17207 ;;
17208
17209newsos6)
17210 version_type=linux
17211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17212 shlibpath_var=LD_LIBRARY_PATH
17213 shlibpath_overrides_runpath=yes
17214 ;;
17215
Reid Spencer2706f8c2004-09-19 23:53:36 +000017216nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017217 version_type=linux
17218 need_lib_prefix=no
17219 need_version=no
17220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17221 soname_spec='${libname}${release}${shared_ext}$major'
17222 shlibpath_var=LD_LIBRARY_PATH
17223 shlibpath_overrides_runpath=yes
17224 ;;
17225
17226openbsd*)
17227 version_type=sunos
17228 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017229 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17232 shlibpath_var=LD_LIBRARY_PATH
17233 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17234 case $host_os in
17235 openbsd2.[89] | openbsd2.[89].*)
17236 shlibpath_overrides_runpath=no
17237 ;;
17238 *)
17239 shlibpath_overrides_runpath=yes
17240 ;;
17241 esac
17242 else
17243 shlibpath_overrides_runpath=yes
17244 fi
17245 ;;
17246
17247os2*)
17248 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017249 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017250 need_lib_prefix=no
17251 library_names_spec='$libname${shared_ext} $libname.a'
17252 dynamic_linker='OS/2 ld.exe'
17253 shlibpath_var=LIBPATH
17254 ;;
17255
17256osf3* | osf4* | osf5*)
17257 version_type=osf
17258 need_lib_prefix=no
17259 need_version=no
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17265 ;;
17266
17267sco3.2v5*)
17268 version_type=osf
17269 soname_spec='${libname}${release}${shared_ext}$major'
17270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17271 shlibpath_var=LD_LIBRARY_PATH
17272 ;;
17273
17274solaris*)
17275 version_type=linux
17276 need_lib_prefix=no
17277 need_version=no
17278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17279 soname_spec='${libname}${release}${shared_ext}$major'
17280 shlibpath_var=LD_LIBRARY_PATH
17281 shlibpath_overrides_runpath=yes
17282 hardcode_into_libs=yes
17283 # ldd complains unless libraries are executable
17284 postinstall_cmds='chmod +x $lib'
17285 ;;
17286
17287sunos4*)
17288 version_type=sunos
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17290 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath=yes
17293 if test "$with_gnu_ld" = yes; then
17294 need_lib_prefix=no
17295 fi
17296 need_version=yes
17297 ;;
17298
17299sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17300 version_type=linux
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 case $host_vendor in
17305 sni)
17306 shlibpath_overrides_runpath=no
17307 need_lib_prefix=no
17308 export_dynamic_flag_spec='${wl}-Blargedynsym'
17309 runpath_var=LD_RUN_PATH
17310 ;;
17311 siemens)
17312 need_lib_prefix=no
17313 ;;
17314 motorola)
17315 need_lib_prefix=no
17316 need_version=no
17317 shlibpath_overrides_runpath=no
17318 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17319 ;;
17320 esac
17321 ;;
17322
17323sysv4*MP*)
17324 if test -d /usr/nec ;then
17325 version_type=linux
17326 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17327 soname_spec='$libname${shared_ext}.$major'
17328 shlibpath_var=LD_LIBRARY_PATH
17329 fi
17330 ;;
17331
17332uts4*)
17333 version_type=linux
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 soname_spec='${libname}${release}${shared_ext}$major'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 ;;
17338
17339*)
17340 dynamic_linker=no
17341 ;;
17342esac
17343echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17344echo "${ECHO_T}$dynamic_linker" >&6
17345test "$dynamic_linker" = no && can_build_shared=no
17346
Reid Spencer2706f8c2004-09-19 23:53:36 +000017347echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17348echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17349hardcode_action_CXX=
17350if test -n "$hardcode_libdir_flag_spec_CXX" || \
17351 test -n "$runpath_var_CXX" || \
17352 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17353
17354 # We can hardcode non-existant directories.
17355 if test "$hardcode_direct_CXX" != no &&
17356 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17357 # have to relink, otherwise we might link with an installed library
17358 # when we should be linking with a yet-to-be-installed one
17359 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17360 test "$hardcode_minus_L_CXX" != no; then
17361 # Linking always hardcodes the temporary library directory.
17362 hardcode_action_CXX=relink
17363 else
17364 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17365 hardcode_action_CXX=immediate
17366 fi
17367else
17368 # We cannot hardcode anything, or else we can only hardcode existing
17369 # directories.
17370 hardcode_action_CXX=unsupported
17371fi
17372echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17373echo "${ECHO_T}$hardcode_action_CXX" >&6
17374
17375if test "$hardcode_action_CXX" = relink; then
17376 # Fast installation is not supported
17377 enable_fast_install=no
17378elif test "$shlibpath_overrides_runpath" = yes ||
17379 test "$enable_shared" = no; then
17380 # Fast installation is not necessary
17381 enable_fast_install=needless
17382fi
17383
17384striplib=
17385old_striplib=
17386echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17387echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17388if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17389 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17390 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17391 echo "$as_me:$LINENO: result: yes" >&5
17392echo "${ECHO_T}yes" >&6
17393else
17394# FIXME - insert some real tests, host_os isn't really good enough
17395 case $host_os in
17396 darwin*)
17397 if test -n "$STRIP" ; then
17398 striplib="$STRIP -x"
17399 echo "$as_me:$LINENO: result: yes" >&5
17400echo "${ECHO_T}yes" >&6
17401 else
17402 echo "$as_me:$LINENO: result: no" >&5
17403echo "${ECHO_T}no" >&6
17404fi
17405 ;;
17406 *)
17407 echo "$as_me:$LINENO: result: no" >&5
17408echo "${ECHO_T}no" >&6
17409 ;;
17410 esac
17411fi
17412
John Criswell47fdd832003-07-14 16:52:07 +000017413if test "x$enable_dlopen" != xyes; then
17414 enable_dlopen=unknown
17415 enable_dlopen_self=unknown
17416 enable_dlopen_self_static=unknown
17417else
17418 lt_cv_dlopen=no
17419 lt_cv_dlopen_libs=
17420
17421 case $host_os in
17422 beos*)
17423 lt_cv_dlopen="load_add_on"
17424 lt_cv_dlopen_libs=
17425 lt_cv_dlopen_self=yes
17426 ;;
17427
17428 mingw* | pw32*)
17429 lt_cv_dlopen="LoadLibrary"
17430 lt_cv_dlopen_libs=
17431 ;;
17432
17433 cygwin*)
17434 lt_cv_dlopen="dlopen"
17435 lt_cv_dlopen_libs=
17436 ;;
17437
17438 darwin*)
17439 # if libdl is installed we need to link against it
17440 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17441echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17442if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17443 echo $ECHO_N "(cached) $ECHO_C" >&6
17444else
17445 ac_check_lib_save_LIBS=$LIBS
17446LIBS="-ldl $LIBS"
17447cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017448/* confdefs.h. */
17449_ACEOF
17450cat confdefs.h >>conftest.$ac_ext
17451cat >>conftest.$ac_ext <<_ACEOF
17452/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017453
17454/* Override any gcc2 internal prototype to avoid an error. */
17455#ifdef __cplusplus
17456extern "C"
17457#endif
17458/* We use char because int might match the return type of a gcc2
17459 builtin and then its argument prototype would still apply. */
17460char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017461int
17462main ()
17463{
17464dlopen ();
17465 ;
17466 return 0;
17467}
17468_ACEOF
17469rm -f conftest.$ac_objext conftest$ac_exeext
17470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017471 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017472 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017473 grep -v '^ *+' conftest.er1 >conftest.err
17474 rm -f conftest.er1
17475 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017478 { ac_try='test -z "$ac_cxx_werror_flag"
17479 || test ! -s conftest.err'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17482 ac_status=$?
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; } &&
17485 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 ac_cv_lib_dl_dlopen=yes
17492else
17493 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017494sed 's/^/| /' conftest.$ac_ext >&5
17495
John Criswell47fdd832003-07-14 16:52:07 +000017496ac_cv_lib_dl_dlopen=no
17497fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017498rm -f conftest.err conftest.$ac_objext \
17499 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017500LIBS=$ac_check_lib_save_LIBS
17501fi
17502echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17503echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17504if test $ac_cv_lib_dl_dlopen = yes; then
17505 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17506else
17507
17508 lt_cv_dlopen="dyld"
17509 lt_cv_dlopen_libs=
17510 lt_cv_dlopen_self=yes
17511
17512fi
17513
17514 ;;
17515
17516 *)
17517 echo "$as_me:$LINENO: checking for shl_load" >&5
17518echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17519if test "${ac_cv_func_shl_load+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17521else
17522 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017523/* confdefs.h. */
17524_ACEOF
17525cat confdefs.h >>conftest.$ac_ext
17526cat >>conftest.$ac_ext <<_ACEOF
17527/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017528/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17530#define shl_load innocuous_shl_load
17531
John Criswell47fdd832003-07-14 16:52:07 +000017532/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017533 which can conflict with char shl_load (); below.
17534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17535 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017536
John Criswell0c38eaf2003-09-10 15:17:25 +000017537#ifdef __STDC__
17538# include <limits.h>
17539#else
17540# include <assert.h>
17541#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017542
17543#undef shl_load
17544
John Criswell47fdd832003-07-14 16:52:07 +000017545/* Override any gcc2 internal prototype to avoid an error. */
17546#ifdef __cplusplus
17547extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017548{
John Criswell47fdd832003-07-14 16:52:07 +000017549#endif
17550/* We use char because int might match the return type of a gcc2
17551 builtin and then its argument prototype would still apply. */
17552char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017553/* The GNU C library defines this for functions which it implements
17554 to always fail with ENOSYS. Some functions are actually named
17555 something starting with __ and the normal name is an alias. */
17556#if defined (__stub_shl_load) || defined (__stub___shl_load)
17557choke me
17558#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017559char (*f) () = shl_load;
17560#endif
17561#ifdef __cplusplus
17562}
John Criswell47fdd832003-07-14 16:52:07 +000017563#endif
17564
John Criswell0c38eaf2003-09-10 15:17:25 +000017565int
17566main ()
17567{
17568return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017569 ;
17570 return 0;
17571}
17572_ACEOF
17573rm -f conftest.$ac_objext conftest$ac_exeext
17574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017575 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017576 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017577 grep -v '^ *+' conftest.er1 >conftest.err
17578 rm -f conftest.er1
17579 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017582 { ac_try='test -z "$ac_cxx_werror_flag"
17583 || test ! -s conftest.err'
17584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17585 (eval $ac_try) 2>&5
17586 ac_status=$?
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); }; } &&
17589 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 ac_cv_func_shl_load=yes
17596else
17597 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017598sed 's/^/| /' conftest.$ac_ext >&5
17599
John Criswell47fdd832003-07-14 16:52:07 +000017600ac_cv_func_shl_load=no
17601fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017602rm -f conftest.err conftest.$ac_objext \
17603 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017604fi
17605echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17606echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17607if test $ac_cv_func_shl_load = yes; then
17608 lt_cv_dlopen="shl_load"
17609else
17610 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17611echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17612if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17613 echo $ECHO_N "(cached) $ECHO_C" >&6
17614else
17615 ac_check_lib_save_LIBS=$LIBS
17616LIBS="-ldld $LIBS"
17617cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017618/* confdefs.h. */
17619_ACEOF
17620cat confdefs.h >>conftest.$ac_ext
17621cat >>conftest.$ac_ext <<_ACEOF
17622/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017623
17624/* Override any gcc2 internal prototype to avoid an error. */
17625#ifdef __cplusplus
17626extern "C"
17627#endif
17628/* We use char because int might match the return type of a gcc2
17629 builtin and then its argument prototype would still apply. */
17630char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017631int
17632main ()
17633{
17634shl_load ();
17635 ;
17636 return 0;
17637}
17638_ACEOF
17639rm -f conftest.$ac_objext conftest$ac_exeext
17640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017641 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017642 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017643 grep -v '^ *+' conftest.er1 >conftest.err
17644 rm -f conftest.er1
17645 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017648 { ac_try='test -z "$ac_cxx_werror_flag"
17649 || test ! -s conftest.err'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17658 ac_status=$?
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
17661 ac_cv_lib_dld_shl_load=yes
17662else
17663 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017664sed 's/^/| /' conftest.$ac_ext >&5
17665
John Criswell47fdd832003-07-14 16:52:07 +000017666ac_cv_lib_dld_shl_load=no
17667fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017668rm -f conftest.err conftest.$ac_objext \
17669 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017670LIBS=$ac_check_lib_save_LIBS
17671fi
17672echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17673echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17674if test $ac_cv_lib_dld_shl_load = yes; then
17675 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17676else
17677 echo "$as_me:$LINENO: checking for dlopen" >&5
17678echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17679if test "${ac_cv_func_dlopen+set}" = set; then
17680 echo $ECHO_N "(cached) $ECHO_C" >&6
17681else
17682 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017683/* confdefs.h. */
17684_ACEOF
17685cat confdefs.h >>conftest.$ac_ext
17686cat >>conftest.$ac_ext <<_ACEOF
17687/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017688/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17690#define dlopen innocuous_dlopen
17691
John Criswell47fdd832003-07-14 16:52:07 +000017692/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017693 which can conflict with char dlopen (); below.
17694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17695 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017696
John Criswell0c38eaf2003-09-10 15:17:25 +000017697#ifdef __STDC__
17698# include <limits.h>
17699#else
17700# include <assert.h>
17701#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017702
17703#undef dlopen
17704
John Criswell47fdd832003-07-14 16:52:07 +000017705/* Override any gcc2 internal prototype to avoid an error. */
17706#ifdef __cplusplus
17707extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017708{
John Criswell47fdd832003-07-14 16:52:07 +000017709#endif
17710/* We use char because int might match the return type of a gcc2
17711 builtin and then its argument prototype would still apply. */
17712char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017713/* The GNU C library defines this for functions which it implements
17714 to always fail with ENOSYS. Some functions are actually named
17715 something starting with __ and the normal name is an alias. */
17716#if defined (__stub_dlopen) || defined (__stub___dlopen)
17717choke me
17718#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017719char (*f) () = dlopen;
17720#endif
17721#ifdef __cplusplus
17722}
John Criswell47fdd832003-07-14 16:52:07 +000017723#endif
17724
John Criswell0c38eaf2003-09-10 15:17:25 +000017725int
17726main ()
17727{
17728return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017729 ;
17730 return 0;
17731}
17732_ACEOF
17733rm -f conftest.$ac_objext conftest$ac_exeext
17734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017735 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017736 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017742 { ac_try='test -z "$ac_cxx_werror_flag"
17743 || test ! -s conftest.err'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 ac_cv_func_dlopen=yes
17756else
17757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017758sed 's/^/| /' conftest.$ac_ext >&5
17759
John Criswell47fdd832003-07-14 16:52:07 +000017760ac_cv_func_dlopen=no
17761fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017762rm -f conftest.err conftest.$ac_objext \
17763 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017764fi
17765echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17766echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17767if test $ac_cv_func_dlopen = yes; then
17768 lt_cv_dlopen="dlopen"
17769else
17770 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17771echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17772if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17773 echo $ECHO_N "(cached) $ECHO_C" >&6
17774else
17775 ac_check_lib_save_LIBS=$LIBS
17776LIBS="-ldl $LIBS"
17777cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017778/* confdefs.h. */
17779_ACEOF
17780cat confdefs.h >>conftest.$ac_ext
17781cat >>conftest.$ac_ext <<_ACEOF
17782/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017783
17784/* Override any gcc2 internal prototype to avoid an error. */
17785#ifdef __cplusplus
17786extern "C"
17787#endif
17788/* We use char because int might match the return type of a gcc2
17789 builtin and then its argument prototype would still apply. */
17790char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017791int
17792main ()
17793{
17794dlopen ();
17795 ;
17796 return 0;
17797}
17798_ACEOF
17799rm -f conftest.$ac_objext conftest$ac_exeext
17800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017801 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017802 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017803 grep -v '^ *+' conftest.er1 >conftest.err
17804 rm -f conftest.er1
17805 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017808 { ac_try='test -z "$ac_cxx_werror_flag"
17809 || test ! -s conftest.err'
17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17812 ac_status=$?
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; } &&
17815 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 ac_cv_lib_dl_dlopen=yes
17822else
17823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017824sed 's/^/| /' conftest.$ac_ext >&5
17825
John Criswell47fdd832003-07-14 16:52:07 +000017826ac_cv_lib_dl_dlopen=no
17827fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017828rm -f conftest.err conftest.$ac_objext \
17829 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017830LIBS=$ac_check_lib_save_LIBS
17831fi
17832echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17833echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17834if test $ac_cv_lib_dl_dlopen = yes; then
17835 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17836else
17837 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17838echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17839if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17840 echo $ECHO_N "(cached) $ECHO_C" >&6
17841else
17842 ac_check_lib_save_LIBS=$LIBS
17843LIBS="-lsvld $LIBS"
17844cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017845/* confdefs.h. */
17846_ACEOF
17847cat confdefs.h >>conftest.$ac_ext
17848cat >>conftest.$ac_ext <<_ACEOF
17849/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017850
17851/* Override any gcc2 internal prototype to avoid an error. */
17852#ifdef __cplusplus
17853extern "C"
17854#endif
17855/* We use char because int might match the return type of a gcc2
17856 builtin and then its argument prototype would still apply. */
17857char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017858int
17859main ()
17860{
17861dlopen ();
17862 ;
17863 return 0;
17864}
17865_ACEOF
17866rm -f conftest.$ac_objext conftest$ac_exeext
17867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017868 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017869 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017875 { ac_try='test -z "$ac_cxx_werror_flag"
17876 || test ! -s conftest.err'
17877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17878 (eval $ac_try) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); }; } &&
17882 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17885 ac_status=$?
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; }; then
17888 ac_cv_lib_svld_dlopen=yes
17889else
17890 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017891sed 's/^/| /' conftest.$ac_ext >&5
17892
John Criswell47fdd832003-07-14 16:52:07 +000017893ac_cv_lib_svld_dlopen=no
17894fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017895rm -f conftest.err conftest.$ac_objext \
17896 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017897LIBS=$ac_check_lib_save_LIBS
17898fi
17899echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17900echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17901if test $ac_cv_lib_svld_dlopen = yes; then
17902 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17903else
17904 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17905echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17906if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17907 echo $ECHO_N "(cached) $ECHO_C" >&6
17908else
17909 ac_check_lib_save_LIBS=$LIBS
17910LIBS="-ldld $LIBS"
17911cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017912/* confdefs.h. */
17913_ACEOF
17914cat confdefs.h >>conftest.$ac_ext
17915cat >>conftest.$ac_ext <<_ACEOF
17916/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017917
17918/* Override any gcc2 internal prototype to avoid an error. */
17919#ifdef __cplusplus
17920extern "C"
17921#endif
17922/* We use char because int might match the return type of a gcc2
17923 builtin and then its argument prototype would still apply. */
17924char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017925int
17926main ()
17927{
17928dld_link ();
17929 ;
17930 return 0;
17931}
17932_ACEOF
17933rm -f conftest.$ac_objext conftest$ac_exeext
17934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017935 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017936 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017937 grep -v '^ *+' conftest.er1 >conftest.err
17938 rm -f conftest.er1
17939 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017942 { ac_try='test -z "$ac_cxx_werror_flag"
17943 || test ! -s conftest.err'
17944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17945 (eval $ac_try) 2>&5
17946 ac_status=$?
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 ac_cv_lib_dld_dld_link=yes
17956else
17957 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017958sed 's/^/| /' conftest.$ac_ext >&5
17959
John Criswell47fdd832003-07-14 16:52:07 +000017960ac_cv_lib_dld_dld_link=no
17961fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017962rm -f conftest.err conftest.$ac_objext \
17963 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017964LIBS=$ac_check_lib_save_LIBS
17965fi
17966echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17967echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17968if test $ac_cv_lib_dld_dld_link = yes; then
17969 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17970fi
17971
17972
17973fi
17974
17975
17976fi
17977
17978
17979fi
17980
17981
17982fi
17983
17984
17985fi
17986
17987 ;;
17988 esac
17989
17990 if test "x$lt_cv_dlopen" != xno; then
17991 enable_dlopen=yes
17992 else
17993 enable_dlopen=no
17994 fi
17995
17996 case $lt_cv_dlopen in
17997 dlopen)
17998 save_CPPFLAGS="$CPPFLAGS"
17999 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18000
18001 save_LDFLAGS="$LDFLAGS"
18002 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18003
18004 save_LIBS="$LIBS"
18005 LIBS="$lt_cv_dlopen_libs $LIBS"
18006
18007 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18008echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18009if test "${lt_cv_dlopen_self+set}" = set; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18011else
18012 if test "$cross_compiling" = yes; then :
18013 lt_cv_dlopen_self=cross
18014else
18015 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18016 lt_status=$lt_dlunknown
18017 cat > conftest.$ac_ext <<EOF
Reid Spencer7b3e8512004-12-24 06:29:05 +000018018#line 18018 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018019#include "confdefs.h"
18020
18021#if HAVE_DLFCN_H
18022#include <dlfcn.h>
18023#endif
18024
18025#include <stdio.h>
18026
18027#ifdef RTLD_GLOBAL
18028# define LT_DLGLOBAL RTLD_GLOBAL
18029#else
18030# ifdef DL_GLOBAL
18031# define LT_DLGLOBAL DL_GLOBAL
18032# else
18033# define LT_DLGLOBAL 0
18034# endif
18035#endif
18036
18037/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18038 find out it does not work in some platform. */
18039#ifndef LT_DLLAZY_OR_NOW
18040# ifdef RTLD_LAZY
18041# define LT_DLLAZY_OR_NOW RTLD_LAZY
18042# else
18043# ifdef DL_LAZY
18044# define LT_DLLAZY_OR_NOW DL_LAZY
18045# else
18046# ifdef RTLD_NOW
18047# define LT_DLLAZY_OR_NOW RTLD_NOW
18048# else
18049# ifdef DL_NOW
18050# define LT_DLLAZY_OR_NOW DL_NOW
18051# else
18052# define LT_DLLAZY_OR_NOW 0
18053# endif
18054# endif
18055# endif
18056# endif
18057#endif
18058
18059#ifdef __cplusplus
18060extern "C" void exit (int);
18061#endif
18062
18063void fnord() { int i=42;}
18064int main ()
18065{
18066 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18067 int status = $lt_dlunknown;
18068
18069 if (self)
18070 {
18071 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18072 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18073 /* dlclose (self); */
18074 }
18075
18076 exit (status);
18077}
18078EOF
18079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18080 (eval $ac_link) 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18084 (./conftest; exit; ) 2>/dev/null
18085 lt_status=$?
18086 case x$lt_status in
18087 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18088 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18089 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18090 esac
18091 else :
18092 # compilation failed
18093 lt_cv_dlopen_self=no
18094 fi
18095fi
18096rm -fr conftest*
18097
18098
18099fi
18100echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18101echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18102
18103 if test "x$lt_cv_dlopen_self" = xyes; then
18104 LDFLAGS="$LDFLAGS $link_static_flag"
18105 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18106echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18107if test "${lt_cv_dlopen_self_static+set}" = set; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18109else
18110 if test "$cross_compiling" = yes; then :
18111 lt_cv_dlopen_self_static=cross
18112else
18113 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18114 lt_status=$lt_dlunknown
18115 cat > conftest.$ac_ext <<EOF
Reid Spencer7b3e8512004-12-24 06:29:05 +000018116#line 18116 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018117#include "confdefs.h"
18118
18119#if HAVE_DLFCN_H
18120#include <dlfcn.h>
18121#endif
18122
18123#include <stdio.h>
18124
18125#ifdef RTLD_GLOBAL
18126# define LT_DLGLOBAL RTLD_GLOBAL
18127#else
18128# ifdef DL_GLOBAL
18129# define LT_DLGLOBAL DL_GLOBAL
18130# else
18131# define LT_DLGLOBAL 0
18132# endif
18133#endif
18134
18135/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18136 find out it does not work in some platform. */
18137#ifndef LT_DLLAZY_OR_NOW
18138# ifdef RTLD_LAZY
18139# define LT_DLLAZY_OR_NOW RTLD_LAZY
18140# else
18141# ifdef DL_LAZY
18142# define LT_DLLAZY_OR_NOW DL_LAZY
18143# else
18144# ifdef RTLD_NOW
18145# define LT_DLLAZY_OR_NOW RTLD_NOW
18146# else
18147# ifdef DL_NOW
18148# define LT_DLLAZY_OR_NOW DL_NOW
18149# else
18150# define LT_DLLAZY_OR_NOW 0
18151# endif
18152# endif
18153# endif
18154# endif
18155#endif
18156
18157#ifdef __cplusplus
18158extern "C" void exit (int);
18159#endif
18160
18161void fnord() { int i=42;}
18162int main ()
18163{
18164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18165 int status = $lt_dlunknown;
18166
18167 if (self)
18168 {
18169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18170 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18171 /* dlclose (self); */
18172 }
18173
18174 exit (status);
18175}
18176EOF
18177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18178 (eval $ac_link) 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18182 (./conftest; exit; ) 2>/dev/null
18183 lt_status=$?
18184 case x$lt_status in
18185 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18186 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18187 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18188 esac
18189 else :
18190 # compilation failed
18191 lt_cv_dlopen_self_static=no
18192 fi
18193fi
18194rm -fr conftest*
18195
18196
18197fi
18198echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18199echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18200 fi
18201
18202 CPPFLAGS="$save_CPPFLAGS"
18203 LDFLAGS="$save_LDFLAGS"
18204 LIBS="$save_LIBS"
18205 ;;
18206 esac
18207
18208 case $lt_cv_dlopen_self in
18209 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18210 *) enable_dlopen_self=unknown ;;
18211 esac
18212
18213 case $lt_cv_dlopen_self_static in
18214 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18215 *) enable_dlopen_self_static=unknown ;;
18216 esac
18217fi
18218
18219
18220# The else clause should only fire when bootstrapping the
18221# libtool distribution, otherwise you forgot to ship ltmain.sh
18222# with your package, and you will get complaints that there are
18223# no rules to generate ltmain.sh.
18224if test -f "$ltmain"; then
18225 # See if we are running on zsh, and set the options which allow our commands through
18226 # without removal of \ escapes.
18227 if test -n "${ZSH_VERSION+set}" ; then
18228 setopt NO_GLOB_SUBST
18229 fi
18230 # Now quote all the things that may contain metacharacters while being
18231 # careful not to overquote the AC_SUBSTed values. We take copies of the
18232 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018233 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18234 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018235 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18236 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18237 deplibs_check_method reload_flag reload_cmds need_locks \
18238 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18239 lt_cv_sys_global_symbol_to_c_name_address \
18240 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18241 old_postinstall_cmds old_postuninstall_cmds \
18242 compiler_CXX \
18243 CC_CXX \
18244 LD_CXX \
18245 lt_prog_compiler_wl_CXX \
18246 lt_prog_compiler_pic_CXX \
18247 lt_prog_compiler_static_CXX \
18248 lt_prog_compiler_no_builtin_flag_CXX \
18249 export_dynamic_flag_spec_CXX \
18250 thread_safe_flag_spec_CXX \
18251 whole_archive_flag_spec_CXX \
18252 enable_shared_with_static_runtimes_CXX \
18253 old_archive_cmds_CXX \
18254 old_archive_from_new_cmds_CXX \
18255 predep_objects_CXX \
18256 postdep_objects_CXX \
18257 predeps_CXX \
18258 postdeps_CXX \
18259 compiler_lib_search_path_CXX \
18260 archive_cmds_CXX \
18261 archive_expsym_cmds_CXX \
18262 postinstall_cmds_CXX \
18263 postuninstall_cmds_CXX \
18264 old_archive_from_expsyms_cmds_CXX \
18265 allow_undefined_flag_CXX \
18266 no_undefined_flag_CXX \
18267 export_symbols_cmds_CXX \
18268 hardcode_libdir_flag_spec_CXX \
18269 hardcode_libdir_flag_spec_ld_CXX \
18270 hardcode_libdir_separator_CXX \
18271 hardcode_automatic_CXX \
18272 module_cmds_CXX \
18273 module_expsym_cmds_CXX \
18274 lt_cv_prog_compiler_c_o_CXX \
18275 exclude_expsyms_CXX \
18276 include_expsyms_CXX; do
18277
18278 case $var in
18279 old_archive_cmds_CXX | \
18280 old_archive_from_new_cmds_CXX | \
18281 archive_cmds_CXX | \
18282 archive_expsym_cmds_CXX | \
18283 module_cmds_CXX | \
18284 module_expsym_cmds_CXX | \
18285 old_archive_from_expsyms_cmds_CXX | \
18286 export_symbols_cmds_CXX | \
18287 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18288 postinstall_cmds | postuninstall_cmds | \
18289 old_postinstall_cmds | old_postuninstall_cmds | \
18290 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18291 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018292 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 +000018293 ;;
18294 *)
18295 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18296 ;;
18297 esac
18298 done
18299
18300 case $lt_echo in
18301 *'\$0 --fallback-echo"')
18302 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18303 ;;
18304 esac
18305
18306cfgfile="$ofile"
18307
18308 cat <<__EOF__ >> "$cfgfile"
18309# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18310
18311# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18312
18313# Shell to use when invoking shell scripts.
18314SHELL=$lt_SHELL
18315
18316# Whether or not to build shared libraries.
18317build_libtool_libs=$enable_shared
18318
18319# Whether or not to build static libraries.
18320build_old_libs=$enable_static
18321
18322# Whether or not to add -lc for building shared libraries.
18323build_libtool_need_lc=$archive_cmds_need_lc_CXX
18324
18325# Whether or not to disallow shared libs when runtime libs are static
18326allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18327
18328# Whether or not to optimize for fast installation.
18329fast_install=$enable_fast_install
18330
18331# The host system.
18332host_alias=$host_alias
18333host=$host
18334
18335# An echo program that does not interpret backslashes.
18336echo=$lt_echo
18337
18338# The archiver.
18339AR=$lt_AR
18340AR_FLAGS=$lt_AR_FLAGS
18341
18342# A C compiler.
18343LTCC=$lt_LTCC
18344
18345# A language-specific compiler.
18346CC=$lt_compiler_CXX
18347
18348# Is the compiler the GNU C compiler?
18349with_gcc=$GCC_CXX
18350
18351# An ERE matcher.
18352EGREP=$lt_EGREP
18353
18354# The linker used to build libraries.
18355LD=$lt_LD_CXX
18356
18357# Whether we need hard or soft links.
18358LN_S=$lt_LN_S
18359
18360# A BSD-compatible nm program.
18361NM=$lt_NM
18362
18363# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018364STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018365
18366# Used to examine libraries when file_magic_cmd begins "file"
18367MAGIC_CMD=$MAGIC_CMD
18368
18369# Used on cygwin: DLL creation program.
18370DLLTOOL="$DLLTOOL"
18371
18372# Used on cygwin: object dumper.
18373OBJDUMP="$OBJDUMP"
18374
18375# Used on cygwin: assembler.
18376AS="$AS"
18377
18378# The name of the directory that contains temporary libtool files.
18379objdir=$objdir
18380
18381# How to create reloadable object files.
18382reload_flag=$lt_reload_flag
18383reload_cmds=$lt_reload_cmds
18384
18385# How to pass a linker flag through the compiler.
18386wl=$lt_lt_prog_compiler_wl_CXX
18387
18388# Object file suffix (normally "o").
18389objext="$ac_objext"
18390
18391# Old archive suffix (normally "a").
18392libext="$libext"
18393
18394# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018395shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018396
18397# Executable file suffix (normally "").
18398exeext="$exeext"
18399
18400# Additional compiler flags for building library objects.
18401pic_flag=$lt_lt_prog_compiler_pic_CXX
18402pic_mode=$pic_mode
18403
18404# What is the maximum length of a command?
18405max_cmd_len=$lt_cv_sys_max_cmd_len
18406
18407# Does compiler simultaneously support -c and -o options?
18408compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18409
18410# Must we lock files when doing compilation ?
18411need_locks=$lt_need_locks
18412
18413# Do we need the lib prefix for modules?
18414need_lib_prefix=$need_lib_prefix
18415
18416# Do we need a version for libraries?
18417need_version=$need_version
18418
18419# Whether dlopen is supported.
18420dlopen_support=$enable_dlopen
18421
18422# Whether dlopen of programs is supported.
18423dlopen_self=$enable_dlopen_self
18424
18425# Whether dlopen of statically linked programs is supported.
18426dlopen_self_static=$enable_dlopen_self_static
18427
18428# Compiler flag to prevent dynamic linking.
18429link_static_flag=$lt_lt_prog_compiler_static_CXX
18430
18431# Compiler flag to turn off builtin functions.
18432no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18433
18434# Compiler flag to allow reflexive dlopens.
18435export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18436
18437# Compiler flag to generate shared objects directly from archives.
18438whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18439
18440# Compiler flag to generate thread-safe objects.
18441thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18442
18443# Library versioning type.
18444version_type=$version_type
18445
18446# Format of library name prefix.
18447libname_spec=$lt_libname_spec
18448
18449# List of archive names. First name is the real one, the rest are links.
18450# The last name is the one that the linker finds with -lNAME.
18451library_names_spec=$lt_library_names_spec
18452
18453# The coded name of the library, if different from the real name.
18454soname_spec=$lt_soname_spec
18455
18456# Commands used to build and install an old-style archive.
18457RANLIB=$lt_RANLIB
18458old_archive_cmds=$lt_old_archive_cmds_CXX
18459old_postinstall_cmds=$lt_old_postinstall_cmds
18460old_postuninstall_cmds=$lt_old_postuninstall_cmds
18461
18462# Create an old-style archive from a shared archive.
18463old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18464
18465# Create a temporary old-style archive to link instead of a shared archive.
18466old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18467
18468# Commands used to build and install a shared archive.
18469archive_cmds=$lt_archive_cmds_CXX
18470archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18471postinstall_cmds=$lt_postinstall_cmds
18472postuninstall_cmds=$lt_postuninstall_cmds
18473
18474# Commands used to build a loadable module (assumed same as above if empty)
18475module_cmds=$lt_module_cmds_CXX
18476module_expsym_cmds=$lt_module_expsym_cmds_CXX
18477
18478# Commands to strip libraries.
18479old_striplib=$lt_old_striplib
18480striplib=$lt_striplib
18481
18482# Dependencies to place before the objects being linked to create a
18483# shared library.
18484predep_objects=$lt_predep_objects_CXX
18485
18486# Dependencies to place after the objects being linked to create a
18487# shared library.
18488postdep_objects=$lt_postdep_objects_CXX
18489
18490# Dependencies to place before the objects being linked to create a
18491# shared library.
18492predeps=$lt_predeps_CXX
18493
18494# Dependencies to place after the objects being linked to create a
18495# shared library.
18496postdeps=$lt_postdeps_CXX
18497
18498# The library search path used internally by the compiler when linking
18499# a shared library.
18500compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18501
18502# Method to check whether dependent libraries are shared objects.
18503deplibs_check_method=$lt_deplibs_check_method
18504
18505# Command to use when deplibs_check_method == file_magic.
18506file_magic_cmd=$lt_file_magic_cmd
18507
18508# Flag that allows shared libraries with undefined symbols to be built.
18509allow_undefined_flag=$lt_allow_undefined_flag_CXX
18510
18511# Flag that forces no undefined symbols.
18512no_undefined_flag=$lt_no_undefined_flag_CXX
18513
18514# Commands used to finish a libtool library installation in a directory.
18515finish_cmds=$lt_finish_cmds
18516
18517# Same as above, but a single script fragment to be evaled but not shown.
18518finish_eval=$lt_finish_eval
18519
18520# Take the output of nm and produce a listing of raw symbols and C names.
18521global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18522
18523# Transform the output of nm in a proper C declaration
18524global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18525
18526# Transform the output of nm in a C name address pair
18527global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18528
18529# This is the shared library runtime path variable.
18530runpath_var=$runpath_var
18531
18532# This is the shared library path variable.
18533shlibpath_var=$shlibpath_var
18534
18535# Is shlibpath searched before the hard-coded library search path?
18536shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18537
18538# How to hardcode a shared library path into an executable.
18539hardcode_action=$hardcode_action_CXX
18540
18541# Whether we should hardcode library paths into libraries.
18542hardcode_into_libs=$hardcode_into_libs
18543
18544# Flag to hardcode \$libdir into a binary during linking.
18545# This must work even if \$libdir does not exist.
18546hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18547
18548# If ld is used when linking, flag to hardcode \$libdir into
18549# a binary during linking. This must work even if \$libdir does
18550# not exist.
18551hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18552
18553# Whether we need a single -rpath flag with a separated argument.
18554hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18555
18556# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18557# resulting binary.
18558hardcode_direct=$hardcode_direct_CXX
18559
18560# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18561# resulting binary.
18562hardcode_minus_L=$hardcode_minus_L_CXX
18563
18564# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18565# the resulting binary.
18566hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18567
18568# Set to yes if building a shared library automatically hardcodes DIR into the library
18569# and all subsequent libraries and executables linked against it.
18570hardcode_automatic=$hardcode_automatic_CXX
18571
18572# Variables whose values should be saved in libtool wrapper scripts and
18573# restored at relink time.
18574variables_saved_for_relink="$variables_saved_for_relink"
18575
18576# Whether libtool must link a program against all its dependency libraries.
18577link_all_deplibs=$link_all_deplibs_CXX
18578
18579# Compile-time system search path for libraries
18580sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18581
18582# Run-time system search path for libraries
18583sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18584
18585# Fix the shell variable \$srcfile for the compiler.
18586fix_srcfile_path="$fix_srcfile_path_CXX"
18587
18588# Set to yes if exported symbols are required.
18589always_export_symbols=$always_export_symbols_CXX
18590
18591# The commands to list exported symbols.
18592export_symbols_cmds=$lt_export_symbols_cmds_CXX
18593
18594# The commands to extract the exported symbol list from a shared archive.
18595extract_expsyms_cmds=$lt_extract_expsyms_cmds
18596
18597# Symbols that should not be listed in the preloaded symbols.
18598exclude_expsyms=$lt_exclude_expsyms_CXX
18599
18600# Symbols that must always be exported.
18601include_expsyms=$lt_include_expsyms_CXX
18602
18603# ### END LIBTOOL TAG CONFIG: $tagname
18604
18605__EOF__
18606
18607
18608else
18609 # If there is no Makefile yet, we rely on a make rule to execute
18610 # `config.status --recheck' to rerun these tests and create the
18611 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018612 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18613 if test -f "$ltmain_in"; then
18614 test -f Makefile && make "$ltmain"
18615 fi
John Criswell47fdd832003-07-14 16:52:07 +000018616fi
18617
18618
18619ac_ext=c
18620ac_cpp='$CPP $CPPFLAGS'
18621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18623ac_compiler_gnu=$ac_cv_c_compiler_gnu
18624
18625CC=$lt_save_CC
18626LDCXX=$LD
18627LD=$lt_save_LD
18628GCC=$lt_save_GCC
18629with_gnu_ldcxx=$with_gnu_ld
18630with_gnu_ld=$lt_save_with_gnu_ld
18631lt_cv_path_LDCXX=$lt_cv_path_LD
18632lt_cv_path_LD=$lt_save_path_LD
18633lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18634lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18635
18636 else
18637 tagname=""
18638 fi
18639 ;;
18640
18641 F77)
18642 if test -n "$F77" && test "X$F77" != "Xno"; then
18643
18644ac_ext=f
18645ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18646ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18647ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18648
18649
18650archive_cmds_need_lc_F77=no
18651allow_undefined_flag_F77=
18652always_export_symbols_F77=no
18653archive_expsym_cmds_F77=
18654export_dynamic_flag_spec_F77=
18655hardcode_direct_F77=no
18656hardcode_libdir_flag_spec_F77=
18657hardcode_libdir_flag_spec_ld_F77=
18658hardcode_libdir_separator_F77=
18659hardcode_minus_L_F77=no
18660hardcode_automatic_F77=no
18661module_cmds_F77=
18662module_expsym_cmds_F77=
18663link_all_deplibs_F77=unknown
18664old_archive_cmds_F77=$old_archive_cmds
18665no_undefined_flag_F77=
18666whole_archive_flag_spec_F77=
18667enable_shared_with_static_runtimes_F77=no
18668
18669# Source file extension for f77 test sources.
18670ac_ext=f
18671
18672# Object file extension for compiled f77 test sources.
18673objext=o
18674objext_F77=$objext
18675
18676# Code to be used in simple compile tests
18677lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18678
18679# Code to be used in simple link tests
18680lt_simple_link_test_code=" program t\n end\n"
18681
18682# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18683
18684# If no C compiler was specified, use CC.
18685LTCC=${LTCC-"$CC"}
18686
18687# Allow CC to be a program name with arguments.
18688compiler=$CC
18689
18690
18691# Allow CC to be a program name with arguments.
18692lt_save_CC="$CC"
18693CC=${F77-"f77"}
18694compiler=$CC
18695compiler_F77=$CC
18696cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18697
18698echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18699echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18700echo "$as_me:$LINENO: result: $can_build_shared" >&5
18701echo "${ECHO_T}$can_build_shared" >&6
18702
18703echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18704echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18705test "$can_build_shared" = "no" && enable_shared=no
18706
18707# On AIX, shared libraries and static libraries use the same namespace, and
18708# are all built from PIC.
18709case "$host_os" in
18710aix3*)
18711 test "$enable_shared" = yes && enable_static=no
18712 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018713 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018714 postinstall_cmds='$RANLIB $lib'
18715 fi
18716 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018717aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018718 test "$enable_shared" = yes && enable_static=no
18719 ;;
18720esac
18721echo "$as_me:$LINENO: result: $enable_shared" >&5
18722echo "${ECHO_T}$enable_shared" >&6
18723
18724echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18725echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18726# Make sure either enable_shared or enable_static is yes.
18727test "$enable_shared" = yes || enable_static=yes
18728echo "$as_me:$LINENO: result: $enable_static" >&5
18729echo "${ECHO_T}$enable_static" >&6
18730
18731test "$ld_shlibs_F77" = no && can_build_shared=no
18732
18733GCC_F77="$G77"
18734LD_F77="$LD"
18735
18736lt_prog_compiler_wl_F77=
18737lt_prog_compiler_pic_F77=
18738lt_prog_compiler_static_F77=
18739
18740echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18741echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18742
18743 if test "$GCC" = yes; then
18744 lt_prog_compiler_wl_F77='-Wl,'
18745 lt_prog_compiler_static_F77='-static'
18746
18747 case $host_os in
18748 aix*)
18749 # All AIX code is PIC.
18750 if test "$host_cpu" = ia64; then
18751 # AIX 5 now supports IA64 processor
18752 lt_prog_compiler_static_F77='-Bstatic'
18753 fi
18754 ;;
18755
18756 amigaos*)
18757 # FIXME: we need at least 68020 code to build shared libraries, but
18758 # adding the `-m68020' flag to GCC prevents building anything better,
18759 # like `-m68040'.
18760 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18761 ;;
18762
18763 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18764 # PIC is the default for these OSes.
18765 ;;
18766
18767 mingw* | pw32* | os2*)
18768 # This hack is so that the source file can tell whether it is being
18769 # built for inclusion in a dll (and should export symbols for example).
18770 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18771 ;;
18772
18773 darwin* | rhapsody*)
18774 # PIC is the default on this platform
18775 # Common symbols not allowed in MH_DYLIB files
18776 lt_prog_compiler_pic_F77='-fno-common'
18777 ;;
18778
18779 msdosdjgpp*)
18780 # Just because we use GCC doesn't mean we suddenly get shared libraries
18781 # on systems that don't support them.
18782 lt_prog_compiler_can_build_shared_F77=no
18783 enable_shared=no
18784 ;;
18785
18786 sysv4*MP*)
18787 if test -d /usr/nec; then
18788 lt_prog_compiler_pic_F77=-Kconform_pic
18789 fi
18790 ;;
18791
18792 hpux*)
18793 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18794 # not for PA HP-UX.
18795 case "$host_cpu" in
18796 hppa*64*|ia64*)
18797 # +Z the default
18798 ;;
18799 *)
18800 lt_prog_compiler_pic_F77='-fPIC'
18801 ;;
18802 esac
18803 ;;
18804
18805 *)
18806 lt_prog_compiler_pic_F77='-fPIC'
18807 ;;
18808 esac
18809 else
18810 # PORTME Check for flag to pass linker flags through the system compiler.
18811 case $host_os in
18812 aix*)
18813 lt_prog_compiler_wl_F77='-Wl,'
18814 if test "$host_cpu" = ia64; then
18815 # AIX 5 now supports IA64 processor
18816 lt_prog_compiler_static_F77='-Bstatic'
18817 else
18818 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18819 fi
18820 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018821 darwin*)
18822 # PIC is the default on this platform
18823 # Common symbols not allowed in MH_DYLIB files
18824 case "$cc_basename" in
18825 xlc*)
18826 lt_prog_compiler_pic_F77='-qnocommon'
18827 lt_prog_compiler_wl_F77='-Wl,'
18828 ;;
18829 esac
18830 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018831
18832 mingw* | pw32* | os2*)
18833 # This hack is so that the source file can tell whether it is being
18834 # built for inclusion in a dll (and should export symbols for example).
18835 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18836 ;;
18837
18838 hpux9* | hpux10* | hpux11*)
18839 lt_prog_compiler_wl_F77='-Wl,'
18840 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18841 # not for PA HP-UX.
18842 case "$host_cpu" in
18843 hppa*64*|ia64*)
18844 # +Z the default
18845 ;;
18846 *)
18847 lt_prog_compiler_pic_F77='+Z'
18848 ;;
18849 esac
18850 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18851 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18852 ;;
18853
18854 irix5* | irix6* | nonstopux*)
18855 lt_prog_compiler_wl_F77='-Wl,'
18856 # PIC (with -KPIC) is the default.
18857 lt_prog_compiler_static_F77='-non_shared'
18858 ;;
18859
18860 newsos6)
18861 lt_prog_compiler_pic_F77='-KPIC'
18862 lt_prog_compiler_static_F77='-Bstatic'
18863 ;;
18864
18865 linux*)
18866 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018867 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018868 lt_prog_compiler_wl_F77='-Wl,'
18869 lt_prog_compiler_pic_F77='-KPIC'
18870 lt_prog_compiler_static_F77='-static'
18871 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018872 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018873 lt_prog_compiler_wl_F77='-Wl,'
18874 # All Alpha code is PIC.
18875 lt_prog_compiler_static_F77='-non_shared'
18876 ;;
18877 esac
18878 ;;
18879
18880 osf3* | osf4* | osf5*)
18881 lt_prog_compiler_wl_F77='-Wl,'
18882 # All OSF/1 code is PIC.
18883 lt_prog_compiler_static_F77='-non_shared'
18884 ;;
18885
18886 sco3.2v5*)
18887 lt_prog_compiler_pic_F77='-Kpic'
18888 lt_prog_compiler_static_F77='-dn'
18889 ;;
18890
18891 solaris*)
18892 lt_prog_compiler_wl_F77='-Wl,'
18893 lt_prog_compiler_pic_F77='-KPIC'
18894 lt_prog_compiler_static_F77='-Bstatic'
18895 ;;
18896
18897 sunos4*)
18898 lt_prog_compiler_wl_F77='-Qoption ld '
18899 lt_prog_compiler_pic_F77='-PIC'
18900 lt_prog_compiler_static_F77='-Bstatic'
18901 ;;
18902
18903 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18904 lt_prog_compiler_wl_F77='-Wl,'
18905 lt_prog_compiler_pic_F77='-KPIC'
18906 lt_prog_compiler_static_F77='-Bstatic'
18907 ;;
18908
18909 sysv4*MP*)
18910 if test -d /usr/nec ;then
18911 lt_prog_compiler_pic_F77='-Kconform_pic'
18912 lt_prog_compiler_static_F77='-Bstatic'
18913 fi
18914 ;;
18915
18916 uts4*)
18917 lt_prog_compiler_pic_F77='-pic'
18918 lt_prog_compiler_static_F77='-Bstatic'
18919 ;;
18920
18921 *)
18922 lt_prog_compiler_can_build_shared_F77=no
18923 ;;
18924 esac
18925 fi
18926
18927echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18928echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18929
18930#
18931# Check to make sure the PIC flag actually works.
18932#
18933if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018934
18935echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018936echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18937if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18939else
18940 lt_prog_compiler_pic_works_F77=no
18941 ac_outfile=conftest.$ac_objext
18942 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18943 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18944 # Insert the option either (1) after the last *FLAGS variable, or
18945 # (2) before a word containing "conftest.", or (3) at the end.
18946 # Note that $ac_compile itself does not contain backslashes and begins
18947 # with a dollar sign (not a hyphen), so the echo should work correctly.
18948 # The option is referenced via a variable to avoid confusing sed.
18949 lt_compile=`echo "$ac_compile" | $SED \
18950 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18952 -e 's:$: $lt_compiler_flag:'`
Reid Spencer7b3e8512004-12-24 06:29:05 +000018953 (eval echo "\"\$as_me:18953: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018954 (eval "$lt_compile" 2>conftest.err)
18955 ac_status=$?
18956 cat conftest.err >&5
Reid Spencer7b3e8512004-12-24 06:29:05 +000018957 echo "$as_me:18957: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018958 if (exit $ac_status) && test -s "$ac_outfile"; then
18959 # The compiler can only warn and ignore the option if not recognized
18960 # So say no if there are warnings
18961 if test ! -s conftest.err; then
18962 lt_prog_compiler_pic_works_F77=yes
18963 fi
18964 fi
18965 $rm conftest*
18966
18967fi
18968echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18969echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18970
18971if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18972 case $lt_prog_compiler_pic_F77 in
18973 "" | " "*) ;;
18974 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18975 esac
18976else
18977 lt_prog_compiler_pic_F77=
18978 lt_prog_compiler_can_build_shared_F77=no
18979fi
18980
18981fi
18982case "$host_os" in
18983 # For platforms which do not support PIC, -DPIC is meaningless:
18984 *djgpp*)
18985 lt_prog_compiler_pic_F77=
18986 ;;
18987 *)
18988 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18989 ;;
18990esac
18991
18992echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18993echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18994if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18995 echo $ECHO_N "(cached) $ECHO_C" >&6
18996else
18997 lt_cv_prog_compiler_c_o_F77=no
18998 $rm -r conftest 2>/dev/null
18999 mkdir conftest
19000 cd conftest
19001 mkdir out
19002 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19003
John Criswell47fdd832003-07-14 16:52:07 +000019004 lt_compiler_flag="-o out/conftest2.$ac_objext"
19005 # Insert the option either (1) after the last *FLAGS variable, or
19006 # (2) before a word containing "conftest.", or (3) at the end.
19007 # Note that $ac_compile itself does not contain backslashes and begins
19008 # with a dollar sign (not a hyphen), so the echo should work correctly.
19009 lt_compile=`echo "$ac_compile" | $SED \
19010 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19012 -e 's:$: $lt_compiler_flag:'`
Reid Spencer7b3e8512004-12-24 06:29:05 +000019013 (eval echo "\"\$as_me:19013: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019014 (eval "$lt_compile" 2>out/conftest.err)
19015 ac_status=$?
19016 cat out/conftest.err >&5
Reid Spencer7b3e8512004-12-24 06:29:05 +000019017 echo "$as_me:19017: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019018 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19019 then
19020 # The compiler can only warn and ignore the option if not recognized
19021 # So say no if there are warnings
19022 if test ! -s out/conftest.err; then
19023 lt_cv_prog_compiler_c_o_F77=yes
19024 fi
19025 fi
19026 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019027 $rm conftest*
19028 # SGI C++ compiler will create directory out/ii_files/ for
19029 # template instantiation
19030 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19031 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019032 cd ..
19033 rmdir conftest
19034 $rm conftest*
19035
19036fi
19037echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19038echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19039
19040
19041hard_links="nottested"
19042if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19043 # do not overwrite the value of need_locks provided by the user
19044 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19045echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19046 hard_links=yes
19047 $rm conftest*
19048 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19049 touch conftest.a
19050 ln conftest.a conftest.b 2>&5 || hard_links=no
19051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19052 echo "$as_me:$LINENO: result: $hard_links" >&5
19053echo "${ECHO_T}$hard_links" >&6
19054 if test "$hard_links" = no; then
19055 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19056echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19057 need_locks=warn
19058 fi
19059else
19060 need_locks=no
19061fi
19062
19063echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19064echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19065
19066 runpath_var=
19067 allow_undefined_flag_F77=
19068 enable_shared_with_static_runtimes_F77=no
19069 archive_cmds_F77=
19070 archive_expsym_cmds_F77=
19071 old_archive_From_new_cmds_F77=
19072 old_archive_from_expsyms_cmds_F77=
19073 export_dynamic_flag_spec_F77=
19074 whole_archive_flag_spec_F77=
19075 thread_safe_flag_spec_F77=
19076 hardcode_libdir_flag_spec_F77=
19077 hardcode_libdir_flag_spec_ld_F77=
19078 hardcode_libdir_separator_F77=
19079 hardcode_direct_F77=no
19080 hardcode_minus_L_F77=no
19081 hardcode_shlibpath_var_F77=unsupported
19082 link_all_deplibs_F77=unknown
19083 hardcode_automatic_F77=no
19084 module_cmds_F77=
19085 module_expsym_cmds_F77=
19086 always_export_symbols_F77=no
19087 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19088 # include_expsyms should be a list of space-separated symbols to be *always*
19089 # included in the symbol list
19090 include_expsyms_F77=
19091 # exclude_expsyms can be an extended regexp of symbols to exclude
19092 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19093 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19094 # as well as any symbol that contains `d'.
19095 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19096 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19097 # platforms (ab)use it in PIC code, but their linkers get confused if
19098 # the symbol is explicitly referenced. Since portable code cannot
19099 # rely on this symbol name, it's probably fine to never include it in
19100 # preloaded symbol tables.
19101 extract_expsyms_cmds=
19102
19103 case $host_os in
19104 cygwin* | mingw* | pw32*)
19105 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19106 # When not using gcc, we currently assume that we are using
19107 # Microsoft Visual C++.
19108 if test "$GCC" != yes; then
19109 with_gnu_ld=no
19110 fi
19111 ;;
19112 openbsd*)
19113 with_gnu_ld=no
19114 ;;
19115 esac
19116
19117 ld_shlibs_F77=yes
19118 if test "$with_gnu_ld" = yes; then
19119 # If archive_cmds runs LD, not CC, wlarc should be empty
19120 wlarc='${wl}'
19121
19122 # See if GNU ld supports shared libraries.
19123 case $host_os in
19124 aix3* | aix4* | aix5*)
19125 # On AIX/PPC, the GNU linker is very broken
19126 if test "$host_cpu" != ia64; then
19127 ld_shlibs_F77=no
19128 cat <<EOF 1>&2
19129
19130*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19131*** to be unable to reliably create shared libraries on AIX.
19132*** Therefore, libtool is disabling shared libraries support. If you
19133*** really care for shared libraries, you may want to modify your PATH
19134*** so that a non-GNU linker is found, and then restart.
19135
19136EOF
19137 fi
19138 ;;
19139
19140 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019141 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 +000019142 hardcode_libdir_flag_spec_F77='-L$libdir'
19143 hardcode_minus_L_F77=yes
19144
19145 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19146 # that the semantics of dynamic libraries on AmigaOS, at least up
19147 # to version 4, is to share data among multiple programs linked
19148 # with the same dynamic library. Since this doesn't match the
19149 # behavior of shared libraries on other platforms, we can't use
19150 # them.
19151 ld_shlibs_F77=no
19152 ;;
19153
19154 beos*)
19155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19156 allow_undefined_flag_F77=unsupported
19157 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19158 # support --undefined. This deserves some investigation. FIXME
19159 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19160 else
19161 ld_shlibs_F77=no
19162 fi
19163 ;;
19164
19165 cygwin* | mingw* | pw32*)
19166 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19167 # as there is no search path for DLLs.
19168 hardcode_libdir_flag_spec_F77='-L$libdir'
19169 allow_undefined_flag_F77=unsupported
19170 always_export_symbols_F77=no
19171 enable_shared_with_static_runtimes_F77=yes
19172 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19173
19174 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19175 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19176 # If the export-symbols file already is a .def file (1st line
19177 # is EXPORTS), use it as is; otherwise, prepend...
19178 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19179 cp $export_symbols $output_objdir/$soname.def;
19180 else
19181 echo EXPORTS > $output_objdir/$soname.def;
19182 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019183 fi~
19184 $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 +000019185 else
19186 ld_shlibs=no
19187 fi
19188 ;;
19189
19190 netbsd*)
19191 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19192 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19193 wlarc=
19194 else
19195 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19196 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19197 fi
19198 ;;
19199
19200 solaris* | sysv5*)
19201 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19202 ld_shlibs_F77=no
19203 cat <<EOF 1>&2
19204
19205*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19206*** create shared libraries on Solaris systems. Therefore, libtool
19207*** is disabling shared libraries support. We urge you to upgrade GNU
19208*** binutils to release 2.9.1 or newer. Another option is to modify
19209*** your PATH or compiler configuration so that the native linker is
19210*** used, and then restart.
19211
19212EOF
19213 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19214 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19215 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19216 else
19217 ld_shlibs_F77=no
19218 fi
19219 ;;
19220
19221 sunos4*)
19222 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19223 wlarc=
19224 hardcode_direct_F77=yes
19225 hardcode_shlibpath_var_F77=no
19226 ;;
19227
Reid Spencer2706f8c2004-09-19 23:53:36 +000019228 linux*)
19229 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19230 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19231 archive_cmds_F77="$tmp_archive_cmds"
19232 supports_anon_versioning=no
19233 case `$LD -v 2>/dev/null` in
19234 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19235 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19236 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19237 *\ 2.11.*) ;; # other 2.11 versions
19238 *) supports_anon_versioning=yes ;;
19239 esac
19240 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019241 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19242cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19243$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019244 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19245 else
19246 archive_expsym_cmds_F77="$tmp_archive_cmds"
19247 fi
19248 else
19249 ld_shlibs_F77=no
19250 fi
19251 ;;
19252
John Criswell47fdd832003-07-14 16:52:07 +000019253 *)
19254 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19255 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19256 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19257 else
19258 ld_shlibs_F77=no
19259 fi
19260 ;;
19261 esac
19262
19263 if test "$ld_shlibs_F77" = yes; then
19264 runpath_var=LD_RUN_PATH
19265 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19266 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19267 # ancient GNU ld didn't support --whole-archive et. al.
19268 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19269 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19270 else
19271 whole_archive_flag_spec_F77=
19272 fi
19273 fi
19274 else
19275 # PORTME fill in a description of your system's linker (not GNU ld)
19276 case $host_os in
19277 aix3*)
19278 allow_undefined_flag_F77=unsupported
19279 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019280 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 +000019281 # Note: this linker hardcodes the directories in LIBPATH if there
19282 # are no directories specified by -L.
19283 hardcode_minus_L_F77=yes
19284 if test "$GCC" = yes && test -z "$link_static_flag"; then
19285 # Neither direct hardcoding nor static linking is supported with a
19286 # broken collect2.
19287 hardcode_direct_F77=unsupported
19288 fi
19289 ;;
19290
19291 aix4* | aix5*)
19292 if test "$host_cpu" = ia64; then
19293 # On IA64, the linker does run time linking by default, so we don't
19294 # have to do anything special.
19295 aix_use_runtimelinking=no
19296 exp_sym_flag='-Bexport'
19297 no_entry_flag=""
19298 else
19299 # If we're using GNU nm, then we don't want the "-C" option.
19300 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19301 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19302 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'
19303 else
19304 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'
19305 fi
19306 aix_use_runtimelinking=no
19307
19308 # Test if we are trying to use run time linking or normal
19309 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19310 # need to do runtime linking.
19311 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19312 for ld_flag in $LDFLAGS; do
19313 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19314 aix_use_runtimelinking=yes
19315 break
19316 fi
19317 done
19318 esac
19319
19320 exp_sym_flag='-bexport'
19321 no_entry_flag='-bnoentry'
19322 fi
19323
19324 # When large executables or shared objects are built, AIX ld can
19325 # have problems creating the table of contents. If linking a library
19326 # or program results in "error TOC overflow" add -mminimal-toc to
19327 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19328 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19329
19330 archive_cmds_F77=''
19331 hardcode_direct_F77=yes
19332 hardcode_libdir_separator_F77=':'
19333 link_all_deplibs_F77=yes
19334
19335 if test "$GCC" = yes; then
19336 case $host_os in aix4.012|aix4.012.*)
19337 # We only want to do this on AIX 4.2 and lower, the check
19338 # below for broken collect2 doesn't work under 4.3+
19339 collect2name=`${CC} -print-prog-name=collect2`
19340 if test -f "$collect2name" && \
19341 strings "$collect2name" | grep resolve_lib_name >/dev/null
19342 then
19343 # We have reworked collect2
19344 hardcode_direct_F77=yes
19345 else
19346 # We have old collect2
19347 hardcode_direct_F77=unsupported
19348 # It fails to find uninstalled libraries when the uninstalled
19349 # path is not listed in the libpath. Setting hardcode_minus_L
19350 # to unsupported forces relinking
19351 hardcode_minus_L_F77=yes
19352 hardcode_libdir_flag_spec_F77='-L$libdir'
19353 hardcode_libdir_separator_F77=
19354 fi
19355 esac
19356 shared_flag='-shared'
19357 else
19358 # not using gcc
19359 if test "$host_cpu" = ia64; then
19360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19361 # chokes on -Wl,-G. The following line is correct:
19362 shared_flag='-G'
19363 else
19364 if test "$aix_use_runtimelinking" = yes; then
19365 shared_flag='${wl}-G'
19366 else
19367 shared_flag='${wl}-bM:SRE'
19368 fi
19369 fi
19370 fi
19371
19372 # It seems that -bexpall does not export symbols beginning with
19373 # underscore (_), so it is better to generate a list of symbols to export.
19374 always_export_symbols_F77=yes
19375 if test "$aix_use_runtimelinking" = yes; then
19376 # Warning - without using the other runtime loading flags (-brtl),
19377 # -berok will link without error, but may produce a broken library.
19378 allow_undefined_flag_F77='-berok'
19379 # Determine the default libpath from the value encoded in an empty executable.
19380 cat >conftest.$ac_ext <<_ACEOF
19381 program main
19382
19383 end
19384_ACEOF
19385rm -f conftest.$ac_objext conftest$ac_exeext
19386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019387 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019388 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019389 grep -v '^ *+' conftest.er1 >conftest.err
19390 rm -f conftest.er1
19391 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019394 { ac_try='test -z "$ac_f77_werror_flag"
19395 || test ! -s conftest.err'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; } &&
19401 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19403 (eval $ac_try) 2>&5
19404 ac_status=$?
19405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); }; }; then
19407
19408aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19409}'`
19410# Check for a 64-bit object if we didn't find anything.
19411if 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; }
19412}'`; fi
19413else
19414 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019415sed 's/^/| /' conftest.$ac_ext >&5
19416
John Criswell47fdd832003-07-14 16:52:07 +000019417fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019418rm -f conftest.err conftest.$ac_objext \
19419 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019420if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19421
19422 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19423 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"
19424 else
19425 if test "$host_cpu" = ia64; then
19426 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19427 allow_undefined_flag_F77="-z nodefs"
19428 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"
19429 else
19430 # Determine the default libpath from the value encoded in an empty executable.
19431 cat >conftest.$ac_ext <<_ACEOF
19432 program main
19433
19434 end
19435_ACEOF
19436rm -f conftest.$ac_objext conftest$ac_exeext
19437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019438 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019439 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019445 { ac_try='test -z "$ac_f77_werror_flag"
19446 || test ! -s conftest.err'
19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448 (eval $ac_try) 2>&5
19449 ac_status=$?
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; } &&
19452 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19458
19459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19460}'`
19461# Check for a 64-bit object if we didn't find anything.
19462if 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; }
19463}'`; fi
19464else
19465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019466sed 's/^/| /' conftest.$ac_ext >&5
19467
John Criswell47fdd832003-07-14 16:52:07 +000019468fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019469rm -f conftest.err conftest.$ac_objext \
19470 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019471if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19472
19473 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19474 # Warning - without using the other run time loading flags,
19475 # -berok will link without error, but may produce a broken library.
19476 no_undefined_flag_F77=' ${wl}-bernotok'
19477 allow_undefined_flag_F77=' ${wl}-berok'
19478 # -bexpall does not export symbols beginning with underscore (_)
19479 always_export_symbols_F77=yes
19480 # Exported symbols can be pulled into shared objects from archives
19481 whole_archive_flag_spec_F77=' '
19482 archive_cmds_need_lc_F77=yes
19483 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019484 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 +000019485 fi
19486 fi
19487 ;;
19488
19489 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019490 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 +000019491 hardcode_libdir_flag_spec_F77='-L$libdir'
19492 hardcode_minus_L_F77=yes
19493 # see comment about different semantics on the GNU ld section
19494 ld_shlibs_F77=no
19495 ;;
19496
Reid Spencer2706f8c2004-09-19 23:53:36 +000019497 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019498 export_dynamic_flag_spec_F77=-rdynamic
19499 ;;
19500
19501 cygwin* | mingw* | pw32*)
19502 # When not using gcc, we currently assume that we are using
19503 # Microsoft Visual C++.
19504 # hardcode_libdir_flag_spec is actually meaningless, as there is
19505 # no search path for DLLs.
19506 hardcode_libdir_flag_spec_F77=' '
19507 allow_undefined_flag_F77=unsupported
19508 # Tell ltmain to make .lib files, not .a files.
19509 libext=lib
19510 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019511 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019512 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019513 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 +000019514 # The linker will automatically build a .lib file if we build a DLL.
19515 old_archive_From_new_cmds_F77='true'
19516 # FIXME: Should let the user specify the lib program.
19517 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19518 fix_srcfile_path='`cygpath -w "$srcfile"`'
19519 enable_shared_with_static_runtimes_F77=yes
19520 ;;
19521
19522 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019523 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019524 rhapsody* | darwin1.[012])
19525 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19526 ;;
19527 *) # Darwin 1.3 on
19528 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19529 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19530 else
19531 case ${MACOSX_DEPLOYMENT_TARGET} in
19532 10.[012])
19533 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19534 ;;
19535 10.*)
19536 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19537 ;;
19538 esac
19539 fi
19540 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019541 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019542 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019543 hardcode_direct_F77=no
19544 hardcode_automatic_F77=yes
19545 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019546 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019547 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019548 if test "$GCC" = yes ; then
19549 output_verbose_link_cmd='echo'
19550 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19551 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19552 # 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 +000019553 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}'
19554 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 +000019555 else
19556 case "$cc_basename" in
19557 xlc*)
19558 output_verbose_link_cmd='echo'
19559 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19560 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19561 # 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 +000019562 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}'
19563 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 +000019564 ;;
19565 *)
19566 ld_shlibs_F77=no
19567 ;;
19568 esac
John Criswell47fdd832003-07-14 16:52:07 +000019569 fi
19570 ;;
19571
19572 dgux*)
19573 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19574 hardcode_libdir_flag_spec_F77='-L$libdir'
19575 hardcode_shlibpath_var_F77=no
19576 ;;
19577
19578 freebsd1*)
19579 ld_shlibs_F77=no
19580 ;;
19581
19582 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19583 # support. Future versions do this automatically, but an explicit c++rt0.o
19584 # does not break anything, and helps significantly (at the cost of a little
19585 # extra space).
19586 freebsd2.2*)
19587 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19588 hardcode_libdir_flag_spec_F77='-R$libdir'
19589 hardcode_direct_F77=yes
19590 hardcode_shlibpath_var_F77=no
19591 ;;
19592
19593 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19594 freebsd2*)
19595 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19596 hardcode_direct_F77=yes
19597 hardcode_minus_L_F77=yes
19598 hardcode_shlibpath_var_F77=no
19599 ;;
19600
19601 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019602 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019603 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19604 hardcode_libdir_flag_spec_F77='-R$libdir'
19605 hardcode_direct_F77=yes
19606 hardcode_shlibpath_var_F77=no
19607 ;;
19608
19609 hpux9*)
19610 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019611 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 +000019612 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019613 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 +000019614 fi
19615 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19616 hardcode_libdir_separator_F77=:
19617 hardcode_direct_F77=yes
19618
19619 # hardcode_minus_L: Not really in the search PATH,
19620 # but as the default location of the library.
19621 hardcode_minus_L_F77=yes
19622 export_dynamic_flag_spec_F77='${wl}-E'
19623 ;;
19624
19625 hpux10* | hpux11*)
19626 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19627 case "$host_cpu" in
19628 hppa*64*|ia64*)
19629 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19630 ;;
19631 *)
19632 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19633 ;;
19634 esac
19635 else
19636 case "$host_cpu" in
19637 hppa*64*|ia64*)
19638 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19639 ;;
19640 *)
19641 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19642 ;;
19643 esac
19644 fi
19645 if test "$with_gnu_ld" = no; then
19646 case "$host_cpu" in
19647 hppa*64*)
19648 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19649 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19650 hardcode_libdir_separator_F77=:
19651 hardcode_direct_F77=no
19652 hardcode_shlibpath_var_F77=no
19653 ;;
19654 ia64*)
19655 hardcode_libdir_flag_spec_F77='-L$libdir'
19656 hardcode_direct_F77=no
19657 hardcode_shlibpath_var_F77=no
19658
19659 # hardcode_minus_L: Not really in the search PATH,
19660 # but as the default location of the library.
19661 hardcode_minus_L_F77=yes
19662 ;;
19663 *)
19664 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19665 hardcode_libdir_separator_F77=:
19666 hardcode_direct_F77=yes
19667 export_dynamic_flag_spec_F77='${wl}-E'
19668
19669 # hardcode_minus_L: Not really in the search PATH,
19670 # but as the default location of the library.
19671 hardcode_minus_L_F77=yes
19672 ;;
19673 esac
19674 fi
19675 ;;
19676
19677 irix5* | irix6* | nonstopux*)
19678 if test "$GCC" = yes; then
19679 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'
19680 else
19681 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'
19682 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19683 fi
19684 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19685 hardcode_libdir_separator_F77=:
19686 link_all_deplibs_F77=yes
19687 ;;
19688
19689 netbsd*)
19690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19691 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19692 else
19693 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19694 fi
19695 hardcode_libdir_flag_spec_F77='-R$libdir'
19696 hardcode_direct_F77=yes
19697 hardcode_shlibpath_var_F77=no
19698 ;;
19699
19700 newsos6)
19701 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19702 hardcode_direct_F77=yes
19703 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19704 hardcode_libdir_separator_F77=:
19705 hardcode_shlibpath_var_F77=no
19706 ;;
19707
19708 openbsd*)
19709 hardcode_direct_F77=yes
19710 hardcode_shlibpath_var_F77=no
19711 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19712 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019713 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 +000019714 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19715 export_dynamic_flag_spec_F77='${wl}-E'
19716 else
19717 case $host_os in
19718 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19719 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19720 hardcode_libdir_flag_spec_F77='-R$libdir'
19721 ;;
19722 *)
19723 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19724 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19725 ;;
19726 esac
19727 fi
19728 ;;
19729
19730 os2*)
19731 hardcode_libdir_flag_spec_F77='-L$libdir'
19732 hardcode_minus_L_F77=yes
19733 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019734 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 +000019735 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19736 ;;
19737
19738 osf3*)
19739 if test "$GCC" = yes; then
19740 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19741 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'
19742 else
19743 allow_undefined_flag_F77=' -expect_unresolved \*'
19744 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'
19745 fi
19746 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19747 hardcode_libdir_separator_F77=:
19748 ;;
19749
19750 osf4* | osf5*) # as osf3* with the addition of -msym flag
19751 if test "$GCC" = yes; then
19752 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19753 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'
19754 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19755 else
19756 allow_undefined_flag_F77=' -expect_unresolved \*'
19757 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 +000019758 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~
19759 $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'
19760
John Criswell47fdd832003-07-14 16:52:07 +000019761 # Both c and cxx compiler support -rpath directly
19762 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19763 fi
19764 hardcode_libdir_separator_F77=:
19765 ;;
19766
19767 sco3.2v5*)
19768 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19769 hardcode_shlibpath_var_F77=no
19770 export_dynamic_flag_spec_F77='${wl}-Bexport'
19771 runpath_var=LD_RUN_PATH
19772 hardcode_runpath_var=yes
19773 ;;
19774
19775 solaris*)
19776 no_undefined_flag_F77=' -z text'
19777 if test "$GCC" = yes; then
19778 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019779 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19780 $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 +000019781 else
19782 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019783 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19784 $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 +000019785 fi
19786 hardcode_libdir_flag_spec_F77='-R$libdir'
19787 hardcode_shlibpath_var_F77=no
19788 case $host_os in
19789 solaris2.[0-5] | solaris2.[0-5].*) ;;
19790 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19791 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19792 esac
19793 link_all_deplibs_F77=yes
19794 ;;
19795
19796 sunos4*)
19797 if test "x$host_vendor" = xsequent; then
19798 # Use $CC to link under sequent, because it throws in some extra .o
19799 # files that make .init and .fini sections work.
19800 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19801 else
19802 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19803 fi
19804 hardcode_libdir_flag_spec_F77='-L$libdir'
19805 hardcode_direct_F77=yes
19806 hardcode_minus_L_F77=yes
19807 hardcode_shlibpath_var_F77=no
19808 ;;
19809
19810 sysv4)
19811 case $host_vendor in
19812 sni)
19813 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19814 hardcode_direct_F77=yes # is this really true???
19815 ;;
19816 siemens)
19817 ## LD is ld it makes a PLAMLIB
19818 ## CC just makes a GrossModule.
19819 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19820 reload_cmds_F77='$CC -r -o $output$reload_objs'
19821 hardcode_direct_F77=no
19822 ;;
19823 motorola)
19824 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19825 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19826 ;;
19827 esac
19828 runpath_var='LD_RUN_PATH'
19829 hardcode_shlibpath_var_F77=no
19830 ;;
19831
19832 sysv4.3*)
19833 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19834 hardcode_shlibpath_var_F77=no
19835 export_dynamic_flag_spec_F77='-Bexport'
19836 ;;
19837
19838 sysv4*MP*)
19839 if test -d /usr/nec; then
19840 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19841 hardcode_shlibpath_var_F77=no
19842 runpath_var=LD_RUN_PATH
19843 hardcode_runpath_var=yes
19844 ld_shlibs_F77=yes
19845 fi
19846 ;;
19847
19848 sysv4.2uw2*)
19849 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19850 hardcode_direct_F77=yes
19851 hardcode_minus_L_F77=no
19852 hardcode_shlibpath_var_F77=no
19853 hardcode_runpath_var=yes
19854 runpath_var=LD_RUN_PATH
19855 ;;
19856
19857 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19858 no_undefined_flag_F77='${wl}-z ${wl}text'
19859 if test "$GCC" = yes; then
19860 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19861 else
19862 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19863 fi
19864 runpath_var='LD_RUN_PATH'
19865 hardcode_shlibpath_var_F77=no
19866 ;;
19867
19868 sysv5*)
19869 no_undefined_flag_F77=' -z text'
19870 # $CC -shared without GNU ld will not create a library from C++
19871 # object files and a static libstdc++, better avoid it by now
19872 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019873 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19874 $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 +000019875 hardcode_libdir_flag_spec_F77=
19876 hardcode_shlibpath_var_F77=no
19877 runpath_var='LD_RUN_PATH'
19878 ;;
19879
19880 uts4*)
19881 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19882 hardcode_libdir_flag_spec_F77='-L$libdir'
19883 hardcode_shlibpath_var_F77=no
19884 ;;
19885
19886 *)
19887 ld_shlibs_F77=no
19888 ;;
19889 esac
19890 fi
19891
19892echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19893echo "${ECHO_T}$ld_shlibs_F77" >&6
19894test "$ld_shlibs_F77" = no && can_build_shared=no
19895
19896variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19897if test "$GCC" = yes; then
19898 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19899fi
19900
19901#
19902# Do we need to explicitly link libc?
19903#
19904case "x$archive_cmds_need_lc_F77" in
19905x|xyes)
19906 # Assume -lc should be added
19907 archive_cmds_need_lc_F77=yes
19908
19909 if test "$enable_shared" = yes && test "$GCC" = yes; then
19910 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019911 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019912 # FIXME: we may have to deal with multi-command sequences.
19913 ;;
19914 '$CC '*)
19915 # Test whether the compiler implicitly links with -lc since on some
19916 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19917 # to ld, don't add -lc before -lgcc.
19918 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19919echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19920 $rm conftest*
19921 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19922
19923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19924 (eval $ac_compile) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } 2>conftest.err; then
19928 soname=conftest
19929 lib=conftest
19930 libobjs=conftest.$ac_objext
19931 deplibs=
19932 wl=$lt_prog_compiler_wl_F77
19933 compiler_flags=-v
19934 linker_flags=-v
19935 verstring=
19936 output_objdir=.
19937 libname=conftest
19938 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19939 allow_undefined_flag_F77=
19940 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19941 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19942 ac_status=$?
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }
19945 then
19946 archive_cmds_need_lc_F77=no
19947 else
19948 archive_cmds_need_lc_F77=yes
19949 fi
19950 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19951 else
19952 cat conftest.err 1>&5
19953 fi
19954 $rm conftest*
19955 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19956echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19957 ;;
19958 esac
19959 fi
19960 ;;
19961esac
19962
John Criswell47fdd832003-07-14 16:52:07 +000019963echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19964echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19965library_names_spec=
19966libname_spec='lib$name'
19967soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019968shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019969postinstall_cmds=
19970postuninstall_cmds=
19971finish_cmds=
19972finish_eval=
19973shlibpath_var=
19974shlibpath_overrides_runpath=unknown
19975version_type=none
19976dynamic_linker="$host_os ld.so"
19977sys_lib_dlsearch_path_spec="/lib /usr/lib"
19978if test "$GCC" = yes; then
19979 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19980 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19981 # if the path contains ";" then we assume it to be the separator
19982 # otherwise default to the standard path separator (i.e. ":") - it is
19983 # assumed that no part of a normal pathname contains ";" but that should
19984 # okay in the real world where ";" in dirpaths is itself problematic.
19985 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19986 else
19987 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19988 fi
19989else
19990 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19991fi
19992need_lib_prefix=unknown
19993hardcode_into_libs=no
19994
19995# when you set need_version to no, make sure it does not cause -set_version
19996# flags to be left without arguments
19997need_version=unknown
19998
19999case $host_os in
20000aix3*)
20001 version_type=linux
20002 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20003 shlibpath_var=LIBPATH
20004
20005 # AIX 3 has no versioning support, so we append a major version to the name.
20006 soname_spec='${libname}${release}${shared_ext}$major'
20007 ;;
20008
20009aix4* | aix5*)
20010 version_type=linux
20011 need_lib_prefix=no
20012 need_version=no
20013 hardcode_into_libs=yes
20014 if test "$host_cpu" = ia64; then
20015 # AIX 5 supports IA64
20016 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20017 shlibpath_var=LD_LIBRARY_PATH
20018 else
20019 # With GCC up to 2.95.x, collect2 would create an import file
20020 # for dependence libraries. The import file would start with
20021 # the line `#! .'. This would cause the generated library to
20022 # depend on `.', always an invalid library. This was fixed in
20023 # development snapshots of GCC prior to 3.0.
20024 case $host_os in
20025 aix4 | aix4.[01] | aix4.[01].*)
20026 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20027 echo ' yes '
20028 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20029 :
20030 else
20031 can_build_shared=no
20032 fi
20033 ;;
20034 esac
20035 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20036 # soname into executable. Probably we can add versioning support to
20037 # collect2, so additional links can be useful in future.
20038 if test "$aix_use_runtimelinking" = yes; then
20039 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20040 # instead of lib<name>.a to let people know that these are not
20041 # typical AIX shared libraries.
20042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20043 else
20044 # We preserve .a as extension for shared libraries through AIX4.2
20045 # and later when we are not doing run time linking.
20046 library_names_spec='${libname}${release}.a $libname.a'
20047 soname_spec='${libname}${release}${shared_ext}$major'
20048 fi
20049 shlibpath_var=LIBPATH
20050 fi
20051 ;;
20052
20053amigaos*)
20054 library_names_spec='$libname.ixlibrary $libname.a'
20055 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020056 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 +000020057 ;;
20058
20059beos*)
20060 library_names_spec='${libname}${shared_ext}'
20061 dynamic_linker="$host_os ld.so"
20062 shlibpath_var=LIBRARY_PATH
20063 ;;
20064
Reid Spencer2706f8c2004-09-19 23:53:36 +000020065bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020066 version_type=linux
20067 need_version=no
20068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20069 soname_spec='${libname}${release}${shared_ext}$major'
20070 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20071 shlibpath_var=LD_LIBRARY_PATH
20072 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20073 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20074 # the default ld.so.conf also contains /usr/contrib/lib and
20075 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20076 # libtool to hard-code these into programs
20077 ;;
20078
20079cygwin* | mingw* | pw32*)
20080 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020081 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020082 need_version=no
20083 need_lib_prefix=no
20084
20085 case $GCC,$host_os in
20086 yes,cygwin* | yes,mingw* | yes,pw32*)
20087 library_names_spec='$libname.dll.a'
20088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020089 postinstall_cmds='base_file=`basename \${file}`~
20090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20091 dldir=$destdir/`dirname \$dlpath`~
20092 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020093 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20095 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020096 $rm \$dlpath'
20097 shlibpath_overrides_runpath=yes
20098
20099 case $host_os in
20100 cygwin*)
20101 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20102 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 +000020103 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020104 ;;
20105 mingw*)
20106 # MinGW DLLs use traditional 'lib' prefix
20107 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20108 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20109 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20110 # It is most probably a Windows format PATH printed by
20111 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20112 # path with ; separators, and with drive letters. We can handle the
20113 # drive letters (cygwin fileutils understands them), so leave them,
20114 # especially as we might pass files found there to a mingw objdump,
20115 # which wouldn't understand a cygwinified path. Ahh.
20116 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20117 else
20118 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20119 fi
20120 ;;
20121 pw32*)
20122 # pw32 DLLs use 'pw' prefix rather than 'lib'
20123 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20124 ;;
20125 esac
20126 ;;
20127
20128 *)
20129 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20130 ;;
20131 esac
20132 dynamic_linker='Win32 ld.exe'
20133 # FIXME: first we should search . and the directory the executable is in
20134 shlibpath_var=PATH
20135 ;;
20136
20137darwin* | rhapsody*)
20138 dynamic_linker="$host_os dyld"
20139 version_type=darwin
20140 need_lib_prefix=no
20141 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020142 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020143 soname_spec='${libname}${release}${major}$shared_ext'
20144 shlibpath_overrides_runpath=yes
20145 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020146 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020147 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020148 if test "$GCC" = yes; then
20149 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"`
20150 else
20151 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020152 fi
20153 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20154 ;;
20155
20156dgux*)
20157 version_type=linux
20158 need_lib_prefix=no
20159 need_version=no
20160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20161 soname_spec='${libname}${release}${shared_ext}$major'
20162 shlibpath_var=LD_LIBRARY_PATH
20163 ;;
20164
20165freebsd1*)
20166 dynamic_linker=no
20167 ;;
20168
Reid Spencer2706f8c2004-09-19 23:53:36 +000020169kfreebsd*-gnu)
20170 version_type=linux
20171 need_lib_prefix=no
20172 need_version=no
20173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20174 soname_spec='${libname}${release}${shared_ext}$major'
20175 shlibpath_var=LD_LIBRARY_PATH
20176 shlibpath_overrides_runpath=no
20177 hardcode_into_libs=yes
20178 dynamic_linker='GNU ld.so'
20179 ;;
20180
John Criswell47fdd832003-07-14 16:52:07 +000020181freebsd*)
20182 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20183 version_type=freebsd-$objformat
20184 case $version_type in
20185 freebsd-elf*)
20186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20187 need_version=no
20188 need_lib_prefix=no
20189 ;;
20190 freebsd-*)
20191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20192 need_version=yes
20193 ;;
20194 esac
20195 shlibpath_var=LD_LIBRARY_PATH
20196 case $host_os in
20197 freebsd2*)
20198 shlibpath_overrides_runpath=yes
20199 ;;
20200 freebsd3.01* | freebsdelf3.01*)
20201 shlibpath_overrides_runpath=yes
20202 hardcode_into_libs=yes
20203 ;;
20204 *) # from 3.2 on
20205 shlibpath_overrides_runpath=no
20206 hardcode_into_libs=yes
20207 ;;
20208 esac
20209 ;;
20210
20211gnu*)
20212 version_type=linux
20213 need_lib_prefix=no
20214 need_version=no
20215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20216 soname_spec='${libname}${release}${shared_ext}$major'
20217 shlibpath_var=LD_LIBRARY_PATH
20218 hardcode_into_libs=yes
20219 ;;
20220
20221hpux9* | hpux10* | hpux11*)
20222 # Give a soname corresponding to the major version so that dld.sl refuses to
20223 # link against other versions.
20224 version_type=sunos
20225 need_lib_prefix=no
20226 need_version=no
20227 case "$host_cpu" in
20228 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020229 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020230 hardcode_into_libs=yes
20231 dynamic_linker="$host_os dld.so"
20232 shlibpath_var=LD_LIBRARY_PATH
20233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20235 soname_spec='${libname}${release}${shared_ext}$major'
20236 if test "X$HPUX_IA64_MODE" = X32; then
20237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20238 else
20239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20240 fi
20241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20242 ;;
20243 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020244 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020245 hardcode_into_libs=yes
20246 dynamic_linker="$host_os dld.sl"
20247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250 soname_spec='${libname}${release}${shared_ext}$major'
20251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20253 ;;
20254 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020255 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020256 dynamic_linker="$host_os dld.sl"
20257 shlibpath_var=SHLIB_PATH
20258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20260 soname_spec='${libname}${release}${shared_ext}$major'
20261 ;;
20262 esac
20263 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20264 postinstall_cmds='chmod 555 $lib'
20265 ;;
20266
20267irix5* | irix6* | nonstopux*)
20268 case $host_os in
20269 nonstopux*) version_type=nonstopux ;;
20270 *)
20271 if test "$lt_cv_prog_gnu_ld" = yes; then
20272 version_type=linux
20273 else
20274 version_type=irix
20275 fi ;;
20276 esac
20277 need_lib_prefix=no
20278 need_version=no
20279 soname_spec='${libname}${release}${shared_ext}$major'
20280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20281 case $host_os in
20282 irix5* | nonstopux*)
20283 libsuff= shlibsuff=
20284 ;;
20285 *)
20286 case $LD in # libtool.m4 will add one of these switches to LD
20287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20288 libsuff= shlibsuff= libmagic=32-bit;;
20289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20290 libsuff=32 shlibsuff=N32 libmagic=N32;;
20291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20292 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20293 *) libsuff= shlibsuff= libmagic=never-match;;
20294 esac
20295 ;;
20296 esac
20297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20298 shlibpath_overrides_runpath=no
20299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20301 hardcode_into_libs=yes
20302 ;;
20303
20304# No shared lib support for Linux oldld, aout, or coff.
20305linux*oldld* | linux*aout* | linux*coff*)
20306 dynamic_linker=no
20307 ;;
20308
20309# This must be Linux ELF.
20310linux*)
20311 version_type=linux
20312 need_lib_prefix=no
20313 need_version=no
20314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20315 soname_spec='${libname}${release}${shared_ext}$major'
20316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20317 shlibpath_var=LD_LIBRARY_PATH
20318 shlibpath_overrides_runpath=no
20319 # This implies no fast_install, which is unacceptable.
20320 # Some rework will be needed to allow for fast_install
20321 # before this can be enabled.
20322 hardcode_into_libs=yes
20323
Reid Spencer2706f8c2004-09-19 23:53:36 +000020324 # Append ld.so.conf contents to the search path
20325 if test -f /etc/ld.so.conf; then
20326 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20327 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20328 fi
20329
John Criswell47fdd832003-07-14 16:52:07 +000020330 # We used to test for /lib/ld.so.1 and disable shared libraries on
20331 # powerpc, because MkLinux only supported shared libraries with the
20332 # GNU dynamic linker. Since this was broken with cross compilers,
20333 # most powerpc-linux boxes support dynamic linking these days and
20334 # people can always --disable-shared, the test was removed, and we
20335 # assume the GNU/Linux dynamic linker is in use.
20336 dynamic_linker='GNU/Linux ld.so'
20337 ;;
20338
Reid Spencer2706f8c2004-09-19 23:53:36 +000020339knetbsd*-gnu)
20340 version_type=linux
20341 need_lib_prefix=no
20342 need_version=no
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 shlibpath_overrides_runpath=no
20347 hardcode_into_libs=yes
20348 dynamic_linker='GNU ld.so'
20349 ;;
20350
John Criswell47fdd832003-07-14 16:52:07 +000020351netbsd*)
20352 version_type=sunos
20353 need_lib_prefix=no
20354 need_version=no
20355 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20358 dynamic_linker='NetBSD (a.out) ld.so'
20359 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020361 soname_spec='${libname}${release}${shared_ext}$major'
20362 dynamic_linker='NetBSD ld.elf_so'
20363 fi
20364 shlibpath_var=LD_LIBRARY_PATH
20365 shlibpath_overrides_runpath=yes
20366 hardcode_into_libs=yes
20367 ;;
20368
20369newsos6)
20370 version_type=linux
20371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20372 shlibpath_var=LD_LIBRARY_PATH
20373 shlibpath_overrides_runpath=yes
20374 ;;
20375
Reid Spencer2706f8c2004-09-19 23:53:36 +000020376nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020377 version_type=linux
20378 need_lib_prefix=no
20379 need_version=no
20380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20381 soname_spec='${libname}${release}${shared_ext}$major'
20382 shlibpath_var=LD_LIBRARY_PATH
20383 shlibpath_overrides_runpath=yes
20384 ;;
20385
20386openbsd*)
20387 version_type=sunos
20388 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020389 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20392 shlibpath_var=LD_LIBRARY_PATH
20393 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20394 case $host_os in
20395 openbsd2.[89] | openbsd2.[89].*)
20396 shlibpath_overrides_runpath=no
20397 ;;
20398 *)
20399 shlibpath_overrides_runpath=yes
20400 ;;
20401 esac
20402 else
20403 shlibpath_overrides_runpath=yes
20404 fi
20405 ;;
20406
20407os2*)
20408 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020409 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020410 need_lib_prefix=no
20411 library_names_spec='$libname${shared_ext} $libname.a'
20412 dynamic_linker='OS/2 ld.exe'
20413 shlibpath_var=LIBPATH
20414 ;;
20415
20416osf3* | osf4* | osf5*)
20417 version_type=osf
20418 need_lib_prefix=no
20419 need_version=no
20420 soname_spec='${libname}${release}${shared_ext}$major'
20421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20422 shlibpath_var=LD_LIBRARY_PATH
20423 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20424 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20425 ;;
20426
20427sco3.2v5*)
20428 version_type=osf
20429 soname_spec='${libname}${release}${shared_ext}$major'
20430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20431 shlibpath_var=LD_LIBRARY_PATH
20432 ;;
20433
20434solaris*)
20435 version_type=linux
20436 need_lib_prefix=no
20437 need_version=no
20438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20439 soname_spec='${libname}${release}${shared_ext}$major'
20440 shlibpath_var=LD_LIBRARY_PATH
20441 shlibpath_overrides_runpath=yes
20442 hardcode_into_libs=yes
20443 # ldd complains unless libraries are executable
20444 postinstall_cmds='chmod +x $lib'
20445 ;;
20446
20447sunos4*)
20448 version_type=sunos
20449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20450 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20451 shlibpath_var=LD_LIBRARY_PATH
20452 shlibpath_overrides_runpath=yes
20453 if test "$with_gnu_ld" = yes; then
20454 need_lib_prefix=no
20455 fi
20456 need_version=yes
20457 ;;
20458
20459sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20460 version_type=linux
20461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20462 soname_spec='${libname}${release}${shared_ext}$major'
20463 shlibpath_var=LD_LIBRARY_PATH
20464 case $host_vendor in
20465 sni)
20466 shlibpath_overrides_runpath=no
20467 need_lib_prefix=no
20468 export_dynamic_flag_spec='${wl}-Blargedynsym'
20469 runpath_var=LD_RUN_PATH
20470 ;;
20471 siemens)
20472 need_lib_prefix=no
20473 ;;
20474 motorola)
20475 need_lib_prefix=no
20476 need_version=no
20477 shlibpath_overrides_runpath=no
20478 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20479 ;;
20480 esac
20481 ;;
20482
20483sysv4*MP*)
20484 if test -d /usr/nec ;then
20485 version_type=linux
20486 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20487 soname_spec='$libname${shared_ext}.$major'
20488 shlibpath_var=LD_LIBRARY_PATH
20489 fi
20490 ;;
20491
20492uts4*)
20493 version_type=linux
20494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20495 soname_spec='${libname}${release}${shared_ext}$major'
20496 shlibpath_var=LD_LIBRARY_PATH
20497 ;;
20498
20499*)
20500 dynamic_linker=no
20501 ;;
20502esac
20503echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20504echo "${ECHO_T}$dynamic_linker" >&6
20505test "$dynamic_linker" = no && can_build_shared=no
20506
Reid Spencer2706f8c2004-09-19 23:53:36 +000020507echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20508echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20509hardcode_action_F77=
20510if test -n "$hardcode_libdir_flag_spec_F77" || \
20511 test -n "$runpath_var_F77" || \
20512 test "X$hardcode_automatic_F77" = "Xyes" ; then
20513
20514 # We can hardcode non-existant directories.
20515 if test "$hardcode_direct_F77" != no &&
20516 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20517 # have to relink, otherwise we might link with an installed library
20518 # when we should be linking with a yet-to-be-installed one
20519 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20520 test "$hardcode_minus_L_F77" != no; then
20521 # Linking always hardcodes the temporary library directory.
20522 hardcode_action_F77=relink
20523 else
20524 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20525 hardcode_action_F77=immediate
20526 fi
20527else
20528 # We cannot hardcode anything, or else we can only hardcode existing
20529 # directories.
20530 hardcode_action_F77=unsupported
20531fi
20532echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20533echo "${ECHO_T}$hardcode_action_F77" >&6
20534
20535if test "$hardcode_action_F77" = relink; then
20536 # Fast installation is not supported
20537 enable_fast_install=no
20538elif test "$shlibpath_overrides_runpath" = yes ||
20539 test "$enable_shared" = no; then
20540 # Fast installation is not necessary
20541 enable_fast_install=needless
20542fi
20543
20544striplib=
20545old_striplib=
20546echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20547echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20548if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20549 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20550 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20551 echo "$as_me:$LINENO: result: yes" >&5
20552echo "${ECHO_T}yes" >&6
20553else
20554# FIXME - insert some real tests, host_os isn't really good enough
20555 case $host_os in
20556 darwin*)
20557 if test -n "$STRIP" ; then
20558 striplib="$STRIP -x"
20559 echo "$as_me:$LINENO: result: yes" >&5
20560echo "${ECHO_T}yes" >&6
20561 else
20562 echo "$as_me:$LINENO: result: no" >&5
20563echo "${ECHO_T}no" >&6
20564fi
20565 ;;
20566 *)
20567 echo "$as_me:$LINENO: result: no" >&5
20568echo "${ECHO_T}no" >&6
20569 ;;
20570 esac
20571fi
20572
20573
John Criswell47fdd832003-07-14 16:52:07 +000020574
20575# The else clause should only fire when bootstrapping the
20576# libtool distribution, otherwise you forgot to ship ltmain.sh
20577# with your package, and you will get complaints that there are
20578# no rules to generate ltmain.sh.
20579if test -f "$ltmain"; then
20580 # See if we are running on zsh, and set the options which allow our commands through
20581 # without removal of \ escapes.
20582 if test -n "${ZSH_VERSION+set}" ; then
20583 setopt NO_GLOB_SUBST
20584 fi
20585 # Now quote all the things that may contain metacharacters while being
20586 # careful not to overquote the AC_SUBSTed values. We take copies of the
20587 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020588 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20589 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020590 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20591 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20592 deplibs_check_method reload_flag reload_cmds need_locks \
20593 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20594 lt_cv_sys_global_symbol_to_c_name_address \
20595 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20596 old_postinstall_cmds old_postuninstall_cmds \
20597 compiler_F77 \
20598 CC_F77 \
20599 LD_F77 \
20600 lt_prog_compiler_wl_F77 \
20601 lt_prog_compiler_pic_F77 \
20602 lt_prog_compiler_static_F77 \
20603 lt_prog_compiler_no_builtin_flag_F77 \
20604 export_dynamic_flag_spec_F77 \
20605 thread_safe_flag_spec_F77 \
20606 whole_archive_flag_spec_F77 \
20607 enable_shared_with_static_runtimes_F77 \
20608 old_archive_cmds_F77 \
20609 old_archive_from_new_cmds_F77 \
20610 predep_objects_F77 \
20611 postdep_objects_F77 \
20612 predeps_F77 \
20613 postdeps_F77 \
20614 compiler_lib_search_path_F77 \
20615 archive_cmds_F77 \
20616 archive_expsym_cmds_F77 \
20617 postinstall_cmds_F77 \
20618 postuninstall_cmds_F77 \
20619 old_archive_from_expsyms_cmds_F77 \
20620 allow_undefined_flag_F77 \
20621 no_undefined_flag_F77 \
20622 export_symbols_cmds_F77 \
20623 hardcode_libdir_flag_spec_F77 \
20624 hardcode_libdir_flag_spec_ld_F77 \
20625 hardcode_libdir_separator_F77 \
20626 hardcode_automatic_F77 \
20627 module_cmds_F77 \
20628 module_expsym_cmds_F77 \
20629 lt_cv_prog_compiler_c_o_F77 \
20630 exclude_expsyms_F77 \
20631 include_expsyms_F77; do
20632
20633 case $var in
20634 old_archive_cmds_F77 | \
20635 old_archive_from_new_cmds_F77 | \
20636 archive_cmds_F77 | \
20637 archive_expsym_cmds_F77 | \
20638 module_cmds_F77 | \
20639 module_expsym_cmds_F77 | \
20640 old_archive_from_expsyms_cmds_F77 | \
20641 export_symbols_cmds_F77 | \
20642 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20643 postinstall_cmds | postuninstall_cmds | \
20644 old_postinstall_cmds | old_postuninstall_cmds | \
20645 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20646 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020647 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 +000020648 ;;
20649 *)
20650 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20651 ;;
20652 esac
20653 done
20654
20655 case $lt_echo in
20656 *'\$0 --fallback-echo"')
20657 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20658 ;;
20659 esac
20660
20661cfgfile="$ofile"
20662
20663 cat <<__EOF__ >> "$cfgfile"
20664# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20665
20666# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20667
20668# Shell to use when invoking shell scripts.
20669SHELL=$lt_SHELL
20670
20671# Whether or not to build shared libraries.
20672build_libtool_libs=$enable_shared
20673
20674# Whether or not to build static libraries.
20675build_old_libs=$enable_static
20676
20677# Whether or not to add -lc for building shared libraries.
20678build_libtool_need_lc=$archive_cmds_need_lc_F77
20679
20680# Whether or not to disallow shared libs when runtime libs are static
20681allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20682
20683# Whether or not to optimize for fast installation.
20684fast_install=$enable_fast_install
20685
20686# The host system.
20687host_alias=$host_alias
20688host=$host
20689
20690# An echo program that does not interpret backslashes.
20691echo=$lt_echo
20692
20693# The archiver.
20694AR=$lt_AR
20695AR_FLAGS=$lt_AR_FLAGS
20696
20697# A C compiler.
20698LTCC=$lt_LTCC
20699
20700# A language-specific compiler.
20701CC=$lt_compiler_F77
20702
20703# Is the compiler the GNU C compiler?
20704with_gcc=$GCC_F77
20705
20706# An ERE matcher.
20707EGREP=$lt_EGREP
20708
20709# The linker used to build libraries.
20710LD=$lt_LD_F77
20711
20712# Whether we need hard or soft links.
20713LN_S=$lt_LN_S
20714
20715# A BSD-compatible nm program.
20716NM=$lt_NM
20717
20718# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020719STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020720
20721# Used to examine libraries when file_magic_cmd begins "file"
20722MAGIC_CMD=$MAGIC_CMD
20723
20724# Used on cygwin: DLL creation program.
20725DLLTOOL="$DLLTOOL"
20726
20727# Used on cygwin: object dumper.
20728OBJDUMP="$OBJDUMP"
20729
20730# Used on cygwin: assembler.
20731AS="$AS"
20732
20733# The name of the directory that contains temporary libtool files.
20734objdir=$objdir
20735
20736# How to create reloadable object files.
20737reload_flag=$lt_reload_flag
20738reload_cmds=$lt_reload_cmds
20739
20740# How to pass a linker flag through the compiler.
20741wl=$lt_lt_prog_compiler_wl_F77
20742
20743# Object file suffix (normally "o").
20744objext="$ac_objext"
20745
20746# Old archive suffix (normally "a").
20747libext="$libext"
20748
20749# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020750shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020751
20752# Executable file suffix (normally "").
20753exeext="$exeext"
20754
20755# Additional compiler flags for building library objects.
20756pic_flag=$lt_lt_prog_compiler_pic_F77
20757pic_mode=$pic_mode
20758
20759# What is the maximum length of a command?
20760max_cmd_len=$lt_cv_sys_max_cmd_len
20761
20762# Does compiler simultaneously support -c and -o options?
20763compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20764
20765# Must we lock files when doing compilation ?
20766need_locks=$lt_need_locks
20767
20768# Do we need the lib prefix for modules?
20769need_lib_prefix=$need_lib_prefix
20770
20771# Do we need a version for libraries?
20772need_version=$need_version
20773
20774# Whether dlopen is supported.
20775dlopen_support=$enable_dlopen
20776
20777# Whether dlopen of programs is supported.
20778dlopen_self=$enable_dlopen_self
20779
20780# Whether dlopen of statically linked programs is supported.
20781dlopen_self_static=$enable_dlopen_self_static
20782
20783# Compiler flag to prevent dynamic linking.
20784link_static_flag=$lt_lt_prog_compiler_static_F77
20785
20786# Compiler flag to turn off builtin functions.
20787no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20788
20789# Compiler flag to allow reflexive dlopens.
20790export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20791
20792# Compiler flag to generate shared objects directly from archives.
20793whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20794
20795# Compiler flag to generate thread-safe objects.
20796thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20797
20798# Library versioning type.
20799version_type=$version_type
20800
20801# Format of library name prefix.
20802libname_spec=$lt_libname_spec
20803
20804# List of archive names. First name is the real one, the rest are links.
20805# The last name is the one that the linker finds with -lNAME.
20806library_names_spec=$lt_library_names_spec
20807
20808# The coded name of the library, if different from the real name.
20809soname_spec=$lt_soname_spec
20810
20811# Commands used to build and install an old-style archive.
20812RANLIB=$lt_RANLIB
20813old_archive_cmds=$lt_old_archive_cmds_F77
20814old_postinstall_cmds=$lt_old_postinstall_cmds
20815old_postuninstall_cmds=$lt_old_postuninstall_cmds
20816
20817# Create an old-style archive from a shared archive.
20818old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20819
20820# Create a temporary old-style archive to link instead of a shared archive.
20821old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20822
20823# Commands used to build and install a shared archive.
20824archive_cmds=$lt_archive_cmds_F77
20825archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20826postinstall_cmds=$lt_postinstall_cmds
20827postuninstall_cmds=$lt_postuninstall_cmds
20828
20829# Commands used to build a loadable module (assumed same as above if empty)
20830module_cmds=$lt_module_cmds_F77
20831module_expsym_cmds=$lt_module_expsym_cmds_F77
20832
20833# Commands to strip libraries.
20834old_striplib=$lt_old_striplib
20835striplib=$lt_striplib
20836
20837# Dependencies to place before the objects being linked to create a
20838# shared library.
20839predep_objects=$lt_predep_objects_F77
20840
20841# Dependencies to place after the objects being linked to create a
20842# shared library.
20843postdep_objects=$lt_postdep_objects_F77
20844
20845# Dependencies to place before the objects being linked to create a
20846# shared library.
20847predeps=$lt_predeps_F77
20848
20849# Dependencies to place after the objects being linked to create a
20850# shared library.
20851postdeps=$lt_postdeps_F77
20852
20853# The library search path used internally by the compiler when linking
20854# a shared library.
20855compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20856
20857# Method to check whether dependent libraries are shared objects.
20858deplibs_check_method=$lt_deplibs_check_method
20859
20860# Command to use when deplibs_check_method == file_magic.
20861file_magic_cmd=$lt_file_magic_cmd
20862
20863# Flag that allows shared libraries with undefined symbols to be built.
20864allow_undefined_flag=$lt_allow_undefined_flag_F77
20865
20866# Flag that forces no undefined symbols.
20867no_undefined_flag=$lt_no_undefined_flag_F77
20868
20869# Commands used to finish a libtool library installation in a directory.
20870finish_cmds=$lt_finish_cmds
20871
20872# Same as above, but a single script fragment to be evaled but not shown.
20873finish_eval=$lt_finish_eval
20874
20875# Take the output of nm and produce a listing of raw symbols and C names.
20876global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20877
20878# Transform the output of nm in a proper C declaration
20879global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20880
20881# Transform the output of nm in a C name address pair
20882global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20883
20884# This is the shared library runtime path variable.
20885runpath_var=$runpath_var
20886
20887# This is the shared library path variable.
20888shlibpath_var=$shlibpath_var
20889
20890# Is shlibpath searched before the hard-coded library search path?
20891shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20892
20893# How to hardcode a shared library path into an executable.
20894hardcode_action=$hardcode_action_F77
20895
20896# Whether we should hardcode library paths into libraries.
20897hardcode_into_libs=$hardcode_into_libs
20898
20899# Flag to hardcode \$libdir into a binary during linking.
20900# This must work even if \$libdir does not exist.
20901hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20902
20903# If ld is used when linking, flag to hardcode \$libdir into
20904# a binary during linking. This must work even if \$libdir does
20905# not exist.
20906hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20907
20908# Whether we need a single -rpath flag with a separated argument.
20909hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20910
20911# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20912# resulting binary.
20913hardcode_direct=$hardcode_direct_F77
20914
20915# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20916# resulting binary.
20917hardcode_minus_L=$hardcode_minus_L_F77
20918
20919# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20920# the resulting binary.
20921hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20922
20923# Set to yes if building a shared library automatically hardcodes DIR into the library
20924# and all subsequent libraries and executables linked against it.
20925hardcode_automatic=$hardcode_automatic_F77
20926
20927# Variables whose values should be saved in libtool wrapper scripts and
20928# restored at relink time.
20929variables_saved_for_relink="$variables_saved_for_relink"
20930
20931# Whether libtool must link a program against all its dependency libraries.
20932link_all_deplibs=$link_all_deplibs_F77
20933
20934# Compile-time system search path for libraries
20935sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20936
20937# Run-time system search path for libraries
20938sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20939
20940# Fix the shell variable \$srcfile for the compiler.
20941fix_srcfile_path="$fix_srcfile_path_F77"
20942
20943# Set to yes if exported symbols are required.
20944always_export_symbols=$always_export_symbols_F77
20945
20946# The commands to list exported symbols.
20947export_symbols_cmds=$lt_export_symbols_cmds_F77
20948
20949# The commands to extract the exported symbol list from a shared archive.
20950extract_expsyms_cmds=$lt_extract_expsyms_cmds
20951
20952# Symbols that should not be listed in the preloaded symbols.
20953exclude_expsyms=$lt_exclude_expsyms_F77
20954
20955# Symbols that must always be exported.
20956include_expsyms=$lt_include_expsyms_F77
20957
20958# ### END LIBTOOL TAG CONFIG: $tagname
20959
20960__EOF__
20961
20962
20963else
20964 # If there is no Makefile yet, we rely on a make rule to execute
20965 # `config.status --recheck' to rerun these tests and create the
20966 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020967 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20968 if test -f "$ltmain_in"; then
20969 test -f Makefile && make "$ltmain"
20970 fi
John Criswell47fdd832003-07-14 16:52:07 +000020971fi
20972
20973
20974ac_ext=c
20975ac_cpp='$CPP $CPPFLAGS'
20976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20978ac_compiler_gnu=$ac_cv_c_compiler_gnu
20979
20980CC="$lt_save_CC"
20981
20982 else
20983 tagname=""
20984 fi
20985 ;;
20986
20987 GCJ)
20988 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020989 ac_ext=c
20990ac_cpp='$CPP $CPPFLAGS'
20991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020994
20995
20996# Source file extension for Java test sources.
20997ac_ext=java
20998
20999# Object file extension for compiled Java test sources.
21000objext=o
21001objext_GCJ=$objext
21002
21003# Code to be used in simple compile tests
21004lt_simple_compile_test_code="class foo {}\n"
21005
21006# Code to be used in simple link tests
21007lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21008
21009# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21010
21011# If no C compiler was specified, use CC.
21012LTCC=${LTCC-"$CC"}
21013
21014# Allow CC to be a program name with arguments.
21015compiler=$CC
21016
21017
21018# Allow CC to be a program name with arguments.
21019lt_save_CC="$CC"
21020CC=${GCJ-"gcj"}
21021compiler=$CC
21022compiler_GCJ=$CC
21023
21024# GCJ did not exist at the time GCC didn't implicitly link libc in.
21025archive_cmds_need_lc_GCJ=no
21026
John Criswell47fdd832003-07-14 16:52:07 +000021027
21028lt_prog_compiler_no_builtin_flag_GCJ=
21029
21030if test "$GCC" = yes; then
21031 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21032
Reid Spencer2706f8c2004-09-19 23:53:36 +000021033
21034echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021035echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21036if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21037 echo $ECHO_N "(cached) $ECHO_C" >&6
21038else
21039 lt_cv_prog_compiler_rtti_exceptions=no
21040 ac_outfile=conftest.$ac_objext
21041 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21042 lt_compiler_flag="-fno-rtti -fno-exceptions"
21043 # Insert the option either (1) after the last *FLAGS variable, or
21044 # (2) before a word containing "conftest.", or (3) at the end.
21045 # Note that $ac_compile itself does not contain backslashes and begins
21046 # with a dollar sign (not a hyphen), so the echo should work correctly.
21047 # The option is referenced via a variable to avoid confusing sed.
21048 lt_compile=`echo "$ac_compile" | $SED \
21049 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21051 -e 's:$: $lt_compiler_flag:'`
Reid Spencer7b3e8512004-12-24 06:29:05 +000021052 (eval echo "\"\$as_me:21052: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021053 (eval "$lt_compile" 2>conftest.err)
21054 ac_status=$?
21055 cat conftest.err >&5
Reid Spencer7b3e8512004-12-24 06:29:05 +000021056 echo "$as_me:21056: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021057 if (exit $ac_status) && test -s "$ac_outfile"; then
21058 # The compiler can only warn and ignore the option if not recognized
21059 # So say no if there are warnings
21060 if test ! -s conftest.err; then
21061 lt_cv_prog_compiler_rtti_exceptions=yes
21062 fi
21063 fi
21064 $rm conftest*
21065
21066fi
21067echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21068echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21069
21070if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21071 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21072else
21073 :
21074fi
21075
21076fi
21077
21078lt_prog_compiler_wl_GCJ=
21079lt_prog_compiler_pic_GCJ=
21080lt_prog_compiler_static_GCJ=
21081
21082echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21083echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21084
21085 if test "$GCC" = yes; then
21086 lt_prog_compiler_wl_GCJ='-Wl,'
21087 lt_prog_compiler_static_GCJ='-static'
21088
21089 case $host_os in
21090 aix*)
21091 # All AIX code is PIC.
21092 if test "$host_cpu" = ia64; then
21093 # AIX 5 now supports IA64 processor
21094 lt_prog_compiler_static_GCJ='-Bstatic'
21095 fi
21096 ;;
21097
21098 amigaos*)
21099 # FIXME: we need at least 68020 code to build shared libraries, but
21100 # adding the `-m68020' flag to GCC prevents building anything better,
21101 # like `-m68040'.
21102 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21103 ;;
21104
21105 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21106 # PIC is the default for these OSes.
21107 ;;
21108
21109 mingw* | pw32* | os2*)
21110 # This hack is so that the source file can tell whether it is being
21111 # built for inclusion in a dll (and should export symbols for example).
21112 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21113 ;;
21114
21115 darwin* | rhapsody*)
21116 # PIC is the default on this platform
21117 # Common symbols not allowed in MH_DYLIB files
21118 lt_prog_compiler_pic_GCJ='-fno-common'
21119 ;;
21120
21121 msdosdjgpp*)
21122 # Just because we use GCC doesn't mean we suddenly get shared libraries
21123 # on systems that don't support them.
21124 lt_prog_compiler_can_build_shared_GCJ=no
21125 enable_shared=no
21126 ;;
21127
21128 sysv4*MP*)
21129 if test -d /usr/nec; then
21130 lt_prog_compiler_pic_GCJ=-Kconform_pic
21131 fi
21132 ;;
21133
21134 hpux*)
21135 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21136 # not for PA HP-UX.
21137 case "$host_cpu" in
21138 hppa*64*|ia64*)
21139 # +Z the default
21140 ;;
21141 *)
21142 lt_prog_compiler_pic_GCJ='-fPIC'
21143 ;;
21144 esac
21145 ;;
21146
21147 *)
21148 lt_prog_compiler_pic_GCJ='-fPIC'
21149 ;;
21150 esac
21151 else
21152 # PORTME Check for flag to pass linker flags through the system compiler.
21153 case $host_os in
21154 aix*)
21155 lt_prog_compiler_wl_GCJ='-Wl,'
21156 if test "$host_cpu" = ia64; then
21157 # AIX 5 now supports IA64 processor
21158 lt_prog_compiler_static_GCJ='-Bstatic'
21159 else
21160 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21161 fi
21162 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021163 darwin*)
21164 # PIC is the default on this platform
21165 # Common symbols not allowed in MH_DYLIB files
21166 case "$cc_basename" in
21167 xlc*)
21168 lt_prog_compiler_pic_GCJ='-qnocommon'
21169 lt_prog_compiler_wl_GCJ='-Wl,'
21170 ;;
21171 esac
21172 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021173
21174 mingw* | pw32* | os2*)
21175 # This hack is so that the source file can tell whether it is being
21176 # built for inclusion in a dll (and should export symbols for example).
21177 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21178 ;;
21179
21180 hpux9* | hpux10* | hpux11*)
21181 lt_prog_compiler_wl_GCJ='-Wl,'
21182 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21183 # not for PA HP-UX.
21184 case "$host_cpu" in
21185 hppa*64*|ia64*)
21186 # +Z the default
21187 ;;
21188 *)
21189 lt_prog_compiler_pic_GCJ='+Z'
21190 ;;
21191 esac
21192 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21193 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21194 ;;
21195
21196 irix5* | irix6* | nonstopux*)
21197 lt_prog_compiler_wl_GCJ='-Wl,'
21198 # PIC (with -KPIC) is the default.
21199 lt_prog_compiler_static_GCJ='-non_shared'
21200 ;;
21201
21202 newsos6)
21203 lt_prog_compiler_pic_GCJ='-KPIC'
21204 lt_prog_compiler_static_GCJ='-Bstatic'
21205 ;;
21206
21207 linux*)
21208 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021209 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021210 lt_prog_compiler_wl_GCJ='-Wl,'
21211 lt_prog_compiler_pic_GCJ='-KPIC'
21212 lt_prog_compiler_static_GCJ='-static'
21213 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021214 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021215 lt_prog_compiler_wl_GCJ='-Wl,'
21216 # All Alpha code is PIC.
21217 lt_prog_compiler_static_GCJ='-non_shared'
21218 ;;
21219 esac
21220 ;;
21221
21222 osf3* | osf4* | osf5*)
21223 lt_prog_compiler_wl_GCJ='-Wl,'
21224 # All OSF/1 code is PIC.
21225 lt_prog_compiler_static_GCJ='-non_shared'
21226 ;;
21227
21228 sco3.2v5*)
21229 lt_prog_compiler_pic_GCJ='-Kpic'
21230 lt_prog_compiler_static_GCJ='-dn'
21231 ;;
21232
21233 solaris*)
21234 lt_prog_compiler_wl_GCJ='-Wl,'
21235 lt_prog_compiler_pic_GCJ='-KPIC'
21236 lt_prog_compiler_static_GCJ='-Bstatic'
21237 ;;
21238
21239 sunos4*)
21240 lt_prog_compiler_wl_GCJ='-Qoption ld '
21241 lt_prog_compiler_pic_GCJ='-PIC'
21242 lt_prog_compiler_static_GCJ='-Bstatic'
21243 ;;
21244
21245 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21246 lt_prog_compiler_wl_GCJ='-Wl,'
21247 lt_prog_compiler_pic_GCJ='-KPIC'
21248 lt_prog_compiler_static_GCJ='-Bstatic'
21249 ;;
21250
21251 sysv4*MP*)
21252 if test -d /usr/nec ;then
21253 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21254 lt_prog_compiler_static_GCJ='-Bstatic'
21255 fi
21256 ;;
21257
21258 uts4*)
21259 lt_prog_compiler_pic_GCJ='-pic'
21260 lt_prog_compiler_static_GCJ='-Bstatic'
21261 ;;
21262
21263 *)
21264 lt_prog_compiler_can_build_shared_GCJ=no
21265 ;;
21266 esac
21267 fi
21268
21269echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21270echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21271
21272#
21273# Check to make sure the PIC flag actually works.
21274#
21275if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021276
21277echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021278echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21279if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21280 echo $ECHO_N "(cached) $ECHO_C" >&6
21281else
21282 lt_prog_compiler_pic_works_GCJ=no
21283 ac_outfile=conftest.$ac_objext
21284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21285 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21286 # Insert the option either (1) after the last *FLAGS variable, or
21287 # (2) before a word containing "conftest.", or (3) at the end.
21288 # Note that $ac_compile itself does not contain backslashes and begins
21289 # with a dollar sign (not a hyphen), so the echo should work correctly.
21290 # The option is referenced via a variable to avoid confusing sed.
21291 lt_compile=`echo "$ac_compile" | $SED \
21292 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21294 -e 's:$: $lt_compiler_flag:'`
Reid Spencer7b3e8512004-12-24 06:29:05 +000021295 (eval echo "\"\$as_me:21295: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021296 (eval "$lt_compile" 2>conftest.err)
21297 ac_status=$?
21298 cat conftest.err >&5
Reid Spencer7b3e8512004-12-24 06:29:05 +000021299 echo "$as_me:21299: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021300 if (exit $ac_status) && test -s "$ac_outfile"; then
21301 # The compiler can only warn and ignore the option if not recognized
21302 # So say no if there are warnings
21303 if test ! -s conftest.err; then
21304 lt_prog_compiler_pic_works_GCJ=yes
21305 fi
21306 fi
21307 $rm conftest*
21308
21309fi
21310echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21311echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21312
21313if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21314 case $lt_prog_compiler_pic_GCJ in
21315 "" | " "*) ;;
21316 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21317 esac
21318else
21319 lt_prog_compiler_pic_GCJ=
21320 lt_prog_compiler_can_build_shared_GCJ=no
21321fi
21322
21323fi
21324case "$host_os" in
21325 # For platforms which do not support PIC, -DPIC is meaningless:
21326 *djgpp*)
21327 lt_prog_compiler_pic_GCJ=
21328 ;;
21329 *)
21330 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21331 ;;
21332esac
21333
21334echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21335echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21336if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21337 echo $ECHO_N "(cached) $ECHO_C" >&6
21338else
21339 lt_cv_prog_compiler_c_o_GCJ=no
21340 $rm -r conftest 2>/dev/null
21341 mkdir conftest
21342 cd conftest
21343 mkdir out
21344 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21345
John Criswell47fdd832003-07-14 16:52:07 +000021346 lt_compiler_flag="-o out/conftest2.$ac_objext"
21347 # Insert the option either (1) after the last *FLAGS variable, or
21348 # (2) before a word containing "conftest.", or (3) at the end.
21349 # Note that $ac_compile itself does not contain backslashes and begins
21350 # with a dollar sign (not a hyphen), so the echo should work correctly.
21351 lt_compile=`echo "$ac_compile" | $SED \
21352 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21353 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21354 -e 's:$: $lt_compiler_flag:'`
Reid Spencer7b3e8512004-12-24 06:29:05 +000021355 (eval echo "\"\$as_me:21355: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021356 (eval "$lt_compile" 2>out/conftest.err)
21357 ac_status=$?
21358 cat out/conftest.err >&5
Reid Spencer7b3e8512004-12-24 06:29:05 +000021359 echo "$as_me:21359: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021360 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21361 then
21362 # The compiler can only warn and ignore the option if not recognized
21363 # So say no if there are warnings
21364 if test ! -s out/conftest.err; then
21365 lt_cv_prog_compiler_c_o_GCJ=yes
21366 fi
21367 fi
21368 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021369 $rm conftest*
21370 # SGI C++ compiler will create directory out/ii_files/ for
21371 # template instantiation
21372 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21373 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021374 cd ..
21375 rmdir conftest
21376 $rm conftest*
21377
21378fi
21379echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21380echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21381
21382
21383hard_links="nottested"
21384if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21385 # do not overwrite the value of need_locks provided by the user
21386 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21387echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21388 hard_links=yes
21389 $rm conftest*
21390 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21391 touch conftest.a
21392 ln conftest.a conftest.b 2>&5 || hard_links=no
21393 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21394 echo "$as_me:$LINENO: result: $hard_links" >&5
21395echo "${ECHO_T}$hard_links" >&6
21396 if test "$hard_links" = no; then
21397 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21398echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21399 need_locks=warn
21400 fi
21401else
21402 need_locks=no
21403fi
21404
21405echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21406echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21407
21408 runpath_var=
21409 allow_undefined_flag_GCJ=
21410 enable_shared_with_static_runtimes_GCJ=no
21411 archive_cmds_GCJ=
21412 archive_expsym_cmds_GCJ=
21413 old_archive_From_new_cmds_GCJ=
21414 old_archive_from_expsyms_cmds_GCJ=
21415 export_dynamic_flag_spec_GCJ=
21416 whole_archive_flag_spec_GCJ=
21417 thread_safe_flag_spec_GCJ=
21418 hardcode_libdir_flag_spec_GCJ=
21419 hardcode_libdir_flag_spec_ld_GCJ=
21420 hardcode_libdir_separator_GCJ=
21421 hardcode_direct_GCJ=no
21422 hardcode_minus_L_GCJ=no
21423 hardcode_shlibpath_var_GCJ=unsupported
21424 link_all_deplibs_GCJ=unknown
21425 hardcode_automatic_GCJ=no
21426 module_cmds_GCJ=
21427 module_expsym_cmds_GCJ=
21428 always_export_symbols_GCJ=no
21429 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21430 # include_expsyms should be a list of space-separated symbols to be *always*
21431 # included in the symbol list
21432 include_expsyms_GCJ=
21433 # exclude_expsyms can be an extended regexp of symbols to exclude
21434 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21435 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21436 # as well as any symbol that contains `d'.
21437 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21438 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21439 # platforms (ab)use it in PIC code, but their linkers get confused if
21440 # the symbol is explicitly referenced. Since portable code cannot
21441 # rely on this symbol name, it's probably fine to never include it in
21442 # preloaded symbol tables.
21443 extract_expsyms_cmds=
21444
21445 case $host_os in
21446 cygwin* | mingw* | pw32*)
21447 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21448 # When not using gcc, we currently assume that we are using
21449 # Microsoft Visual C++.
21450 if test "$GCC" != yes; then
21451 with_gnu_ld=no
21452 fi
21453 ;;
21454 openbsd*)
21455 with_gnu_ld=no
21456 ;;
21457 esac
21458
21459 ld_shlibs_GCJ=yes
21460 if test "$with_gnu_ld" = yes; then
21461 # If archive_cmds runs LD, not CC, wlarc should be empty
21462 wlarc='${wl}'
21463
21464 # See if GNU ld supports shared libraries.
21465 case $host_os in
21466 aix3* | aix4* | aix5*)
21467 # On AIX/PPC, the GNU linker is very broken
21468 if test "$host_cpu" != ia64; then
21469 ld_shlibs_GCJ=no
21470 cat <<EOF 1>&2
21471
21472*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21473*** to be unable to reliably create shared libraries on AIX.
21474*** Therefore, libtool is disabling shared libraries support. If you
21475*** really care for shared libraries, you may want to modify your PATH
21476*** so that a non-GNU linker is found, and then restart.
21477
21478EOF
21479 fi
21480 ;;
21481
21482 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021483 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 +000021484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21485 hardcode_minus_L_GCJ=yes
21486
21487 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21488 # that the semantics of dynamic libraries on AmigaOS, at least up
21489 # to version 4, is to share data among multiple programs linked
21490 # with the same dynamic library. Since this doesn't match the
21491 # behavior of shared libraries on other platforms, we can't use
21492 # them.
21493 ld_shlibs_GCJ=no
21494 ;;
21495
21496 beos*)
21497 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21498 allow_undefined_flag_GCJ=unsupported
21499 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21500 # support --undefined. This deserves some investigation. FIXME
21501 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21502 else
21503 ld_shlibs_GCJ=no
21504 fi
21505 ;;
21506
21507 cygwin* | mingw* | pw32*)
21508 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21509 # as there is no search path for DLLs.
21510 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21511 allow_undefined_flag_GCJ=unsupported
21512 always_export_symbols_GCJ=no
21513 enable_shared_with_static_runtimes_GCJ=yes
21514 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21515
21516 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21517 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21518 # If the export-symbols file already is a .def file (1st line
21519 # is EXPORTS), use it as is; otherwise, prepend...
21520 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21521 cp $export_symbols $output_objdir/$soname.def;
21522 else
21523 echo EXPORTS > $output_objdir/$soname.def;
21524 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021525 fi~
21526 $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 +000021527 else
21528 ld_shlibs=no
21529 fi
21530 ;;
21531
21532 netbsd*)
21533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21534 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21535 wlarc=
21536 else
21537 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21538 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21539 fi
21540 ;;
21541
21542 solaris* | sysv5*)
21543 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21544 ld_shlibs_GCJ=no
21545 cat <<EOF 1>&2
21546
21547*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21548*** create shared libraries on Solaris systems. Therefore, libtool
21549*** is disabling shared libraries support. We urge you to upgrade GNU
21550*** binutils to release 2.9.1 or newer. Another option is to modify
21551*** your PATH or compiler configuration so that the native linker is
21552*** used, and then restart.
21553
21554EOF
21555 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21556 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21557 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21558 else
21559 ld_shlibs_GCJ=no
21560 fi
21561 ;;
21562
21563 sunos4*)
21564 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21565 wlarc=
21566 hardcode_direct_GCJ=yes
21567 hardcode_shlibpath_var_GCJ=no
21568 ;;
21569
Reid Spencer2706f8c2004-09-19 23:53:36 +000021570 linux*)
21571 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21572 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21573 archive_cmds_GCJ="$tmp_archive_cmds"
21574 supports_anon_versioning=no
21575 case `$LD -v 2>/dev/null` in
21576 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21577 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21578 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21579 *\ 2.11.*) ;; # other 2.11 versions
21580 *) supports_anon_versioning=yes ;;
21581 esac
21582 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021583 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21584cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21585$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021586 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21587 else
21588 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21589 fi
21590 else
21591 ld_shlibs_GCJ=no
21592 fi
21593 ;;
21594
John Criswell47fdd832003-07-14 16:52:07 +000021595 *)
21596 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21597 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21598 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21599 else
21600 ld_shlibs_GCJ=no
21601 fi
21602 ;;
21603 esac
21604
21605 if test "$ld_shlibs_GCJ" = yes; then
21606 runpath_var=LD_RUN_PATH
21607 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21608 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21609 # ancient GNU ld didn't support --whole-archive et. al.
21610 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21611 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21612 else
21613 whole_archive_flag_spec_GCJ=
21614 fi
21615 fi
21616 else
21617 # PORTME fill in a description of your system's linker (not GNU ld)
21618 case $host_os in
21619 aix3*)
21620 allow_undefined_flag_GCJ=unsupported
21621 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021622 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 +000021623 # Note: this linker hardcodes the directories in LIBPATH if there
21624 # are no directories specified by -L.
21625 hardcode_minus_L_GCJ=yes
21626 if test "$GCC" = yes && test -z "$link_static_flag"; then
21627 # Neither direct hardcoding nor static linking is supported with a
21628 # broken collect2.
21629 hardcode_direct_GCJ=unsupported
21630 fi
21631 ;;
21632
21633 aix4* | aix5*)
21634 if test "$host_cpu" = ia64; then
21635 # On IA64, the linker does run time linking by default, so we don't
21636 # have to do anything special.
21637 aix_use_runtimelinking=no
21638 exp_sym_flag='-Bexport'
21639 no_entry_flag=""
21640 else
21641 # If we're using GNU nm, then we don't want the "-C" option.
21642 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21643 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21644 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'
21645 else
21646 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'
21647 fi
21648 aix_use_runtimelinking=no
21649
21650 # Test if we are trying to use run time linking or normal
21651 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21652 # need to do runtime linking.
21653 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21654 for ld_flag in $LDFLAGS; do
21655 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21656 aix_use_runtimelinking=yes
21657 break
21658 fi
21659 done
21660 esac
21661
21662 exp_sym_flag='-bexport'
21663 no_entry_flag='-bnoentry'
21664 fi
21665
21666 # When large executables or shared objects are built, AIX ld can
21667 # have problems creating the table of contents. If linking a library
21668 # or program results in "error TOC overflow" add -mminimal-toc to
21669 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21670 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21671
21672 archive_cmds_GCJ=''
21673 hardcode_direct_GCJ=yes
21674 hardcode_libdir_separator_GCJ=':'
21675 link_all_deplibs_GCJ=yes
21676
21677 if test "$GCC" = yes; then
21678 case $host_os in aix4.012|aix4.012.*)
21679 # We only want to do this on AIX 4.2 and lower, the check
21680 # below for broken collect2 doesn't work under 4.3+
21681 collect2name=`${CC} -print-prog-name=collect2`
21682 if test -f "$collect2name" && \
21683 strings "$collect2name" | grep resolve_lib_name >/dev/null
21684 then
21685 # We have reworked collect2
21686 hardcode_direct_GCJ=yes
21687 else
21688 # We have old collect2
21689 hardcode_direct_GCJ=unsupported
21690 # It fails to find uninstalled libraries when the uninstalled
21691 # path is not listed in the libpath. Setting hardcode_minus_L
21692 # to unsupported forces relinking
21693 hardcode_minus_L_GCJ=yes
21694 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21695 hardcode_libdir_separator_GCJ=
21696 fi
21697 esac
21698 shared_flag='-shared'
21699 else
21700 # not using gcc
21701 if test "$host_cpu" = ia64; then
21702 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21703 # chokes on -Wl,-G. The following line is correct:
21704 shared_flag='-G'
21705 else
21706 if test "$aix_use_runtimelinking" = yes; then
21707 shared_flag='${wl}-G'
21708 else
21709 shared_flag='${wl}-bM:SRE'
21710 fi
21711 fi
21712 fi
21713
21714 # It seems that -bexpall does not export symbols beginning with
21715 # underscore (_), so it is better to generate a list of symbols to export.
21716 always_export_symbols_GCJ=yes
21717 if test "$aix_use_runtimelinking" = yes; then
21718 # Warning - without using the other runtime loading flags (-brtl),
21719 # -berok will link without error, but may produce a broken library.
21720 allow_undefined_flag_GCJ='-berok'
21721 # Determine the default libpath from the value encoded in an empty executable.
21722 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021723/* confdefs.h. */
21724_ACEOF
21725cat confdefs.h >>conftest.$ac_ext
21726cat >>conftest.$ac_ext <<_ACEOF
21727/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021728
John Criswell47fdd832003-07-14 16:52:07 +000021729int
21730main ()
21731{
21732
21733 ;
21734 return 0;
21735}
21736_ACEOF
21737rm -f conftest.$ac_objext conftest$ac_exeext
21738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021739 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021741 grep -v '^ *+' conftest.er1 >conftest.err
21742 rm -f conftest.er1
21743 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021746 { ac_try='test -z "$ac_c_werror_flag"
21747 || test ! -s conftest.err'
21748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21749 (eval $ac_try) 2>&5
21750 ac_status=$?
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); }; } &&
21753 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21755 (eval $ac_try) 2>&5
21756 ac_status=$?
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); }; }; then
21759
21760aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21761}'`
21762# Check for a 64-bit object if we didn't find anything.
21763if 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; }
21764}'`; fi
21765else
21766 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021767sed 's/^/| /' conftest.$ac_ext >&5
21768
John Criswell47fdd832003-07-14 16:52:07 +000021769fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021770rm -f conftest.err conftest.$ac_objext \
21771 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021772if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21773
21774 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21775 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"
21776 else
21777 if test "$host_cpu" = ia64; then
21778 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21779 allow_undefined_flag_GCJ="-z nodefs"
21780 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"
21781 else
21782 # Determine the default libpath from the value encoded in an empty executable.
21783 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021784/* confdefs.h. */
21785_ACEOF
21786cat confdefs.h >>conftest.$ac_ext
21787cat >>conftest.$ac_ext <<_ACEOF
21788/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021789
John Criswell47fdd832003-07-14 16:52:07 +000021790int
21791main ()
21792{
21793
21794 ;
21795 return 0;
21796}
21797_ACEOF
21798rm -f conftest.$ac_objext conftest$ac_exeext
21799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021800 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021801 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021802 grep -v '^ *+' conftest.er1 >conftest.err
21803 rm -f conftest.er1
21804 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021807 { ac_try='test -z "$ac_c_werror_flag"
21808 || test ! -s conftest.err'
21809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21810 (eval $ac_try) 2>&5
21811 ac_status=$?
21812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); }; } &&
21814 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; }; then
21820
21821aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21822}'`
21823# Check for a 64-bit object if we didn't find anything.
21824if 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; }
21825}'`; fi
21826else
21827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021828sed 's/^/| /' conftest.$ac_ext >&5
21829
John Criswell47fdd832003-07-14 16:52:07 +000021830fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021831rm -f conftest.err conftest.$ac_objext \
21832 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021833if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21834
21835 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21836 # Warning - without using the other run time loading flags,
21837 # -berok will link without error, but may produce a broken library.
21838 no_undefined_flag_GCJ=' ${wl}-bernotok'
21839 allow_undefined_flag_GCJ=' ${wl}-berok'
21840 # -bexpall does not export symbols beginning with underscore (_)
21841 always_export_symbols_GCJ=yes
21842 # Exported symbols can be pulled into shared objects from archives
21843 whole_archive_flag_spec_GCJ=' '
21844 archive_cmds_need_lc_GCJ=yes
21845 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021846 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 +000021847 fi
21848 fi
21849 ;;
21850
21851 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021852 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 +000021853 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21854 hardcode_minus_L_GCJ=yes
21855 # see comment about different semantics on the GNU ld section
21856 ld_shlibs_GCJ=no
21857 ;;
21858
Reid Spencer2706f8c2004-09-19 23:53:36 +000021859 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021860 export_dynamic_flag_spec_GCJ=-rdynamic
21861 ;;
21862
21863 cygwin* | mingw* | pw32*)
21864 # When not using gcc, we currently assume that we are using
21865 # Microsoft Visual C++.
21866 # hardcode_libdir_flag_spec is actually meaningless, as there is
21867 # no search path for DLLs.
21868 hardcode_libdir_flag_spec_GCJ=' '
21869 allow_undefined_flag_GCJ=unsupported
21870 # Tell ltmain to make .lib files, not .a files.
21871 libext=lib
21872 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021873 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021874 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021875 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 +000021876 # The linker will automatically build a .lib file if we build a DLL.
21877 old_archive_From_new_cmds_GCJ='true'
21878 # FIXME: Should let the user specify the lib program.
21879 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21880 fix_srcfile_path='`cygpath -w "$srcfile"`'
21881 enable_shared_with_static_runtimes_GCJ=yes
21882 ;;
21883
21884 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021885 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021886 rhapsody* | darwin1.[012])
21887 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21888 ;;
21889 *) # Darwin 1.3 on
21890 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21891 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21892 else
21893 case ${MACOSX_DEPLOYMENT_TARGET} in
21894 10.[012])
21895 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21896 ;;
21897 10.*)
21898 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21899 ;;
21900 esac
21901 fi
21902 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021903 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021904 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021905 hardcode_direct_GCJ=no
21906 hardcode_automatic_GCJ=yes
21907 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021908 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021909 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021910 if test "$GCC" = yes ; then
21911 output_verbose_link_cmd='echo'
21912 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21913 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21914 # 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 +000021915 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}'
21916 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 +000021917 else
21918 case "$cc_basename" in
21919 xlc*)
21920 output_verbose_link_cmd='echo'
21921 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21922 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21923 # 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 +000021924 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}'
21925 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 +000021926 ;;
21927 *)
21928 ld_shlibs_GCJ=no
21929 ;;
21930 esac
John Criswell47fdd832003-07-14 16:52:07 +000021931 fi
21932 ;;
21933
21934 dgux*)
21935 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21936 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21937 hardcode_shlibpath_var_GCJ=no
21938 ;;
21939
21940 freebsd1*)
21941 ld_shlibs_GCJ=no
21942 ;;
21943
21944 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21945 # support. Future versions do this automatically, but an explicit c++rt0.o
21946 # does not break anything, and helps significantly (at the cost of a little
21947 # extra space).
21948 freebsd2.2*)
21949 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21950 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21951 hardcode_direct_GCJ=yes
21952 hardcode_shlibpath_var_GCJ=no
21953 ;;
21954
21955 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21956 freebsd2*)
21957 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21958 hardcode_direct_GCJ=yes
21959 hardcode_minus_L_GCJ=yes
21960 hardcode_shlibpath_var_GCJ=no
21961 ;;
21962
21963 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021964 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021965 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21966 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21967 hardcode_direct_GCJ=yes
21968 hardcode_shlibpath_var_GCJ=no
21969 ;;
21970
21971 hpux9*)
21972 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021973 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 +000021974 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021975 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 +000021976 fi
21977 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21978 hardcode_libdir_separator_GCJ=:
21979 hardcode_direct_GCJ=yes
21980
21981 # hardcode_minus_L: Not really in the search PATH,
21982 # but as the default location of the library.
21983 hardcode_minus_L_GCJ=yes
21984 export_dynamic_flag_spec_GCJ='${wl}-E'
21985 ;;
21986
21987 hpux10* | hpux11*)
21988 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21989 case "$host_cpu" in
21990 hppa*64*|ia64*)
21991 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21992 ;;
21993 *)
21994 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21995 ;;
21996 esac
21997 else
21998 case "$host_cpu" in
21999 hppa*64*|ia64*)
22000 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22001 ;;
22002 *)
22003 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22004 ;;
22005 esac
22006 fi
22007 if test "$with_gnu_ld" = no; then
22008 case "$host_cpu" in
22009 hppa*64*)
22010 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22011 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22012 hardcode_libdir_separator_GCJ=:
22013 hardcode_direct_GCJ=no
22014 hardcode_shlibpath_var_GCJ=no
22015 ;;
22016 ia64*)
22017 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22018 hardcode_direct_GCJ=no
22019 hardcode_shlibpath_var_GCJ=no
22020
22021 # hardcode_minus_L: Not really in the search PATH,
22022 # but as the default location of the library.
22023 hardcode_minus_L_GCJ=yes
22024 ;;
22025 *)
22026 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22027 hardcode_libdir_separator_GCJ=:
22028 hardcode_direct_GCJ=yes
22029 export_dynamic_flag_spec_GCJ='${wl}-E'
22030
22031 # hardcode_minus_L: Not really in the search PATH,
22032 # but as the default location of the library.
22033 hardcode_minus_L_GCJ=yes
22034 ;;
22035 esac
22036 fi
22037 ;;
22038
22039 irix5* | irix6* | nonstopux*)
22040 if test "$GCC" = yes; then
22041 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'
22042 else
22043 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'
22044 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22045 fi
22046 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22047 hardcode_libdir_separator_GCJ=:
22048 link_all_deplibs_GCJ=yes
22049 ;;
22050
22051 netbsd*)
22052 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22053 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22054 else
22055 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22056 fi
22057 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22058 hardcode_direct_GCJ=yes
22059 hardcode_shlibpath_var_GCJ=no
22060 ;;
22061
22062 newsos6)
22063 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22064 hardcode_direct_GCJ=yes
22065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22066 hardcode_libdir_separator_GCJ=:
22067 hardcode_shlibpath_var_GCJ=no
22068 ;;
22069
22070 openbsd*)
22071 hardcode_direct_GCJ=yes
22072 hardcode_shlibpath_var_GCJ=no
22073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22074 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022075 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 +000022076 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22077 export_dynamic_flag_spec_GCJ='${wl}-E'
22078 else
22079 case $host_os in
22080 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22081 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22082 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22083 ;;
22084 *)
22085 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22086 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22087 ;;
22088 esac
22089 fi
22090 ;;
22091
22092 os2*)
22093 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22094 hardcode_minus_L_GCJ=yes
22095 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022096 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 +000022097 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22098 ;;
22099
22100 osf3*)
22101 if test "$GCC" = yes; then
22102 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22103 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'
22104 else
22105 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22106 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'
22107 fi
22108 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22109 hardcode_libdir_separator_GCJ=:
22110 ;;
22111
22112 osf4* | osf5*) # as osf3* with the addition of -msym flag
22113 if test "$GCC" = yes; then
22114 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22115 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'
22116 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22117 else
22118 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22119 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 +000022120 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~
22121 $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'
22122
John Criswell47fdd832003-07-14 16:52:07 +000022123 # Both c and cxx compiler support -rpath directly
22124 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22125 fi
22126 hardcode_libdir_separator_GCJ=:
22127 ;;
22128
22129 sco3.2v5*)
22130 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22131 hardcode_shlibpath_var_GCJ=no
22132 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22133 runpath_var=LD_RUN_PATH
22134 hardcode_runpath_var=yes
22135 ;;
22136
22137 solaris*)
22138 no_undefined_flag_GCJ=' -z text'
22139 if test "$GCC" = yes; then
22140 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022141 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22142 $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 +000022143 else
22144 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022145 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22146 $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 +000022147 fi
22148 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22149 hardcode_shlibpath_var_GCJ=no
22150 case $host_os in
22151 solaris2.[0-5] | solaris2.[0-5].*) ;;
22152 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22153 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22154 esac
22155 link_all_deplibs_GCJ=yes
22156 ;;
22157
22158 sunos4*)
22159 if test "x$host_vendor" = xsequent; then
22160 # Use $CC to link under sequent, because it throws in some extra .o
22161 # files that make .init and .fini sections work.
22162 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22163 else
22164 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22165 fi
22166 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22167 hardcode_direct_GCJ=yes
22168 hardcode_minus_L_GCJ=yes
22169 hardcode_shlibpath_var_GCJ=no
22170 ;;
22171
22172 sysv4)
22173 case $host_vendor in
22174 sni)
22175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22176 hardcode_direct_GCJ=yes # is this really true???
22177 ;;
22178 siemens)
22179 ## LD is ld it makes a PLAMLIB
22180 ## CC just makes a GrossModule.
22181 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22182 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22183 hardcode_direct_GCJ=no
22184 ;;
22185 motorola)
22186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22187 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22188 ;;
22189 esac
22190 runpath_var='LD_RUN_PATH'
22191 hardcode_shlibpath_var_GCJ=no
22192 ;;
22193
22194 sysv4.3*)
22195 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22196 hardcode_shlibpath_var_GCJ=no
22197 export_dynamic_flag_spec_GCJ='-Bexport'
22198 ;;
22199
22200 sysv4*MP*)
22201 if test -d /usr/nec; then
22202 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22203 hardcode_shlibpath_var_GCJ=no
22204 runpath_var=LD_RUN_PATH
22205 hardcode_runpath_var=yes
22206 ld_shlibs_GCJ=yes
22207 fi
22208 ;;
22209
22210 sysv4.2uw2*)
22211 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22212 hardcode_direct_GCJ=yes
22213 hardcode_minus_L_GCJ=no
22214 hardcode_shlibpath_var_GCJ=no
22215 hardcode_runpath_var=yes
22216 runpath_var=LD_RUN_PATH
22217 ;;
22218
22219 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22220 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22221 if test "$GCC" = yes; then
22222 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22223 else
22224 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22225 fi
22226 runpath_var='LD_RUN_PATH'
22227 hardcode_shlibpath_var_GCJ=no
22228 ;;
22229
22230 sysv5*)
22231 no_undefined_flag_GCJ=' -z text'
22232 # $CC -shared without GNU ld will not create a library from C++
22233 # object files and a static libstdc++, better avoid it by now
22234 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022235 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22236 $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 +000022237 hardcode_libdir_flag_spec_GCJ=
22238 hardcode_shlibpath_var_GCJ=no
22239 runpath_var='LD_RUN_PATH'
22240 ;;
22241
22242 uts4*)
22243 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22244 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22245 hardcode_shlibpath_var_GCJ=no
22246 ;;
22247
22248 *)
22249 ld_shlibs_GCJ=no
22250 ;;
22251 esac
22252 fi
22253
22254echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22255echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22256test "$ld_shlibs_GCJ" = no && can_build_shared=no
22257
22258variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22259if test "$GCC" = yes; then
22260 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22261fi
22262
22263#
22264# Do we need to explicitly link libc?
22265#
22266case "x$archive_cmds_need_lc_GCJ" in
22267x|xyes)
22268 # Assume -lc should be added
22269 archive_cmds_need_lc_GCJ=yes
22270
22271 if test "$enable_shared" = yes && test "$GCC" = yes; then
22272 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022273 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022274 # FIXME: we may have to deal with multi-command sequences.
22275 ;;
22276 '$CC '*)
22277 # Test whether the compiler implicitly links with -lc since on some
22278 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22279 # to ld, don't add -lc before -lgcc.
22280 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22281echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22282 $rm conftest*
22283 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22284
22285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22286 (eval $ac_compile) 2>&5
22287 ac_status=$?
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } 2>conftest.err; then
22290 soname=conftest
22291 lib=conftest
22292 libobjs=conftest.$ac_objext
22293 deplibs=
22294 wl=$lt_prog_compiler_wl_GCJ
22295 compiler_flags=-v
22296 linker_flags=-v
22297 verstring=
22298 output_objdir=.
22299 libname=conftest
22300 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22301 allow_undefined_flag_GCJ=
22302 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22303 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22304 ac_status=$?
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); }
22307 then
22308 archive_cmds_need_lc_GCJ=no
22309 else
22310 archive_cmds_need_lc_GCJ=yes
22311 fi
22312 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22313 else
22314 cat conftest.err 1>&5
22315 fi
22316 $rm conftest*
22317 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22318echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22319 ;;
22320 esac
22321 fi
22322 ;;
22323esac
22324
John Criswell47fdd832003-07-14 16:52:07 +000022325echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22326echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22327library_names_spec=
22328libname_spec='lib$name'
22329soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022330shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022331postinstall_cmds=
22332postuninstall_cmds=
22333finish_cmds=
22334finish_eval=
22335shlibpath_var=
22336shlibpath_overrides_runpath=unknown
22337version_type=none
22338dynamic_linker="$host_os ld.so"
22339sys_lib_dlsearch_path_spec="/lib /usr/lib"
22340if test "$GCC" = yes; then
22341 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22342 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22343 # if the path contains ";" then we assume it to be the separator
22344 # otherwise default to the standard path separator (i.e. ":") - it is
22345 # assumed that no part of a normal pathname contains ";" but that should
22346 # okay in the real world where ";" in dirpaths is itself problematic.
22347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22348 else
22349 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22350 fi
22351else
22352 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22353fi
22354need_lib_prefix=unknown
22355hardcode_into_libs=no
22356
22357# when you set need_version to no, make sure it does not cause -set_version
22358# flags to be left without arguments
22359need_version=unknown
22360
22361case $host_os in
22362aix3*)
22363 version_type=linux
22364 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22365 shlibpath_var=LIBPATH
22366
22367 # AIX 3 has no versioning support, so we append a major version to the name.
22368 soname_spec='${libname}${release}${shared_ext}$major'
22369 ;;
22370
22371aix4* | aix5*)
22372 version_type=linux
22373 need_lib_prefix=no
22374 need_version=no
22375 hardcode_into_libs=yes
22376 if test "$host_cpu" = ia64; then
22377 # AIX 5 supports IA64
22378 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22379 shlibpath_var=LD_LIBRARY_PATH
22380 else
22381 # With GCC up to 2.95.x, collect2 would create an import file
22382 # for dependence libraries. The import file would start with
22383 # the line `#! .'. This would cause the generated library to
22384 # depend on `.', always an invalid library. This was fixed in
22385 # development snapshots of GCC prior to 3.0.
22386 case $host_os in
22387 aix4 | aix4.[01] | aix4.[01].*)
22388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22389 echo ' yes '
22390 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22391 :
22392 else
22393 can_build_shared=no
22394 fi
22395 ;;
22396 esac
22397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22398 # soname into executable. Probably we can add versioning support to
22399 # collect2, so additional links can be useful in future.
22400 if test "$aix_use_runtimelinking" = yes; then
22401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22402 # instead of lib<name>.a to let people know that these are not
22403 # typical AIX shared libraries.
22404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22405 else
22406 # We preserve .a as extension for shared libraries through AIX4.2
22407 # and later when we are not doing run time linking.
22408 library_names_spec='${libname}${release}.a $libname.a'
22409 soname_spec='${libname}${release}${shared_ext}$major'
22410 fi
22411 shlibpath_var=LIBPATH
22412 fi
22413 ;;
22414
22415amigaos*)
22416 library_names_spec='$libname.ixlibrary $libname.a'
22417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022418 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 +000022419 ;;
22420
22421beos*)
22422 library_names_spec='${libname}${shared_ext}'
22423 dynamic_linker="$host_os ld.so"
22424 shlibpath_var=LIBRARY_PATH
22425 ;;
22426
Reid Spencer2706f8c2004-09-19 23:53:36 +000022427bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022428 version_type=linux
22429 need_version=no
22430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22431 soname_spec='${libname}${release}${shared_ext}$major'
22432 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22433 shlibpath_var=LD_LIBRARY_PATH
22434 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22435 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22436 # the default ld.so.conf also contains /usr/contrib/lib and
22437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22438 # libtool to hard-code these into programs
22439 ;;
22440
22441cygwin* | mingw* | pw32*)
22442 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022443 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022444 need_version=no
22445 need_lib_prefix=no
22446
22447 case $GCC,$host_os in
22448 yes,cygwin* | yes,mingw* | yes,pw32*)
22449 library_names_spec='$libname.dll.a'
22450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022451 postinstall_cmds='base_file=`basename \${file}`~
22452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22453 dldir=$destdir/`dirname \$dlpath`~
22454 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022455 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022456 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22457 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022458 $rm \$dlpath'
22459 shlibpath_overrides_runpath=yes
22460
22461 case $host_os in
22462 cygwin*)
22463 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22464 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 +000022465 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022466 ;;
22467 mingw*)
22468 # MinGW DLLs use traditional 'lib' prefix
22469 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22470 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22471 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22472 # It is most probably a Windows format PATH printed by
22473 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22474 # path with ; separators, and with drive letters. We can handle the
22475 # drive letters (cygwin fileutils understands them), so leave them,
22476 # especially as we might pass files found there to a mingw objdump,
22477 # which wouldn't understand a cygwinified path. Ahh.
22478 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22479 else
22480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22481 fi
22482 ;;
22483 pw32*)
22484 # pw32 DLLs use 'pw' prefix rather than 'lib'
22485 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22486 ;;
22487 esac
22488 ;;
22489
22490 *)
22491 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22492 ;;
22493 esac
22494 dynamic_linker='Win32 ld.exe'
22495 # FIXME: first we should search . and the directory the executable is in
22496 shlibpath_var=PATH
22497 ;;
22498
22499darwin* | rhapsody*)
22500 dynamic_linker="$host_os dyld"
22501 version_type=darwin
22502 need_lib_prefix=no
22503 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022504 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022505 soname_spec='${libname}${release}${major}$shared_ext'
22506 shlibpath_overrides_runpath=yes
22507 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022508 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022509 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022510 if test "$GCC" = yes; then
22511 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"`
22512 else
22513 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022514 fi
22515 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22516 ;;
22517
22518dgux*)
22519 version_type=linux
22520 need_lib_prefix=no
22521 need_version=no
22522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22523 soname_spec='${libname}${release}${shared_ext}$major'
22524 shlibpath_var=LD_LIBRARY_PATH
22525 ;;
22526
22527freebsd1*)
22528 dynamic_linker=no
22529 ;;
22530
Reid Spencer2706f8c2004-09-19 23:53:36 +000022531kfreebsd*-gnu)
22532 version_type=linux
22533 need_lib_prefix=no
22534 need_version=no
22535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22536 soname_spec='${libname}${release}${shared_ext}$major'
22537 shlibpath_var=LD_LIBRARY_PATH
22538 shlibpath_overrides_runpath=no
22539 hardcode_into_libs=yes
22540 dynamic_linker='GNU ld.so'
22541 ;;
22542
John Criswell47fdd832003-07-14 16:52:07 +000022543freebsd*)
22544 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22545 version_type=freebsd-$objformat
22546 case $version_type in
22547 freebsd-elf*)
22548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22549 need_version=no
22550 need_lib_prefix=no
22551 ;;
22552 freebsd-*)
22553 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22554 need_version=yes
22555 ;;
22556 esac
22557 shlibpath_var=LD_LIBRARY_PATH
22558 case $host_os in
22559 freebsd2*)
22560 shlibpath_overrides_runpath=yes
22561 ;;
22562 freebsd3.01* | freebsdelf3.01*)
22563 shlibpath_overrides_runpath=yes
22564 hardcode_into_libs=yes
22565 ;;
22566 *) # from 3.2 on
22567 shlibpath_overrides_runpath=no
22568 hardcode_into_libs=yes
22569 ;;
22570 esac
22571 ;;
22572
22573gnu*)
22574 version_type=linux
22575 need_lib_prefix=no
22576 need_version=no
22577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22578 soname_spec='${libname}${release}${shared_ext}$major'
22579 shlibpath_var=LD_LIBRARY_PATH
22580 hardcode_into_libs=yes
22581 ;;
22582
22583hpux9* | hpux10* | hpux11*)
22584 # Give a soname corresponding to the major version so that dld.sl refuses to
22585 # link against other versions.
22586 version_type=sunos
22587 need_lib_prefix=no
22588 need_version=no
22589 case "$host_cpu" in
22590 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022591 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022592 hardcode_into_libs=yes
22593 dynamic_linker="$host_os dld.so"
22594 shlibpath_var=LD_LIBRARY_PATH
22595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22597 soname_spec='${libname}${release}${shared_ext}$major'
22598 if test "X$HPUX_IA64_MODE" = X32; then
22599 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22600 else
22601 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22602 fi
22603 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22604 ;;
22605 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022606 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022607 hardcode_into_libs=yes
22608 dynamic_linker="$host_os dld.sl"
22609 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22610 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22612 soname_spec='${libname}${release}${shared_ext}$major'
22613 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22614 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22615 ;;
22616 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022617 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022618 dynamic_linker="$host_os dld.sl"
22619 shlibpath_var=SHLIB_PATH
22620 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22622 soname_spec='${libname}${release}${shared_ext}$major'
22623 ;;
22624 esac
22625 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22626 postinstall_cmds='chmod 555 $lib'
22627 ;;
22628
22629irix5* | irix6* | nonstopux*)
22630 case $host_os in
22631 nonstopux*) version_type=nonstopux ;;
22632 *)
22633 if test "$lt_cv_prog_gnu_ld" = yes; then
22634 version_type=linux
22635 else
22636 version_type=irix
22637 fi ;;
22638 esac
22639 need_lib_prefix=no
22640 need_version=no
22641 soname_spec='${libname}${release}${shared_ext}$major'
22642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22643 case $host_os in
22644 irix5* | nonstopux*)
22645 libsuff= shlibsuff=
22646 ;;
22647 *)
22648 case $LD in # libtool.m4 will add one of these switches to LD
22649 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22650 libsuff= shlibsuff= libmagic=32-bit;;
22651 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22652 libsuff=32 shlibsuff=N32 libmagic=N32;;
22653 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22654 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22655 *) libsuff= shlibsuff= libmagic=never-match;;
22656 esac
22657 ;;
22658 esac
22659 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22660 shlibpath_overrides_runpath=no
22661 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22662 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22663 hardcode_into_libs=yes
22664 ;;
22665
22666# No shared lib support for Linux oldld, aout, or coff.
22667linux*oldld* | linux*aout* | linux*coff*)
22668 dynamic_linker=no
22669 ;;
22670
22671# This must be Linux ELF.
22672linux*)
22673 version_type=linux
22674 need_lib_prefix=no
22675 need_version=no
22676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22677 soname_spec='${libname}${release}${shared_ext}$major'
22678 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22679 shlibpath_var=LD_LIBRARY_PATH
22680 shlibpath_overrides_runpath=no
22681 # This implies no fast_install, which is unacceptable.
22682 # Some rework will be needed to allow for fast_install
22683 # before this can be enabled.
22684 hardcode_into_libs=yes
22685
Reid Spencer2706f8c2004-09-19 23:53:36 +000022686 # Append ld.so.conf contents to the search path
22687 if test -f /etc/ld.so.conf; then
22688 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22689 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22690 fi
22691
John Criswell47fdd832003-07-14 16:52:07 +000022692 # We used to test for /lib/ld.so.1 and disable shared libraries on
22693 # powerpc, because MkLinux only supported shared libraries with the
22694 # GNU dynamic linker. Since this was broken with cross compilers,
22695 # most powerpc-linux boxes support dynamic linking these days and
22696 # people can always --disable-shared, the test was removed, and we
22697 # assume the GNU/Linux dynamic linker is in use.
22698 dynamic_linker='GNU/Linux ld.so'
22699 ;;
22700
Reid Spencer2706f8c2004-09-19 23:53:36 +000022701knetbsd*-gnu)
22702 version_type=linux
22703 need_lib_prefix=no
22704 need_version=no
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22706 soname_spec='${libname}${release}${shared_ext}$major'
22707 shlibpath_var=LD_LIBRARY_PATH
22708 shlibpath_overrides_runpath=no
22709 hardcode_into_libs=yes
22710 dynamic_linker='GNU ld.so'
22711 ;;
22712
John Criswell47fdd832003-07-14 16:52:07 +000022713netbsd*)
22714 version_type=sunos
22715 need_lib_prefix=no
22716 need_version=no
22717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22719 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22720 dynamic_linker='NetBSD (a.out) ld.so'
22721 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022723 soname_spec='${libname}${release}${shared_ext}$major'
22724 dynamic_linker='NetBSD ld.elf_so'
22725 fi
22726 shlibpath_var=LD_LIBRARY_PATH
22727 shlibpath_overrides_runpath=yes
22728 hardcode_into_libs=yes
22729 ;;
22730
22731newsos6)
22732 version_type=linux
22733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22734 shlibpath_var=LD_LIBRARY_PATH
22735 shlibpath_overrides_runpath=yes
22736 ;;
22737
Reid Spencer2706f8c2004-09-19 23:53:36 +000022738nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022739 version_type=linux
22740 need_lib_prefix=no
22741 need_version=no
22742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22743 soname_spec='${libname}${release}${shared_ext}$major'
22744 shlibpath_var=LD_LIBRARY_PATH
22745 shlibpath_overrides_runpath=yes
22746 ;;
22747
22748openbsd*)
22749 version_type=sunos
22750 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022751 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22754 shlibpath_var=LD_LIBRARY_PATH
22755 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22756 case $host_os in
22757 openbsd2.[89] | openbsd2.[89].*)
22758 shlibpath_overrides_runpath=no
22759 ;;
22760 *)
22761 shlibpath_overrides_runpath=yes
22762 ;;
22763 esac
22764 else
22765 shlibpath_overrides_runpath=yes
22766 fi
22767 ;;
22768
22769os2*)
22770 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022771 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022772 need_lib_prefix=no
22773 library_names_spec='$libname${shared_ext} $libname.a'
22774 dynamic_linker='OS/2 ld.exe'
22775 shlibpath_var=LIBPATH
22776 ;;
22777
22778osf3* | osf4* | osf5*)
22779 version_type=osf
22780 need_lib_prefix=no
22781 need_version=no
22782 soname_spec='${libname}${release}${shared_ext}$major'
22783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22784 shlibpath_var=LD_LIBRARY_PATH
22785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22786 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22787 ;;
22788
22789sco3.2v5*)
22790 version_type=osf
22791 soname_spec='${libname}${release}${shared_ext}$major'
22792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22793 shlibpath_var=LD_LIBRARY_PATH
22794 ;;
22795
22796solaris*)
22797 version_type=linux
22798 need_lib_prefix=no
22799 need_version=no
22800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22801 soname_spec='${libname}${release}${shared_ext}$major'
22802 shlibpath_var=LD_LIBRARY_PATH
22803 shlibpath_overrides_runpath=yes
22804 hardcode_into_libs=yes
22805 # ldd complains unless libraries are executable
22806 postinstall_cmds='chmod +x $lib'
22807 ;;
22808
22809sunos4*)
22810 version_type=sunos
22811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22812 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22813 shlibpath_var=LD_LIBRARY_PATH
22814 shlibpath_overrides_runpath=yes
22815 if test "$with_gnu_ld" = yes; then
22816 need_lib_prefix=no
22817 fi
22818 need_version=yes
22819 ;;
22820
22821sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22822 version_type=linux
22823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22824 soname_spec='${libname}${release}${shared_ext}$major'
22825 shlibpath_var=LD_LIBRARY_PATH
22826 case $host_vendor in
22827 sni)
22828 shlibpath_overrides_runpath=no
22829 need_lib_prefix=no
22830 export_dynamic_flag_spec='${wl}-Blargedynsym'
22831 runpath_var=LD_RUN_PATH
22832 ;;
22833 siemens)
22834 need_lib_prefix=no
22835 ;;
22836 motorola)
22837 need_lib_prefix=no
22838 need_version=no
22839 shlibpath_overrides_runpath=no
22840 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22841 ;;
22842 esac
22843 ;;
22844
22845sysv4*MP*)
22846 if test -d /usr/nec ;then
22847 version_type=linux
22848 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22849 soname_spec='$libname${shared_ext}.$major'
22850 shlibpath_var=LD_LIBRARY_PATH
22851 fi
22852 ;;
22853
22854uts4*)
22855 version_type=linux
22856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22857 soname_spec='${libname}${release}${shared_ext}$major'
22858 shlibpath_var=LD_LIBRARY_PATH
22859 ;;
22860
22861*)
22862 dynamic_linker=no
22863 ;;
22864esac
22865echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22866echo "${ECHO_T}$dynamic_linker" >&6
22867test "$dynamic_linker" = no && can_build_shared=no
22868
Reid Spencer2706f8c2004-09-19 23:53:36 +000022869echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22870echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22871hardcode_action_GCJ=
22872if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22873 test -n "$runpath_var_GCJ" || \
22874 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22875
22876 # We can hardcode non-existant directories.
22877 if test "$hardcode_direct_GCJ" != no &&
22878 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22879 # have to relink, otherwise we might link with an installed library
22880 # when we should be linking with a yet-to-be-installed one
22881 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22882 test "$hardcode_minus_L_GCJ" != no; then
22883 # Linking always hardcodes the temporary library directory.
22884 hardcode_action_GCJ=relink
22885 else
22886 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22887 hardcode_action_GCJ=immediate
22888 fi
22889else
22890 # We cannot hardcode anything, or else we can only hardcode existing
22891 # directories.
22892 hardcode_action_GCJ=unsupported
22893fi
22894echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22895echo "${ECHO_T}$hardcode_action_GCJ" >&6
22896
22897if test "$hardcode_action_GCJ" = relink; then
22898 # Fast installation is not supported
22899 enable_fast_install=no
22900elif test "$shlibpath_overrides_runpath" = yes ||
22901 test "$enable_shared" = no; then
22902 # Fast installation is not necessary
22903 enable_fast_install=needless
22904fi
22905
22906striplib=
22907old_striplib=
22908echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22909echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22910if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22911 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22912 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22913 echo "$as_me:$LINENO: result: yes" >&5
22914echo "${ECHO_T}yes" >&6
22915else
22916# FIXME - insert some real tests, host_os isn't really good enough
22917 case $host_os in
22918 darwin*)
22919 if test -n "$STRIP" ; then
22920 striplib="$STRIP -x"
22921 echo "$as_me:$LINENO: result: yes" >&5
22922echo "${ECHO_T}yes" >&6
22923 else
22924 echo "$as_me:$LINENO: result: no" >&5
22925echo "${ECHO_T}no" >&6
22926fi
22927 ;;
22928 *)
22929 echo "$as_me:$LINENO: result: no" >&5
22930echo "${ECHO_T}no" >&6
22931 ;;
22932 esac
22933fi
22934
John Criswell47fdd832003-07-14 16:52:07 +000022935if test "x$enable_dlopen" != xyes; then
22936 enable_dlopen=unknown
22937 enable_dlopen_self=unknown
22938 enable_dlopen_self_static=unknown
22939else
22940 lt_cv_dlopen=no
22941 lt_cv_dlopen_libs=
22942
22943 case $host_os in
22944 beos*)
22945 lt_cv_dlopen="load_add_on"
22946 lt_cv_dlopen_libs=
22947 lt_cv_dlopen_self=yes
22948 ;;
22949
22950 mingw* | pw32*)
22951 lt_cv_dlopen="LoadLibrary"
22952 lt_cv_dlopen_libs=
22953 ;;
22954
22955 cygwin*)
22956 lt_cv_dlopen="dlopen"
22957 lt_cv_dlopen_libs=
22958 ;;
22959
22960 darwin*)
22961 # if libdl is installed we need to link against it
22962 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22963echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22964if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22965 echo $ECHO_N "(cached) $ECHO_C" >&6
22966else
22967 ac_check_lib_save_LIBS=$LIBS
22968LIBS="-ldl $LIBS"
22969cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022970/* confdefs.h. */
22971_ACEOF
22972cat confdefs.h >>conftest.$ac_ext
22973cat >>conftest.$ac_ext <<_ACEOF
22974/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022975
22976/* Override any gcc2 internal prototype to avoid an error. */
22977#ifdef __cplusplus
22978extern "C"
22979#endif
22980/* We use char because int might match the return type of a gcc2
22981 builtin and then its argument prototype would still apply. */
22982char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022983int
22984main ()
22985{
22986dlopen ();
22987 ;
22988 return 0;
22989}
22990_ACEOF
22991rm -f conftest.$ac_objext conftest$ac_exeext
22992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022993 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022994 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022995 grep -v '^ *+' conftest.er1 >conftest.err
22996 rm -f conftest.er1
22997 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22999 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023000 { ac_try='test -z "$ac_c_werror_flag"
23001 || test ! -s conftest.err'
23002 { (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); }; } &&
23007 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23009 (eval $ac_try) 2>&5
23010 ac_status=$?
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); }; }; then
23013 ac_cv_lib_dl_dlopen=yes
23014else
23015 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023016sed 's/^/| /' conftest.$ac_ext >&5
23017
John Criswell47fdd832003-07-14 16:52:07 +000023018ac_cv_lib_dl_dlopen=no
23019fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023020rm -f conftest.err conftest.$ac_objext \
23021 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023022LIBS=$ac_check_lib_save_LIBS
23023fi
23024echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23025echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23026if test $ac_cv_lib_dl_dlopen = yes; then
23027 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23028else
23029
23030 lt_cv_dlopen="dyld"
23031 lt_cv_dlopen_libs=
23032 lt_cv_dlopen_self=yes
23033
23034fi
23035
23036 ;;
23037
23038 *)
23039 echo "$as_me:$LINENO: checking for shl_load" >&5
23040echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23041if test "${ac_cv_func_shl_load+set}" = set; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23043else
23044 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023045/* confdefs.h. */
23046_ACEOF
23047cat confdefs.h >>conftest.$ac_ext
23048cat >>conftest.$ac_ext <<_ACEOF
23049/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023050/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23052#define shl_load innocuous_shl_load
23053
John Criswell47fdd832003-07-14 16:52:07 +000023054/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023055 which can conflict with char shl_load (); below.
23056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23057 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023058
John Criswell0c38eaf2003-09-10 15:17:25 +000023059#ifdef __STDC__
23060# include <limits.h>
23061#else
23062# include <assert.h>
23063#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023064
23065#undef shl_load
23066
John Criswell47fdd832003-07-14 16:52:07 +000023067/* Override any gcc2 internal prototype to avoid an error. */
23068#ifdef __cplusplus
23069extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023070{
John Criswell47fdd832003-07-14 16:52:07 +000023071#endif
23072/* We use char because int might match the return type of a gcc2
23073 builtin and then its argument prototype would still apply. */
23074char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023075/* The GNU C library defines this for functions which it implements
23076 to always fail with ENOSYS. Some functions are actually named
23077 something starting with __ and the normal name is an alias. */
23078#if defined (__stub_shl_load) || defined (__stub___shl_load)
23079choke me
23080#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023081char (*f) () = shl_load;
23082#endif
23083#ifdef __cplusplus
23084}
John Criswell47fdd832003-07-14 16:52:07 +000023085#endif
23086
John Criswell0c38eaf2003-09-10 15:17:25 +000023087int
23088main ()
23089{
23090return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023091 ;
23092 return 0;
23093}
23094_ACEOF
23095rm -f conftest.$ac_objext conftest$ac_exeext
23096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023097 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023098 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023099 grep -v '^ *+' conftest.er1 >conftest.err
23100 rm -f conftest.er1
23101 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023104 { ac_try='test -z "$ac_c_werror_flag"
23105 || test ! -s conftest.err'
23106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107 (eval $ac_try) 2>&5
23108 ac_status=$?
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); }; } &&
23111 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113 (eval $ac_try) 2>&5
23114 ac_status=$?
23115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116 (exit $ac_status); }; }; then
23117 ac_cv_func_shl_load=yes
23118else
23119 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023120sed 's/^/| /' conftest.$ac_ext >&5
23121
John Criswell47fdd832003-07-14 16:52:07 +000023122ac_cv_func_shl_load=no
23123fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023124rm -f conftest.err conftest.$ac_objext \
23125 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023126fi
23127echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23128echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23129if test $ac_cv_func_shl_load = yes; then
23130 lt_cv_dlopen="shl_load"
23131else
23132 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23133echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23134if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23135 echo $ECHO_N "(cached) $ECHO_C" >&6
23136else
23137 ac_check_lib_save_LIBS=$LIBS
23138LIBS="-ldld $LIBS"
23139cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023140/* confdefs.h. */
23141_ACEOF
23142cat confdefs.h >>conftest.$ac_ext
23143cat >>conftest.$ac_ext <<_ACEOF
23144/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023145
23146/* Override any gcc2 internal prototype to avoid an error. */
23147#ifdef __cplusplus
23148extern "C"
23149#endif
23150/* We use char because int might match the return type of a gcc2
23151 builtin and then its argument prototype would still apply. */
23152char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023153int
23154main ()
23155{
23156shl_load ();
23157 ;
23158 return 0;
23159}
23160_ACEOF
23161rm -f conftest.$ac_objext conftest$ac_exeext
23162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023163 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023164 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023165 grep -v '^ *+' conftest.er1 >conftest.err
23166 rm -f conftest.er1
23167 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023170 { ac_try='test -z "$ac_c_werror_flag"
23171 || test ! -s conftest.err'
23172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23173 (eval $ac_try) 2>&5
23174 ac_status=$?
23175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176 (exit $ac_status); }; } &&
23177 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23179 (eval $ac_try) 2>&5
23180 ac_status=$?
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); }; }; then
23183 ac_cv_lib_dld_shl_load=yes
23184else
23185 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023186sed 's/^/| /' conftest.$ac_ext >&5
23187
John Criswell47fdd832003-07-14 16:52:07 +000023188ac_cv_lib_dld_shl_load=no
23189fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023190rm -f conftest.err conftest.$ac_objext \
23191 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023192LIBS=$ac_check_lib_save_LIBS
23193fi
23194echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23195echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23196if test $ac_cv_lib_dld_shl_load = yes; then
23197 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23198else
23199 echo "$as_me:$LINENO: checking for dlopen" >&5
23200echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23201if test "${ac_cv_func_dlopen+set}" = set; then
23202 echo $ECHO_N "(cached) $ECHO_C" >&6
23203else
23204 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023205/* confdefs.h. */
23206_ACEOF
23207cat confdefs.h >>conftest.$ac_ext
23208cat >>conftest.$ac_ext <<_ACEOF
23209/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023210/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23212#define dlopen innocuous_dlopen
23213
John Criswell47fdd832003-07-14 16:52:07 +000023214/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023215 which can conflict with char dlopen (); below.
23216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23217 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023218
John Criswell0c38eaf2003-09-10 15:17:25 +000023219#ifdef __STDC__
23220# include <limits.h>
23221#else
23222# include <assert.h>
23223#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023224
23225#undef dlopen
23226
John Criswell47fdd832003-07-14 16:52:07 +000023227/* Override any gcc2 internal prototype to avoid an error. */
23228#ifdef __cplusplus
23229extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023230{
John Criswell47fdd832003-07-14 16:52:07 +000023231#endif
23232/* We use char because int might match the return type of a gcc2
23233 builtin and then its argument prototype would still apply. */
23234char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023235/* The GNU C library defines this for functions which it implements
23236 to always fail with ENOSYS. Some functions are actually named
23237 something starting with __ and the normal name is an alias. */
23238#if defined (__stub_dlopen) || defined (__stub___dlopen)
23239choke me
23240#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023241char (*f) () = dlopen;
23242#endif
23243#ifdef __cplusplus
23244}
John Criswell47fdd832003-07-14 16:52:07 +000023245#endif
23246
John Criswell0c38eaf2003-09-10 15:17:25 +000023247int
23248main ()
23249{
23250return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023251 ;
23252 return 0;
23253}
23254_ACEOF
23255rm -f conftest.$ac_objext conftest$ac_exeext
23256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023257 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023258 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023259 grep -v '^ *+' conftest.er1 >conftest.err
23260 rm -f conftest.er1
23261 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023264 { ac_try='test -z "$ac_c_werror_flag"
23265 || test ! -s conftest.err'
23266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267 (eval $ac_try) 2>&5
23268 ac_status=$?
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); }; } &&
23271 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23274 ac_status=$?
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; }; then
23277 ac_cv_func_dlopen=yes
23278else
23279 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023280sed 's/^/| /' conftest.$ac_ext >&5
23281
John Criswell47fdd832003-07-14 16:52:07 +000023282ac_cv_func_dlopen=no
23283fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023284rm -f conftest.err conftest.$ac_objext \
23285 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023286fi
23287echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23288echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23289if test $ac_cv_func_dlopen = yes; then
23290 lt_cv_dlopen="dlopen"
23291else
23292 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23293echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23294if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23295 echo $ECHO_N "(cached) $ECHO_C" >&6
23296else
23297 ac_check_lib_save_LIBS=$LIBS
23298LIBS="-ldl $LIBS"
23299cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023300/* confdefs.h. */
23301_ACEOF
23302cat confdefs.h >>conftest.$ac_ext
23303cat >>conftest.$ac_ext <<_ACEOF
23304/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023305
23306/* Override any gcc2 internal prototype to avoid an error. */
23307#ifdef __cplusplus
23308extern "C"
23309#endif
23310/* We use char because int might match the return type of a gcc2
23311 builtin and then its argument prototype would still apply. */
23312char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023313int
23314main ()
23315{
23316dlopen ();
23317 ;
23318 return 0;
23319}
23320_ACEOF
23321rm -f conftest.$ac_objext conftest$ac_exeext
23322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023323 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023324 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023325 grep -v '^ *+' conftest.er1 >conftest.err
23326 rm -f conftest.er1
23327 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023330 { ac_try='test -z "$ac_c_werror_flag"
23331 || test ! -s conftest.err'
23332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333 (eval $ac_try) 2>&5
23334 ac_status=$?
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); }; } &&
23337 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23339 (eval $ac_try) 2>&5
23340 ac_status=$?
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); }; }; then
23343 ac_cv_lib_dl_dlopen=yes
23344else
23345 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023346sed 's/^/| /' conftest.$ac_ext >&5
23347
John Criswell47fdd832003-07-14 16:52:07 +000023348ac_cv_lib_dl_dlopen=no
23349fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023350rm -f conftest.err conftest.$ac_objext \
23351 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023352LIBS=$ac_check_lib_save_LIBS
23353fi
23354echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23355echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23356if test $ac_cv_lib_dl_dlopen = yes; then
23357 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23358else
23359 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23360echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23361if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23363else
23364 ac_check_lib_save_LIBS=$LIBS
23365LIBS="-lsvld $LIBS"
23366cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023367/* confdefs.h. */
23368_ACEOF
23369cat confdefs.h >>conftest.$ac_ext
23370cat >>conftest.$ac_ext <<_ACEOF
23371/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023372
23373/* Override any gcc2 internal prototype to avoid an error. */
23374#ifdef __cplusplus
23375extern "C"
23376#endif
23377/* We use char because int might match the return type of a gcc2
23378 builtin and then its argument prototype would still apply. */
23379char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023380int
23381main ()
23382{
23383dlopen ();
23384 ;
23385 return 0;
23386}
23387_ACEOF
23388rm -f conftest.$ac_objext conftest$ac_exeext
23389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023390 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023391 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023392 grep -v '^ *+' conftest.er1 >conftest.err
23393 rm -f conftest.er1
23394 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023397 { ac_try='test -z "$ac_c_werror_flag"
23398 || test ! -s conftest.err'
23399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23400 (eval $ac_try) 2>&5
23401 ac_status=$?
23402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); }; } &&
23404 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23406 (eval $ac_try) 2>&5
23407 ac_status=$?
23408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23409 (exit $ac_status); }; }; then
23410 ac_cv_lib_svld_dlopen=yes
23411else
23412 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023413sed 's/^/| /' conftest.$ac_ext >&5
23414
John Criswell47fdd832003-07-14 16:52:07 +000023415ac_cv_lib_svld_dlopen=no
23416fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023417rm -f conftest.err conftest.$ac_objext \
23418 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023419LIBS=$ac_check_lib_save_LIBS
23420fi
23421echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23422echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23423if test $ac_cv_lib_svld_dlopen = yes; then
23424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23425else
23426 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23427echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23428if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23429 echo $ECHO_N "(cached) $ECHO_C" >&6
23430else
23431 ac_check_lib_save_LIBS=$LIBS
23432LIBS="-ldld $LIBS"
23433cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023434/* confdefs.h. */
23435_ACEOF
23436cat confdefs.h >>conftest.$ac_ext
23437cat >>conftest.$ac_ext <<_ACEOF
23438/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023439
23440/* Override any gcc2 internal prototype to avoid an error. */
23441#ifdef __cplusplus
23442extern "C"
23443#endif
23444/* We use char because int might match the return type of a gcc2
23445 builtin and then its argument prototype would still apply. */
23446char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023447int
23448main ()
23449{
23450dld_link ();
23451 ;
23452 return 0;
23453}
23454_ACEOF
23455rm -f conftest.$ac_objext conftest$ac_exeext
23456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023457 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023458 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023459 grep -v '^ *+' conftest.er1 >conftest.err
23460 rm -f conftest.er1
23461 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023464 { ac_try='test -z "$ac_c_werror_flag"
23465 || test ! -s conftest.err'
23466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23467 (eval $ac_try) 2>&5
23468 ac_status=$?
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); }; } &&
23471 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23473 (eval $ac_try) 2>&5
23474 ac_status=$?
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); }; }; then
23477 ac_cv_lib_dld_dld_link=yes
23478else
23479 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023480sed 's/^/| /' conftest.$ac_ext >&5
23481
John Criswell47fdd832003-07-14 16:52:07 +000023482ac_cv_lib_dld_dld_link=no
23483fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023484rm -f conftest.err conftest.$ac_objext \
23485 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023486LIBS=$ac_check_lib_save_LIBS
23487fi
23488echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23489echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23490if test $ac_cv_lib_dld_dld_link = yes; then
23491 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23492fi
23493
23494
23495fi
23496
23497
23498fi
23499
23500
23501fi
23502
23503
23504fi
23505
23506
23507fi
23508
23509 ;;
23510 esac
23511
23512 if test "x$lt_cv_dlopen" != xno; then
23513 enable_dlopen=yes
23514 else
23515 enable_dlopen=no
23516 fi
23517
23518 case $lt_cv_dlopen in
23519 dlopen)
23520 save_CPPFLAGS="$CPPFLAGS"
23521 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23522
23523 save_LDFLAGS="$LDFLAGS"
23524 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23525
23526 save_LIBS="$LIBS"
23527 LIBS="$lt_cv_dlopen_libs $LIBS"
23528
23529 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23530echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23531if test "${lt_cv_dlopen_self+set}" = set; then
23532 echo $ECHO_N "(cached) $ECHO_C" >&6
23533else
23534 if test "$cross_compiling" = yes; then :
23535 lt_cv_dlopen_self=cross
23536else
23537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23538 lt_status=$lt_dlunknown
23539 cat > conftest.$ac_ext <<EOF
Reid Spencer7b3e8512004-12-24 06:29:05 +000023540#line 23540 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023541#include "confdefs.h"
23542
23543#if HAVE_DLFCN_H
23544#include <dlfcn.h>
23545#endif
23546
23547#include <stdio.h>
23548
23549#ifdef RTLD_GLOBAL
23550# define LT_DLGLOBAL RTLD_GLOBAL
23551#else
23552# ifdef DL_GLOBAL
23553# define LT_DLGLOBAL DL_GLOBAL
23554# else
23555# define LT_DLGLOBAL 0
23556# endif
23557#endif
23558
23559/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23560 find out it does not work in some platform. */
23561#ifndef LT_DLLAZY_OR_NOW
23562# ifdef RTLD_LAZY
23563# define LT_DLLAZY_OR_NOW RTLD_LAZY
23564# else
23565# ifdef DL_LAZY
23566# define LT_DLLAZY_OR_NOW DL_LAZY
23567# else
23568# ifdef RTLD_NOW
23569# define LT_DLLAZY_OR_NOW RTLD_NOW
23570# else
23571# ifdef DL_NOW
23572# define LT_DLLAZY_OR_NOW DL_NOW
23573# else
23574# define LT_DLLAZY_OR_NOW 0
23575# endif
23576# endif
23577# endif
23578# endif
23579#endif
23580
23581#ifdef __cplusplus
23582extern "C" void exit (int);
23583#endif
23584
23585void fnord() { int i=42;}
23586int main ()
23587{
23588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23589 int status = $lt_dlunknown;
23590
23591 if (self)
23592 {
23593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23594 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23595 /* dlclose (self); */
23596 }
23597
23598 exit (status);
23599}
23600EOF
23601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23602 (eval $ac_link) 2>&5
23603 ac_status=$?
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23606 (./conftest; exit; ) 2>/dev/null
23607 lt_status=$?
23608 case x$lt_status in
23609 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23610 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23611 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23612 esac
23613 else :
23614 # compilation failed
23615 lt_cv_dlopen_self=no
23616 fi
23617fi
23618rm -fr conftest*
23619
23620
23621fi
23622echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23623echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23624
23625 if test "x$lt_cv_dlopen_self" = xyes; then
23626 LDFLAGS="$LDFLAGS $link_static_flag"
23627 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23628echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23629if test "${lt_cv_dlopen_self_static+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23631else
23632 if test "$cross_compiling" = yes; then :
23633 lt_cv_dlopen_self_static=cross
23634else
23635 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23636 lt_status=$lt_dlunknown
23637 cat > conftest.$ac_ext <<EOF
Reid Spencer7b3e8512004-12-24 06:29:05 +000023638#line 23638 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023639#include "confdefs.h"
23640
23641#if HAVE_DLFCN_H
23642#include <dlfcn.h>
23643#endif
23644
23645#include <stdio.h>
23646
23647#ifdef RTLD_GLOBAL
23648# define LT_DLGLOBAL RTLD_GLOBAL
23649#else
23650# ifdef DL_GLOBAL
23651# define LT_DLGLOBAL DL_GLOBAL
23652# else
23653# define LT_DLGLOBAL 0
23654# endif
23655#endif
23656
23657/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23658 find out it does not work in some platform. */
23659#ifndef LT_DLLAZY_OR_NOW
23660# ifdef RTLD_LAZY
23661# define LT_DLLAZY_OR_NOW RTLD_LAZY
23662# else
23663# ifdef DL_LAZY
23664# define LT_DLLAZY_OR_NOW DL_LAZY
23665# else
23666# ifdef RTLD_NOW
23667# define LT_DLLAZY_OR_NOW RTLD_NOW
23668# else
23669# ifdef DL_NOW
23670# define LT_DLLAZY_OR_NOW DL_NOW
23671# else
23672# define LT_DLLAZY_OR_NOW 0
23673# endif
23674# endif
23675# endif
23676# endif
23677#endif
23678
23679#ifdef __cplusplus
23680extern "C" void exit (int);
23681#endif
23682
23683void fnord() { int i=42;}
23684int main ()
23685{
23686 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23687 int status = $lt_dlunknown;
23688
23689 if (self)
23690 {
23691 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23692 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23693 /* dlclose (self); */
23694 }
23695
23696 exit (status);
23697}
23698EOF
23699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23700 (eval $ac_link) 2>&5
23701 ac_status=$?
23702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23704 (./conftest; exit; ) 2>/dev/null
23705 lt_status=$?
23706 case x$lt_status in
23707 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23708 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23709 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23710 esac
23711 else :
23712 # compilation failed
23713 lt_cv_dlopen_self_static=no
23714 fi
23715fi
23716rm -fr conftest*
23717
23718
23719fi
23720echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23721echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23722 fi
23723
23724 CPPFLAGS="$save_CPPFLAGS"
23725 LDFLAGS="$save_LDFLAGS"
23726 LIBS="$save_LIBS"
23727 ;;
23728 esac
23729
23730 case $lt_cv_dlopen_self in
23731 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23732 *) enable_dlopen_self=unknown ;;
23733 esac
23734
23735 case $lt_cv_dlopen_self_static in
23736 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23737 *) enable_dlopen_self_static=unknown ;;
23738 esac
23739fi
23740
23741
23742# The else clause should only fire when bootstrapping the
23743# libtool distribution, otherwise you forgot to ship ltmain.sh
23744# with your package, and you will get complaints that there are
23745# no rules to generate ltmain.sh.
23746if test -f "$ltmain"; then
23747 # See if we are running on zsh, and set the options which allow our commands through
23748 # without removal of \ escapes.
23749 if test -n "${ZSH_VERSION+set}" ; then
23750 setopt NO_GLOB_SUBST
23751 fi
23752 # Now quote all the things that may contain metacharacters while being
23753 # careful not to overquote the AC_SUBSTed values. We take copies of the
23754 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023755 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23756 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023757 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23758 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23759 deplibs_check_method reload_flag reload_cmds need_locks \
23760 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23761 lt_cv_sys_global_symbol_to_c_name_address \
23762 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23763 old_postinstall_cmds old_postuninstall_cmds \
23764 compiler_GCJ \
23765 CC_GCJ \
23766 LD_GCJ \
23767 lt_prog_compiler_wl_GCJ \
23768 lt_prog_compiler_pic_GCJ \
23769 lt_prog_compiler_static_GCJ \
23770 lt_prog_compiler_no_builtin_flag_GCJ \
23771 export_dynamic_flag_spec_GCJ \
23772 thread_safe_flag_spec_GCJ \
23773 whole_archive_flag_spec_GCJ \
23774 enable_shared_with_static_runtimes_GCJ \
23775 old_archive_cmds_GCJ \
23776 old_archive_from_new_cmds_GCJ \
23777 predep_objects_GCJ \
23778 postdep_objects_GCJ \
23779 predeps_GCJ \
23780 postdeps_GCJ \
23781 compiler_lib_search_path_GCJ \
23782 archive_cmds_GCJ \
23783 archive_expsym_cmds_GCJ \
23784 postinstall_cmds_GCJ \
23785 postuninstall_cmds_GCJ \
23786 old_archive_from_expsyms_cmds_GCJ \
23787 allow_undefined_flag_GCJ \
23788 no_undefined_flag_GCJ \
23789 export_symbols_cmds_GCJ \
23790 hardcode_libdir_flag_spec_GCJ \
23791 hardcode_libdir_flag_spec_ld_GCJ \
23792 hardcode_libdir_separator_GCJ \
23793 hardcode_automatic_GCJ \
23794 module_cmds_GCJ \
23795 module_expsym_cmds_GCJ \
23796 lt_cv_prog_compiler_c_o_GCJ \
23797 exclude_expsyms_GCJ \
23798 include_expsyms_GCJ; do
23799
23800 case $var in
23801 old_archive_cmds_GCJ | \
23802 old_archive_from_new_cmds_GCJ | \
23803 archive_cmds_GCJ | \
23804 archive_expsym_cmds_GCJ | \
23805 module_cmds_GCJ | \
23806 module_expsym_cmds_GCJ | \
23807 old_archive_from_expsyms_cmds_GCJ | \
23808 export_symbols_cmds_GCJ | \
23809 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23810 postinstall_cmds | postuninstall_cmds | \
23811 old_postinstall_cmds | old_postuninstall_cmds | \
23812 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23813 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023814 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 +000023815 ;;
23816 *)
23817 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23818 ;;
23819 esac
23820 done
23821
23822 case $lt_echo in
23823 *'\$0 --fallback-echo"')
23824 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23825 ;;
23826 esac
23827
23828cfgfile="$ofile"
23829
23830 cat <<__EOF__ >> "$cfgfile"
23831# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23832
23833# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23834
23835# Shell to use when invoking shell scripts.
23836SHELL=$lt_SHELL
23837
23838# Whether or not to build shared libraries.
23839build_libtool_libs=$enable_shared
23840
23841# Whether or not to build static libraries.
23842build_old_libs=$enable_static
23843
23844# Whether or not to add -lc for building shared libraries.
23845build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23846
23847# Whether or not to disallow shared libs when runtime libs are static
23848allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23849
23850# Whether or not to optimize for fast installation.
23851fast_install=$enable_fast_install
23852
23853# The host system.
23854host_alias=$host_alias
23855host=$host
23856
23857# An echo program that does not interpret backslashes.
23858echo=$lt_echo
23859
23860# The archiver.
23861AR=$lt_AR
23862AR_FLAGS=$lt_AR_FLAGS
23863
23864# A C compiler.
23865LTCC=$lt_LTCC
23866
23867# A language-specific compiler.
23868CC=$lt_compiler_GCJ
23869
23870# Is the compiler the GNU C compiler?
23871with_gcc=$GCC_GCJ
23872
23873# An ERE matcher.
23874EGREP=$lt_EGREP
23875
23876# The linker used to build libraries.
23877LD=$lt_LD_GCJ
23878
23879# Whether we need hard or soft links.
23880LN_S=$lt_LN_S
23881
23882# A BSD-compatible nm program.
23883NM=$lt_NM
23884
23885# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023886STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023887
23888# Used to examine libraries when file_magic_cmd begins "file"
23889MAGIC_CMD=$MAGIC_CMD
23890
23891# Used on cygwin: DLL creation program.
23892DLLTOOL="$DLLTOOL"
23893
23894# Used on cygwin: object dumper.
23895OBJDUMP="$OBJDUMP"
23896
23897# Used on cygwin: assembler.
23898AS="$AS"
23899
23900# The name of the directory that contains temporary libtool files.
23901objdir=$objdir
23902
23903# How to create reloadable object files.
23904reload_flag=$lt_reload_flag
23905reload_cmds=$lt_reload_cmds
23906
23907# How to pass a linker flag through the compiler.
23908wl=$lt_lt_prog_compiler_wl_GCJ
23909
23910# Object file suffix (normally "o").
23911objext="$ac_objext"
23912
23913# Old archive suffix (normally "a").
23914libext="$libext"
23915
23916# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023917shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023918
23919# Executable file suffix (normally "").
23920exeext="$exeext"
23921
23922# Additional compiler flags for building library objects.
23923pic_flag=$lt_lt_prog_compiler_pic_GCJ
23924pic_mode=$pic_mode
23925
23926# What is the maximum length of a command?
23927max_cmd_len=$lt_cv_sys_max_cmd_len
23928
23929# Does compiler simultaneously support -c and -o options?
23930compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23931
23932# Must we lock files when doing compilation ?
23933need_locks=$lt_need_locks
23934
23935# Do we need the lib prefix for modules?
23936need_lib_prefix=$need_lib_prefix
23937
23938# Do we need a version for libraries?
23939need_version=$need_version
23940
23941# Whether dlopen is supported.
23942dlopen_support=$enable_dlopen
23943
23944# Whether dlopen of programs is supported.
23945dlopen_self=$enable_dlopen_self
23946
23947# Whether dlopen of statically linked programs is supported.
23948dlopen_self_static=$enable_dlopen_self_static
23949
23950# Compiler flag to prevent dynamic linking.
23951link_static_flag=$lt_lt_prog_compiler_static_GCJ
23952
23953# Compiler flag to turn off builtin functions.
23954no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23955
23956# Compiler flag to allow reflexive dlopens.
23957export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23958
23959# Compiler flag to generate shared objects directly from archives.
23960whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23961
23962# Compiler flag to generate thread-safe objects.
23963thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23964
23965# Library versioning type.
23966version_type=$version_type
23967
23968# Format of library name prefix.
23969libname_spec=$lt_libname_spec
23970
23971# List of archive names. First name is the real one, the rest are links.
23972# The last name is the one that the linker finds with -lNAME.
23973library_names_spec=$lt_library_names_spec
23974
23975# The coded name of the library, if different from the real name.
23976soname_spec=$lt_soname_spec
23977
23978# Commands used to build and install an old-style archive.
23979RANLIB=$lt_RANLIB
23980old_archive_cmds=$lt_old_archive_cmds_GCJ
23981old_postinstall_cmds=$lt_old_postinstall_cmds
23982old_postuninstall_cmds=$lt_old_postuninstall_cmds
23983
23984# Create an old-style archive from a shared archive.
23985old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23986
23987# Create a temporary old-style archive to link instead of a shared archive.
23988old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23989
23990# Commands used to build and install a shared archive.
23991archive_cmds=$lt_archive_cmds_GCJ
23992archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23993postinstall_cmds=$lt_postinstall_cmds
23994postuninstall_cmds=$lt_postuninstall_cmds
23995
23996# Commands used to build a loadable module (assumed same as above if empty)
23997module_cmds=$lt_module_cmds_GCJ
23998module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23999
24000# Commands to strip libraries.
24001old_striplib=$lt_old_striplib
24002striplib=$lt_striplib
24003
24004# Dependencies to place before the objects being linked to create a
24005# shared library.
24006predep_objects=$lt_predep_objects_GCJ
24007
24008# Dependencies to place after the objects being linked to create a
24009# shared library.
24010postdep_objects=$lt_postdep_objects_GCJ
24011
24012# Dependencies to place before the objects being linked to create a
24013# shared library.
24014predeps=$lt_predeps_GCJ
24015
24016# Dependencies to place after the objects being linked to create a
24017# shared library.
24018postdeps=$lt_postdeps_GCJ
24019
24020# The library search path used internally by the compiler when linking
24021# a shared library.
24022compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24023
24024# Method to check whether dependent libraries are shared objects.
24025deplibs_check_method=$lt_deplibs_check_method
24026
24027# Command to use when deplibs_check_method == file_magic.
24028file_magic_cmd=$lt_file_magic_cmd
24029
24030# Flag that allows shared libraries with undefined symbols to be built.
24031allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24032
24033# Flag that forces no undefined symbols.
24034no_undefined_flag=$lt_no_undefined_flag_GCJ
24035
24036# Commands used to finish a libtool library installation in a directory.
24037finish_cmds=$lt_finish_cmds
24038
24039# Same as above, but a single script fragment to be evaled but not shown.
24040finish_eval=$lt_finish_eval
24041
24042# Take the output of nm and produce a listing of raw symbols and C names.
24043global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24044
24045# Transform the output of nm in a proper C declaration
24046global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24047
24048# Transform the output of nm in a C name address pair
24049global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24050
24051# This is the shared library runtime path variable.
24052runpath_var=$runpath_var
24053
24054# This is the shared library path variable.
24055shlibpath_var=$shlibpath_var
24056
24057# Is shlibpath searched before the hard-coded library search path?
24058shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24059
24060# How to hardcode a shared library path into an executable.
24061hardcode_action=$hardcode_action_GCJ
24062
24063# Whether we should hardcode library paths into libraries.
24064hardcode_into_libs=$hardcode_into_libs
24065
24066# Flag to hardcode \$libdir into a binary during linking.
24067# This must work even if \$libdir does not exist.
24068hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24069
24070# If ld is used when linking, flag to hardcode \$libdir into
24071# a binary during linking. This must work even if \$libdir does
24072# not exist.
24073hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24074
24075# Whether we need a single -rpath flag with a separated argument.
24076hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24077
24078# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24079# resulting binary.
24080hardcode_direct=$hardcode_direct_GCJ
24081
24082# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24083# resulting binary.
24084hardcode_minus_L=$hardcode_minus_L_GCJ
24085
24086# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24087# the resulting binary.
24088hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24089
24090# Set to yes if building a shared library automatically hardcodes DIR into the library
24091# and all subsequent libraries and executables linked against it.
24092hardcode_automatic=$hardcode_automatic_GCJ
24093
24094# Variables whose values should be saved in libtool wrapper scripts and
24095# restored at relink time.
24096variables_saved_for_relink="$variables_saved_for_relink"
24097
24098# Whether libtool must link a program against all its dependency libraries.
24099link_all_deplibs=$link_all_deplibs_GCJ
24100
24101# Compile-time system search path for libraries
24102sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24103
24104# Run-time system search path for libraries
24105sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24106
24107# Fix the shell variable \$srcfile for the compiler.
24108fix_srcfile_path="$fix_srcfile_path_GCJ"
24109
24110# Set to yes if exported symbols are required.
24111always_export_symbols=$always_export_symbols_GCJ
24112
24113# The commands to list exported symbols.
24114export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24115
24116# The commands to extract the exported symbol list from a shared archive.
24117extract_expsyms_cmds=$lt_extract_expsyms_cmds
24118
24119# Symbols that should not be listed in the preloaded symbols.
24120exclude_expsyms=$lt_exclude_expsyms_GCJ
24121
24122# Symbols that must always be exported.
24123include_expsyms=$lt_include_expsyms_GCJ
24124
24125# ### END LIBTOOL TAG CONFIG: $tagname
24126
24127__EOF__
24128
24129
24130else
24131 # If there is no Makefile yet, we rely on a make rule to execute
24132 # `config.status --recheck' to rerun these tests and create the
24133 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024134 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24135 if test -f "$ltmain_in"; then
24136 test -f Makefile && make "$ltmain"
24137 fi
John Criswell47fdd832003-07-14 16:52:07 +000024138fi
24139
24140
24141ac_ext=c
24142ac_cpp='$CPP $CPPFLAGS'
24143ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24144ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24145ac_compiler_gnu=$ac_cv_c_compiler_gnu
24146
24147CC="$lt_save_CC"
24148
24149 else
24150 tagname=""
24151 fi
24152 ;;
24153
24154 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024155 ac_ext=c
24156ac_cpp='$CPP $CPPFLAGS'
24157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24159ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024160
24161
24162# Source file extension for RC test sources.
24163ac_ext=rc
24164
24165# Object file extension for compiled RC test sources.
24166objext=o
24167objext_RC=$objext
24168
24169# Code to be used in simple compile tests
24170lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24171
24172# Code to be used in simple link tests
24173lt_simple_link_test_code="$lt_simple_compile_test_code"
24174
24175# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24176
24177# If no C compiler was specified, use CC.
24178LTCC=${LTCC-"$CC"}
24179
24180# Allow CC to be a program name with arguments.
24181compiler=$CC
24182
24183
24184# Allow CC to be a program name with arguments.
24185lt_save_CC="$CC"
24186CC=${RC-"windres"}
24187compiler=$CC
24188compiler_RC=$CC
24189lt_cv_prog_compiler_c_o_RC=yes
24190
24191# The else clause should only fire when bootstrapping the
24192# libtool distribution, otherwise you forgot to ship ltmain.sh
24193# with your package, and you will get complaints that there are
24194# no rules to generate ltmain.sh.
24195if test -f "$ltmain"; then
24196 # See if we are running on zsh, and set the options which allow our commands through
24197 # without removal of \ escapes.
24198 if test -n "${ZSH_VERSION+set}" ; then
24199 setopt NO_GLOB_SUBST
24200 fi
24201 # Now quote all the things that may contain metacharacters while being
24202 # careful not to overquote the AC_SUBSTed values. We take copies of the
24203 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024204 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24205 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024206 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24207 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24208 deplibs_check_method reload_flag reload_cmds need_locks \
24209 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24210 lt_cv_sys_global_symbol_to_c_name_address \
24211 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24212 old_postinstall_cmds old_postuninstall_cmds \
24213 compiler_RC \
24214 CC_RC \
24215 LD_RC \
24216 lt_prog_compiler_wl_RC \
24217 lt_prog_compiler_pic_RC \
24218 lt_prog_compiler_static_RC \
24219 lt_prog_compiler_no_builtin_flag_RC \
24220 export_dynamic_flag_spec_RC \
24221 thread_safe_flag_spec_RC \
24222 whole_archive_flag_spec_RC \
24223 enable_shared_with_static_runtimes_RC \
24224 old_archive_cmds_RC \
24225 old_archive_from_new_cmds_RC \
24226 predep_objects_RC \
24227 postdep_objects_RC \
24228 predeps_RC \
24229 postdeps_RC \
24230 compiler_lib_search_path_RC \
24231 archive_cmds_RC \
24232 archive_expsym_cmds_RC \
24233 postinstall_cmds_RC \
24234 postuninstall_cmds_RC \
24235 old_archive_from_expsyms_cmds_RC \
24236 allow_undefined_flag_RC \
24237 no_undefined_flag_RC \
24238 export_symbols_cmds_RC \
24239 hardcode_libdir_flag_spec_RC \
24240 hardcode_libdir_flag_spec_ld_RC \
24241 hardcode_libdir_separator_RC \
24242 hardcode_automatic_RC \
24243 module_cmds_RC \
24244 module_expsym_cmds_RC \
24245 lt_cv_prog_compiler_c_o_RC \
24246 exclude_expsyms_RC \
24247 include_expsyms_RC; do
24248
24249 case $var in
24250 old_archive_cmds_RC | \
24251 old_archive_from_new_cmds_RC | \
24252 archive_cmds_RC | \
24253 archive_expsym_cmds_RC | \
24254 module_cmds_RC | \
24255 module_expsym_cmds_RC | \
24256 old_archive_from_expsyms_cmds_RC | \
24257 export_symbols_cmds_RC | \
24258 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24259 postinstall_cmds | postuninstall_cmds | \
24260 old_postinstall_cmds | old_postuninstall_cmds | \
24261 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24262 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024263 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 +000024264 ;;
24265 *)
24266 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24267 ;;
24268 esac
24269 done
24270
24271 case $lt_echo in
24272 *'\$0 --fallback-echo"')
24273 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24274 ;;
24275 esac
24276
24277cfgfile="$ofile"
24278
24279 cat <<__EOF__ >> "$cfgfile"
24280# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24281
24282# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24283
24284# Shell to use when invoking shell scripts.
24285SHELL=$lt_SHELL
24286
24287# Whether or not to build shared libraries.
24288build_libtool_libs=$enable_shared
24289
24290# Whether or not to build static libraries.
24291build_old_libs=$enable_static
24292
24293# Whether or not to add -lc for building shared libraries.
24294build_libtool_need_lc=$archive_cmds_need_lc_RC
24295
24296# Whether or not to disallow shared libs when runtime libs are static
24297allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24298
24299# Whether or not to optimize for fast installation.
24300fast_install=$enable_fast_install
24301
24302# The host system.
24303host_alias=$host_alias
24304host=$host
24305
24306# An echo program that does not interpret backslashes.
24307echo=$lt_echo
24308
24309# The archiver.
24310AR=$lt_AR
24311AR_FLAGS=$lt_AR_FLAGS
24312
24313# A C compiler.
24314LTCC=$lt_LTCC
24315
24316# A language-specific compiler.
24317CC=$lt_compiler_RC
24318
24319# Is the compiler the GNU C compiler?
24320with_gcc=$GCC_RC
24321
24322# An ERE matcher.
24323EGREP=$lt_EGREP
24324
24325# The linker used to build libraries.
24326LD=$lt_LD_RC
24327
24328# Whether we need hard or soft links.
24329LN_S=$lt_LN_S
24330
24331# A BSD-compatible nm program.
24332NM=$lt_NM
24333
24334# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024335STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024336
24337# Used to examine libraries when file_magic_cmd begins "file"
24338MAGIC_CMD=$MAGIC_CMD
24339
24340# Used on cygwin: DLL creation program.
24341DLLTOOL="$DLLTOOL"
24342
24343# Used on cygwin: object dumper.
24344OBJDUMP="$OBJDUMP"
24345
24346# Used on cygwin: assembler.
24347AS="$AS"
24348
24349# The name of the directory that contains temporary libtool files.
24350objdir=$objdir
24351
24352# How to create reloadable object files.
24353reload_flag=$lt_reload_flag
24354reload_cmds=$lt_reload_cmds
24355
24356# How to pass a linker flag through the compiler.
24357wl=$lt_lt_prog_compiler_wl_RC
24358
24359# Object file suffix (normally "o").
24360objext="$ac_objext"
24361
24362# Old archive suffix (normally "a").
24363libext="$libext"
24364
24365# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024366shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024367
24368# Executable file suffix (normally "").
24369exeext="$exeext"
24370
24371# Additional compiler flags for building library objects.
24372pic_flag=$lt_lt_prog_compiler_pic_RC
24373pic_mode=$pic_mode
24374
24375# What is the maximum length of a command?
24376max_cmd_len=$lt_cv_sys_max_cmd_len
24377
24378# Does compiler simultaneously support -c and -o options?
24379compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24380
24381# Must we lock files when doing compilation ?
24382need_locks=$lt_need_locks
24383
24384# Do we need the lib prefix for modules?
24385need_lib_prefix=$need_lib_prefix
24386
24387# Do we need a version for libraries?
24388need_version=$need_version
24389
24390# Whether dlopen is supported.
24391dlopen_support=$enable_dlopen
24392
24393# Whether dlopen of programs is supported.
24394dlopen_self=$enable_dlopen_self
24395
24396# Whether dlopen of statically linked programs is supported.
24397dlopen_self_static=$enable_dlopen_self_static
24398
24399# Compiler flag to prevent dynamic linking.
24400link_static_flag=$lt_lt_prog_compiler_static_RC
24401
24402# Compiler flag to turn off builtin functions.
24403no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24404
24405# Compiler flag to allow reflexive dlopens.
24406export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24407
24408# Compiler flag to generate shared objects directly from archives.
24409whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24410
24411# Compiler flag to generate thread-safe objects.
24412thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24413
24414# Library versioning type.
24415version_type=$version_type
24416
24417# Format of library name prefix.
24418libname_spec=$lt_libname_spec
24419
24420# List of archive names. First name is the real one, the rest are links.
24421# The last name is the one that the linker finds with -lNAME.
24422library_names_spec=$lt_library_names_spec
24423
24424# The coded name of the library, if different from the real name.
24425soname_spec=$lt_soname_spec
24426
24427# Commands used to build and install an old-style archive.
24428RANLIB=$lt_RANLIB
24429old_archive_cmds=$lt_old_archive_cmds_RC
24430old_postinstall_cmds=$lt_old_postinstall_cmds
24431old_postuninstall_cmds=$lt_old_postuninstall_cmds
24432
24433# Create an old-style archive from a shared archive.
24434old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24435
24436# Create a temporary old-style archive to link instead of a shared archive.
24437old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24438
24439# Commands used to build and install a shared archive.
24440archive_cmds=$lt_archive_cmds_RC
24441archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24442postinstall_cmds=$lt_postinstall_cmds
24443postuninstall_cmds=$lt_postuninstall_cmds
24444
24445# Commands used to build a loadable module (assumed same as above if empty)
24446module_cmds=$lt_module_cmds_RC
24447module_expsym_cmds=$lt_module_expsym_cmds_RC
24448
24449# Commands to strip libraries.
24450old_striplib=$lt_old_striplib
24451striplib=$lt_striplib
24452
24453# Dependencies to place before the objects being linked to create a
24454# shared library.
24455predep_objects=$lt_predep_objects_RC
24456
24457# Dependencies to place after the objects being linked to create a
24458# shared library.
24459postdep_objects=$lt_postdep_objects_RC
24460
24461# Dependencies to place before the objects being linked to create a
24462# shared library.
24463predeps=$lt_predeps_RC
24464
24465# Dependencies to place after the objects being linked to create a
24466# shared library.
24467postdeps=$lt_postdeps_RC
24468
24469# The library search path used internally by the compiler when linking
24470# a shared library.
24471compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24472
24473# Method to check whether dependent libraries are shared objects.
24474deplibs_check_method=$lt_deplibs_check_method
24475
24476# Command to use when deplibs_check_method == file_magic.
24477file_magic_cmd=$lt_file_magic_cmd
24478
24479# Flag that allows shared libraries with undefined symbols to be built.
24480allow_undefined_flag=$lt_allow_undefined_flag_RC
24481
24482# Flag that forces no undefined symbols.
24483no_undefined_flag=$lt_no_undefined_flag_RC
24484
24485# Commands used to finish a libtool library installation in a directory.
24486finish_cmds=$lt_finish_cmds
24487
24488# Same as above, but a single script fragment to be evaled but not shown.
24489finish_eval=$lt_finish_eval
24490
24491# Take the output of nm and produce a listing of raw symbols and C names.
24492global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24493
24494# Transform the output of nm in a proper C declaration
24495global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24496
24497# Transform the output of nm in a C name address pair
24498global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24499
24500# This is the shared library runtime path variable.
24501runpath_var=$runpath_var
24502
24503# This is the shared library path variable.
24504shlibpath_var=$shlibpath_var
24505
24506# Is shlibpath searched before the hard-coded library search path?
24507shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24508
24509# How to hardcode a shared library path into an executable.
24510hardcode_action=$hardcode_action_RC
24511
24512# Whether we should hardcode library paths into libraries.
24513hardcode_into_libs=$hardcode_into_libs
24514
24515# Flag to hardcode \$libdir into a binary during linking.
24516# This must work even if \$libdir does not exist.
24517hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24518
24519# If ld is used when linking, flag to hardcode \$libdir into
24520# a binary during linking. This must work even if \$libdir does
24521# not exist.
24522hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24523
24524# Whether we need a single -rpath flag with a separated argument.
24525hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24526
24527# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24528# resulting binary.
24529hardcode_direct=$hardcode_direct_RC
24530
24531# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24532# resulting binary.
24533hardcode_minus_L=$hardcode_minus_L_RC
24534
24535# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24536# the resulting binary.
24537hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24538
24539# Set to yes if building a shared library automatically hardcodes DIR into the library
24540# and all subsequent libraries and executables linked against it.
24541hardcode_automatic=$hardcode_automatic_RC
24542
24543# Variables whose values should be saved in libtool wrapper scripts and
24544# restored at relink time.
24545variables_saved_for_relink="$variables_saved_for_relink"
24546
24547# Whether libtool must link a program against all its dependency libraries.
24548link_all_deplibs=$link_all_deplibs_RC
24549
24550# Compile-time system search path for libraries
24551sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24552
24553# Run-time system search path for libraries
24554sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24555
24556# Fix the shell variable \$srcfile for the compiler.
24557fix_srcfile_path="$fix_srcfile_path_RC"
24558
24559# Set to yes if exported symbols are required.
24560always_export_symbols=$always_export_symbols_RC
24561
24562# The commands to list exported symbols.
24563export_symbols_cmds=$lt_export_symbols_cmds_RC
24564
24565# The commands to extract the exported symbol list from a shared archive.
24566extract_expsyms_cmds=$lt_extract_expsyms_cmds
24567
24568# Symbols that should not be listed in the preloaded symbols.
24569exclude_expsyms=$lt_exclude_expsyms_RC
24570
24571# Symbols that must always be exported.
24572include_expsyms=$lt_include_expsyms_RC
24573
24574# ### END LIBTOOL TAG CONFIG: $tagname
24575
24576__EOF__
24577
24578
24579else
24580 # If there is no Makefile yet, we rely on a make rule to execute
24581 # `config.status --recheck' to rerun these tests and create the
24582 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024583 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24584 if test -f "$ltmain_in"; then
24585 test -f Makefile && make "$ltmain"
24586 fi
John Criswell47fdd832003-07-14 16:52:07 +000024587fi
24588
24589
24590ac_ext=c
24591ac_cpp='$CPP $CPPFLAGS'
24592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24594ac_compiler_gnu=$ac_cv_c_compiler_gnu
24595
24596CC="$lt_save_CC"
24597
24598 ;;
24599
24600 *)
24601 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24602echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24603 { (exit 1); exit 1; }; }
24604 ;;
24605 esac
24606
24607 # Append the new tag name to the list of available tags.
24608 if test -n "$tagname" ; then
24609 available_tags="$available_tags $tagname"
24610 fi
24611 fi
24612 done
24613 IFS="$lt_save_ifs"
24614
24615 # Now substitute the updated list of available tags.
24616 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24617 mv "${ofile}T" "$ofile"
24618 chmod +x "$ofile"
24619 else
24620 rm -f "${ofile}T"
24621 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24622echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24623 { (exit 1); exit 1; }; }
24624 fi
24625fi
John Criswell7a73b802003-06-30 21:59:07 +000024626
24627
24628
24629# This can be used to rebuild libtool when needed
24630LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24631
24632# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024633LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024634
24635# Prevent multiple expansion
24636
24637
24638
John Criswell47fdd832003-07-14 16:52:07 +000024639
24640
24641
24642
24643
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653
24654
24655
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024656
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024657etags_version=`$ETAGS --version 2>&1`
24658case "$etags_version" in
24659 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24660 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24661 *) ETAGSFLAGS="" ;;
24662esac
24663ETAGSFLAGS=$ETAGSFLAGS
24664
24665
24666echo "$as_me:$LINENO: checking tool compatibility" >&5
24667echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24668
Reid Spencer86901802004-12-08 23:07:27 +000024669ICC=no
24670IXX=no
24671case $CC in
24672 icc*|icpc*)
24673 ICC=yes
24674 IXX=yes
24675 ;;
24676 *)
24677 ;;
24678esac
24679
24680if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024681then
Reid Spencer86901802004-12-08 23:07:27 +000024682 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24683echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024684 { (exit 1); exit 1; }; }
24685fi
24686
Reid Spencer86901802004-12-08 23:07:27 +000024687if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024688then
Reid Spencer86901802004-12-08 23:07:27 +000024689 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24690echo "$as_me: error: g++|icc required but not found" >&2;}
24691 { (exit 1); exit 1; }; }
24692fi
24693
24694if test "$GCC" = "yes"
24695then
24696 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24697 if test "$gccmajor" -lt "3"
24698 then
24699 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024700echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24701 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024702 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024703fi
24704
24705if test -z "$llvm_cv_gnu_make_command"
24706then
24707 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24708echo "$as_me: error: GNU Make required but not found" >&2;}
24709 { (exit 1); exit 1; }; }
24710fi
24711
24712echo "$as_me:$LINENO: result: ok" >&5
24713echo "${ECHO_T}ok" >&6
24714
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024715
John Criswell7a73b802003-06-30 21:59:07 +000024716
John Criswell7a73b802003-06-30 21:59:07 +000024717echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24718echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24719if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24720 echo $ECHO_N "(cached) $ECHO_C" >&6
24721else
24722 ac_check_lib_save_LIBS=$LIBS
24723LIBS="-lelf $LIBS"
24724cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024725/* confdefs.h. */
24726_ACEOF
24727cat confdefs.h >>conftest.$ac_ext
24728cat >>conftest.$ac_ext <<_ACEOF
24729/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024730
24731/* Override any gcc2 internal prototype to avoid an error. */
24732#ifdef __cplusplus
24733extern "C"
24734#endif
24735/* We use char because int might match the return type of a gcc2
24736 builtin and then its argument prototype would still apply. */
24737char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024738int
24739main ()
24740{
24741elf_begin ();
24742 ;
24743 return 0;
24744}
24745_ACEOF
24746rm -f conftest.$ac_objext conftest$ac_exeext
24747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024748 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024749 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024750 grep -v '^ *+' conftest.er1 >conftest.err
24751 rm -f conftest.er1
24752 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24754 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024755 { ac_try='test -z "$ac_c_werror_flag"
24756 || test ! -s conftest.err'
24757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24758 (eval $ac_try) 2>&5
24759 ac_status=$?
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); }; } &&
24762 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24764 (eval $ac_try) 2>&5
24765 ac_status=$?
24766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24767 (exit $ac_status); }; }; then
24768 ac_cv_lib_elf_elf_begin=yes
24769else
24770 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024771sed 's/^/| /' conftest.$ac_ext >&5
24772
John Criswell7a73b802003-06-30 21:59:07 +000024773ac_cv_lib_elf_elf_begin=no
24774fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024775rm -f conftest.err conftest.$ac_objext \
24776 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024777LIBS=$ac_check_lib_save_LIBS
24778fi
24779echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24780echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24781if test $ac_cv_lib_elf_elf_begin = yes; then
24782 cat >>confdefs.h <<_ACEOF
24783#define HAVE_LIBELF 1
24784_ACEOF
24785
24786 LIBS="-lelf $LIBS"
24787
24788fi
24789
24790
Reid Spencer17795972004-11-18 09:47:37 +000024791echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24792echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24793if test "${ac_cv_search_lt_dlopen+set}" = set; then
24794 echo $ECHO_N "(cached) $ECHO_C" >&6
24795else
24796 ac_func_search_save_LIBS=$LIBS
24797ac_cv_search_lt_dlopen=no
24798cat >conftest.$ac_ext <<_ACEOF
24799/* confdefs.h. */
24800_ACEOF
24801cat confdefs.h >>conftest.$ac_ext
24802cat >>conftest.$ac_ext <<_ACEOF
24803/* end confdefs.h. */
24804
24805/* Override any gcc2 internal prototype to avoid an error. */
24806#ifdef __cplusplus
24807extern "C"
24808#endif
24809/* We use char because int might match the return type of a gcc2
24810 builtin and then its argument prototype would still apply. */
24811char lt_dlopen ();
24812int
24813main ()
24814{
24815lt_dlopen ();
24816 ;
24817 return 0;
24818}
24819_ACEOF
24820rm -f conftest.$ac_objext conftest$ac_exeext
24821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24822 (eval $ac_link) 2>conftest.er1
24823 ac_status=$?
24824 grep -v '^ *+' conftest.er1 >conftest.err
24825 rm -f conftest.er1
24826 cat conftest.err >&5
24827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); } &&
24829 { ac_try='test -z "$ac_c_werror_flag"
24830 || test ! -s conftest.err'
24831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24832 (eval $ac_try) 2>&5
24833 ac_status=$?
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); }; } &&
24836 { ac_try='test -s conftest$ac_exeext'
24837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838 (eval $ac_try) 2>&5
24839 ac_status=$?
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); }; }; then
24842 ac_cv_search_lt_dlopen="none required"
24843else
24844 echo "$as_me: failed program was:" >&5
24845sed 's/^/| /' conftest.$ac_ext >&5
24846
24847fi
24848rm -f conftest.err conftest.$ac_objext \
24849 conftest$ac_exeext conftest.$ac_ext
24850if test "$ac_cv_search_lt_dlopen" = no; then
24851 for ac_lib in ltdl; do
24852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24853 cat >conftest.$ac_ext <<_ACEOF
24854/* confdefs.h. */
24855_ACEOF
24856cat confdefs.h >>conftest.$ac_ext
24857cat >>conftest.$ac_ext <<_ACEOF
24858/* end confdefs.h. */
24859
24860/* Override any gcc2 internal prototype to avoid an error. */
24861#ifdef __cplusplus
24862extern "C"
24863#endif
24864/* We use char because int might match the return type of a gcc2
24865 builtin and then its argument prototype would still apply. */
24866char lt_dlopen ();
24867int
24868main ()
24869{
24870lt_dlopen ();
24871 ;
24872 return 0;
24873}
24874_ACEOF
24875rm -f conftest.$ac_objext conftest$ac_exeext
24876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24877 (eval $ac_link) 2>conftest.er1
24878 ac_status=$?
24879 grep -v '^ *+' conftest.er1 >conftest.err
24880 rm -f conftest.er1
24881 cat conftest.err >&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } &&
24884 { ac_try='test -z "$ac_c_werror_flag"
24885 || test ! -s conftest.err'
24886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24887 (eval $ac_try) 2>&5
24888 ac_status=$?
24889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24890 (exit $ac_status); }; } &&
24891 { ac_try='test -s conftest$ac_exeext'
24892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 (eval $ac_try) 2>&5
24894 ac_status=$?
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); }; }; then
24897 ac_cv_search_lt_dlopen="-l$ac_lib"
24898break
24899else
24900 echo "$as_me: failed program was:" >&5
24901sed 's/^/| /' conftest.$ac_ext >&5
24902
24903fi
24904rm -f conftest.err conftest.$ac_objext \
24905 conftest$ac_exeext conftest.$ac_ext
24906 done
24907fi
24908LIBS=$ac_func_search_save_LIBS
24909fi
24910echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24911echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24912if test "$ac_cv_search_lt_dlopen" != no; then
24913 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24914
24915cat >>confdefs.h <<\_ACEOF
24916#define HAVE_LT_DLOPEN 1
24917_ACEOF
24918
24919else
24920 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24921 not be available" >&5
24922echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24923 not be available" >&2;}
24924fi
24925
24926
John Criswell7a73b802003-06-30 21:59:07 +000024927echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24928echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24929if test "${ac_cv_search_dlopen+set}" = set; then
24930 echo $ECHO_N "(cached) $ECHO_C" >&6
24931else
24932 ac_func_search_save_LIBS=$LIBS
24933ac_cv_search_dlopen=no
24934cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024935/* confdefs.h. */
24936_ACEOF
24937cat confdefs.h >>conftest.$ac_ext
24938cat >>conftest.$ac_ext <<_ACEOF
24939/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024940
24941/* Override any gcc2 internal prototype to avoid an error. */
24942#ifdef __cplusplus
24943extern "C"
24944#endif
24945/* We use char because int might match the return type of a gcc2
24946 builtin and then its argument prototype would still apply. */
24947char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024948int
24949main ()
24950{
24951dlopen ();
24952 ;
24953 return 0;
24954}
24955_ACEOF
24956rm -f conftest.$ac_objext conftest$ac_exeext
24957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024958 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024959 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024960 grep -v '^ *+' conftest.er1 >conftest.err
24961 rm -f conftest.er1
24962 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24964 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024965 { ac_try='test -z "$ac_c_werror_flag"
24966 || test ! -s conftest.err'
24967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24968 (eval $ac_try) 2>&5
24969 ac_status=$?
24970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24971 (exit $ac_status); }; } &&
24972 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24974 (eval $ac_try) 2>&5
24975 ac_status=$?
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); }; }; then
24978 ac_cv_search_dlopen="none required"
24979else
24980 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024981sed 's/^/| /' conftest.$ac_ext >&5
24982
John Criswell7a73b802003-06-30 21:59:07 +000024983fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024984rm -f conftest.err conftest.$ac_objext \
24985 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024986if test "$ac_cv_search_dlopen" = no; then
24987 for ac_lib in dl; do
24988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24989 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024990/* confdefs.h. */
24991_ACEOF
24992cat confdefs.h >>conftest.$ac_ext
24993cat >>conftest.$ac_ext <<_ACEOF
24994/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024995
24996/* Override any gcc2 internal prototype to avoid an error. */
24997#ifdef __cplusplus
24998extern "C"
24999#endif
25000/* We use char because int might match the return type of a gcc2
25001 builtin and then its argument prototype would still apply. */
25002char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025003int
25004main ()
25005{
25006dlopen ();
25007 ;
25008 return 0;
25009}
25010_ACEOF
25011rm -f conftest.$ac_objext conftest$ac_exeext
25012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025013 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025014 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025015 grep -v '^ *+' conftest.er1 >conftest.err
25016 rm -f conftest.er1
25017 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025020 { ac_try='test -z "$ac_c_werror_flag"
25021 || test ! -s conftest.err'
25022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25023 (eval $ac_try) 2>&5
25024 ac_status=$?
25025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25026 (exit $ac_status); }; } &&
25027 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25029 (eval $ac_try) 2>&5
25030 ac_status=$?
25031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25032 (exit $ac_status); }; }; then
25033 ac_cv_search_dlopen="-l$ac_lib"
25034break
25035else
25036 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025037sed 's/^/| /' conftest.$ac_ext >&5
25038
John Criswell7a73b802003-06-30 21:59:07 +000025039fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025040rm -f conftest.err conftest.$ac_objext \
25041 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025042 done
25043fi
25044LIBS=$ac_func_search_save_LIBS
25045fi
25046echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25047echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25048if test "$ac_cv_search_dlopen" != no; then
25049 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025050
25051cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025052#define HAVE_DLOPEN 1
25053_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025054
25055else
Brian Gaekec45be042003-10-07 06:01:34 +000025056 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25057echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025058fi
25059
25060
25061echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25062echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25063if test "${ac_cv_search_mallinfo+set}" = set; then
25064 echo $ECHO_N "(cached) $ECHO_C" >&6
25065else
25066 ac_func_search_save_LIBS=$LIBS
25067ac_cv_search_mallinfo=no
25068cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025069/* confdefs.h. */
25070_ACEOF
25071cat confdefs.h >>conftest.$ac_ext
25072cat >>conftest.$ac_ext <<_ACEOF
25073/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025074
25075/* Override any gcc2 internal prototype to avoid an error. */
25076#ifdef __cplusplus
25077extern "C"
25078#endif
25079/* We use char because int might match the return type of a gcc2
25080 builtin and then its argument prototype would still apply. */
25081char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025082int
25083main ()
25084{
25085mallinfo ();
25086 ;
25087 return 0;
25088}
25089_ACEOF
25090rm -f conftest.$ac_objext conftest$ac_exeext
25091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025092 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025093 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025094 grep -v '^ *+' conftest.er1 >conftest.err
25095 rm -f conftest.er1
25096 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025099 { ac_try='test -z "$ac_c_werror_flag"
25100 || test ! -s conftest.err'
25101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25102 (eval $ac_try) 2>&5
25103 ac_status=$?
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); }; } &&
25106 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25108 (eval $ac_try) 2>&5
25109 ac_status=$?
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); }; }; then
25112 ac_cv_search_mallinfo="none required"
25113else
25114 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025115sed 's/^/| /' conftest.$ac_ext >&5
25116
John Criswell7a73b802003-06-30 21:59:07 +000025117fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025118rm -f conftest.err conftest.$ac_objext \
25119 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025120if test "$ac_cv_search_mallinfo" = no; then
25121 for ac_lib in malloc; do
25122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25123 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025124/* confdefs.h. */
25125_ACEOF
25126cat confdefs.h >>conftest.$ac_ext
25127cat >>conftest.$ac_ext <<_ACEOF
25128/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025129
25130/* Override any gcc2 internal prototype to avoid an error. */
25131#ifdef __cplusplus
25132extern "C"
25133#endif
25134/* We use char because int might match the return type of a gcc2
25135 builtin and then its argument prototype would still apply. */
25136char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025137int
25138main ()
25139{
25140mallinfo ();
25141 ;
25142 return 0;
25143}
25144_ACEOF
25145rm -f conftest.$ac_objext conftest$ac_exeext
25146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025147 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025148 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025149 grep -v '^ *+' conftest.er1 >conftest.err
25150 rm -f conftest.er1
25151 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025154 { ac_try='test -z "$ac_c_werror_flag"
25155 || test ! -s conftest.err'
25156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25157 (eval $ac_try) 2>&5
25158 ac_status=$?
25159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25160 (exit $ac_status); }; } &&
25161 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25163 (eval $ac_try) 2>&5
25164 ac_status=$?
25165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166 (exit $ac_status); }; }; then
25167 ac_cv_search_mallinfo="-l$ac_lib"
25168break
25169else
25170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025171sed 's/^/| /' conftest.$ac_ext >&5
25172
John Criswell7a73b802003-06-30 21:59:07 +000025173fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025174rm -f conftest.err conftest.$ac_objext \
25175 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025176 done
25177fi
25178LIBS=$ac_func_search_save_LIBS
25179fi
25180echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25181echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25182if test "$ac_cv_search_mallinfo" != no; then
25183 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025184
25185cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025186#define HAVE_MALLINFO 1
25187_ACEOF
25188
25189fi
25190
25191
Brian Gaeke5f268f72003-12-05 19:29:01 +000025192echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25193echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25194if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25195 echo $ECHO_N "(cached) $ECHO_C" >&6
25196else
25197 ac_func_search_save_LIBS=$LIBS
25198ac_cv_search_pthread_mutex_lock=no
25199cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025200/* confdefs.h. */
25201_ACEOF
25202cat confdefs.h >>conftest.$ac_ext
25203cat >>conftest.$ac_ext <<_ACEOF
25204/* end confdefs.h. */
25205
25206/* Override any gcc2 internal prototype to avoid an error. */
25207#ifdef __cplusplus
25208extern "C"
25209#endif
25210/* We use char because int might match the return type of a gcc2
25211 builtin and then its argument prototype would still apply. */
25212char pthread_mutex_lock ();
25213int
25214main ()
25215{
25216pthread_mutex_lock ();
25217 ;
25218 return 0;
25219}
25220_ACEOF
25221rm -f conftest.$ac_objext conftest$ac_exeext
25222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025223 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025224 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025225 grep -v '^ *+' conftest.er1 >conftest.err
25226 rm -f conftest.er1
25227 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25229 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025230 { ac_try='test -z "$ac_c_werror_flag"
25231 || test ! -s conftest.err'
25232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25233 (eval $ac_try) 2>&5
25234 ac_status=$?
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); }; } &&
25237 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25239 (eval $ac_try) 2>&5
25240 ac_status=$?
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); }; }; then
25243 ac_cv_search_pthread_mutex_lock="none required"
25244else
25245 echo "$as_me: failed program was:" >&5
25246sed 's/^/| /' conftest.$ac_ext >&5
25247
25248fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025249rm -f conftest.err conftest.$ac_objext \
25250 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025251if test "$ac_cv_search_pthread_mutex_lock" = no; then
25252 for ac_lib in pthread; do
25253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25254 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025255/* confdefs.h. */
25256_ACEOF
25257cat confdefs.h >>conftest.$ac_ext
25258cat >>conftest.$ac_ext <<_ACEOF
25259/* end confdefs.h. */
25260
25261/* Override any gcc2 internal prototype to avoid an error. */
25262#ifdef __cplusplus
25263extern "C"
25264#endif
25265/* We use char because int might match the return type of a gcc2
25266 builtin and then its argument prototype would still apply. */
25267char pthread_mutex_lock ();
25268int
25269main ()
25270{
25271pthread_mutex_lock ();
25272 ;
25273 return 0;
25274}
25275_ACEOF
25276rm -f conftest.$ac_objext conftest$ac_exeext
25277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025278 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025279 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025280 grep -v '^ *+' conftest.er1 >conftest.err
25281 rm -f conftest.er1
25282 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025285 { ac_try='test -z "$ac_c_werror_flag"
25286 || test ! -s conftest.err'
25287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288 (eval $ac_try) 2>&5
25289 ac_status=$?
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); }; } &&
25292 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294 (eval $ac_try) 2>&5
25295 ac_status=$?
25296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297 (exit $ac_status); }; }; then
25298 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25299break
25300else
25301 echo "$as_me: failed program was:" >&5
25302sed 's/^/| /' conftest.$ac_ext >&5
25303
25304fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025305rm -f conftest.err conftest.$ac_objext \
25306 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025307 done
25308fi
25309LIBS=$ac_func_search_save_LIBS
25310fi
25311echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25312echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25313if test "$ac_cv_search_pthread_mutex_lock" != no; then
25314 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025315
John Criswell40468462004-09-24 21:19:06 +000025316cat >>confdefs.h <<\_ACEOF
25317#define HAVE_PTHREAD_MUTEX_LOCK 1
25318_ACEOF
25319
25320fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025321
Brian Gaekec9a410c2004-02-23 21:30:37 +000025322
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025323
John Criswell7a73b802003-06-30 21:59:07 +000025324echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25325echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25326if test "${ac_cv_header_stdc+set}" = set; then
25327 echo $ECHO_N "(cached) $ECHO_C" >&6
25328else
25329 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025330/* confdefs.h. */
25331_ACEOF
25332cat confdefs.h >>conftest.$ac_ext
25333cat >>conftest.$ac_ext <<_ACEOF
25334/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025335#include <stdlib.h>
25336#include <stdarg.h>
25337#include <string.h>
25338#include <float.h>
25339
John Criswell0c38eaf2003-09-10 15:17:25 +000025340int
25341main ()
25342{
25343
25344 ;
25345 return 0;
25346}
John Criswell7a73b802003-06-30 21:59:07 +000025347_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025348rm -f conftest.$ac_objext
25349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025350 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025352 grep -v '^ *+' conftest.er1 >conftest.err
25353 rm -f conftest.er1
25354 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025356 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025357 { ac_try='test -z "$ac_c_werror_flag"
25358 || test ! -s conftest.err'
25359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360 (eval $ac_try) 2>&5
25361 ac_status=$?
25362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); }; } &&
25364 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366 (eval $ac_try) 2>&5
25367 ac_status=$?
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025370 ac_cv_header_stdc=yes
25371else
25372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025373sed 's/^/| /' conftest.$ac_ext >&5
25374
25375ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025376fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025378
25379if test $ac_cv_header_stdc = yes; then
25380 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25381 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025382/* confdefs.h. */
25383_ACEOF
25384cat confdefs.h >>conftest.$ac_ext
25385cat >>conftest.$ac_ext <<_ACEOF
25386/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025387#include <string.h>
25388
25389_ACEOF
25390if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025391 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025392 :
25393else
25394 ac_cv_header_stdc=no
25395fi
25396rm -f conftest*
25397
25398fi
25399
25400if test $ac_cv_header_stdc = yes; then
25401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25402 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025403/* confdefs.h. */
25404_ACEOF
25405cat confdefs.h >>conftest.$ac_ext
25406cat >>conftest.$ac_ext <<_ACEOF
25407/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025408#include <stdlib.h>
25409
25410_ACEOF
25411if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025412 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025413 :
25414else
25415 ac_cv_header_stdc=no
25416fi
25417rm -f conftest*
25418
25419fi
25420
25421if test $ac_cv_header_stdc = yes; then
25422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25423 if test "$cross_compiling" = yes; then
25424 :
25425else
25426 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025427/* confdefs.h. */
25428_ACEOF
25429cat confdefs.h >>conftest.$ac_ext
25430cat >>conftest.$ac_ext <<_ACEOF
25431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025432#include <ctype.h>
25433#if ((' ' & 0x0FF) == 0x020)
25434# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25435# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25436#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025437# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025438 (('a' <= (c) && (c) <= 'i') \
25439 || ('j' <= (c) && (c) <= 'r') \
25440 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025441# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25442#endif
25443
25444#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25445int
25446main ()
25447{
25448 int i;
25449 for (i = 0; i < 256; i++)
25450 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025451 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025452 exit(2);
25453 exit (0);
25454}
25455_ACEOF
25456rm -f conftest$ac_exeext
25457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25458 (eval $ac_link) 2>&5
25459 ac_status=$?
25460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25464 ac_status=$?
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; }; then
25467 :
25468else
25469 echo "$as_me: program exited with status $ac_status" >&5
25470echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025471sed 's/^/| /' conftest.$ac_ext >&5
25472
John Criswell7a73b802003-06-30 21:59:07 +000025473( exit $ac_status )
25474ac_cv_header_stdc=no
25475fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025476rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025477fi
25478fi
25479fi
25480echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25481echo "${ECHO_T}$ac_cv_header_stdc" >&6
25482if test $ac_cv_header_stdc = yes; then
25483
25484cat >>confdefs.h <<\_ACEOF
25485#define STDC_HEADERS 1
25486_ACEOF
25487
25488fi
25489
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025490
John Criswell7a73b802003-06-30 21:59:07 +000025491echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25492echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25493if test "${ac_cv_header_sys_wait_h+set}" = set; then
25494 echo $ECHO_N "(cached) $ECHO_C" >&6
25495else
25496 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025497/* confdefs.h. */
25498_ACEOF
25499cat confdefs.h >>conftest.$ac_ext
25500cat >>conftest.$ac_ext <<_ACEOF
25501/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025502#include <sys/types.h>
25503#include <sys/wait.h>
25504#ifndef WEXITSTATUS
25505# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25506#endif
25507#ifndef WIFEXITED
25508# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25509#endif
25510
John Criswell7a73b802003-06-30 21:59:07 +000025511int
25512main ()
25513{
25514 int s;
25515 wait (&s);
25516 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25517 ;
25518 return 0;
25519}
25520_ACEOF
25521rm -f conftest.$ac_objext
25522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025523 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025524 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025525 grep -v '^ *+' conftest.er1 >conftest.err
25526 rm -f conftest.er1
25527 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25529 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025530 { ac_try='test -z "$ac_c_werror_flag"
25531 || test ! -s conftest.err'
25532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25533 (eval $ac_try) 2>&5
25534 ac_status=$?
25535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); }; } &&
25537 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25539 (eval $ac_try) 2>&5
25540 ac_status=$?
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); }; }; then
25543 ac_cv_header_sys_wait_h=yes
25544else
25545 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025546sed 's/^/| /' conftest.$ac_ext >&5
25547
John Criswell7a73b802003-06-30 21:59:07 +000025548ac_cv_header_sys_wait_h=no
25549fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025551fi
25552echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25553echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25554if test $ac_cv_header_sys_wait_h = yes; then
25555
25556cat >>confdefs.h <<\_ACEOF
25557#define HAVE_SYS_WAIT_H 1
25558_ACEOF
25559
25560fi
25561
25562
25563
25564
25565
25566
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025567for 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 +000025568do
25569as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25570if eval "test \"\${$as_ac_Header+set}\" = set"; then
25571 echo "$as_me:$LINENO: checking for $ac_header" >&5
25572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25573if eval "test \"\${$as_ac_Header+set}\" = set"; then
25574 echo $ECHO_N "(cached) $ECHO_C" >&6
25575fi
25576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25577echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25578else
25579 # Is the header compilable?
25580echo "$as_me:$LINENO: checking $ac_header usability" >&5
25581echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25582cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025583/* confdefs.h. */
25584_ACEOF
25585cat confdefs.h >>conftest.$ac_ext
25586cat >>conftest.$ac_ext <<_ACEOF
25587/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025588$ac_includes_default
25589#include <$ac_header>
25590_ACEOF
25591rm -f conftest.$ac_objext
25592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025593 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025594 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025595 grep -v '^ *+' conftest.er1 >conftest.err
25596 rm -f conftest.er1
25597 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025600 { ac_try='test -z "$ac_c_werror_flag"
25601 || test ! -s conftest.err'
25602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25603 (eval $ac_try) 2>&5
25604 ac_status=$?
25605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606 (exit $ac_status); }; } &&
25607 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25609 (eval $ac_try) 2>&5
25610 ac_status=$?
25611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); }; }; then
25613 ac_header_compiler=yes
25614else
25615 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025616sed 's/^/| /' conftest.$ac_ext >&5
25617
John Criswell7a73b802003-06-30 21:59:07 +000025618ac_header_compiler=no
25619fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25622echo "${ECHO_T}$ac_header_compiler" >&6
25623
25624# Is the header present?
25625echo "$as_me:$LINENO: checking $ac_header presence" >&5
25626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25627cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025628/* confdefs.h. */
25629_ACEOF
25630cat confdefs.h >>conftest.$ac_ext
25631cat >>conftest.$ac_ext <<_ACEOF
25632/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025633#include <$ac_header>
25634_ACEOF
25635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25637 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000025638 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000025639 rm -f conftest.er1
25640 cat conftest.err >&5
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } >/dev/null; then
25643 if test -s conftest.err; then
25644 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000025645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000025646 else
25647 ac_cpp_err=
25648 fi
25649else
25650 ac_cpp_err=yes
25651fi
25652if test -z "$ac_cpp_err"; then
25653 ac_header_preproc=yes
25654else
25655 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025656sed 's/^/| /' conftest.$ac_ext >&5
25657
John Criswell7a73b802003-06-30 21:59:07 +000025658 ac_header_preproc=no
25659fi
25660rm -f conftest.err conftest.$ac_ext
25661echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25662echo "${ECHO_T}$ac_header_preproc" >&6
25663
25664# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25666 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000025667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25671 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000025672 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000025673 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000025674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025686 (
25687 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000025688## ----------------------------------- ##
25689## Report this to llvmbugs@cs.uiuc.edu ##
25690## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000025691_ASBOX
25692 ) |
25693 sed "s/^/$as_me: WARNING: /" >&2
25694 ;;
John Criswell7a73b802003-06-30 21:59:07 +000025695esac
25696echo "$as_me:$LINENO: checking for $ac_header" >&5
25697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25698if eval "test \"\${$as_ac_Header+set}\" = set"; then
25699 echo $ECHO_N "(cached) $ECHO_C" >&6
25700else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025701 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000025702fi
25703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25705
25706fi
25707if test `eval echo '${'$as_ac_Header'}'` = yes; then
25708 cat >>confdefs.h <<_ACEOF
25709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25710_ACEOF
25711
25712fi
25713
25714done
25715
25716
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025717
25718
25719
25720
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025721for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025722do
25723as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25724if eval "test \"\${$as_ac_Header+set}\" = set"; then
25725 echo "$as_me:$LINENO: checking for $ac_header" >&5
25726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25727if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025728 echo $ECHO_N "(cached) $ECHO_C" >&6
25729fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025732else
25733 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025734echo "$as_me:$LINENO: checking $ac_header usability" >&5
25735echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025736cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025737/* confdefs.h. */
25738_ACEOF
25739cat confdefs.h >>conftest.$ac_ext
25740cat >>conftest.$ac_ext <<_ACEOF
25741/* end confdefs.h. */
25742$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025743#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025744_ACEOF
25745rm -f conftest.$ac_objext
25746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025747 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025748 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025749 grep -v '^ *+' conftest.er1 >conftest.err
25750 rm -f conftest.er1
25751 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025754 { ac_try='test -z "$ac_c_werror_flag"
25755 || test ! -s conftest.err'
25756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25757 (eval $ac_try) 2>&5
25758 ac_status=$?
25759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 (exit $ac_status); }; } &&
25761 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25763 (eval $ac_try) 2>&5
25764 ac_status=$?
25765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766 (exit $ac_status); }; }; then
25767 ac_header_compiler=yes
25768else
25769 echo "$as_me: failed program was:" >&5
25770sed 's/^/| /' conftest.$ac_ext >&5
25771
25772ac_header_compiler=no
25773fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025775echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25776echo "${ECHO_T}$ac_header_compiler" >&6
25777
25778# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025779echo "$as_me:$LINENO: checking $ac_header presence" >&5
25780echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025781cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025782/* confdefs.h. */
25783_ACEOF
25784cat confdefs.h >>conftest.$ac_ext
25785cat >>conftest.$ac_ext <<_ACEOF
25786/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025787#include <$ac_header>
25788_ACEOF
25789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25791 ac_status=$?
25792 grep -v '^ *+' conftest.er1 >conftest.err
25793 rm -f conftest.er1
25794 cat conftest.err >&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); } >/dev/null; then
25797 if test -s conftest.err; then
25798 ac_cpp_err=$ac_c_preproc_warn_flag
25799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25800 else
25801 ac_cpp_err=
25802 fi
25803else
25804 ac_cpp_err=yes
25805fi
25806if test -z "$ac_cpp_err"; then
25807 ac_header_preproc=yes
25808else
25809 echo "$as_me: failed program was:" >&5
25810sed 's/^/| /' conftest.$ac_ext >&5
25811
25812 ac_header_preproc=no
25813fi
25814rm -f conftest.err conftest.$ac_ext
25815echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25816echo "${ECHO_T}$ac_header_preproc" >&6
25817
25818# So? What about this header?
25819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25820 yes:no: )
25821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25825 ac_header_preproc=yes
25826 ;;
25827 no:yes:* )
25828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25835echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25840 (
25841 cat <<\_ASBOX
25842## ----------------------------------- ##
25843## Report this to llvmbugs@cs.uiuc.edu ##
25844## ----------------------------------- ##
25845_ASBOX
25846 ) |
25847 sed "s/^/$as_me: WARNING: /" >&2
25848 ;;
25849esac
25850echo "$as_me:$LINENO: checking for $ac_header" >&5
25851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25852if eval "test \"\${$as_ac_Header+set}\" = set"; then
25853 echo $ECHO_N "(cached) $ECHO_C" >&6
25854else
25855 eval "$as_ac_Header=\$ac_header_preproc"
25856fi
25857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25859
25860fi
25861if test `eval echo '${'$as_ac_Header'}'` = yes; then
25862 cat >>confdefs.h <<_ACEOF
25863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25864_ACEOF
25865
25866fi
25867
25868done
25869
25870
25871
25872
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025873for ac_header in malloc.h unistd.h windows.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025874do
25875as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25876if eval "test \"\${$as_ac_Header+set}\" = set"; then
25877 echo "$as_me:$LINENO: checking for $ac_header" >&5
25878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25879if eval "test \"\${$as_ac_Header+set}\" = set"; then
25880 echo $ECHO_N "(cached) $ECHO_C" >&6
25881fi
25882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25884else
25885 # Is the header compilable?
25886echo "$as_me:$LINENO: checking $ac_header usability" >&5
25887echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25888cat >conftest.$ac_ext <<_ACEOF
25889/* confdefs.h. */
25890_ACEOF
25891cat confdefs.h >>conftest.$ac_ext
25892cat >>conftest.$ac_ext <<_ACEOF
25893/* end confdefs.h. */
25894$ac_includes_default
25895#include <$ac_header>
25896_ACEOF
25897rm -f conftest.$ac_objext
25898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25899 (eval $ac_compile) 2>conftest.er1
25900 ac_status=$?
25901 grep -v '^ *+' conftest.er1 >conftest.err
25902 rm -f conftest.er1
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } &&
25906 { ac_try='test -z "$ac_c_werror_flag"
25907 || test ! -s conftest.err'
25908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25909 (eval $ac_try) 2>&5
25910 ac_status=$?
25911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); }; } &&
25913 { ac_try='test -s conftest.$ac_objext'
25914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915 (eval $ac_try) 2>&5
25916 ac_status=$?
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); }; }; then
25919 ac_header_compiler=yes
25920else
25921 echo "$as_me: failed program was:" >&5
25922sed 's/^/| /' conftest.$ac_ext >&5
25923
25924ac_header_compiler=no
25925fi
25926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25927echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25928echo "${ECHO_T}$ac_header_compiler" >&6
25929
25930# Is the header present?
25931echo "$as_me:$LINENO: checking $ac_header presence" >&5
25932echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25933cat >conftest.$ac_ext <<_ACEOF
25934/* confdefs.h. */
25935_ACEOF
25936cat confdefs.h >>conftest.$ac_ext
25937cat >>conftest.$ac_ext <<_ACEOF
25938/* end confdefs.h. */
25939#include <$ac_header>
25940_ACEOF
25941if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25943 ac_status=$?
25944 grep -v '^ *+' conftest.er1 >conftest.err
25945 rm -f conftest.er1
25946 cat conftest.err >&5
25947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25948 (exit $ac_status); } >/dev/null; then
25949 if test -s conftest.err; then
25950 ac_cpp_err=$ac_c_preproc_warn_flag
25951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25952 else
25953 ac_cpp_err=
25954 fi
25955else
25956 ac_cpp_err=yes
25957fi
25958if test -z "$ac_cpp_err"; then
25959 ac_header_preproc=yes
25960else
25961 echo "$as_me: failed program was:" >&5
25962sed 's/^/| /' conftest.$ac_ext >&5
25963
25964 ac_header_preproc=no
25965fi
25966rm -f conftest.err conftest.$ac_ext
25967echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25968echo "${ECHO_T}$ac_header_preproc" >&6
25969
25970# So? What about this header?
25971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25972 yes:no: )
25973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25974echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25976echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25977 ac_header_preproc=yes
25978 ;;
25979 no:yes:* )
25980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25981echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25983echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25985echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25987echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25991echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25992 (
25993 cat <<\_ASBOX
25994## ----------------------------------- ##
25995## Report this to llvmbugs@cs.uiuc.edu ##
25996## ----------------------------------- ##
25997_ASBOX
25998 ) |
25999 sed "s/^/$as_me: WARNING: /" >&2
26000 ;;
26001esac
26002echo "$as_me:$LINENO: checking for $ac_header" >&5
26003echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26004if eval "test \"\${$as_ac_Header+set}\" = set"; then
26005 echo $ECHO_N "(cached) $ECHO_C" >&6
26006else
26007 eval "$as_ac_Header=\$ac_header_preproc"
26008fi
26009echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26010echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26011
26012fi
26013if test `eval echo '${'$as_ac_Header'}'` = yes; then
26014 cat >>confdefs.h <<_ACEOF
26015#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26016_ACEOF
26017
26018fi
26019
26020done
26021
26022echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26023echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26024if test "${ac_cv_header_time+set}" = set; then
26025 echo $ECHO_N "(cached) $ECHO_C" >&6
26026else
26027 cat >conftest.$ac_ext <<_ACEOF
26028/* confdefs.h. */
26029_ACEOF
26030cat confdefs.h >>conftest.$ac_ext
26031cat >>conftest.$ac_ext <<_ACEOF
26032/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026033#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026034#include <sys/time.h>
26035#include <time.h>
26036
26037int
26038main ()
26039{
26040if ((struct tm *) 0)
26041return 0;
26042 ;
26043 return 0;
26044}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026045_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026046rm -f conftest.$ac_objext
26047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26048 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026049 ac_status=$?
26050 grep -v '^ *+' conftest.er1 >conftest.err
26051 rm -f conftest.er1
26052 cat conftest.err >&5
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026054 (exit $ac_status); } &&
26055 { ac_try='test -z "$ac_c_werror_flag"
26056 || test ! -s conftest.err'
26057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26058 (eval $ac_try) 2>&5
26059 ac_status=$?
26060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061 (exit $ac_status); }; } &&
26062 { ac_try='test -s conftest.$ac_objext'
26063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26064 (eval $ac_try) 2>&5
26065 ac_status=$?
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); }; }; then
26068 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026069else
26070 echo "$as_me: failed program was:" >&5
26071sed 's/^/| /' conftest.$ac_ext >&5
26072
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026073ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026074fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26076fi
26077echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26078echo "${ECHO_T}$ac_cv_header_time" >&6
26079if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026080
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026081cat >>confdefs.h <<\_ACEOF
26082#define TIME_WITH_SYS_TIME 1
26083_ACEOF
26084
26085fi
26086
26087echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26088echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26089if test "${ac_cv_header_mmap_anon+set}" = set; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026090 echo $ECHO_N "(cached) $ECHO_C" >&6
26091else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026092 ac_ext=c
26093ac_cpp='$CPP $CPPFLAGS'
26094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26096ac_compiler_gnu=$ac_cv_c_compiler_gnu
26097
26098 cat >conftest.$ac_ext <<_ACEOF
26099/* confdefs.h. */
26100_ACEOF
26101cat confdefs.h >>conftest.$ac_ext
26102cat >>conftest.$ac_ext <<_ACEOF
26103/* end confdefs.h. */
26104#include <sys/mman.h>
26105#include <unistd.h>
26106#include <fcntl.h>
26107int
26108main ()
26109{
26110mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26111 ;
26112 return 0;
26113}
26114_ACEOF
26115rm -f conftest.$ac_objext
26116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26117 (eval $ac_compile) 2>conftest.er1
26118 ac_status=$?
26119 grep -v '^ *+' conftest.er1 >conftest.err
26120 rm -f conftest.er1
26121 cat conftest.err >&5
26122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123 (exit $ac_status); } &&
26124 { ac_try='test -z "$ac_c_werror_flag"
26125 || test ! -s conftest.err'
26126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26127 (eval $ac_try) 2>&5
26128 ac_status=$?
26129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130 (exit $ac_status); }; } &&
26131 { ac_try='test -s conftest.$ac_objext'
26132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26133 (eval $ac_try) 2>&5
26134 ac_status=$?
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); }; }; then
26137 ac_cv_header_mmap_anon=yes
26138else
26139 echo "$as_me: failed program was:" >&5
26140sed 's/^/| /' conftest.$ac_ext >&5
26141
26142ac_cv_header_mmap_anon=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026143fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26145 ac_ext=c
26146ac_cpp='$CPP $CPPFLAGS'
26147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26149ac_compiler_gnu=$ac_cv_c_compiler_gnu
26150
26151
26152fi
26153echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26154echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26155if test "$ac_cv_header_mmap_anon" = yes; then
26156
26157cat >>confdefs.h <<\_ACEOF
26158#define HAVE_MMAP_ANONYMOUS
26159_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026160
26161fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026162
26163
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026164
26165
26166for ac_header in inttypes.h stdint.h
26167do
26168as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26169if eval "test \"\${$as_ac_Header+set}\" = set"; then
26170 echo "$as_me:$LINENO: checking for $ac_header" >&5
26171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26172if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026173 echo $ECHO_N "(cached) $ECHO_C" >&6
26174fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026177else
26178 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026179echo "$as_me:$LINENO: checking $ac_header usability" >&5
26180echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026181cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026182/* confdefs.h. */
26183_ACEOF
26184cat confdefs.h >>conftest.$ac_ext
26185cat >>conftest.$ac_ext <<_ACEOF
26186/* end confdefs.h. */
26187$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026188#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026189_ACEOF
26190rm -f conftest.$ac_objext
26191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026192 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026193 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026194 grep -v '^ *+' conftest.er1 >conftest.err
26195 rm -f conftest.er1
26196 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026199 { ac_try='test -z "$ac_c_werror_flag"
26200 || test ! -s conftest.err'
26201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26202 (eval $ac_try) 2>&5
26203 ac_status=$?
26204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); }; } &&
26206 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26208 (eval $ac_try) 2>&5
26209 ac_status=$?
26210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); }; }; then
26212 ac_header_compiler=yes
26213else
26214 echo "$as_me: failed program was:" >&5
26215sed 's/^/| /' conftest.$ac_ext >&5
26216
26217ac_header_compiler=no
26218fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026220echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26221echo "${ECHO_T}$ac_header_compiler" >&6
26222
26223# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026224echo "$as_me:$LINENO: checking $ac_header presence" >&5
26225echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026226cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026227/* confdefs.h. */
26228_ACEOF
26229cat confdefs.h >>conftest.$ac_ext
26230cat >>conftest.$ac_ext <<_ACEOF
26231/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026232#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026233_ACEOF
26234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26236 ac_status=$?
26237 grep -v '^ *+' conftest.er1 >conftest.err
26238 rm -f conftest.er1
26239 cat conftest.err >&5
26240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241 (exit $ac_status); } >/dev/null; then
26242 if test -s conftest.err; then
26243 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026245 else
26246 ac_cpp_err=
26247 fi
26248else
26249 ac_cpp_err=yes
26250fi
26251if test -z "$ac_cpp_err"; then
26252 ac_header_preproc=yes
26253else
26254 echo "$as_me: failed program was:" >&5
26255sed 's/^/| /' conftest.$ac_ext >&5
26256
26257 ac_header_preproc=no
26258fi
26259rm -f conftest.err conftest.$ac_ext
26260echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26261echo "${ECHO_T}$ac_header_preproc" >&6
26262
26263# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026264case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26265 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26267echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26269echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026270 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026271 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026272 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26274echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26276echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26278echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26280echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26282echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26284echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026285 (
26286 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026287## ----------------------------------- ##
26288## Report this to llvmbugs@cs.uiuc.edu ##
26289## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026290_ASBOX
26291 ) |
26292 sed "s/^/$as_me: WARNING: /" >&2
26293 ;;
26294esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026295echo "$as_me:$LINENO: checking for $ac_header" >&5
26296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26297if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026298 echo $ECHO_N "(cached) $ECHO_C" >&6
26299else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026300 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026301fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026304
26305fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026306if test `eval echo '${'$as_ac_Header'}'` = yes; then
26307 cat >>confdefs.h <<_ACEOF
26308#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026309_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026310
26311fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026312
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026313done
26314
John Criswell7ed43ad2004-07-19 16:12:29 +000026315
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026316
John Criswell7a73b802003-06-30 21:59:07 +000026317echo "$as_me:$LINENO: checking for pid_t" >&5
26318echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26319if test "${ac_cv_type_pid_t+set}" = set; then
26320 echo $ECHO_N "(cached) $ECHO_C" >&6
26321else
26322 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026323/* confdefs.h. */
26324_ACEOF
26325cat confdefs.h >>conftest.$ac_ext
26326cat >>conftest.$ac_ext <<_ACEOF
26327/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026328$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026329int
26330main ()
26331{
26332if ((pid_t *) 0)
26333 return 0;
26334if (sizeof (pid_t))
26335 return 0;
26336 ;
26337 return 0;
26338}
26339_ACEOF
26340rm -f conftest.$ac_objext
26341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026342 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026344 grep -v '^ *+' conftest.er1 >conftest.err
26345 rm -f conftest.er1
26346 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026349 { ac_try='test -z "$ac_c_werror_flag"
26350 || test ! -s conftest.err'
26351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26352 (eval $ac_try) 2>&5
26353 ac_status=$?
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); }; } &&
26356 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26358 (eval $ac_try) 2>&5
26359 ac_status=$?
26360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26361 (exit $ac_status); }; }; then
26362 ac_cv_type_pid_t=yes
26363else
26364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026365sed 's/^/| /' conftest.$ac_ext >&5
26366
John Criswell7a73b802003-06-30 21:59:07 +000026367ac_cv_type_pid_t=no
26368fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026370fi
26371echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26372echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26373if test $ac_cv_type_pid_t = yes; then
26374 :
26375else
26376
26377cat >>confdefs.h <<_ACEOF
26378#define pid_t int
26379_ACEOF
26380
26381fi
26382
26383echo "$as_me:$LINENO: checking for size_t" >&5
26384echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26385if test "${ac_cv_type_size_t+set}" = set; then
26386 echo $ECHO_N "(cached) $ECHO_C" >&6
26387else
26388 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026389/* confdefs.h. */
26390_ACEOF
26391cat confdefs.h >>conftest.$ac_ext
26392cat >>conftest.$ac_ext <<_ACEOF
26393/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026394$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026395int
26396main ()
26397{
26398if ((size_t *) 0)
26399 return 0;
26400if (sizeof (size_t))
26401 return 0;
26402 ;
26403 return 0;
26404}
26405_ACEOF
26406rm -f conftest.$ac_objext
26407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026408 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026409 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026410 grep -v '^ *+' conftest.er1 >conftest.err
26411 rm -f conftest.er1
26412 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026415 { ac_try='test -z "$ac_c_werror_flag"
26416 || test ! -s conftest.err'
26417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418 (eval $ac_try) 2>&5
26419 ac_status=$?
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); }; } &&
26422 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26424 (eval $ac_try) 2>&5
26425 ac_status=$?
26426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427 (exit $ac_status); }; }; then
26428 ac_cv_type_size_t=yes
26429else
26430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026431sed 's/^/| /' conftest.$ac_ext >&5
26432
John Criswell7a73b802003-06-30 21:59:07 +000026433ac_cv_type_size_t=no
26434fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026436fi
26437echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26438echo "${ECHO_T}$ac_cv_type_size_t" >&6
26439if test $ac_cv_type_size_t = yes; then
26440 :
26441else
26442
26443cat >>confdefs.h <<_ACEOF
26444#define size_t unsigned
26445_ACEOF
26446
26447fi
26448
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026449echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26450echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26451if test "${ac_cv_type_signal+set}" = set; then
26452 echo $ECHO_N "(cached) $ECHO_C" >&6
26453else
26454 cat >conftest.$ac_ext <<_ACEOF
26455/* confdefs.h. */
26456_ACEOF
26457cat confdefs.h >>conftest.$ac_ext
26458cat >>conftest.$ac_ext <<_ACEOF
26459/* end confdefs.h. */
26460#include <sys/types.h>
26461#include <signal.h>
26462#ifdef signal
26463# undef signal
26464#endif
26465#ifdef __cplusplus
26466extern "C" void (*signal (int, void (*)(int)))(int);
26467#else
26468void (*signal ()) ();
26469#endif
26470
26471int
26472main ()
26473{
26474int i;
26475 ;
26476 return 0;
26477}
26478_ACEOF
26479rm -f conftest.$ac_objext
26480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26481 (eval $ac_compile) 2>conftest.er1
26482 ac_status=$?
26483 grep -v '^ *+' conftest.er1 >conftest.err
26484 rm -f conftest.er1
26485 cat conftest.err >&5
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); } &&
26488 { ac_try='test -z "$ac_c_werror_flag"
26489 || test ! -s conftest.err'
26490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26491 (eval $ac_try) 2>&5
26492 ac_status=$?
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); }; } &&
26495 { ac_try='test -s conftest.$ac_objext'
26496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26497 (eval $ac_try) 2>&5
26498 ac_status=$?
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); }; }; then
26501 ac_cv_type_signal=void
26502else
26503 echo "$as_me: failed program was:" >&5
26504sed 's/^/| /' conftest.$ac_ext >&5
26505
26506ac_cv_type_signal=int
26507fi
26508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26509fi
26510echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26511echo "${ECHO_T}$ac_cv_type_signal" >&6
26512
26513cat >>confdefs.h <<_ACEOF
26514#define RETSIGTYPE $ac_cv_type_signal
26515_ACEOF
26516
26517
26518echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26519echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26520if test "${ac_cv_struct_tm+set}" = set; then
26521 echo $ECHO_N "(cached) $ECHO_C" >&6
26522else
26523 cat >conftest.$ac_ext <<_ACEOF
26524/* confdefs.h. */
26525_ACEOF
26526cat confdefs.h >>conftest.$ac_ext
26527cat >>conftest.$ac_ext <<_ACEOF
26528/* end confdefs.h. */
26529#include <sys/types.h>
26530#include <time.h>
26531
26532int
26533main ()
26534{
26535struct tm *tp; tp->tm_sec;
26536 ;
26537 return 0;
26538}
26539_ACEOF
26540rm -f conftest.$ac_objext
26541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26542 (eval $ac_compile) 2>conftest.er1
26543 ac_status=$?
26544 grep -v '^ *+' conftest.er1 >conftest.err
26545 rm -f conftest.er1
26546 cat conftest.err >&5
26547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26548 (exit $ac_status); } &&
26549 { ac_try='test -z "$ac_c_werror_flag"
26550 || test ! -s conftest.err'
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26553 ac_status=$?
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; } &&
26556 { ac_try='test -s conftest.$ac_objext'
26557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); }; }; then
26562 ac_cv_struct_tm=time.h
26563else
26564 echo "$as_me: failed program was:" >&5
26565sed 's/^/| /' conftest.$ac_ext >&5
26566
26567ac_cv_struct_tm=sys/time.h
26568fi
26569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26570fi
26571echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26572echo "${ECHO_T}$ac_cv_struct_tm" >&6
26573if test $ac_cv_struct_tm = sys/time.h; then
26574
26575cat >>confdefs.h <<\_ACEOF
26576#define TM_IN_SYS_TIME 1
26577_ACEOF
26578
26579fi
26580
John Criswell7a73b802003-06-30 21:59:07 +000026581echo "$as_me:$LINENO: checking for int64_t" >&5
26582echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26583if test "${ac_cv_type_int64_t+set}" = set; then
26584 echo $ECHO_N "(cached) $ECHO_C" >&6
26585else
26586 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026587/* confdefs.h. */
26588_ACEOF
26589cat confdefs.h >>conftest.$ac_ext
26590cat >>conftest.$ac_ext <<_ACEOF
26591/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026592$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026593int
26594main ()
26595{
26596if ((int64_t *) 0)
26597 return 0;
26598if (sizeof (int64_t))
26599 return 0;
26600 ;
26601 return 0;
26602}
26603_ACEOF
26604rm -f conftest.$ac_objext
26605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026606 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026607 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026608 grep -v '^ *+' conftest.er1 >conftest.err
26609 rm -f conftest.er1
26610 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026613 { ac_try='test -z "$ac_c_werror_flag"
26614 || test ! -s conftest.err'
26615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26616 (eval $ac_try) 2>&5
26617 ac_status=$?
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); }; } &&
26620 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26622 (eval $ac_try) 2>&5
26623 ac_status=$?
26624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26625 (exit $ac_status); }; }; then
26626 ac_cv_type_int64_t=yes
26627else
26628 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026629sed 's/^/| /' conftest.$ac_ext >&5
26630
John Criswell7a73b802003-06-30 21:59:07 +000026631ac_cv_type_int64_t=no
26632fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026634fi
26635echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26636echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26637if test $ac_cv_type_int64_t = yes; then
26638
26639cat >>confdefs.h <<_ACEOF
26640#define HAVE_INT64_T 1
26641_ACEOF
26642
26643
26644else
26645 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26646echo "$as_me: error: Type int64_t required but not found" >&2;}
26647 { (exit 1); exit 1; }; }
26648fi
26649
26650echo "$as_me:$LINENO: checking for uint64_t" >&5
26651echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26652if test "${ac_cv_type_uint64_t+set}" = set; then
26653 echo $ECHO_N "(cached) $ECHO_C" >&6
26654else
26655 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026656/* confdefs.h. */
26657_ACEOF
26658cat confdefs.h >>conftest.$ac_ext
26659cat >>conftest.$ac_ext <<_ACEOF
26660/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026661$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026662int
26663main ()
26664{
26665if ((uint64_t *) 0)
26666 return 0;
26667if (sizeof (uint64_t))
26668 return 0;
26669 ;
26670 return 0;
26671}
26672_ACEOF
26673rm -f conftest.$ac_objext
26674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026675 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026676 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026677 grep -v '^ *+' conftest.er1 >conftest.err
26678 rm -f conftest.er1
26679 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026682 { ac_try='test -z "$ac_c_werror_flag"
26683 || test ! -s conftest.err'
26684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26685 (eval $ac_try) 2>&5
26686 ac_status=$?
26687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); }; } &&
26689 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26691 (eval $ac_try) 2>&5
26692 ac_status=$?
26693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694 (exit $ac_status); }; }; then
26695 ac_cv_type_uint64_t=yes
26696else
26697 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026698sed 's/^/| /' conftest.$ac_ext >&5
26699
John Criswell7a73b802003-06-30 21:59:07 +000026700ac_cv_type_uint64_t=no
26701fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026703fi
26704echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26705echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26706if test $ac_cv_type_uint64_t = yes; then
26707
26708cat >>confdefs.h <<_ACEOF
26709#define HAVE_UINT64_T 1
26710_ACEOF
26711
26712
26713else
Misha Brukmanceca9042004-09-02 23:02:30 +000026714 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000026715echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26716if test "${ac_cv_type_u_int64_t+set}" = set; then
26717 echo $ECHO_N "(cached) $ECHO_C" >&6
26718else
26719 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000026720/* confdefs.h. */
26721_ACEOF
26722cat confdefs.h >>conftest.$ac_ext
26723cat >>conftest.$ac_ext <<_ACEOF
26724/* end confdefs.h. */
26725$ac_includes_default
26726int
26727main ()
26728{
26729if ((u_int64_t *) 0)
26730 return 0;
26731if (sizeof (u_int64_t))
26732 return 0;
26733 ;
26734 return 0;
26735}
26736_ACEOF
26737rm -f conftest.$ac_objext
26738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026739 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000026740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026741 grep -v '^ *+' conftest.er1 >conftest.err
26742 rm -f conftest.er1
26743 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000026744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026746 { ac_try='test -z "$ac_c_werror_flag"
26747 || test ! -s conftest.err'
26748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749 (eval $ac_try) 2>&5
26750 ac_status=$?
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); }; } &&
26753 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000026754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26755 (eval $ac_try) 2>&5
26756 ac_status=$?
26757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758 (exit $ac_status); }; }; then
26759 ac_cv_type_u_int64_t=yes
26760else
26761 echo "$as_me: failed program was:" >&5
26762sed 's/^/| /' conftest.$ac_ext >&5
26763
26764ac_cv_type_u_int64_t=no
26765fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000026767fi
26768echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26769echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26770if test $ac_cv_type_u_int64_t = yes; then
26771
26772cat >>confdefs.h <<_ACEOF
26773#define HAVE_U_INT64_T 1
26774_ACEOF
26775
26776
Misha Brukmanceca9042004-09-02 23:02:30 +000026777else
26778 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26779echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26780 { (exit 1); exit 1; }; }
26781fi
26782
John Criswell679ff312004-09-02 18:44:44 +000026783fi
26784
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026785
26786
26787
26788
26789
26790
26791
26792
Reid Spencerab5eaea2004-12-20 00:59:04 +000026793for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
26794do
26795as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26796echo "$as_me:$LINENO: checking for $ac_func" >&5
26797echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26798if eval "test \"\${$as_ac_var+set}\" = set"; then
26799 echo $ECHO_N "(cached) $ECHO_C" >&6
26800else
26801 cat >conftest.$ac_ext <<_ACEOF
26802/* confdefs.h. */
26803_ACEOF
26804cat confdefs.h >>conftest.$ac_ext
26805cat >>conftest.$ac_ext <<_ACEOF
26806/* end confdefs.h. */
26807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26809#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000026810
Reid Spencerab5eaea2004-12-20 00:59:04 +000026811/* System header to define __stub macros and hopefully few prototypes,
26812 which can conflict with char $ac_func (); below.
26813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26814 <limits.h> exists even on freestanding compilers. */
26815
26816#ifdef __STDC__
26817# include <limits.h>
26818#else
26819# include <assert.h>
26820#endif
26821
26822#undef $ac_func
26823
26824/* Override any gcc2 internal prototype to avoid an error. */
26825#ifdef __cplusplus
26826extern "C"
26827{
26828#endif
26829/* We use char because int might match the return type of a gcc2
26830 builtin and then its argument prototype would still apply. */
26831char $ac_func ();
26832/* The GNU C library defines this for functions which it implements
26833 to always fail with ENOSYS. Some functions are actually named
26834 something starting with __ and the normal name is an alias. */
26835#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26836choke me
26837#else
26838char (*f) () = $ac_func;
26839#endif
26840#ifdef __cplusplus
26841}
26842#endif
26843
26844int
26845main ()
26846{
26847return f != $ac_func;
26848 ;
26849 return 0;
26850}
26851_ACEOF
26852rm -f conftest.$ac_objext conftest$ac_exeext
26853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26854 (eval $ac_link) 2>conftest.er1
26855 ac_status=$?
26856 grep -v '^ *+' conftest.er1 >conftest.err
26857 rm -f conftest.er1
26858 cat conftest.err >&5
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); } &&
26861 { ac_try='test -z "$ac_c_werror_flag"
26862 || test ! -s conftest.err'
26863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26864 (eval $ac_try) 2>&5
26865 ac_status=$?
26866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26867 (exit $ac_status); }; } &&
26868 { ac_try='test -s conftest$ac_exeext'
26869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26870 (eval $ac_try) 2>&5
26871 ac_status=$?
26872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26873 (exit $ac_status); }; }; then
26874 eval "$as_ac_var=yes"
26875else
26876 echo "$as_me: failed program was:" >&5
26877sed 's/^/| /' conftest.$ac_ext >&5
26878
26879eval "$as_ac_var=no"
26880fi
26881rm -f conftest.err conftest.$ac_objext \
26882 conftest$ac_exeext conftest.$ac_ext
26883fi
26884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26886if test `eval echo '${'$as_ac_var'}'` = yes; then
26887 cat >>confdefs.h <<_ACEOF
26888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26889_ACEOF
26890
26891fi
26892done
26893
26894
26895
26896
26897for ac_func in mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026898do
26899as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26900echo "$as_me:$LINENO: checking for $ac_func" >&5
26901echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26902if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026903 echo $ECHO_N "(cached) $ECHO_C" >&6
26904else
26905 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026906/* confdefs.h. */
26907_ACEOF
26908cat confdefs.h >>conftest.$ac_ext
26909cat >>conftest.$ac_ext <<_ACEOF
26910/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026911/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26913#define $ac_func innocuous_$ac_func
26914
26915/* System header to define __stub macros and hopefully few prototypes,
26916 which can conflict with char $ac_func (); below.
26917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26918 <limits.h> exists even on freestanding compilers. */
26919
26920#ifdef __STDC__
26921# include <limits.h>
26922#else
26923# include <assert.h>
26924#endif
26925
26926#undef $ac_func
26927
26928/* Override any gcc2 internal prototype to avoid an error. */
26929#ifdef __cplusplus
26930extern "C"
26931{
26932#endif
26933/* We use char because int might match the return type of a gcc2
26934 builtin and then its argument prototype would still apply. */
26935char $ac_func ();
26936/* The GNU C library defines this for functions which it implements
26937 to always fail with ENOSYS. Some functions are actually named
26938 something starting with __ and the normal name is an alias. */
26939#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26940choke me
26941#else
26942char (*f) () = $ac_func;
26943#endif
26944#ifdef __cplusplus
26945}
26946#endif
John Criswell7a73b802003-06-30 21:59:07 +000026947
John Criswell7a73b802003-06-30 21:59:07 +000026948int
26949main ()
26950{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026951return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026952 ;
26953 return 0;
26954}
26955_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026956rm -f conftest.$ac_objext conftest$ac_exeext
26957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26958 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026959 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026960 grep -v '^ *+' conftest.er1 >conftest.err
26961 rm -f conftest.er1
26962 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026965 { ac_try='test -z "$ac_c_werror_flag"
26966 || test ! -s conftest.err'
26967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26968 (eval $ac_try) 2>&5
26969 ac_status=$?
26970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026972 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26974 (eval $ac_try) 2>&5
26975 ac_status=$?
26976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026978 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026979else
26980 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026981sed 's/^/| /' conftest.$ac_ext >&5
26982
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026983eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026984fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026985rm -f conftest.err conftest.$ac_objext \
26986 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026987fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26989echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26990if test `eval echo '${'$as_ac_var'}'` = yes; then
26991 cat >>confdefs.h <<_ACEOF
26992#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026993_ACEOF
26994
26995fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026996done
John Criswell7a73b802003-06-30 21:59:07 +000026997
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026998
26999
27000
Reid Spencer6af3d262004-12-15 04:01:48 +000027001
27002
Reid Spencerab5eaea2004-12-20 00:59:04 +000027003for ac_func in realpath strdup strtoq strtoll sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027004do
27005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27006echo "$as_me:$LINENO: checking for $ac_func" >&5
27007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27008if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027009 echo $ECHO_N "(cached) $ECHO_C" >&6
27010else
27011 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027012/* confdefs.h. */
27013_ACEOF
27014cat confdefs.h >>conftest.$ac_ext
27015cat >>conftest.$ac_ext <<_ACEOF
27016/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27019#define $ac_func innocuous_$ac_func
27020
27021/* System header to define __stub macros and hopefully few prototypes,
27022 which can conflict with char $ac_func (); below.
27023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27024 <limits.h> exists even on freestanding compilers. */
27025
27026#ifdef __STDC__
27027# include <limits.h>
27028#else
27029# include <assert.h>
27030#endif
27031
27032#undef $ac_func
27033
27034/* Override any gcc2 internal prototype to avoid an error. */
27035#ifdef __cplusplus
27036extern "C"
27037{
27038#endif
27039/* We use char because int might match the return type of a gcc2
27040 builtin and then its argument prototype would still apply. */
27041char $ac_func ();
27042/* The GNU C library defines this for functions which it implements
27043 to always fail with ENOSYS. Some functions are actually named
27044 something starting with __ and the normal name is an alias. */
27045#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27046choke me
27047#else
27048char (*f) () = $ac_func;
27049#endif
27050#ifdef __cplusplus
27051}
27052#endif
John Criswell7a73b802003-06-30 21:59:07 +000027053
John Criswell7a73b802003-06-30 21:59:07 +000027054int
27055main ()
27056{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027057return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027058 ;
27059 return 0;
27060}
27061_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027062rm -f conftest.$ac_objext conftest$ac_exeext
27063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27064 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027065 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027066 grep -v '^ *+' conftest.er1 >conftest.err
27067 rm -f conftest.er1
27068 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27070 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027071 { ac_try='test -z "$ac_c_werror_flag"
27072 || test ! -s conftest.err'
27073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27074 (eval $ac_try) 2>&5
27075 ac_status=$?
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027078 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27080 (eval $ac_try) 2>&5
27081 ac_status=$?
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027084 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027085else
27086 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027087sed 's/^/| /' conftest.$ac_ext >&5
27088
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027089eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027090fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027091rm -f conftest.err conftest.$ac_objext \
27092 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027093fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27095echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27096if test `eval echo '${'$as_ac_var'}'` = yes; then
27097 cat >>confdefs.h <<_ACEOF
27098#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027099_ACEOF
27100
27101fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027102done
John Criswell7a73b802003-06-30 21:59:07 +000027103
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027104echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27105echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027106if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027107 echo $ECHO_N "(cached) $ECHO_C" >&6
27108else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027109 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027110ac_cpp='$CPP $CPPFLAGS'
27111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27113ac_compiler_gnu=$ac_cv_c_compiler_gnu
27114
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027115 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027116 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027117else
27118 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027119
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027120 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027121_ACEOF
27122cat confdefs.h >>conftest.$ac_ext
27123cat >>conftest.$ac_ext <<_ACEOF
27124/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027125
John Criswella0137d32003-10-13 16:22:01 +000027126#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027127#include <stdlib.h>
27128
John Criswella0137d32003-10-13 16:22:01 +000027129int
27130main ()
27131{
27132
Reid Spencer2706f8c2004-09-19 23:53:36 +000027133volatile double A, B;
27134char Buffer[100];
27135A = 1;
27136A /= 10.0;
27137sprintf(Buffer, "%a", A);
27138B = atof(Buffer);
27139if (A != B)
27140 return (1);
27141if (A != 0x1.999999999999ap-4)
27142 return (1);
27143return (0);
John Criswella0137d32003-10-13 16:22:01 +000027144 ;
27145 return 0;
27146}
27147_ACEOF
27148rm -f conftest$ac_exeext
27149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27150 (eval $ac_link) 2>&5
27151 ac_status=$?
27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155 (eval $ac_try) 2>&5
27156 ac_status=$?
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027159 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027160else
27161 echo "$as_me: program exited with status $ac_status" >&5
27162echo "$as_me: failed program was:" >&5
27163sed 's/^/| /' conftest.$ac_ext >&5
27164
27165( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027166llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027167fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027168rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027169fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027170 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027171ac_cpp='$CPP $CPPFLAGS'
27172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27174ac_compiler_gnu=$ac_cv_c_compiler_gnu
27175
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027176fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027177echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27178echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27179 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027180
27181cat >>confdefs.h <<\_ACEOF
27182#define HAVE_PRINTF_A 1
27183_ACEOF
27184
Reid Spencer2706f8c2004-09-19 23:53:36 +000027185 fi
John Criswella0137d32003-10-13 16:22:01 +000027186
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027187# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27188# for constant arguments. Useless!
27189echo "$as_me:$LINENO: checking for working alloca.h" >&5
27190echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27191if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027192 echo $ECHO_N "(cached) $ECHO_C" >&6
27193else
John Criswell0021c312004-02-13 21:57:29 +000027194 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027195/* confdefs.h. */
27196_ACEOF
27197cat confdefs.h >>conftest.$ac_ext
27198cat >>conftest.$ac_ext <<_ACEOF
27199/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027200#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027201int
27202main ()
27203{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027204char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027205 ;
27206 return 0;
27207}
27208_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027209rm -f conftest.$ac_objext conftest$ac_exeext
27210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27211 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027212 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027213 grep -v '^ *+' conftest.er1 >conftest.err
27214 rm -f conftest.er1
27215 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027218 { ac_try='test -z "$ac_c_werror_flag"
27219 || test ! -s conftest.err'
27220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27221 (eval $ac_try) 2>&5
27222 ac_status=$?
27223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27224 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027225 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27227 (eval $ac_try) 2>&5
27228 ac_status=$?
27229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27230 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027231 ac_cv_working_alloca_h=yes
27232else
27233 echo "$as_me: failed program was:" >&5
27234sed 's/^/| /' conftest.$ac_ext >&5
27235
27236ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027237fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027238rm -f conftest.err conftest.$ac_objext \
27239 conftest$ac_exeext conftest.$ac_ext
27240fi
27241echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27242echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27243if test $ac_cv_working_alloca_h = yes; then
27244
27245cat >>confdefs.h <<\_ACEOF
27246#define HAVE_ALLOCA_H 1
27247_ACEOF
27248
27249fi
27250
27251echo "$as_me:$LINENO: checking for alloca" >&5
27252echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27253if test "${ac_cv_func_alloca_works+set}" = set; then
27254 echo $ECHO_N "(cached) $ECHO_C" >&6
27255else
27256 cat >conftest.$ac_ext <<_ACEOF
27257/* confdefs.h. */
27258_ACEOF
27259cat confdefs.h >>conftest.$ac_ext
27260cat >>conftest.$ac_ext <<_ACEOF
27261/* end confdefs.h. */
27262#ifdef __GNUC__
27263# define alloca __builtin_alloca
27264#else
27265# ifdef _MSC_VER
27266# include <malloc.h>
27267# define alloca _alloca
27268# else
27269# if HAVE_ALLOCA_H
27270# include <alloca.h>
27271# else
27272# ifdef _AIX
27273 #pragma alloca
27274# else
27275# ifndef alloca /* predefined by HP cc +Olibcalls */
27276char *alloca ();
27277# endif
27278# endif
27279# endif
27280# endif
27281#endif
27282
27283int
27284main ()
27285{
27286char *p = (char *) alloca (1);
27287 ;
27288 return 0;
27289}
27290_ACEOF
27291rm -f conftest.$ac_objext conftest$ac_exeext
27292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27293 (eval $ac_link) 2>conftest.er1
27294 ac_status=$?
27295 grep -v '^ *+' conftest.er1 >conftest.err
27296 rm -f conftest.er1
27297 cat conftest.err >&5
27298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); } &&
27300 { ac_try='test -z "$ac_c_werror_flag"
27301 || test ! -s conftest.err'
27302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27303 (eval $ac_try) 2>&5
27304 ac_status=$?
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); }; } &&
27307 { ac_try='test -s conftest$ac_exeext'
27308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27309 (eval $ac_try) 2>&5
27310 ac_status=$?
27311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27312 (exit $ac_status); }; }; then
27313 ac_cv_func_alloca_works=yes
27314else
27315 echo "$as_me: failed program was:" >&5
27316sed 's/^/| /' conftest.$ac_ext >&5
27317
27318ac_cv_func_alloca_works=no
27319fi
27320rm -f conftest.err conftest.$ac_objext \
27321 conftest$ac_exeext conftest.$ac_ext
27322fi
27323echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27324echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27325
27326if test $ac_cv_func_alloca_works = yes; then
27327
27328cat >>confdefs.h <<\_ACEOF
27329#define HAVE_ALLOCA 1
27330_ACEOF
27331
27332else
27333 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27334# that cause trouble. Some versions do not even contain alloca or
27335# contain a buggy version. If you still want to use their alloca,
27336# use ar to extract alloca.o from them instead of compiling alloca.c.
27337
27338ALLOCA=alloca.$ac_objext
27339
27340cat >>confdefs.h <<\_ACEOF
27341#define C_ALLOCA 1
27342_ACEOF
27343
27344
27345echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27346echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27347if test "${ac_cv_os_cray+set}" = set; then
27348 echo $ECHO_N "(cached) $ECHO_C" >&6
27349else
27350 cat >conftest.$ac_ext <<_ACEOF
27351/* confdefs.h. */
27352_ACEOF
27353cat confdefs.h >>conftest.$ac_ext
27354cat >>conftest.$ac_ext <<_ACEOF
27355/* end confdefs.h. */
27356#if defined(CRAY) && ! defined(CRAY2)
27357webecray
27358#else
27359wenotbecray
27360#endif
27361
27362_ACEOF
27363if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27364 $EGREP "webecray" >/dev/null 2>&1; then
27365 ac_cv_os_cray=yes
27366else
27367 ac_cv_os_cray=no
27368fi
27369rm -f conftest*
27370
27371fi
27372echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27373echo "${ECHO_T}$ac_cv_os_cray" >&6
27374if test $ac_cv_os_cray = yes; then
27375 for ac_func in _getb67 GETB67 getb67; do
27376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27377echo "$as_me:$LINENO: checking for $ac_func" >&5
27378echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27379if eval "test \"\${$as_ac_var+set}\" = set"; then
27380 echo $ECHO_N "(cached) $ECHO_C" >&6
27381else
27382 cat >conftest.$ac_ext <<_ACEOF
27383/* confdefs.h. */
27384_ACEOF
27385cat confdefs.h >>conftest.$ac_ext
27386cat >>conftest.$ac_ext <<_ACEOF
27387/* end confdefs.h. */
27388/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27390#define $ac_func innocuous_$ac_func
27391
27392/* System header to define __stub macros and hopefully few prototypes,
27393 which can conflict with char $ac_func (); below.
27394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27395 <limits.h> exists even on freestanding compilers. */
27396
27397#ifdef __STDC__
27398# include <limits.h>
27399#else
27400# include <assert.h>
27401#endif
27402
27403#undef $ac_func
27404
27405/* Override any gcc2 internal prototype to avoid an error. */
27406#ifdef __cplusplus
27407extern "C"
27408{
27409#endif
27410/* We use char because int might match the return type of a gcc2
27411 builtin and then its argument prototype would still apply. */
27412char $ac_func ();
27413/* The GNU C library defines this for functions which it implements
27414 to always fail with ENOSYS. Some functions are actually named
27415 something starting with __ and the normal name is an alias. */
27416#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27417choke me
27418#else
27419char (*f) () = $ac_func;
27420#endif
27421#ifdef __cplusplus
27422}
27423#endif
27424
27425int
27426main ()
27427{
27428return f != $ac_func;
27429 ;
27430 return 0;
27431}
27432_ACEOF
27433rm -f conftest.$ac_objext conftest$ac_exeext
27434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27435 (eval $ac_link) 2>conftest.er1
27436 ac_status=$?
27437 grep -v '^ *+' conftest.er1 >conftest.err
27438 rm -f conftest.er1
27439 cat conftest.err >&5
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); } &&
27442 { ac_try='test -z "$ac_c_werror_flag"
27443 || test ! -s conftest.err'
27444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27445 (eval $ac_try) 2>&5
27446 ac_status=$?
27447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448 (exit $ac_status); }; } &&
27449 { ac_try='test -s conftest$ac_exeext'
27450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27451 (eval $ac_try) 2>&5
27452 ac_status=$?
27453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); }; }; then
27455 eval "$as_ac_var=yes"
27456else
27457 echo "$as_me: failed program was:" >&5
27458sed 's/^/| /' conftest.$ac_ext >&5
27459
27460eval "$as_ac_var=no"
27461fi
27462rm -f conftest.err conftest.$ac_objext \
27463 conftest$ac_exeext conftest.$ac_ext
27464fi
27465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27466echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27467if test `eval echo '${'$as_ac_var'}'` = yes; then
27468
27469cat >>confdefs.h <<_ACEOF
27470#define CRAY_STACKSEG_END $ac_func
27471_ACEOF
27472
27473 break
27474fi
27475
27476 done
27477fi
27478
27479echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27480echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27481if test "${ac_cv_c_stack_direction+set}" = set; then
27482 echo $ECHO_N "(cached) $ECHO_C" >&6
27483else
27484 if test "$cross_compiling" = yes; then
27485 ac_cv_c_stack_direction=0
27486else
27487 cat >conftest.$ac_ext <<_ACEOF
27488/* confdefs.h. */
27489_ACEOF
27490cat confdefs.h >>conftest.$ac_ext
27491cat >>conftest.$ac_ext <<_ACEOF
27492/* end confdefs.h. */
27493int
27494find_stack_direction ()
27495{
27496 static char *addr = 0;
27497 auto char dummy;
27498 if (addr == 0)
27499 {
27500 addr = &dummy;
27501 return find_stack_direction ();
27502 }
John Criswell0021c312004-02-13 21:57:29 +000027503 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027504 return (&dummy > addr) ? 1 : -1;
27505}
John Criswell0021c312004-02-13 21:57:29 +000027506
John Criswell0021c312004-02-13 21:57:29 +000027507int
27508main ()
27509{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027510 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000027511}
27512_ACEOF
27513rm -f conftest$ac_exeext
27514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27515 (eval $ac_link) 2>&5
27516 ac_status=$?
27517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27520 (eval $ac_try) 2>&5
27521 ac_status=$?
27522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027524 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000027525else
27526 echo "$as_me: program exited with status $ac_status" >&5
27527echo "$as_me: failed program was:" >&5
27528sed 's/^/| /' conftest.$ac_ext >&5
27529
27530( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027531ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000027532fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027533rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000027534fi
27535fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027536echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27537echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27538
27539cat >>confdefs.h <<_ACEOF
27540#define STACK_DIRECTION $ac_cv_c_stack_direction
27541_ACEOF
27542
27543
John Criswell0021c312004-02-13 21:57:29 +000027544fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027545
27546
27547echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27548echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27549if test "${ac_cv_func_rand48+set}" = set; then
27550 echo $ECHO_N "(cached) $ECHO_C" >&6
27551else
27552 ac_ext=cc
27553ac_cpp='$CXXCPP $CPPFLAGS'
27554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27557
27558 cat >conftest.$ac_ext <<_ACEOF
27559/* confdefs.h. */
27560_ACEOF
27561cat confdefs.h >>conftest.$ac_ext
27562cat >>conftest.$ac_ext <<_ACEOF
27563/* end confdefs.h. */
27564#include <stdlib.h>
27565int
27566main ()
27567{
27568srand48(0);lrand48();drand48();
27569 ;
27570 return 0;
27571}
27572_ACEOF
27573rm -f conftest.$ac_objext
27574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27575 (eval $ac_compile) 2>conftest.er1
27576 ac_status=$?
27577 grep -v '^ *+' conftest.er1 >conftest.err
27578 rm -f conftest.er1
27579 cat conftest.err >&5
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); } &&
27582 { ac_try='test -z "$ac_cxx_werror_flag"
27583 || test ! -s conftest.err'
27584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27585 (eval $ac_try) 2>&5
27586 ac_status=$?
27587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588 (exit $ac_status); }; } &&
27589 { ac_try='test -s conftest.$ac_objext'
27590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27591 (eval $ac_try) 2>&5
27592 ac_status=$?
27593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594 (exit $ac_status); }; }; then
27595 ac_cv_func_rand48=yes
27596else
27597 echo "$as_me: failed program was:" >&5
27598sed 's/^/| /' conftest.$ac_ext >&5
27599
27600ac_cv_func_rand48=no
27601fi
27602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27603 ac_ext=c
27604ac_cpp='$CPP $CPPFLAGS'
27605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27607ac_compiler_gnu=$ac_cv_c_compiler_gnu
27608
27609fi
27610echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27611echo "${ECHO_T}$ac_cv_func_rand48" >&6
27612
27613if test "$ac_cv_func_rand48" = "yes" ; then
27614
27615cat >>confdefs.h <<\_ACEOF
27616#define HAVE_RAND48 1
27617_ACEOF
27618
27619fi
John Criswell0021c312004-02-13 21:57:29 +000027620
27621
John Criswell7a73b802003-06-30 21:59:07 +000027622echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27623echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27624if test "${ac_cv_cxx_namespaces+set}" = set; then
27625 echo $ECHO_N "(cached) $ECHO_C" >&6
27626else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027627 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000027628ac_cpp='$CXXCPP $CPPFLAGS'
27629ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27630ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27631ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27632
27633 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027634/* confdefs.h. */
27635_ACEOF
27636cat confdefs.h >>conftest.$ac_ext
27637cat >>conftest.$ac_ext <<_ACEOF
27638/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027639namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000027640int
27641main ()
27642{
27643using namespace Outer::Inner; return i;
27644 ;
27645 return 0;
27646}
27647_ACEOF
27648rm -f conftest.$ac_objext
27649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027650 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027651 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027652 grep -v '^ *+' conftest.er1 >conftest.err
27653 rm -f conftest.er1
27654 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27656 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027657 { ac_try='test -z "$ac_cxx_werror_flag"
27658 || test ! -s conftest.err'
27659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27660 (eval $ac_try) 2>&5
27661 ac_status=$?
27662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27663 (exit $ac_status); }; } &&
27664 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27666 (eval $ac_try) 2>&5
27667 ac_status=$?
27668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27669 (exit $ac_status); }; }; then
27670 ac_cv_cxx_namespaces=yes
27671else
27672 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027673sed 's/^/| /' conftest.$ac_ext >&5
27674
John Criswell7a73b802003-06-30 21:59:07 +000027675ac_cv_cxx_namespaces=no
27676fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027678 ac_ext=c
27679ac_cpp='$CPP $CPPFLAGS'
27680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27682ac_compiler_gnu=$ac_cv_c_compiler_gnu
27683
27684
27685fi
27686echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27687echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27688if test "$ac_cv_cxx_namespaces" = yes; then
27689
27690cat >>confdefs.h <<\_ACEOF
27691#define HAVE_NAMESPACES
27692_ACEOF
27693
27694fi
27695
Brian Gaeke90583492003-11-10 03:06:28 +000027696echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27697echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27698if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027699 echo $ECHO_N "(cached) $ECHO_C" >&6
27700else
27701
John Criswell7a73b802003-06-30 21:59:07 +000027702 ac_ext=cc
27703ac_cpp='$CXXCPP $CPPFLAGS'
27704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27707
27708 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027709/* confdefs.h. */
27710_ACEOF
27711cat confdefs.h >>conftest.$ac_ext
27712cat >>conftest.$ac_ext <<_ACEOF
27713/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027714#include <ext/hash_map>
27715#ifdef HAVE_NAMESPACES
27716using namespace std;
27717#endif
John Criswell7a73b802003-06-30 21:59:07 +000027718int
27719main ()
27720{
Brian Gaeke90583492003-11-10 03:06:28 +000027721hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027722 ;
27723 return 0;
27724}
27725_ACEOF
27726rm -f conftest.$ac_objext
27727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027728 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027729 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027730 grep -v '^ *+' conftest.er1 >conftest.err
27731 rm -f conftest.er1
27732 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27734 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027735 { ac_try='test -z "$ac_cxx_werror_flag"
27736 || test ! -s conftest.err'
27737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27738 (eval $ac_try) 2>&5
27739 ac_status=$?
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); }; } &&
27742 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27744 (eval $ac_try) 2>&5
27745 ac_status=$?
27746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27747 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027748 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000027749else
27750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027751sed 's/^/| /' conftest.$ac_ext >&5
27752
Brian Gaeke90583492003-11-10 03:06:28 +000027753ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027754fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027756 ac_ext=c
27757ac_cpp='$CPP $CPPFLAGS'
27758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27760ac_compiler_gnu=$ac_cv_c_compiler_gnu
27761
John Criswell7a73b802003-06-30 21:59:07 +000027762fi
Brian Gaeke90583492003-11-10 03:06:28 +000027763echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27764echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027765 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27766 then
John Criswell9f011862004-09-24 18:28:00 +000027767
27768cat >>confdefs.h <<\_ACEOF
27769#define HAVE_STD_EXT_HASH_MAP 1
27770_ACEOF
27771
27772 else
27773
27774cat >>confdefs.h <<\_ACEOF
27775#define HAVE_STD_EXT_HASH_MAP 0
27776_ACEOF
27777
Brian Gaeke90583492003-11-10 03:06:28 +000027778 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027779
Brian Gaeke90583492003-11-10 03:06:28 +000027780 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27781echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27782if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27783 echo $ECHO_N "(cached) $ECHO_C" >&6
27784else
27785
Brian Gaeke90583492003-11-10 03:06:28 +000027786 ac_ext=cc
27787ac_cpp='$CXXCPP $CPPFLAGS'
27788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27791
27792 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027793/* confdefs.h. */
27794_ACEOF
27795cat confdefs.h >>conftest.$ac_ext
27796cat >>conftest.$ac_ext <<_ACEOF
27797/* end confdefs.h. */
27798#include <ext/hash_map>
27799#ifdef HAVE_NAMESPACES
27800using namespace __gnu_cxx;
27801#endif
27802int
27803main ()
27804{
27805hash_map<int,int> t;
27806 ;
27807 return 0;
27808}
27809_ACEOF
27810rm -f conftest.$ac_objext
27811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027812 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027813 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027814 grep -v '^ *+' conftest.er1 >conftest.err
27815 rm -f conftest.er1
27816 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27818 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027819 { ac_try='test -z "$ac_cxx_werror_flag"
27820 || test ! -s conftest.err'
27821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27822 (eval $ac_try) 2>&5
27823 ac_status=$?
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); }; } &&
27826 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27828 (eval $ac_try) 2>&5
27829 ac_status=$?
27830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); }; }; then
27832 ac_cv_cxx_have_gnu_ext_hash_map=yes
27833else
27834 echo "$as_me: failed program was:" >&5
27835sed 's/^/| /' conftest.$ac_ext >&5
27836
27837ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027838fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027840 ac_ext=c
27841ac_cpp='$CPP $CPPFLAGS'
27842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27844ac_compiler_gnu=$ac_cv_c_compiler_gnu
27845
27846fi
27847echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27848echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027849 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27850 then
John Criswell9f011862004-09-24 18:28:00 +000027851
27852cat >>confdefs.h <<\_ACEOF
27853#define HAVE_GNU_EXT_HASH_MAP 1
27854_ACEOF
27855
27856 else
27857
27858cat >>confdefs.h <<\_ACEOF
27859#define HAVE_GNU_EXT_HASH_MAP 0
27860_ACEOF
27861
Brian Gaeke90583492003-11-10 03:06:28 +000027862 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027863
Brian Gaeke90583492003-11-10 03:06:28 +000027864 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27865echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27866if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27867 echo $ECHO_N "(cached) $ECHO_C" >&6
27868else
John Criswell7a73b802003-06-30 21:59:07 +000027869
Brian Gaeke90583492003-11-10 03:06:28 +000027870 ac_ext=cc
27871ac_cpp='$CXXCPP $CPPFLAGS'
27872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27875
27876 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027877/* confdefs.h. */
27878_ACEOF
27879cat confdefs.h >>conftest.$ac_ext
27880cat >>conftest.$ac_ext <<_ACEOF
27881/* end confdefs.h. */
27882#include <hash_map>
27883int
27884main ()
27885{
27886hash_map<int,int> t;
27887 ;
27888 return 0;
27889}
27890_ACEOF
27891rm -f conftest.$ac_objext
27892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027893 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027894 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027895 grep -v '^ *+' conftest.er1 >conftest.err
27896 rm -f conftest.er1
27897 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027900 { ac_try='test -z "$ac_cxx_werror_flag"
27901 || test ! -s conftest.err'
27902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27903 (eval $ac_try) 2>&5
27904 ac_status=$?
27905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); }; } &&
27907 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27909 (eval $ac_try) 2>&5
27910 ac_status=$?
27911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27912 (exit $ac_status); }; }; then
27913 ac_cv_cxx_have_global_hash_map=yes
27914else
27915 echo "$as_me: failed program was:" >&5
27916sed 's/^/| /' conftest.$ac_ext >&5
27917
27918ac_cv_cxx_have_global_hash_map=no
27919fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027921 ac_ext=c
27922ac_cpp='$CPP $CPPFLAGS'
27923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27925ac_compiler_gnu=$ac_cv_c_compiler_gnu
27926
27927fi
27928echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27929echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027930 if test "$ac_cv_cxx_have_global_hash_map" = yes
27931 then
John Criswell9f011862004-09-24 18:28:00 +000027932
27933cat >>confdefs.h <<\_ACEOF
27934#define HAVE_GLOBAL_HASH_MAP 1
27935_ACEOF
27936
27937 else
27938
27939cat >>confdefs.h <<\_ACEOF
27940#define HAVE_GLOBAL_HASH_MAP 0
27941_ACEOF
27942
Brian Gaeke90583492003-11-10 03:06:28 +000027943 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027944
Brian Gaeke90583492003-11-10 03:06:28 +000027945echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27946echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27947if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027948 echo $ECHO_N "(cached) $ECHO_C" >&6
27949else
27950
John Criswell7a73b802003-06-30 21:59:07 +000027951 ac_ext=cc
27952ac_cpp='$CXXCPP $CPPFLAGS'
27953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27956
27957 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027958/* confdefs.h. */
27959_ACEOF
27960cat confdefs.h >>conftest.$ac_ext
27961cat >>conftest.$ac_ext <<_ACEOF
27962/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027963#include <ext/hash_set>
27964#ifdef HAVE_NAMESPACES
27965using namespace std;
27966#endif
John Criswell7a73b802003-06-30 21:59:07 +000027967int
27968main ()
27969{
Brian Gaeke90583492003-11-10 03:06:28 +000027970hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027971 ;
27972 return 0;
27973}
27974_ACEOF
27975rm -f conftest.$ac_objext
27976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027977 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027978 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027979 grep -v '^ *+' conftest.er1 >conftest.err
27980 rm -f conftest.er1
27981 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27983 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027984 { ac_try='test -z "$ac_cxx_werror_flag"
27985 || test ! -s conftest.err'
27986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27987 (eval $ac_try) 2>&5
27988 ac_status=$?
27989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27990 (exit $ac_status); }; } &&
27991 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27993 (eval $ac_try) 2>&5
27994 ac_status=$?
27995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27996 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027997 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027998else
27999 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028000sed 's/^/| /' conftest.$ac_ext >&5
28001
Brian Gaeke90583492003-11-10 03:06:28 +000028002ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028003fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028005 ac_ext=c
28006ac_cpp='$CPP $CPPFLAGS'
28007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28009ac_compiler_gnu=$ac_cv_c_compiler_gnu
28010
28011fi
28012echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28013echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028014 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28015 then
John Criswell9f011862004-09-24 18:28:00 +000028016
28017cat >>confdefs.h <<\_ACEOF
28018#define HAVE_STD_EXT_HASH_SET 1
28019_ACEOF
28020
28021 else
28022
28023cat >>confdefs.h <<\_ACEOF
28024#define HAVE_STD_EXT_HASH_SET 0
28025_ACEOF
28026
Brian Gaeke90583492003-11-10 03:06:28 +000028027 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028028
Brian Gaeke90583492003-11-10 03:06:28 +000028029 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28030echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28031if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28032 echo $ECHO_N "(cached) $ECHO_C" >&6
28033else
28034
Brian Gaeke90583492003-11-10 03:06:28 +000028035 ac_ext=cc
28036ac_cpp='$CXXCPP $CPPFLAGS'
28037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28040
John Criswell7a73b802003-06-30 21:59:07 +000028041 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028042/* confdefs.h. */
28043_ACEOF
28044cat confdefs.h >>conftest.$ac_ext
28045cat >>conftest.$ac_ext <<_ACEOF
28046/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028047#include <ext/hash_set>
28048#ifdef HAVE_NAMESPACES
28049using namespace __gnu_cxx;
28050#endif
John Criswell7a73b802003-06-30 21:59:07 +000028051int
28052main ()
28053{
Brian Gaeke90583492003-11-10 03:06:28 +000028054hash_set<int> t;
28055 ;
28056 return 0;
28057}
28058_ACEOF
28059rm -f conftest.$ac_objext
28060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028061 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028062 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028063 grep -v '^ *+' conftest.er1 >conftest.err
28064 rm -f conftest.er1
28065 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28067 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028068 { ac_try='test -z "$ac_cxx_werror_flag"
28069 || test ! -s conftest.err'
28070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28071 (eval $ac_try) 2>&5
28072 ac_status=$?
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); }; } &&
28075 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28077 (eval $ac_try) 2>&5
28078 ac_status=$?
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); }; }; then
28081 ac_cv_cxx_have_gnu_ext_hash_set=yes
28082else
28083 echo "$as_me: failed program was:" >&5
28084sed 's/^/| /' conftest.$ac_ext >&5
28085
28086ac_cv_cxx_have_gnu_ext_hash_set=no
28087fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028089 ac_ext=c
28090ac_cpp='$CPP $CPPFLAGS'
28091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28093ac_compiler_gnu=$ac_cv_c_compiler_gnu
28094
28095fi
28096echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28097echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028098 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28099 then
John Criswell9f011862004-09-24 18:28:00 +000028100
28101cat >>confdefs.h <<\_ACEOF
28102#define HAVE_GNU_EXT_HASH_SET 1
28103_ACEOF
28104
28105 else
28106
28107cat >>confdefs.h <<\_ACEOF
28108#define HAVE_GNU_EXT_HASH_SET 0
28109_ACEOF
28110
Brian Gaeke90583492003-11-10 03:06:28 +000028111 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028112
Brian Gaeke90583492003-11-10 03:06:28 +000028113 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28114echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28115if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28116 echo $ECHO_N "(cached) $ECHO_C" >&6
28117else
28118
Brian Gaeke90583492003-11-10 03:06:28 +000028119 ac_ext=cc
28120ac_cpp='$CXXCPP $CPPFLAGS'
28121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28124
28125 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028126/* confdefs.h. */
28127_ACEOF
28128cat confdefs.h >>conftest.$ac_ext
28129cat >>conftest.$ac_ext <<_ACEOF
28130/* end confdefs.h. */
28131#include <hash_set>
28132int
28133main ()
28134{
John Criswell7a73b802003-06-30 21:59:07 +000028135hash_set<int> t; return 0;
28136 ;
28137 return 0;
28138}
28139_ACEOF
28140rm -f conftest.$ac_objext
28141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028142 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028143 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028144 grep -v '^ *+' conftest.er1 >conftest.err
28145 rm -f conftest.er1
28146 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028149 { ac_try='test -z "$ac_cxx_werror_flag"
28150 || test ! -s conftest.err'
28151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152 (eval $ac_try) 2>&5
28153 ac_status=$?
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; } &&
28156 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158 (eval $ac_try) 2>&5
28159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028162 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028163else
28164 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028165sed 's/^/| /' conftest.$ac_ext >&5
28166
Brian Gaeke90583492003-11-10 03:06:28 +000028167ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028168fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028170 ac_ext=c
28171ac_cpp='$CPP $CPPFLAGS'
28172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28174ac_compiler_gnu=$ac_cv_c_compiler_gnu
28175
John Criswell7a73b802003-06-30 21:59:07 +000028176fi
Brian Gaeke90583492003-11-10 03:06:28 +000028177echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28178echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028179 if test "$ac_cv_cxx_have_global_hash_set" = yes
28180 then
John Criswell9f011862004-09-24 18:28:00 +000028181
28182cat >>confdefs.h <<\_ACEOF
28183#define HAVE_GLOBAL_HASH_SET 1
28184_ACEOF
28185
28186 else
28187
28188cat >>confdefs.h <<\_ACEOF
28189#define HAVE_GLOBAL_HASH_SET 0
28190_ACEOF
28191
Brian Gaeke90583492003-11-10 03:06:28 +000028192 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028193
John Criswell7a73b802003-06-30 21:59:07 +000028194echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28195echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28196if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28197 echo $ECHO_N "(cached) $ECHO_C" >&6
28198else
28199
John Criswell7a73b802003-06-30 21:59:07 +000028200 ac_ext=cc
28201ac_cpp='$CXXCPP $CPPFLAGS'
28202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28205
28206 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028207/* confdefs.h. */
28208_ACEOF
28209cat confdefs.h >>conftest.$ac_ext
28210cat >>conftest.$ac_ext <<_ACEOF
28211/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028212#include <iterator>
28213#ifdef HAVE_NAMESPACES
28214using namespace std;
28215#endif
John Criswell7a73b802003-06-30 21:59:07 +000028216int
28217main ()
28218{
28219iterator<int,int,int> t; return 0;
28220 ;
28221 return 0;
28222}
28223_ACEOF
28224rm -f conftest.$ac_objext
28225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028226 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028228 grep -v '^ *+' conftest.er1 >conftest.err
28229 rm -f conftest.er1
28230 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028233 { ac_try='test -z "$ac_cxx_werror_flag"
28234 || test ! -s conftest.err'
28235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236 (eval $ac_try) 2>&5
28237 ac_status=$?
28238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239 (exit $ac_status); }; } &&
28240 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242 (eval $ac_try) 2>&5
28243 ac_status=$?
28244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245 (exit $ac_status); }; }; then
28246 ac_cv_cxx_have_std_iterator=yes
28247else
28248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028249sed 's/^/| /' conftest.$ac_ext >&5
28250
John Criswell7a73b802003-06-30 21:59:07 +000028251ac_cv_cxx_have_std_iterator=no
28252fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028254 ac_ext=c
28255ac_cpp='$CPP $CPPFLAGS'
28256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28258ac_compiler_gnu=$ac_cv_c_compiler_gnu
28259
28260
28261fi
28262echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28263echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028264if test "$ac_cv_cxx_have_std_iterator" = yes
28265then
John Criswell40468462004-09-24 21:19:06 +000028266
28267cat >>confdefs.h <<\_ACEOF
28268#define HAVE_STD_ITERATOR 1
28269_ACEOF
28270
28271else
28272
28273cat >>confdefs.h <<\_ACEOF
28274#define HAVE_STD_ITERATOR 0
28275_ACEOF
28276
John Criswell7a73b802003-06-30 21:59:07 +000028277fi
28278
28279echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28280echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28281if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28282 echo $ECHO_N "(cached) $ECHO_C" >&6
28283else
28284
John Criswell7a73b802003-06-30 21:59:07 +000028285 ac_ext=cc
28286ac_cpp='$CXXCPP $CPPFLAGS'
28287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28290
28291 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028292/* confdefs.h. */
28293_ACEOF
28294cat confdefs.h >>conftest.$ac_ext
28295cat >>conftest.$ac_ext <<_ACEOF
28296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028297#include <iterator>
28298#ifdef HAVE_NAMESPACES
28299using namespace std;
28300#endif
John Criswell7a73b802003-06-30 21:59:07 +000028301int
28302main ()
28303{
John Criswellc78022e2003-07-29 19:11:58 +000028304bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028305 ;
28306 return 0;
28307}
28308_ACEOF
28309rm -f conftest.$ac_objext
28310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028311 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028312 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028313 grep -v '^ *+' conftest.er1 >conftest.err
28314 rm -f conftest.er1
28315 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28317 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028318 { ac_try='test -z "$ac_cxx_werror_flag"
28319 || test ! -s conftest.err'
28320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28321 (eval $ac_try) 2>&5
28322 ac_status=$?
28323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28324 (exit $ac_status); }; } &&
28325 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28327 (eval $ac_try) 2>&5
28328 ac_status=$?
28329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330 (exit $ac_status); }; }; then
28331 ac_cv_cxx_have_bi_iterator=yes
28332else
28333 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028334sed 's/^/| /' conftest.$ac_ext >&5
28335
John Criswell7a73b802003-06-30 21:59:07 +000028336ac_cv_cxx_have_bi_iterator=no
28337fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028339 ac_ext=c
28340ac_cpp='$CPP $CPPFLAGS'
28341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28343ac_compiler_gnu=$ac_cv_c_compiler_gnu
28344
28345
28346fi
28347echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28348echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028349if test "$ac_cv_cxx_have_bi_iterator" = yes
28350then
John Criswell40468462004-09-24 21:19:06 +000028351
28352cat >>confdefs.h <<\_ACEOF
28353#define HAVE_BI_ITERATOR 1
28354_ACEOF
28355
28356else
28357
28358cat >>confdefs.h <<\_ACEOF
28359#define HAVE_BI_ITERATOR 0
28360_ACEOF
28361
John Criswell7a73b802003-06-30 21:59:07 +000028362fi
28363
28364echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28365echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28366if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28367 echo $ECHO_N "(cached) $ECHO_C" >&6
28368else
28369
John Criswell7a73b802003-06-30 21:59:07 +000028370 ac_ext=cc
28371ac_cpp='$CXXCPP $CPPFLAGS'
28372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28375
28376 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028377/* confdefs.h. */
28378_ACEOF
28379cat confdefs.h >>conftest.$ac_ext
28380cat >>conftest.$ac_ext <<_ACEOF
28381/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028382#include <iterator>
28383#ifdef HAVE_NAMESPACES
28384using namespace std;
28385#endif
John Criswell7a73b802003-06-30 21:59:07 +000028386int
28387main ()
28388{
John Criswellc78022e2003-07-29 19:11:58 +000028389forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028390 ;
28391 return 0;
28392}
28393_ACEOF
28394rm -f conftest.$ac_objext
28395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028396 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028397 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028398 grep -v '^ *+' conftest.er1 >conftest.err
28399 rm -f conftest.er1
28400 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028403 { ac_try='test -z "$ac_cxx_werror_flag"
28404 || test ! -s conftest.err'
28405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28406 (eval $ac_try) 2>&5
28407 ac_status=$?
28408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); }; } &&
28410 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28412 (eval $ac_try) 2>&5
28413 ac_status=$?
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); }; }; then
28416 ac_cv_cxx_have_fwd_iterator=yes
28417else
28418 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028419sed 's/^/| /' conftest.$ac_ext >&5
28420
John Criswell7a73b802003-06-30 21:59:07 +000028421ac_cv_cxx_have_fwd_iterator=no
28422fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028424 ac_ext=c
28425ac_cpp='$CPP $CPPFLAGS'
28426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28428ac_compiler_gnu=$ac_cv_c_compiler_gnu
28429
28430
28431fi
28432echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28433echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028434if test "$ac_cv_cxx_have_fwd_iterator" = yes
28435then
John Criswell40468462004-09-24 21:19:06 +000028436
28437cat >>confdefs.h <<\_ACEOF
28438#define HAVE_FWD_ITERATOR 1
28439_ACEOF
28440
28441else
28442
28443cat >>confdefs.h <<\_ACEOF
28444#define HAVE_FWD_ITERATOR 0
28445_ACEOF
28446
John Criswell7a73b802003-06-30 21:59:07 +000028447fi
28448
28449
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028450echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28451echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28452if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28453 echo $ECHO_N "(cached) $ECHO_C" >&6
28454else
28455 ac_ext=cc
28456ac_cpp='$CXXCPP $CPPFLAGS'
28457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28460
Reid Spencerabec8f92004-10-27 23:03:44 +000028461 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028462/* confdefs.h. */
28463_ACEOF
28464cat confdefs.h >>conftest.$ac_ext
28465cat >>conftest.$ac_ext <<_ACEOF
28466/* end confdefs.h. */
28467#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028468int
28469main ()
28470{
28471float f; isnan(f);
28472 ;
28473 return 0;
28474}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028475_ACEOF
28476rm -f conftest.$ac_objext
28477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028478 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028479 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028480 grep -v '^ *+' conftest.er1 >conftest.err
28481 rm -f conftest.er1
28482 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028485 { ac_try='test -z "$ac_cxx_werror_flag"
28486 || test ! -s conftest.err'
28487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28488 (eval $ac_try) 2>&5
28489 ac_status=$?
28490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28491 (exit $ac_status); }; } &&
28492 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494 (eval $ac_try) 2>&5
28495 ac_status=$?
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); }; }; then
28498 ac_cv_func_isnan_in_math_h=yes
28499else
28500 echo "$as_me: failed program was:" >&5
28501sed 's/^/| /' conftest.$ac_ext >&5
28502
28503ac_cv_func_isnan_in_math_h=no
28504fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028506 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028507ac_cpp='$CPP $CPPFLAGS'
28508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28510ac_compiler_gnu=$ac_cv_c_compiler_gnu
28511
28512fi
28513echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28514echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028515
28516
28517if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028518
28519cat >>confdefs.h <<\_ACEOF
28520#define HAVE_ISNAN_IN_MATH_H 1
28521_ACEOF
28522
Reid Spencerabec8f92004-10-27 23:03:44 +000028523fi
28524
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028525echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28526echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28527if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28528 echo $ECHO_N "(cached) $ECHO_C" >&6
28529else
28530 ac_ext=cc
28531ac_cpp='$CXXCPP $CPPFLAGS'
28532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28535
Reid Spencerabec8f92004-10-27 23:03:44 +000028536 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028537/* confdefs.h. */
28538_ACEOF
28539cat confdefs.h >>conftest.$ac_ext
28540cat >>conftest.$ac_ext <<_ACEOF
28541/* end confdefs.h. */
28542#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028543int
28544main ()
28545{
28546float f; isnan(f);
28547 ;
28548 return 0;
28549}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028550_ACEOF
28551rm -f conftest.$ac_objext
28552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028553 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028554 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028555 grep -v '^ *+' conftest.er1 >conftest.err
28556 rm -f conftest.er1
28557 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028560 { ac_try='test -z "$ac_cxx_werror_flag"
28561 || test ! -s conftest.err'
28562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28563 (eval $ac_try) 2>&5
28564 ac_status=$?
28565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566 (exit $ac_status); }; } &&
28567 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569 (eval $ac_try) 2>&5
28570 ac_status=$?
28571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572 (exit $ac_status); }; }; then
28573 ac_cv_func_isnan_in_cmath=yes
28574else
28575 echo "$as_me: failed program was:" >&5
28576sed 's/^/| /' conftest.$ac_ext >&5
28577
28578ac_cv_func_isnan_in_cmath=no
28579fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028581 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028582ac_cpp='$CPP $CPPFLAGS'
28583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28585ac_compiler_gnu=$ac_cv_c_compiler_gnu
28586
28587fi
28588echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28589echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028590
28591if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028592
28593cat >>confdefs.h <<\_ACEOF
28594#define HAVE_ISNAN_IN_CMATH 1
28595_ACEOF
28596
Reid Spencerabec8f92004-10-27 23:03:44 +000028597fi
28598
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028599echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28600echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28601if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28602 echo $ECHO_N "(cached) $ECHO_C" >&6
28603else
28604 ac_ext=cc
28605ac_cpp='$CXXCPP $CPPFLAGS'
28606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28609
Reid Spencerabec8f92004-10-27 23:03:44 +000028610 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028611/* confdefs.h. */
28612_ACEOF
28613cat confdefs.h >>conftest.$ac_ext
28614cat >>conftest.$ac_ext <<_ACEOF
28615/* end confdefs.h. */
28616#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028617int
28618main ()
28619{
28620float f; std::isnan(f);
28621 ;
28622 return 0;
28623}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028624_ACEOF
28625rm -f conftest.$ac_objext
28626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028627 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028629 grep -v '^ *+' conftest.er1 >conftest.err
28630 rm -f conftest.er1
28631 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028634 { ac_try='test -z "$ac_cxx_werror_flag"
28635 || test ! -s conftest.err'
28636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28637 (eval $ac_try) 2>&5
28638 ac_status=$?
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); }; } &&
28641 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28643 (eval $ac_try) 2>&5
28644 ac_status=$?
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); }; }; then
28647 ac_cv_func_std_isnan_in_cmath=yes
28648else
28649 echo "$as_me: failed program was:" >&5
28650sed 's/^/| /' conftest.$ac_ext >&5
28651
28652ac_cv_func_std_isnan_in_cmath=no
28653fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028655 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028656ac_cpp='$CPP $CPPFLAGS'
28657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28659ac_compiler_gnu=$ac_cv_c_compiler_gnu
28660
28661fi
28662echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28663echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028664
28665if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028666
28667cat >>confdefs.h <<\_ACEOF
28668#define HAVE_STD_ISNAN_IN_CMATH 1
28669_ACEOF
28670
Reid Spencerabec8f92004-10-27 23:03:44 +000028671fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028672
28673
Brian Gaeke52a551d2004-07-21 03:14:12 +000028674echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28675echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28676if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28677 echo $ECHO_N "(cached) $ECHO_C" >&6
28678else
28679 ac_ext=cc
28680ac_cpp='$CXXCPP $CPPFLAGS'
28681ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28682ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28683ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28684
Reid Spencerabec8f92004-10-27 23:03:44 +000028685 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028686/* confdefs.h. */
28687_ACEOF
28688cat confdefs.h >>conftest.$ac_ext
28689cat >>conftest.$ac_ext <<_ACEOF
28690/* end confdefs.h. */
28691#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028692int
28693main ()
28694{
28695float f; isinf(f);
28696 ;
28697 return 0;
28698}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028699_ACEOF
28700rm -f conftest.$ac_objext
28701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028702 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028703 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028704 grep -v '^ *+' conftest.er1 >conftest.err
28705 rm -f conftest.er1
28706 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028709 { ac_try='test -z "$ac_cxx_werror_flag"
28710 || test ! -s conftest.err'
28711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28712 (eval $ac_try) 2>&5
28713 ac_status=$?
28714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28715 (exit $ac_status); }; } &&
28716 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718 (eval $ac_try) 2>&5
28719 ac_status=$?
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; }; then
28722 ac_cv_func_isinf_in_math_h=yes
28723else
28724 echo "$as_me: failed program was:" >&5
28725sed 's/^/| /' conftest.$ac_ext >&5
28726
28727ac_cv_func_isinf_in_math_h=no
28728fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028730 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028731ac_cpp='$CPP $CPPFLAGS'
28732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28734ac_compiler_gnu=$ac_cv_c_compiler_gnu
28735
28736fi
28737echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28738echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028739
28740if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028741
28742cat >>confdefs.h <<\_ACEOF
28743#define HAVE_ISINF_IN_MATH_H 1
28744_ACEOF
28745
Reid Spencerabec8f92004-10-27 23:03:44 +000028746fi
28747
Brian Gaeke52a551d2004-07-21 03:14:12 +000028748echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28749echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28750if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28751 echo $ECHO_N "(cached) $ECHO_C" >&6
28752else
28753 ac_ext=cc
28754ac_cpp='$CXXCPP $CPPFLAGS'
28755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28758
Reid Spencerabec8f92004-10-27 23:03:44 +000028759 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028760/* confdefs.h. */
28761_ACEOF
28762cat confdefs.h >>conftest.$ac_ext
28763cat >>conftest.$ac_ext <<_ACEOF
28764/* end confdefs.h. */
28765#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028766int
28767main ()
28768{
28769float f; isinf(f);
28770 ;
28771 return 0;
28772}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028773_ACEOF
28774rm -f conftest.$ac_objext
28775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028776 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028777 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028778 grep -v '^ *+' conftest.er1 >conftest.err
28779 rm -f conftest.er1
28780 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028783 { ac_try='test -z "$ac_cxx_werror_flag"
28784 || test ! -s conftest.err'
28785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28786 (eval $ac_try) 2>&5
28787 ac_status=$?
28788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789 (exit $ac_status); }; } &&
28790 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28792 (eval $ac_try) 2>&5
28793 ac_status=$?
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); }; }; then
28796 ac_cv_func_isinf_in_cmath=yes
28797else
28798 echo "$as_me: failed program was:" >&5
28799sed 's/^/| /' conftest.$ac_ext >&5
28800
28801ac_cv_func_isinf_in_cmath=no
28802fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028804 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028805ac_cpp='$CPP $CPPFLAGS'
28806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28808ac_compiler_gnu=$ac_cv_c_compiler_gnu
28809
28810fi
28811echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28812echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028813
28814if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028815
28816cat >>confdefs.h <<\_ACEOF
28817#define HAVE_ISINF_IN_CMATH 1
28818_ACEOF
28819
Reid Spencerabec8f92004-10-27 23:03:44 +000028820fi
28821
Brian Gaeke52a551d2004-07-21 03:14:12 +000028822echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28823echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28824if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28825 echo $ECHO_N "(cached) $ECHO_C" >&6
28826else
28827 ac_ext=cc
28828ac_cpp='$CXXCPP $CPPFLAGS'
28829ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28830ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28831ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28832
Reid Spencerabec8f92004-10-27 23:03:44 +000028833 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028834/* confdefs.h. */
28835_ACEOF
28836cat confdefs.h >>conftest.$ac_ext
28837cat >>conftest.$ac_ext <<_ACEOF
28838/* end confdefs.h. */
28839#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028840int
28841main ()
28842{
28843float f; std::isinf(f)}
28844 ;
28845 return 0;
28846}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028847_ACEOF
28848rm -f conftest.$ac_objext
28849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028850 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028851 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028852 grep -v '^ *+' conftest.er1 >conftest.err
28853 rm -f conftest.er1
28854 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28856 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028857 { ac_try='test -z "$ac_cxx_werror_flag"
28858 || test ! -s conftest.err'
28859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860 (eval $ac_try) 2>&5
28861 ac_status=$?
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; } &&
28864 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866 (eval $ac_try) 2>&5
28867 ac_status=$?
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; }; then
28870 ac_cv_func_std_isinf_in_cmath=yes
28871else
28872 echo "$as_me: failed program was:" >&5
28873sed 's/^/| /' conftest.$ac_ext >&5
28874
28875ac_cv_func_std_isinf_in_cmath=no
28876fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028878 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028879ac_cpp='$CPP $CPPFLAGS'
28880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28882ac_compiler_gnu=$ac_cv_c_compiler_gnu
28883
28884fi
28885echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28886echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028887
28888if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028889
28890cat >>confdefs.h <<\_ACEOF
28891#define HAVE_STD_ISINF_IN_CMATH 1
28892_ACEOF
28893
Reid Spencerabec8f92004-10-27 23:03:44 +000028894fi
28895
Brian Gaeked59a6472004-07-21 03:33:58 +000028896echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28897echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28898if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28899 echo $ECHO_N "(cached) $ECHO_C" >&6
28900else
28901 ac_ext=cc
28902ac_cpp='$CXXCPP $CPPFLAGS'
28903ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28904ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28905ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28906
Reid Spencerabec8f92004-10-27 23:03:44 +000028907 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000028908/* confdefs.h. */
28909_ACEOF
28910cat confdefs.h >>conftest.$ac_ext
28911cat >>conftest.$ac_ext <<_ACEOF
28912/* end confdefs.h. */
28913#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028914int
28915main ()
28916{
28917float f; finite(f);
28918 ;
28919 return 0;
28920}
Brian Gaeked59a6472004-07-21 03:33:58 +000028921_ACEOF
28922rm -f conftest.$ac_objext
28923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028924 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000028925 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028926 grep -v '^ *+' conftest.er1 >conftest.err
28927 rm -f conftest.er1
28928 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000028929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028931 { ac_try='test -z "$ac_cxx_werror_flag"
28932 || test ! -s conftest.err'
28933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28934 (eval $ac_try) 2>&5
28935 ac_status=$?
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); }; } &&
28938 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000028939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28940 (eval $ac_try) 2>&5
28941 ac_status=$?
28942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28943 (exit $ac_status); }; }; then
28944 ac_cv_func_finite_in_ieeefp_h=yes
28945else
28946 echo "$as_me: failed program was:" >&5
28947sed 's/^/| /' conftest.$ac_ext >&5
28948
28949ac_cv_func_finite_in_ieeefp_h=no
28950fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028952 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000028953ac_cpp='$CPP $CPPFLAGS'
28954ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28955ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28956ac_compiler_gnu=$ac_cv_c_compiler_gnu
28957
28958fi
28959echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28960echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028961
Brian Gaeke6802b552004-10-28 05:06:45 +000028962if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000028963
28964cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000028965#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000028966_ACEOF
28967
Reid Spencerabec8f92004-10-27 23:03:44 +000028968fi
28969
28970
28971
John Criswell7a73b802003-06-30 21:59:07 +000028972
28973
28974for ac_header in stdlib.h unistd.h
28975do
28976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28977if eval "test \"\${$as_ac_Header+set}\" = set"; then
28978 echo "$as_me:$LINENO: checking for $ac_header" >&5
28979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28980if eval "test \"\${$as_ac_Header+set}\" = set"; then
28981 echo $ECHO_N "(cached) $ECHO_C" >&6
28982fi
28983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28985else
28986 # Is the header compilable?
28987echo "$as_me:$LINENO: checking $ac_header usability" >&5
28988echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28989cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028990/* confdefs.h. */
28991_ACEOF
28992cat confdefs.h >>conftest.$ac_ext
28993cat >>conftest.$ac_ext <<_ACEOF
28994/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028995$ac_includes_default
28996#include <$ac_header>
28997_ACEOF
28998rm -f conftest.$ac_objext
28999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029000 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029001 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029002 grep -v '^ *+' conftest.er1 >conftest.err
29003 rm -f conftest.er1
29004 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029007 { ac_try='test -z "$ac_c_werror_flag"
29008 || test ! -s conftest.err'
29009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29010 (eval $ac_try) 2>&5
29011 ac_status=$?
29012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013 (exit $ac_status); }; } &&
29014 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016 (eval $ac_try) 2>&5
29017 ac_status=$?
29018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019 (exit $ac_status); }; }; then
29020 ac_header_compiler=yes
29021else
29022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029023sed 's/^/| /' conftest.$ac_ext >&5
29024
John Criswell7a73b802003-06-30 21:59:07 +000029025ac_header_compiler=no
29026fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029028echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29029echo "${ECHO_T}$ac_header_compiler" >&6
29030
29031# Is the header present?
29032echo "$as_me:$LINENO: checking $ac_header presence" >&5
29033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29034cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029035/* confdefs.h. */
29036_ACEOF
29037cat confdefs.h >>conftest.$ac_ext
29038cat >>conftest.$ac_ext <<_ACEOF
29039/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029040#include <$ac_header>
29041_ACEOF
29042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29044 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029045 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029046 rm -f conftest.er1
29047 cat conftest.err >&5
29048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29049 (exit $ac_status); } >/dev/null; then
29050 if test -s conftest.err; then
29051 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029053 else
29054 ac_cpp_err=
29055 fi
29056else
29057 ac_cpp_err=yes
29058fi
29059if test -z "$ac_cpp_err"; then
29060 ac_header_preproc=yes
29061else
29062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029063sed 's/^/| /' conftest.$ac_ext >&5
29064
John Criswell7a73b802003-06-30 21:59:07 +000029065 ac_header_preproc=no
29066fi
29067rm -f conftest.err conftest.$ac_ext
29068echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29069echo "${ECHO_T}$ac_header_preproc" >&6
29070
29071# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29073 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29075echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29077echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29078 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029079 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029080 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29082echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29084echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29086echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29088echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29090echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29092echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029093 (
29094 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029095## ----------------------------------- ##
29096## Report this to llvmbugs@cs.uiuc.edu ##
29097## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029098_ASBOX
29099 ) |
29100 sed "s/^/$as_me: WARNING: /" >&2
29101 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029102esac
29103echo "$as_me:$LINENO: checking for $ac_header" >&5
29104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29105if eval "test \"\${$as_ac_Header+set}\" = set"; then
29106 echo $ECHO_N "(cached) $ECHO_C" >&6
29107else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029108 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029109fi
29110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29112
29113fi
29114if test `eval echo '${'$as_ac_Header'}'` = yes; then
29115 cat >>confdefs.h <<_ACEOF
29116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29117_ACEOF
29118
29119fi
29120
29121done
29122
29123
29124for ac_func in getpagesize
29125do
29126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29127echo "$as_me:$LINENO: checking for $ac_func" >&5
29128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29129if eval "test \"\${$as_ac_var+set}\" = set"; then
29130 echo $ECHO_N "(cached) $ECHO_C" >&6
29131else
29132 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029133/* confdefs.h. */
29134_ACEOF
29135cat confdefs.h >>conftest.$ac_ext
29136cat >>conftest.$ac_ext <<_ACEOF
29137/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29140#define $ac_func innocuous_$ac_func
29141
John Criswell7a73b802003-06-30 21:59:07 +000029142/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029143 which can conflict with char $ac_func (); below.
29144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29145 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029146
John Criswell0c38eaf2003-09-10 15:17:25 +000029147#ifdef __STDC__
29148# include <limits.h>
29149#else
29150# include <assert.h>
29151#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029152
29153#undef $ac_func
29154
John Criswell7a73b802003-06-30 21:59:07 +000029155/* Override any gcc2 internal prototype to avoid an error. */
29156#ifdef __cplusplus
29157extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029158{
John Criswell7a73b802003-06-30 21:59:07 +000029159#endif
29160/* We use char because int might match the return type of a gcc2
29161 builtin and then its argument prototype would still apply. */
29162char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029163/* The GNU C library defines this for functions which it implements
29164 to always fail with ENOSYS. Some functions are actually named
29165 something starting with __ and the normal name is an alias. */
29166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29167choke me
29168#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029169char (*f) () = $ac_func;
29170#endif
29171#ifdef __cplusplus
29172}
John Criswell7a73b802003-06-30 21:59:07 +000029173#endif
29174
John Criswell0c38eaf2003-09-10 15:17:25 +000029175int
29176main ()
29177{
29178return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029179 ;
29180 return 0;
29181}
29182_ACEOF
29183rm -f conftest.$ac_objext conftest$ac_exeext
29184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029185 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029186 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029187 grep -v '^ *+' conftest.er1 >conftest.err
29188 rm -f conftest.er1
29189 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029192 { ac_try='test -z "$ac_c_werror_flag"
29193 || test ! -s conftest.err'
29194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29195 (eval $ac_try) 2>&5
29196 ac_status=$?
29197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198 (exit $ac_status); }; } &&
29199 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29201 (eval $ac_try) 2>&5
29202 ac_status=$?
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); }; }; then
29205 eval "$as_ac_var=yes"
29206else
29207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029208sed 's/^/| /' conftest.$ac_ext >&5
29209
John Criswell7a73b802003-06-30 21:59:07 +000029210eval "$as_ac_var=no"
29211fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029212rm -f conftest.err conftest.$ac_objext \
29213 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029214fi
29215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29216echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29217if test `eval echo '${'$as_ac_var'}'` = yes; then
29218 cat >>confdefs.h <<_ACEOF
29219#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29220_ACEOF
29221
29222fi
29223done
29224
29225echo "$as_me:$LINENO: checking for working mmap" >&5
29226echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29227if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29228 echo $ECHO_N "(cached) $ECHO_C" >&6
29229else
29230 if test "$cross_compiling" = yes; then
29231 ac_cv_func_mmap_fixed_mapped=no
29232else
29233 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029234/* confdefs.h. */
29235_ACEOF
29236cat confdefs.h >>conftest.$ac_ext
29237cat >>conftest.$ac_ext <<_ACEOF
29238/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029239$ac_includes_default
29240/* malloc might have been renamed as rpl_malloc. */
29241#undef malloc
29242
29243/* Thanks to Mike Haertel and Jim Avera for this test.
29244 Here is a matrix of mmap possibilities:
29245 mmap private not fixed
29246 mmap private fixed at somewhere currently unmapped
29247 mmap private fixed at somewhere already mapped
29248 mmap shared not fixed
29249 mmap shared fixed at somewhere currently unmapped
29250 mmap shared fixed at somewhere already mapped
29251 For private mappings, we should verify that changes cannot be read()
29252 back from the file, nor mmap's back from the file at a different
29253 address. (There have been systems where private was not correctly
29254 implemented like the infamous i386 svr4.0, and systems where the
29255 VM page cache was not coherent with the file system buffer cache
29256 like early versions of FreeBSD and possibly contemporary NetBSD.)
29257 For shared mappings, we should conversely verify that changes get
29258 propagated back to all the places they're supposed to be.
29259
29260 Grep wants private fixed already mapped.
29261 The main things grep needs to know about mmap are:
29262 * does it exist and is it safe to write into the mmap'd area
29263 * how to use it (BSD variants) */
29264
29265#include <fcntl.h>
29266#include <sys/mman.h>
29267
29268#if !STDC_HEADERS && !HAVE_STDLIB_H
29269char *malloc ();
29270#endif
29271
29272/* This mess was copied from the GNU getpagesize.h. */
29273#if !HAVE_GETPAGESIZE
29274/* Assume that all systems that can run configure have sys/param.h. */
29275# if !HAVE_SYS_PARAM_H
29276# define HAVE_SYS_PARAM_H 1
29277# endif
29278
29279# ifdef _SC_PAGESIZE
29280# define getpagesize() sysconf(_SC_PAGESIZE)
29281# else /* no _SC_PAGESIZE */
29282# if HAVE_SYS_PARAM_H
29283# include <sys/param.h>
29284# ifdef EXEC_PAGESIZE
29285# define getpagesize() EXEC_PAGESIZE
29286# else /* no EXEC_PAGESIZE */
29287# ifdef NBPG
29288# define getpagesize() NBPG * CLSIZE
29289# ifndef CLSIZE
29290# define CLSIZE 1
29291# endif /* no CLSIZE */
29292# else /* no NBPG */
29293# ifdef NBPC
29294# define getpagesize() NBPC
29295# else /* no NBPC */
29296# ifdef PAGESIZE
29297# define getpagesize() PAGESIZE
29298# endif /* PAGESIZE */
29299# endif /* no NBPC */
29300# endif /* no NBPG */
29301# endif /* no EXEC_PAGESIZE */
29302# else /* no HAVE_SYS_PARAM_H */
29303# define getpagesize() 8192 /* punt totally */
29304# endif /* no HAVE_SYS_PARAM_H */
29305# endif /* no _SC_PAGESIZE */
29306
29307#endif /* no HAVE_GETPAGESIZE */
29308
29309int
29310main ()
29311{
29312 char *data, *data2, *data3;
29313 int i, pagesize;
29314 int fd;
29315
29316 pagesize = getpagesize ();
29317
29318 /* First, make a file with some known garbage in it. */
29319 data = (char *) malloc (pagesize);
29320 if (!data)
29321 exit (1);
29322 for (i = 0; i < pagesize; ++i)
29323 *(data + i) = rand ();
29324 umask (0);
29325 fd = creat ("conftest.mmap", 0600);
29326 if (fd < 0)
29327 exit (1);
29328 if (write (fd, data, pagesize) != pagesize)
29329 exit (1);
29330 close (fd);
29331
29332 /* Next, try to mmap the file at a fixed address which already has
29333 something else allocated at it. If we can, also make sure that
29334 we see the same garbage. */
29335 fd = open ("conftest.mmap", O_RDWR);
29336 if (fd < 0)
29337 exit (1);
29338 data2 = (char *) malloc (2 * pagesize);
29339 if (!data2)
29340 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029341 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029342 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029343 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029344 exit (1);
29345 for (i = 0; i < pagesize; ++i)
29346 if (*(data + i) != *(data2 + i))
29347 exit (1);
29348
29349 /* Finally, make sure that changes to the mapped area do not
29350 percolate back to the file as seen by read(). (This is a bug on
29351 some variants of i386 svr4.0.) */
29352 for (i = 0; i < pagesize; ++i)
29353 *(data2 + i) = *(data2 + i) + 1;
29354 data3 = (char *) malloc (pagesize);
29355 if (!data3)
29356 exit (1);
29357 if (read (fd, data3, pagesize) != pagesize)
29358 exit (1);
29359 for (i = 0; i < pagesize; ++i)
29360 if (*(data + i) != *(data3 + i))
29361 exit (1);
29362 close (fd);
29363 exit (0);
29364}
29365_ACEOF
29366rm -f conftest$ac_exeext
29367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29368 (eval $ac_link) 2>&5
29369 ac_status=$?
29370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29373 (eval $ac_try) 2>&5
29374 ac_status=$?
29375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376 (exit $ac_status); }; }; then
29377 ac_cv_func_mmap_fixed_mapped=yes
29378else
29379 echo "$as_me: program exited with status $ac_status" >&5
29380echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029381sed 's/^/| /' conftest.$ac_ext >&5
29382
John Criswell7a73b802003-06-30 21:59:07 +000029383( exit $ac_status )
29384ac_cv_func_mmap_fixed_mapped=no
29385fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029386rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029387fi
29388fi
29389echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29390echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29391if test $ac_cv_func_mmap_fixed_mapped = yes; then
29392
29393cat >>confdefs.h <<\_ACEOF
29394#define HAVE_MMAP 1
29395_ACEOF
29396
29397fi
29398rm -f conftest.mmap
29399
29400echo "$as_me:$LINENO: checking for mmap of files" >&5
29401echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29402if test "${ac_cv_func_mmap_file+set}" = set; then
29403 echo $ECHO_N "(cached) $ECHO_C" >&6
29404else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029405 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029406ac_cpp='$CPP $CPPFLAGS'
29407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29409ac_compiler_gnu=$ac_cv_c_compiler_gnu
29410
29411 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029412 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029413else
29414 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029415
Reid Spencer777ce172004-09-20 04:09:56 +000029416 /* confdefs.h. */
29417_ACEOF
29418cat confdefs.h >>conftest.$ac_ext
29419cat >>conftest.$ac_ext <<_ACEOF
29420/* end confdefs.h. */
29421
John Criswell7a73b802003-06-30 21:59:07 +000029422#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029423#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029424#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029425
29426int
29427main ()
29428{
John Criswell7a73b802003-06-30 21:59:07 +000029429
29430 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029431 fd = creat ("foo",0777);
29432 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29433 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029434 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029435 ;
29436 return 0;
29437}
John Criswell7a73b802003-06-30 21:59:07 +000029438_ACEOF
29439rm -f conftest$ac_exeext
29440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29441 (eval $ac_link) 2>&5
29442 ac_status=$?
29443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29446 (eval $ac_try) 2>&5
29447 ac_status=$?
29448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449 (exit $ac_status); }; }; then
29450 ac_cv_func_mmap_file=yes
29451else
29452 echo "$as_me: program exited with status $ac_status" >&5
29453echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029454sed 's/^/| /' conftest.$ac_ext >&5
29455
John Criswell7a73b802003-06-30 21:59:07 +000029456( exit $ac_status )
29457ac_cv_func_mmap_file=no
29458fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029460fi
29461 ac_ext=c
29462ac_cpp='$CPP $CPPFLAGS'
29463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29465ac_compiler_gnu=$ac_cv_c_compiler_gnu
29466
29467
29468fi
29469echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29470echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29471if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029472
29473cat >>confdefs.h <<\_ACEOF
29474#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029475_ACEOF
29476
29477 MMAP_FILE=yes
29478
29479fi
29480
John Criswell7a73b802003-06-30 21:59:07 +000029481echo "$as_me:$LINENO: checking for mprotect" >&5
29482echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29483if test "${ac_cv_func_mprotect+set}" = set; then
29484 echo $ECHO_N "(cached) $ECHO_C" >&6
29485else
29486 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029487/* confdefs.h. */
29488_ACEOF
29489cat confdefs.h >>conftest.$ac_ext
29490cat >>conftest.$ac_ext <<_ACEOF
29491/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029492/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29494#define mprotect innocuous_mprotect
29495
John Criswell7a73b802003-06-30 21:59:07 +000029496/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029497 which can conflict with char mprotect (); below.
29498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29499 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029500
John Criswell0c38eaf2003-09-10 15:17:25 +000029501#ifdef __STDC__
29502# include <limits.h>
29503#else
29504# include <assert.h>
29505#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029506
29507#undef mprotect
29508
John Criswell7a73b802003-06-30 21:59:07 +000029509/* Override any gcc2 internal prototype to avoid an error. */
29510#ifdef __cplusplus
29511extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029512{
John Criswell7a73b802003-06-30 21:59:07 +000029513#endif
29514/* We use char because int might match the return type of a gcc2
29515 builtin and then its argument prototype would still apply. */
29516char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000029517/* The GNU C library defines this for functions which it implements
29518 to always fail with ENOSYS. Some functions are actually named
29519 something starting with __ and the normal name is an alias. */
29520#if defined (__stub_mprotect) || defined (__stub___mprotect)
29521choke me
29522#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029523char (*f) () = mprotect;
29524#endif
29525#ifdef __cplusplus
29526}
John Criswell7a73b802003-06-30 21:59:07 +000029527#endif
29528
John Criswell0c38eaf2003-09-10 15:17:25 +000029529int
29530main ()
29531{
29532return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000029533 ;
29534 return 0;
29535}
29536_ACEOF
29537rm -f conftest.$ac_objext conftest$ac_exeext
29538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029539 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029541 grep -v '^ *+' conftest.er1 >conftest.err
29542 rm -f conftest.er1
29543 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029546 { ac_try='test -z "$ac_c_werror_flag"
29547 || test ! -s conftest.err'
29548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29549 (eval $ac_try) 2>&5
29550 ac_status=$?
29551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29552 (exit $ac_status); }; } &&
29553 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29555 (eval $ac_try) 2>&5
29556 ac_status=$?
29557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; }; then
29559 ac_cv_func_mprotect=yes
29560else
29561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029562sed 's/^/| /' conftest.$ac_ext >&5
29563
John Criswell7a73b802003-06-30 21:59:07 +000029564ac_cv_func_mprotect=no
29565fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029566rm -f conftest.err conftest.$ac_objext \
29567 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029568fi
29569echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29570echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29571if test $ac_cv_func_mprotect = yes; then
29572 :
29573else
29574 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29575echo "$as_me: error: Function mprotect() required but not found" >&2;}
29576 { (exit 1); exit 1; }; }
29577fi
29578
29579
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029580if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029581then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029582 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29583echo "$as_me: WARNING: mmap() required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029584fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029585if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029586then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029587 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29588echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029589fi
John Criswell7a73b802003-06-30 21:59:07 +000029590
29591
Brian Gaekef3b24102003-11-16 18:38:14 +000029592echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29593echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029594if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29595 echo $ECHO_N "(cached) $ECHO_C" >&6
29596else
29597 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000029598if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029599 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000029600 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029601 if test $? -eq 0 ; then
29602 llvm_cv_llvmgcc_sanity="yes"
29603 fi
29604 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000029605fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029606fi
29607echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29608echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29609
29610if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000029611 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029612 LLVMCC1=$llvmcc1path
29613
Reid Spencer502935f2004-12-22 05:56:56 +000029614 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029615 LLVMCC1PLUS=$llvmcc1pluspath
29616
Reid Spencer502935f2004-12-22 05:56:56 +000029617 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
29618 LLVMGCCDIR=$llvmgccdir
29619
Brian Gaekef3b24102003-11-16 18:38:14 +000029620fi
29621
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029622SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000029623
29624
Reid Spencere9de0912004-08-20 09:03:57 +000029625# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029626# information into substitutions that will end up in Makefile.config.in
29627# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000029628eval LLVM_PREFIX="${prefix}";
29629eval LLVM_BINDIR="${prefix}/bin";
29630eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000029631eval LLVM_DATADIR="${prefix}/share/llvm";
29632eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29633eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000029634eval LLVM_INCLUDEDIR="${prefix}/include";
29635eval LLVM_INFODIR="${prefix}/info";
29636eval LLVM_MANDIR="${prefix}/man";
29637LLVM_CONFIGTIME=`date`
29638
29639
29640
29641
29642
29643
29644
29645
29646
29647
29648
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029649# Place the various directores into the config.h file as #defines so that we
29650# can know about the installation paths within LLVM.
29651
Reid Spencere9de0912004-08-20 09:03:57 +000029652cat >>confdefs.h <<_ACEOF
29653#define LLVM_PREFIX "$LLVM_PREFIX"
29654_ACEOF
29655
29656
29657cat >>confdefs.h <<_ACEOF
29658#define LLVM_BINDIR "$LLVM_BINDIR"
29659_ACEOF
29660
29661
29662cat >>confdefs.h <<_ACEOF
29663#define LLVM_LIBDIR "$LLVM_LIBDIR"
29664_ACEOF
29665
29666
29667cat >>confdefs.h <<_ACEOF
29668#define LLVM_DATADIR "$LLVM_DATADIR"
29669_ACEOF
29670
29671
29672cat >>confdefs.h <<_ACEOF
29673#define LLVM_DATADIR "$LLVM_DOCSDIR"
29674_ACEOF
29675
29676
29677cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000029678#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000029679_ACEOF
29680
29681
29682cat >>confdefs.h <<_ACEOF
29683#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29684_ACEOF
29685
29686
29687cat >>confdefs.h <<_ACEOF
29688#define LLVM_INFODIR "$LLVM_INFODIR"
29689_ACEOF
29690
29691
29692cat >>confdefs.h <<_ACEOF
29693#define LLVM_MANDIR "$LLVM_MANDIR"
29694_ACEOF
29695
29696
29697cat >>confdefs.h <<_ACEOF
29698#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29699_ACEOF
29700
29701
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029702
29703 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29704
29705
29706 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29707
29708 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29709
29710 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29711
29712 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29713
29714 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29715
29716
29717 ac_config_files="$ac_config_files Makefile.config"
29718
29719
29720 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29721
29722
Reid Spencer1f319422004-11-29 04:56:35 +000029723 ac_config_files="$ac_config_files docs/doxygen.cfg"
29724
29725
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029726 ac_config_commands="$ac_config_commands Makefile"
29727
29728
29729 ac_config_commands="$ac_config_commands Makefile.common"
29730
29731
29732 ac_config_commands="$ac_config_commands examples/Makefile"
29733
29734
29735 ac_config_commands="$ac_config_commands lib/Makefile"
29736
29737
29738 ac_config_commands="$ac_config_commands runtime/Makefile"
29739
29740
29741 ac_config_commands="$ac_config_commands test/Makefile"
29742
29743
29744 ac_config_commands="$ac_config_commands test/Makefile.tests"
29745
29746
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029747 ac_config_commands="$ac_config_commands tools/Makefile"
29748
29749
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029750 ac_config_commands="$ac_config_commands utils/Makefile"
29751
29752
29753 ac_config_commands="$ac_config_commands projects/Makefile"
29754
29755
29756
John Criswell7a73b802003-06-30 21:59:07 +000029757cat >confcache <<\_ACEOF
29758# This file is a shell script that caches the results of configure
29759# tests run on this system so they can be shared between configure
29760# scripts and configure runs, see configure's option --config-cache.
29761# It is not useful on other systems. If it contains results you don't
29762# want to keep, you may remove or edit it.
29763#
29764# config.status only pays attention to the cache file if you give it
29765# the --recheck option to rerun configure.
29766#
John Criswell0c38eaf2003-09-10 15:17:25 +000029767# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000029768# loading this file, other *unset* `ac_cv_foo' will be assigned the
29769# following values.
29770
29771_ACEOF
29772
29773# The following way of writing the cache mishandles newlines in values,
29774# but we know of no workaround that is simple, portable, and efficient.
29775# So, don't put newlines in cache variables' values.
29776# Ultrix sh set writes to stderr and can't be redirected directly,
29777# and sets the high bit in the cache file unless we assign to the vars.
29778{
29779 (set) 2>&1 |
29780 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29781 *ac_space=\ *)
29782 # `set' does not quote correctly, so add quotes (double-quote
29783 # substitution turns \\\\ into \\, and sed turns \\ into \).
29784 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029785 "s/'/'\\\\''/g;
29786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000029787 ;;
29788 *)
29789 # `set' quotes correctly as required by POSIX, so do not add quotes.
29790 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029791 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000029792 ;;
29793 esac;
29794} |
29795 sed '
29796 t clear
29797 : clear
29798 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29799 t end
29800 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29801 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000029802if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000029803 if test -w $cache_file; then
29804 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29805 cat confcache >$cache_file
29806 else
29807 echo "not updating unwritable cache $cache_file"
29808 fi
29809fi
29810rm -f confcache
29811
29812test "x$prefix" = xNONE && prefix=$ac_default_prefix
29813# Let make expand exec_prefix.
29814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29815
29816# VPATH may cause trouble with some makes, so we remove $(srcdir),
29817# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29818# trailing colons and then remove the whole line if VPATH becomes empty
29819# (actually we leave an empty line to preserve line numbers).
29820if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000029821 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000029822s/:*\$(srcdir):*/:/;
29823s/:*\${srcdir}:*/:/;
29824s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029825s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000029826s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029827s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000029828}'
29829fi
29830
29831DEFS=-DHAVE_CONFIG_H
29832
John Criswell0c38eaf2003-09-10 15:17:25 +000029833ac_libobjs=
29834ac_ltlibobjs=
29835for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29836 # 1. Remove the extension, and $U if already installed.
29837 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000029838 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000029839 # 2. Add them.
29840 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29841 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29842done
29843LIBOBJS=$ac_libobjs
29844
29845LTLIBOBJS=$ac_ltlibobjs
29846
29847
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029848if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29849 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29850Usually this means the macro was only invoked conditionally." >&5
29851echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29852Usually this means the macro was only invoked conditionally." >&2;}
29853 { (exit 1); exit 1; }; }
29854fi
29855if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29856 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29857Usually this means the macro was only invoked conditionally." >&5
29858echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29859Usually this means the macro was only invoked conditionally." >&2;}
29860 { (exit 1); exit 1; }; }
29861fi
John Criswell7a73b802003-06-30 21:59:07 +000029862
29863: ${CONFIG_STATUS=./config.status}
29864ac_clean_files_save=$ac_clean_files
29865ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29866{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29867echo "$as_me: creating $CONFIG_STATUS" >&6;}
29868cat >$CONFIG_STATUS <<_ACEOF
29869#! $SHELL
29870# Generated by $as_me.
29871# Run this file to recreate the current configuration.
29872# Compiler output produced by configure, useful for debugging
29873# configure, is in config.log if it exists.
29874
29875debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000029876ac_cs_recheck=false
29877ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000029878SHELL=\${CONFIG_SHELL-$SHELL}
29879_ACEOF
29880
29881cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029882## --------------------- ##
29883## M4sh Initialization. ##
29884## --------------------- ##
29885
29886# Be Bourne compatible
29887if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29888 emulate sh
29889 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000029890 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29891 # is contrary to our usage. Disable this feature.
29892 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000029893elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29894 set -o posix
29895fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029896DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000029897
John Criswell7a73b802003-06-30 21:59:07 +000029898# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029899if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029900 as_unset=unset
29901else
29902 as_unset=false
29903fi
29904
John Criswell0c38eaf2003-09-10 15:17:25 +000029905
29906# Work around bugs in pre-3.0 UWIN ksh.
29907$as_unset ENV MAIL MAILPATH
29908PS1='$ '
29909PS2='> '
29910PS4='+ '
29911
29912# NLS nuisances.
29913for as_var in \
29914 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29915 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29916 LC_TELEPHONE LC_TIME
29917do
Reid Spencer2706f8c2004-09-19 23:53:36 +000029918 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000029919 eval $as_var=C; export $as_var
29920 else
29921 $as_unset $as_var
29922 fi
29923done
29924
29925# Required to use basename.
29926if expr a : '\(a\)' >/dev/null 2>&1; then
29927 as_expr=expr
29928else
29929 as_expr=false
29930fi
29931
29932if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29933 as_basename=basename
29934else
29935 as_basename=false
29936fi
John Criswell7a73b802003-06-30 21:59:07 +000029937
29938
29939# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000029940as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000029941$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29942 X"$0" : 'X\(//\)$' \| \
29943 X"$0" : 'X\(/\)$' \| \
29944 . : '\(.\)' 2>/dev/null ||
29945echo X/"$0" |
29946 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29947 /^X\/\(\/\/\)$/{ s//\1/; q; }
29948 /^X\/\(\/\).*/{ s//\1/; q; }
29949 s/.*/./; q'`
29950
John Criswell0c38eaf2003-09-10 15:17:25 +000029951
John Criswell7a73b802003-06-30 21:59:07 +000029952# PATH needs CR, and LINENO needs CR and PATH.
29953# Avoid depending upon Character Ranges.
29954as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29955as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29956as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29957as_cr_digits='0123456789'
29958as_cr_alnum=$as_cr_Letters$as_cr_digits
29959
29960# The user is always right.
29961if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029962 echo "#! /bin/sh" >conf$$.sh
29963 echo "exit 0" >>conf$$.sh
29964 chmod +x conf$$.sh
29965 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029966 PATH_SEPARATOR=';'
29967 else
29968 PATH_SEPARATOR=:
29969 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000029970 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000029971fi
29972
29973
29974 as_lineno_1=$LINENO
29975 as_lineno_2=$LINENO
29976 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29977 test "x$as_lineno_1" != "x$as_lineno_2" &&
29978 test "x$as_lineno_3" = "x$as_lineno_2" || {
29979 # Find who we are. Look in the path if we contain no path at all
29980 # relative or not.
29981 case $0 in
29982 *[\\/]* ) as_myself=$0 ;;
29983 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29984for as_dir in $PATH
29985do
29986 IFS=$as_save_IFS
29987 test -z "$as_dir" && as_dir=.
29988 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29989done
29990
29991 ;;
29992 esac
29993 # We did not find ourselves, most probably we were run as `sh COMMAND'
29994 # in which case we are not to be found in the path.
29995 if test "x$as_myself" = x; then
29996 as_myself=$0
29997 fi
29998 if test ! -f "$as_myself"; then
29999 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30000echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30001 { (exit 1); exit 1; }; }
30002 fi
30003 case $CONFIG_SHELL in
30004 '')
30005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30006for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30007do
30008 IFS=$as_save_IFS
30009 test -z "$as_dir" && as_dir=.
30010 for as_base in sh bash ksh sh5; do
30011 case $as_dir in
30012 /*)
30013 if ("$as_dir/$as_base" -c '
30014 as_lineno_1=$LINENO
30015 as_lineno_2=$LINENO
30016 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30017 test "x$as_lineno_1" != "x$as_lineno_2" &&
30018 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030019 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30020 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030021 CONFIG_SHELL=$as_dir/$as_base
30022 export CONFIG_SHELL
30023 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30024 fi;;
30025 esac
30026 done
30027done
30028;;
30029 esac
30030
30031 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30032 # uniformly replaced by the line number. The first 'sed' inserts a
30033 # line-number line before each line; the second 'sed' does the real
30034 # work. The second script uses 'N' to pair each line-number line
30035 # with the numbered line, and appends trailing '-' during
30036 # substitution so that $LINENO is not a special case at line end.
30037 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30038 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30039 sed '=' <$as_myself |
30040 sed '
30041 N
30042 s,$,-,
30043 : loop
30044 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30045 t loop
30046 s,-$,,
30047 s,^['$as_cr_digits']*\n,,
30048 ' >$as_me.lineno &&
30049 chmod +x $as_me.lineno ||
30050 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30051echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30052 { (exit 1); exit 1; }; }
30053
30054 # Don't try to exec as it changes $[0], causing all sort of problems
30055 # (the dirname of $[0] is not the place where we might find the
30056 # original and so on. Autoconf is especially sensible to this).
30057 . ./$as_me.lineno
30058 # Exit status is that of the last command.
30059 exit
30060}
30061
30062
30063case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30064 *c*,-n*) ECHO_N= ECHO_C='
30065' ECHO_T=' ' ;;
30066 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30067 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30068esac
30069
30070if expr a : '\(a\)' >/dev/null 2>&1; then
30071 as_expr=expr
30072else
30073 as_expr=false
30074fi
30075
30076rm -f conf$$ conf$$.exe conf$$.file
30077echo >conf$$.file
30078if ln -s conf$$.file conf$$ 2>/dev/null; then
30079 # We could just check for DJGPP; but this test a) works b) is more generic
30080 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30081 if test -f conf$$.exe; then
30082 # Don't use ln at all; we don't have any links
30083 as_ln_s='cp -p'
30084 else
30085 as_ln_s='ln -s'
30086 fi
30087elif ln conf$$.file conf$$ 2>/dev/null; then
30088 as_ln_s=ln
30089else
30090 as_ln_s='cp -p'
30091fi
30092rm -f conf$$ conf$$.exe conf$$.file
30093
John Criswell0c38eaf2003-09-10 15:17:25 +000030094if mkdir -p . 2>/dev/null; then
30095 as_mkdir_p=:
30096else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030097 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030098 as_mkdir_p=false
30099fi
30100
John Criswell7a73b802003-06-30 21:59:07 +000030101as_executable_p="test -f"
30102
30103# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030104as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030105
30106# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030107as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030108
30109
30110# IFS
30111# We need space, tab and new line, in precisely that order.
30112as_nl='
30113'
30114IFS=" $as_nl"
30115
30116# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030117$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030118
30119exec 6>&1
30120
30121# Open the log real soon, to keep \$[0] and so on meaningful, and to
30122# report actual input values of CONFIG_FILES etc. instead of their
30123# values after options handling. Logging --version etc. is OK.
30124exec 5>>config.log
30125{
30126 echo
30127 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30128## Running $as_me. ##
30129_ASBOX
30130} >&5
30131cat >&5 <<_CSEOF
30132
Reid Spencerabec8f92004-10-27 23:03:44 +000030133This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030134generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030135
30136 CONFIG_FILES = $CONFIG_FILES
30137 CONFIG_HEADERS = $CONFIG_HEADERS
30138 CONFIG_LINKS = $CONFIG_LINKS
30139 CONFIG_COMMANDS = $CONFIG_COMMANDS
30140 $ $0 $@
30141
30142_CSEOF
30143echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30144echo >&5
30145_ACEOF
30146
30147# Files that config.status was made for.
30148if test -n "$ac_config_files"; then
30149 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30150fi
30151
30152if test -n "$ac_config_headers"; then
30153 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30154fi
30155
30156if test -n "$ac_config_links"; then
30157 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30158fi
30159
30160if test -n "$ac_config_commands"; then
30161 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30162fi
30163
30164cat >>$CONFIG_STATUS <<\_ACEOF
30165
30166ac_cs_usage="\
30167\`$as_me' instantiates files from templates according to the
30168current configuration.
30169
30170Usage: $0 [OPTIONS] [FILE]...
30171
30172 -h, --help print this help, then exit
30173 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030174 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030175 -d, --debug don't remove temporary files
30176 --recheck update $as_me by reconfiguring in the same conditions
30177 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030178 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030179 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030180 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030181
30182Configuration files:
30183$config_files
30184
30185Configuration headers:
30186$config_headers
30187
Reid Spencerde8c47f2004-08-29 19:35:28 +000030188Configuration links:
30189$config_links
30190
John Criswellc764fbc2003-09-06 15:17:13 +000030191Configuration commands:
30192$config_commands
30193
John Criswell7a73b802003-06-30 21:59:07 +000030194Report bugs to <bug-autoconf@gnu.org>."
30195_ACEOF
30196
30197cat >>$CONFIG_STATUS <<_ACEOF
30198ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000030199llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000030200configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030201 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30202
Reid Spencer2706f8c2004-09-19 23:53:36 +000030203Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030204This config.status script is free software; the Free Software Foundation
30205gives unlimited permission to copy, distribute and modify it."
30206srcdir=$srcdir
30207INSTALL="$INSTALL"
30208_ACEOF
30209
30210cat >>$CONFIG_STATUS <<\_ACEOF
30211# If no file are specified by the user, then we need to provide default
30212# value. By we need to know if files were specified by the user.
30213ac_need_defaults=:
30214while test $# != 0
30215do
30216 case $1 in
30217 --*=*)
30218 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30219 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030220 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030221 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030222 -*)
30223 ac_option=$1
30224 ac_optarg=$2
30225 ac_shift=shift
30226 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030227 *) # This is not an option, so the user has probably given explicit
30228 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030229 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030230 ac_need_defaults=false;;
30231 esac
30232
John Criswell0c38eaf2003-09-10 15:17:25 +000030233 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030234 # Handling of the options.
30235_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030236cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030237 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30238 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030239 --version | --vers* | -V )
30240 echo "$ac_cs_version"; exit 0 ;;
30241 --he | --h)
30242 # Conflict between --help and --header
30243 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30244Try \`$0 --help' for more information." >&5
30245echo "$as_me: error: ambiguous option: $1
30246Try \`$0 --help' for more information." >&2;}
30247 { (exit 1); exit 1; }; };;
30248 --help | --hel | -h )
30249 echo "$ac_cs_usage"; exit 0 ;;
30250 --debug | --d* | -d )
30251 debug=: ;;
30252 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030253 $ac_shift
30254 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030255 ac_need_defaults=false;;
30256 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030257 $ac_shift
30258 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030259 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30261 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30262 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030263
30264 # This is an error.
30265 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30266Try \`$0 --help' for more information." >&5
30267echo "$as_me: error: unrecognized option: $1
30268Try \`$0 --help' for more information." >&2;}
30269 { (exit 1); exit 1; }; } ;;
30270
30271 *) ac_config_targets="$ac_config_targets $1" ;;
30272
30273 esac
30274 shift
30275done
30276
John Criswell0c38eaf2003-09-10 15:17:25 +000030277ac_configure_extra_args=
30278
30279if $ac_cs_silent; then
30280 exec 6>/dev/null
30281 ac_configure_extra_args="$ac_configure_extra_args --silent"
30282fi
30283
30284_ACEOF
30285cat >>$CONFIG_STATUS <<_ACEOF
30286if \$ac_cs_recheck; then
30287 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30288 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30289fi
30290
John Criswell7a73b802003-06-30 21:59:07 +000030291_ACEOF
30292
John Criswellc764fbc2003-09-06 15:17:13 +000030293cat >>$CONFIG_STATUS <<_ACEOF
30294#
30295# INIT-COMMANDS section.
30296#
John Criswell7a73b802003-06-30 21:59:07 +000030297
John Criswellc764fbc2003-09-06 15:17:13 +000030298${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30299${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000030300${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030301${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030302${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030303${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30304${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000030305${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000030306${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030307${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030308
30309_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030310
30311
30312
30313cat >>$CONFIG_STATUS <<\_ACEOF
30314for ac_config_target in $ac_config_targets
30315do
30316 case "$ac_config_target" in
30317 # Handling of arguments.
30318 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030319 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30320 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30321 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30322 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030323 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencer3bf69602004-12-24 06:49:16 +000030324 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_os_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030325 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30326 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030327 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030328 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030329 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030330 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30331 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030332 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030333 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030334 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030335 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030336 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030337 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30338 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030339 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30340 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030341 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30342echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30343 { (exit 1); exit 1; }; };;
30344 esac
30345done
30346
30347# If the user did not use the arguments to specify the items to instantiate,
30348# then the envvar interface is used. Set only those that are not.
30349# We use the long form for the default assignment because of an extremely
30350# bizarre bug on SunOS 4.1.3.
30351if $ac_need_defaults; then
30352 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30353 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000030354 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000030355 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030356fi
30357
John Criswell0c38eaf2003-09-10 15:17:25 +000030358# Have a temporary directory for convenience. Make it in the build tree
30359# simply because there is no reason to put it here, and in addition,
30360# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030361# Create a temporary directory, and hook for its removal unless debugging.
30362$debug ||
30363{
30364 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30365 trap '{ (exit 1); exit 1; }' 1 2 13 15
30366}
30367
30368# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030369
John Criswell7a73b802003-06-30 21:59:07 +000030370{
John Criswell0c38eaf2003-09-10 15:17:25 +000030371 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030372 test -n "$tmp" && test -d "$tmp"
30373} ||
30374{
John Criswell0c38eaf2003-09-10 15:17:25 +000030375 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030376 (umask 077 && mkdir $tmp)
30377} ||
30378{
John Criswell0c38eaf2003-09-10 15:17:25 +000030379 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030380 { (exit 1); exit 1; }
30381}
30382
30383_ACEOF
30384
30385cat >>$CONFIG_STATUS <<_ACEOF
30386
30387#
30388# CONFIG_FILES section.
30389#
30390
30391# No need to generate the scripts if there are no CONFIG_FILES.
30392# This happens for instance when ./config.status config.h
30393if test -n "\$CONFIG_FILES"; then
30394 # Protect against being on the right side of a sed subst in config.status.
30395 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30396 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30397s,@SHELL@,$SHELL,;t t
30398s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30399s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30400s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30401s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30402s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30403s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30404s,@exec_prefix@,$exec_prefix,;t t
30405s,@prefix@,$prefix,;t t
30406s,@program_transform_name@,$program_transform_name,;t t
30407s,@bindir@,$bindir,;t t
30408s,@sbindir@,$sbindir,;t t
30409s,@libexecdir@,$libexecdir,;t t
30410s,@datadir@,$datadir,;t t
30411s,@sysconfdir@,$sysconfdir,;t t
30412s,@sharedstatedir@,$sharedstatedir,;t t
30413s,@localstatedir@,$localstatedir,;t t
30414s,@libdir@,$libdir,;t t
30415s,@includedir@,$includedir,;t t
30416s,@oldincludedir@,$oldincludedir,;t t
30417s,@infodir@,$infodir,;t t
30418s,@mandir@,$mandir,;t t
30419s,@build_alias@,$build_alias,;t t
30420s,@host_alias@,$host_alias,;t t
30421s,@target_alias@,$target_alias,;t t
30422s,@DEFS@,$DEFS,;t t
30423s,@ECHO_C@,$ECHO_C,;t t
30424s,@ECHO_N@,$ECHO_N,;t t
30425s,@ECHO_T@,$ECHO_T,;t t
30426s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030427s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030428s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030429s,@build@,$build,;t t
30430s,@build_cpu@,$build_cpu,;t t
30431s,@build_vendor@,$build_vendor,;t t
30432s,@build_os@,$build_os,;t t
30433s,@host@,$host,;t t
30434s,@host_cpu@,$host_cpu,;t t
30435s,@host_vendor@,$host_vendor,;t t
30436s,@host_os@,$host_os,;t t
30437s,@target@,$target,;t t
30438s,@target_cpu@,$target_cpu,;t t
30439s,@target_vendor@,$target_vendor,;t t
30440s,@target_os@,$target_os,;t t
30441s,@OS@,$OS,;t t
John Criswell76595452003-07-01 22:07:39 +000030442s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030443s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030444s,@CC@,$CC,;t t
30445s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030446s,@LDFLAGS@,$LDFLAGS,;t t
30447s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030448s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030449s,@EXEEXT@,$EXEEXT,;t t
30450s,@OBJEXT@,$OBJEXT,;t t
30451s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30452s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030453s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030454s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030455s,@CXX@,$CXX,;t t
30456s,@CXXFLAGS@,$CXXFLAGS,;t t
30457s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030458s,@LEX@,$LEX,;t t
30459s,@LEXLIB@,$LEXLIB,;t t
30460s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030461s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030462s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030463s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030464s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030465s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000030466s,@CMP@,$CMP,;t t
30467s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030468s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030469s,@FIND@,$FIND,;t t
30470s,@GREP@,$GREP,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000030471s,@LLVMGCC@,$LLVMGCC,;t t
30472s,@LLVMGXX@,$LLVMGXX,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030473s,@MKDIR@,$MKDIR,;t t
30474s,@MV@,$MV,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030475s,@PAX@,$PAX,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030476s,@RANLIB@,$RANLIB,;t t
30477s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030478s,@RM@,$RM,;t t
30479s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030480s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030481s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30482s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30483s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030484s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030485s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030486s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030487s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030488s,@GROFF@,$GROFF,;t t
30489s,@GZIP@,$GZIP,;t t
30490s,@POD2HTML@,$POD2HTML,;t t
30491s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000030492s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000030493s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030494s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030495s,@EGREP@,$EGREP,;t t
30496s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30497s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30498s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30499s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30500s,@LIBADD_DL@,$LIBADD_DL,;t t
30501s,@ECHO@,$ECHO,;t t
30502s,@AR@,$AR,;t t
30503s,@ac_ct_AR@,$ac_ct_AR,;t t
30504s,@STRIP@,$STRIP,;t t
30505s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30506s,@CXXCPP@,$CXXCPP,;t t
30507s,@F77@,$F77,;t t
30508s,@FFLAGS@,$FFLAGS,;t t
30509s,@ac_ct_F77@,$ac_ct_F77,;t t
30510s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030511s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030512s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030513s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000030514s,@LLVMCC1@,$LLVMCC1,;t t
30515s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000030516s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000030517s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000030518s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30519s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30520s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30521s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30522s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30523s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30524s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30525s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30526s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30527s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000030528s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000030529s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030530CEOF
30531
30532_ACEOF
30533
30534 cat >>$CONFIG_STATUS <<\_ACEOF
30535 # Split the substitutions into bite-sized pieces for seds with
30536 # small command number limits, like on Digital OSF/1 and HP-UX.
30537 ac_max_sed_lines=48
30538 ac_sed_frag=1 # Number of current file.
30539 ac_beg=1 # First line for current file.
30540 ac_end=$ac_max_sed_lines # Line after last line for current file.
30541 ac_more_lines=:
30542 ac_sed_cmds=
30543 while $ac_more_lines; do
30544 if test $ac_beg -gt 1; then
30545 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30546 else
30547 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30548 fi
30549 if test ! -s $tmp/subs.frag; then
30550 ac_more_lines=false
30551 else
30552 # The purpose of the label and of the branching condition is to
30553 # speed up the sed processing (if there are no `@' at all, there
30554 # is no need to browse any of the substitutions).
30555 # These are the two extra sed commands mentioned above.
30556 (echo ':t
30557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30558 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030559 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030560 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030561 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030562 fi
30563 ac_sed_frag=`expr $ac_sed_frag + 1`
30564 ac_beg=$ac_end
30565 ac_end=`expr $ac_end + $ac_max_sed_lines`
30566 fi
30567 done
30568 if test -z "$ac_sed_cmds"; then
30569 ac_sed_cmds=cat
30570 fi
30571fi # test -n "$CONFIG_FILES"
30572
30573_ACEOF
30574cat >>$CONFIG_STATUS <<\_ACEOF
30575for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30576 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30577 case $ac_file in
30578 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030579 cat >$tmp/stdin
30580 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30581 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030582 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030584 * ) ac_file_in=$ac_file.in ;;
30585 esac
30586
30587 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30588 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30589$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030590 X"$ac_file" : 'X\(//\)[^/]' \| \
30591 X"$ac_file" : 'X\(//\)$' \| \
30592 X"$ac_file" : 'X\(/\)' \| \
30593 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030594echo X"$ac_file" |
30595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30597 /^X\(\/\/\)$/{ s//\1/; q; }
30598 /^X\(\/\).*/{ s//\1/; q; }
30599 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030600 { if $as_mkdir_p; then
30601 mkdir -p "$ac_dir"
30602 else
30603 as_dir="$ac_dir"
30604 as_dirs=
30605 while test ! -d "$as_dir"; do
30606 as_dirs="$as_dir $as_dirs"
30607 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30608$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030609 X"$as_dir" : 'X\(//\)[^/]' \| \
30610 X"$as_dir" : 'X\(//\)$' \| \
30611 X"$as_dir" : 'X\(/\)' \| \
30612 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030613echo X"$as_dir" |
30614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30616 /^X\(\/\/\)$/{ s//\1/; q; }
30617 /^X\(\/\).*/{ s//\1/; q; }
30618 s/.*/./; q'`
30619 done
30620 test ! -n "$as_dirs" || mkdir $as_dirs
30621 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30622echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30623 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030624
30625 ac_builddir=.
30626
30627if test "$ac_dir" != .; then
30628 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30629 # A "../" for each directory in $ac_dir_suffix.
30630 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30631else
30632 ac_dir_suffix= ac_top_builddir=
30633fi
30634
30635case $srcdir in
30636 .) # No --srcdir option. We are building in place.
30637 ac_srcdir=.
30638 if test -z "$ac_top_builddir"; then
30639 ac_top_srcdir=.
30640 else
30641 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30642 fi ;;
30643 [\\/]* | ?:[\\/]* ) # Absolute path.
30644 ac_srcdir=$srcdir$ac_dir_suffix;
30645 ac_top_srcdir=$srcdir ;;
30646 *) # Relative path.
30647 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30648 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30649esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030650
30651# Do not use `cd foo && pwd` to compute absolute paths, because
30652# the directories may not exist.
30653case `pwd` in
30654.) ac_abs_builddir="$ac_dir";;
30655*)
30656 case "$ac_dir" in
30657 .) ac_abs_builddir=`pwd`;;
30658 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30659 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30660 esac;;
30661esac
30662case $ac_abs_builddir in
30663.) ac_abs_top_builddir=${ac_top_builddir}.;;
30664*)
30665 case ${ac_top_builddir}. in
30666 .) ac_abs_top_builddir=$ac_abs_builddir;;
30667 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30668 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30669 esac;;
30670esac
30671case $ac_abs_builddir in
30672.) ac_abs_srcdir=$ac_srcdir;;
30673*)
30674 case $ac_srcdir in
30675 .) ac_abs_srcdir=$ac_abs_builddir;;
30676 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30677 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30678 esac;;
30679esac
30680case $ac_abs_builddir in
30681.) ac_abs_top_srcdir=$ac_top_srcdir;;
30682*)
30683 case $ac_top_srcdir in
30684 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30685 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30686 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30687 esac;;
30688esac
John Criswell7a73b802003-06-30 21:59:07 +000030689
30690
30691 case $INSTALL in
30692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30693 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30694 esac
30695
30696 if test x"$ac_file" != x-; then
30697 { echo "$as_me:$LINENO: creating $ac_file" >&5
30698echo "$as_me: creating $ac_file" >&6;}
30699 rm -f "$ac_file"
30700 fi
30701 # Let's still pretend it is `configure' which instantiates (i.e., don't
30702 # use $as_me), people would be surprised to read:
30703 # /* config.h. Generated by config.status. */
30704 if test x"$ac_file" = x-; then
30705 configure_input=
30706 else
30707 configure_input="$ac_file. "
30708 fi
30709 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030710 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000030711
30712 # First look for the input files in the build tree, otherwise in the
30713 # src tree.
30714 ac_file_inputs=`IFS=:
30715 for f in $ac_file_in; do
30716 case $f in
30717 -) echo $tmp/stdin ;;
30718 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030719 # Absolute (can't be DOS-style, as IFS=:)
30720 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030721echo "$as_me: error: cannot find input file: $f" >&2;}
30722 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030723 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030724 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030725 if test -f "$f"; then
30726 # Build tree
30727 echo "$f"
30728 elif test -f "$srcdir/$f"; then
30729 # Source tree
30730 echo "$srcdir/$f"
30731 else
30732 # /dev/null tree
30733 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030734echo "$as_me: error: cannot find input file: $f" >&2;}
30735 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030736 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030737 esac
30738 done` || { (exit 1); exit 1; }
30739_ACEOF
30740cat >>$CONFIG_STATUS <<_ACEOF
30741 sed "$ac_vpsub
30742$extrasub
30743_ACEOF
30744cat >>$CONFIG_STATUS <<\_ACEOF
30745:t
30746/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30747s,@configure_input@,$configure_input,;t t
30748s,@srcdir@,$ac_srcdir,;t t
30749s,@abs_srcdir@,$ac_abs_srcdir,;t t
30750s,@top_srcdir@,$ac_top_srcdir,;t t
30751s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30752s,@builddir@,$ac_builddir,;t t
30753s,@abs_builddir@,$ac_abs_builddir,;t t
30754s,@top_builddir@,$ac_top_builddir,;t t
30755s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30756s,@INSTALL@,$ac_INSTALL,;t t
30757" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30758 rm -f $tmp/stdin
30759 if test x"$ac_file" != x-; then
30760 mv $tmp/out $ac_file
30761 else
30762 cat $tmp/out
30763 rm -f $tmp/out
30764 fi
30765
30766done
30767_ACEOF
30768cat >>$CONFIG_STATUS <<\_ACEOF
30769
30770#
30771# CONFIG_HEADER section.
30772#
30773
30774# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30775# NAME is the cpp macro being defined and VALUE is the value it is being given.
30776#
30777# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030778ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30779ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000030780ac_dC=' '
30781ac_dD=',;t'
30782# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000030783ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000030784ac_uB='$,\1#\2define\3'
30785ac_uC=' '
30786ac_uD=',;t'
30787
30788for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30790 case $ac_file in
30791 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030792 cat >$tmp/stdin
30793 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30794 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030795 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030796 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030797 * ) ac_file_in=$ac_file.in ;;
30798 esac
30799
30800 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30801echo "$as_me: creating $ac_file" >&6;}
30802
30803 # First look for the input files in the build tree, otherwise in the
30804 # src tree.
30805 ac_file_inputs=`IFS=:
30806 for f in $ac_file_in; do
30807 case $f in
30808 -) echo $tmp/stdin ;;
30809 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030810 # Absolute (can't be DOS-style, as IFS=:)
30811 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030812echo "$as_me: error: cannot find input file: $f" >&2;}
30813 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030814 # Do quote $f, to prevent DOS paths from being IFS'd.
30815 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030816 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030817 if test -f "$f"; then
30818 # Build tree
30819 echo "$f"
30820 elif test -f "$srcdir/$f"; then
30821 # Source tree
30822 echo "$srcdir/$f"
30823 else
30824 # /dev/null tree
30825 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030826echo "$as_me: error: cannot find input file: $f" >&2;}
30827 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030828 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030829 esac
30830 done` || { (exit 1); exit 1; }
30831 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030832 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000030833
30834_ACEOF
30835
30836# Transform confdefs.h into two sed scripts, `conftest.defines' and
30837# `conftest.undefs', that substitutes the proper values into
30838# config.h.in to produce config.h. The first handles `#define'
30839# templates, and the second `#undef' templates.
30840# And first: Protect against being on the right side of a sed subst in
30841# config.status. Protect against being in an unquoted here document
30842# in config.status.
30843rm -f conftest.defines conftest.undefs
30844# Using a here document instead of a string reduces the quoting nightmare.
30845# Putting comments in sed scripts is not portable.
30846#
30847# `end' is used to avoid that the second main sed command (meant for
30848# 0-ary CPP macros) applies to n-ary macro definitions.
30849# See the Autoconf documentation for `clear'.
30850cat >confdef2sed.sed <<\_ACEOF
30851s/[\\&,]/\\&/g
30852s,[\\$`],\\&,g
30853t clear
30854: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000030855s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030856t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000030857s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030858: end
30859_ACEOF
30860# If some macros were called several times there might be several times
30861# the same #defines, which is useless. Nevertheless, we may not want to
30862# sort them, since we want the *last* AC-DEFINE to be honored.
30863uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30864sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30865rm -f confdef2sed.sed
30866
30867# This sed command replaces #undef with comments. This is necessary, for
30868# example, in the case of _POSIX_SOURCE, which is predefined and required
30869# on some systems where configure will not decide to define it.
30870cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030871s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000030872_ACEOF
30873
30874# Break up conftest.defines because some shells have a limit on the size
30875# of here documents, and old seds have small limits too (100 cmds).
30876echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000030877echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030878echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30879echo ' :' >>$CONFIG_STATUS
30880rm -f conftest.tail
30881while grep . conftest.defines >/dev/null
30882do
30883 # Write a limited-size here document to $tmp/defines.sed.
30884 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30885 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030886 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030887 # Work around the forget-to-reset-the-flag bug.
30888 echo 't clr' >>$CONFIG_STATUS
30889 echo ': clr' >>$CONFIG_STATUS
30890 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30891 echo 'CEOF
30892 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30893 rm -f $tmp/in
30894 mv $tmp/out $tmp/in
30895' >>$CONFIG_STATUS
30896 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30897 rm -f conftest.defines
30898 mv conftest.tail conftest.defines
30899done
30900rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000030901echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030902echo >>$CONFIG_STATUS
30903
30904# Break up conftest.undefs because some shells have a limit on the size
30905# of here documents, and old seds have small limits too (100 cmds).
30906echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30907rm -f conftest.tail
30908while grep . conftest.undefs >/dev/null
30909do
30910 # Write a limited-size here document to $tmp/undefs.sed.
30911 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30912 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000030913 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030914 # Work around the forget-to-reset-the-flag bug.
30915 echo 't clr' >>$CONFIG_STATUS
30916 echo ': clr' >>$CONFIG_STATUS
30917 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30918 echo 'CEOF
30919 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30920 rm -f $tmp/in
30921 mv $tmp/out $tmp/in
30922' >>$CONFIG_STATUS
30923 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30924 rm -f conftest.undefs
30925 mv conftest.tail conftest.undefs
30926done
30927rm -f conftest.undefs
30928
30929cat >>$CONFIG_STATUS <<\_ACEOF
30930 # Let's still pretend it is `configure' which instantiates (i.e., don't
30931 # use $as_me), people would be surprised to read:
30932 # /* config.h. Generated by config.status. */
30933 if test x"$ac_file" = x-; then
30934 echo "/* Generated by configure. */" >$tmp/config.h
30935 else
30936 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30937 fi
30938 cat $tmp/in >>$tmp/config.h
30939 rm -f $tmp/in
30940 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030941 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030942 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30943echo "$as_me: $ac_file is unchanged" >&6;}
30944 else
30945 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30946$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030947 X"$ac_file" : 'X\(//\)[^/]' \| \
30948 X"$ac_file" : 'X\(//\)$' \| \
30949 X"$ac_file" : 'X\(/\)' \| \
30950 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030951echo X"$ac_file" |
30952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30954 /^X\(\/\/\)$/{ s//\1/; q; }
30955 /^X\(\/\).*/{ s//\1/; q; }
30956 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030957 { if $as_mkdir_p; then
30958 mkdir -p "$ac_dir"
30959 else
30960 as_dir="$ac_dir"
30961 as_dirs=
30962 while test ! -d "$as_dir"; do
30963 as_dirs="$as_dir $as_dirs"
30964 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30965$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030966 X"$as_dir" : 'X\(//\)[^/]' \| \
30967 X"$as_dir" : 'X\(//\)$' \| \
30968 X"$as_dir" : 'X\(/\)' \| \
30969 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030970echo X"$as_dir" |
30971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30973 /^X\(\/\/\)$/{ s//\1/; q; }
30974 /^X\(\/\).*/{ s//\1/; q; }
30975 s/.*/./; q'`
30976 done
30977 test ! -n "$as_dirs" || mkdir $as_dirs
30978 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30979echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30980 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030981
30982 rm -f $ac_file
30983 mv $tmp/config.h $ac_file
30984 fi
30985 else
30986 cat $tmp/config.h
30987 rm -f $tmp/config.h
30988 fi
30989done
30990_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000030991cat >>$CONFIG_STATUS <<\_ACEOF
30992
30993#
Reid Spencerde8c47f2004-08-29 19:35:28 +000030994# CONFIG_LINKS section.
30995#
30996
30997for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30998 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30999 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31000
31001 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
31002echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
31003
31004 if test ! -r $srcdir/$ac_source; then
31005 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
31006echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
31007 { (exit 1); exit 1; }; }
31008 fi
31009 rm -f $ac_dest
31010
31011 # Make relative symlinks.
31012 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
31013$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031014 X"$ac_dest" : 'X\(//\)[^/]' \| \
31015 X"$ac_dest" : 'X\(//\)$' \| \
31016 X"$ac_dest" : 'X\(/\)' \| \
31017 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000031018echo X"$ac_dest" |
31019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31020 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31021 /^X\(\/\/\)$/{ s//\1/; q; }
31022 /^X\(\/\).*/{ s//\1/; q; }
31023 s/.*/./; q'`
31024 { if $as_mkdir_p; then
31025 mkdir -p "$ac_dest_dir"
31026 else
31027 as_dir="$ac_dest_dir"
31028 as_dirs=
31029 while test ! -d "$as_dir"; do
31030 as_dirs="$as_dir $as_dirs"
31031 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31032$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031033 X"$as_dir" : 'X\(//\)[^/]' \| \
31034 X"$as_dir" : 'X\(//\)$' \| \
31035 X"$as_dir" : 'X\(/\)' \| \
31036 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000031037echo X"$as_dir" |
31038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31039 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31040 /^X\(\/\/\)$/{ s//\1/; q; }
31041 /^X\(\/\).*/{ s//\1/; q; }
31042 s/.*/./; q'`
31043 done
31044 test ! -n "$as_dirs" || mkdir $as_dirs
31045 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
31046echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
31047 { (exit 1); exit 1; }; }; }
31048
31049 ac_builddir=.
31050
31051if test "$ac_dest_dir" != .; then
31052 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
31053 # A "../" for each directory in $ac_dir_suffix.
31054 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31055else
31056 ac_dir_suffix= ac_top_builddir=
31057fi
31058
31059case $srcdir in
31060 .) # No --srcdir option. We are building in place.
31061 ac_srcdir=.
31062 if test -z "$ac_top_builddir"; then
31063 ac_top_srcdir=.
31064 else
31065 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31066 fi ;;
31067 [\\/]* | ?:[\\/]* ) # Absolute path.
31068 ac_srcdir=$srcdir$ac_dir_suffix;
31069 ac_top_srcdir=$srcdir ;;
31070 *) # Relative path.
31071 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31072 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31073esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031074
31075# Do not use `cd foo && pwd` to compute absolute paths, because
31076# the directories may not exist.
31077case `pwd` in
31078.) ac_abs_builddir="$ac_dest_dir";;
31079*)
31080 case "$ac_dest_dir" in
31081 .) ac_abs_builddir=`pwd`;;
31082 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
31083 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
31084 esac;;
31085esac
31086case $ac_abs_builddir in
31087.) ac_abs_top_builddir=${ac_top_builddir}.;;
31088*)
31089 case ${ac_top_builddir}. in
31090 .) ac_abs_top_builddir=$ac_abs_builddir;;
31091 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31092 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31093 esac;;
31094esac
31095case $ac_abs_builddir in
31096.) ac_abs_srcdir=$ac_srcdir;;
31097*)
31098 case $ac_srcdir in
31099 .) ac_abs_srcdir=$ac_abs_builddir;;
31100 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31101 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31102 esac;;
31103esac
31104case $ac_abs_builddir in
31105.) ac_abs_top_srcdir=$ac_top_srcdir;;
31106*)
31107 case $ac_top_srcdir in
31108 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31109 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31110 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31111 esac;;
31112esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000031113
31114
31115 case $srcdir in
31116 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
31117 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
31118 esac
31119
31120 # Try a symlink, then a hard link, then a copy.
31121 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
31122 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
31123 cp -p $srcdir/$ac_source $ac_dest ||
31124 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
31125echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
31126 { (exit 1); exit 1; }; }
31127done
31128_ACEOF
31129cat >>$CONFIG_STATUS <<\_ACEOF
31130
31131#
John Criswellc764fbc2003-09-06 15:17:13 +000031132# CONFIG_COMMANDS section.
31133#
31134for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31135 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31136 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31137 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31138$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031139 X"$ac_dest" : 'X\(//\)[^/]' \| \
31140 X"$ac_dest" : 'X\(//\)$' \| \
31141 X"$ac_dest" : 'X\(/\)' \| \
31142 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031143echo X"$ac_dest" |
31144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31145 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31146 /^X\(\/\/\)$/{ s//\1/; q; }
31147 /^X\(\/\).*/{ s//\1/; q; }
31148 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031149 { if $as_mkdir_p; then
31150 mkdir -p "$ac_dir"
31151 else
31152 as_dir="$ac_dir"
31153 as_dirs=
31154 while test ! -d "$as_dir"; do
31155 as_dirs="$as_dir $as_dirs"
31156 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31157$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31158 X"$as_dir" : 'X\(//\)[^/]' \| \
31159 X"$as_dir" : 'X\(//\)$' \| \
31160 X"$as_dir" : 'X\(/\)' \| \
31161 . : '\(.\)' 2>/dev/null ||
31162echo X"$as_dir" |
31163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31165 /^X\(\/\/\)$/{ s//\1/; q; }
31166 /^X\(\/\).*/{ s//\1/; q; }
31167 s/.*/./; q'`
31168 done
31169 test ! -n "$as_dirs" || mkdir $as_dirs
31170 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31171echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31172 { (exit 1); exit 1; }; }; }
31173
John Criswellc764fbc2003-09-06 15:17:13 +000031174 ac_builddir=.
31175
31176if test "$ac_dir" != .; then
31177 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31178 # A "../" for each directory in $ac_dir_suffix.
31179 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31180else
31181 ac_dir_suffix= ac_top_builddir=
31182fi
31183
31184case $srcdir in
31185 .) # No --srcdir option. We are building in place.
31186 ac_srcdir=.
31187 if test -z "$ac_top_builddir"; then
31188 ac_top_srcdir=.
31189 else
31190 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31191 fi ;;
31192 [\\/]* | ?:[\\/]* ) # Absolute path.
31193 ac_srcdir=$srcdir$ac_dir_suffix;
31194 ac_top_srcdir=$srcdir ;;
31195 *) # Relative path.
31196 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31197 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31198esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031199
31200# Do not use `cd foo && pwd` to compute absolute paths, because
31201# the directories may not exist.
31202case `pwd` in
31203.) ac_abs_builddir="$ac_dir";;
31204*)
31205 case "$ac_dir" in
31206 .) ac_abs_builddir=`pwd`;;
31207 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31208 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31209 esac;;
31210esac
31211case $ac_abs_builddir in
31212.) ac_abs_top_builddir=${ac_top_builddir}.;;
31213*)
31214 case ${ac_top_builddir}. in
31215 .) ac_abs_top_builddir=$ac_abs_builddir;;
31216 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31217 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31218 esac;;
31219esac
31220case $ac_abs_builddir in
31221.) ac_abs_srcdir=$ac_srcdir;;
31222*)
31223 case $ac_srcdir in
31224 .) ac_abs_srcdir=$ac_abs_builddir;;
31225 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31226 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31227 esac;;
31228esac
31229case $ac_abs_builddir in
31230.) ac_abs_top_srcdir=$ac_top_srcdir;;
31231*)
31232 case $ac_top_srcdir in
31233 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31234 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31235 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31236 esac;;
31237esac
John Criswellc764fbc2003-09-06 15:17:13 +000031238
31239
31240 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31241echo "$as_me: executing $ac_dest commands" >&6;}
31242 case $ac_dest in
31243 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31244 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031245 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031246 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031247 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031248 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31249 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031250 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031251 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031252 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031253 esac
31254done
31255_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031256
31257cat >>$CONFIG_STATUS <<\_ACEOF
31258
31259{ (exit 0); exit 0; }
31260_ACEOF
31261chmod +x $CONFIG_STATUS
31262ac_clean_files=$ac_clean_files_save
31263
31264
31265# configure is writing to config.log, and then calls config.status.
31266# config.status does its own redirection, appending to config.log.
31267# Unfortunately, on DOS this fails, as config.log is still kept open
31268# by configure, so config.status won't be able to write to it; its
31269# output is simply discarded. So we exec the FD to /dev/null,
31270# effectively closing config.log, so it can be properly (re)opened and
31271# appended to by config.status. When coming back to configure, we
31272# need to make the FD available again.
31273if test "$no_create" != yes; then
31274 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031275 ac_config_status_args=
31276 test "$silent" = yes &&
31277 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031278 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031280 exec 5>>config.log
31281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31282 # would make configure fail if this is the last instruction.
31283 $ac_cs_success || { (exit 1); exit 1; }
31284fi
31285
John Criswell12399a12003-09-30 15:55:44 +000031286#
31287# CONFIG_SUBDIRS section.
31288#
31289if test "$no_recursion" != yes; then
31290
31291 # Remove --cache-file and --srcdir arguments so they do not pile up.
31292 ac_sub_configure_args=
31293 ac_prev=
31294 for ac_arg in $ac_configure_args; do
31295 if test -n "$ac_prev"; then
31296 ac_prev=
31297 continue
31298 fi
31299 case $ac_arg in
31300 -cache-file | --cache-file | --cache-fil | --cache-fi \
31301 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31302 ac_prev=cache_file ;;
31303 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31304 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31305 | --c=*)
31306 ;;
31307 --config-cache | -C)
31308 ;;
31309 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31310 ac_prev=srcdir ;;
31311 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31312 ;;
31313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31314 ac_prev=prefix ;;
31315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31316 ;;
31317 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31318 esac
31319 done
31320
31321 # Always prepend --prefix to ensure using the same prefix
31322 # in subdir configurations.
31323 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31324
31325 ac_popdir=`pwd`
31326 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31327
31328 # Do not complain, so a configure script can configure whichever
31329 # parts of a large source tree are present.
31330 test -d $srcdir/$ac_dir || continue
31331
31332 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31333echo "$as_me: configuring in $ac_dir" >&6;}
31334 { if $as_mkdir_p; then
31335 mkdir -p "$ac_dir"
31336 else
31337 as_dir="$ac_dir"
31338 as_dirs=
31339 while test ! -d "$as_dir"; do
31340 as_dirs="$as_dir $as_dirs"
31341 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031343 X"$as_dir" : 'X\(//\)[^/]' \| \
31344 X"$as_dir" : 'X\(//\)$' \| \
31345 X"$as_dir" : 'X\(/\)' \| \
31346 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031347echo X"$as_dir" |
31348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31349 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31350 /^X\(\/\/\)$/{ s//\1/; q; }
31351 /^X\(\/\).*/{ s//\1/; q; }
31352 s/.*/./; q'`
31353 done
31354 test ! -n "$as_dirs" || mkdir $as_dirs
31355 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31356echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31357 { (exit 1); exit 1; }; }; }
31358
31359 ac_builddir=.
31360
31361if test "$ac_dir" != .; then
31362 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31363 # A "../" for each directory in $ac_dir_suffix.
31364 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31365else
31366 ac_dir_suffix= ac_top_builddir=
31367fi
31368
31369case $srcdir in
31370 .) # No --srcdir option. We are building in place.
31371 ac_srcdir=.
31372 if test -z "$ac_top_builddir"; then
31373 ac_top_srcdir=.
31374 else
31375 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31376 fi ;;
31377 [\\/]* | ?:[\\/]* ) # Absolute path.
31378 ac_srcdir=$srcdir$ac_dir_suffix;
31379 ac_top_srcdir=$srcdir ;;
31380 *) # Relative path.
31381 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31382 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31383esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031384
31385# Do not use `cd foo && pwd` to compute absolute paths, because
31386# the directories may not exist.
31387case `pwd` in
31388.) ac_abs_builddir="$ac_dir";;
31389*)
31390 case "$ac_dir" in
31391 .) ac_abs_builddir=`pwd`;;
31392 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31393 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31394 esac;;
31395esac
31396case $ac_abs_builddir in
31397.) ac_abs_top_builddir=${ac_top_builddir}.;;
31398*)
31399 case ${ac_top_builddir}. in
31400 .) ac_abs_top_builddir=$ac_abs_builddir;;
31401 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31402 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31403 esac;;
31404esac
31405case $ac_abs_builddir in
31406.) ac_abs_srcdir=$ac_srcdir;;
31407*)
31408 case $ac_srcdir in
31409 .) ac_abs_srcdir=$ac_abs_builddir;;
31410 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31411 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31412 esac;;
31413esac
31414case $ac_abs_builddir in
31415.) ac_abs_top_srcdir=$ac_top_srcdir;;
31416*)
31417 case $ac_top_srcdir in
31418 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31419 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31420 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31421 esac;;
31422esac
John Criswell12399a12003-09-30 15:55:44 +000031423
31424
31425 cd $ac_dir
31426
31427 # Check for guested configure; otherwise get Cygnus style configure.
31428 if test -f $ac_srcdir/configure.gnu; then
31429 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31430 elif test -f $ac_srcdir/configure; then
31431 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31432 elif test -f $ac_srcdir/configure.in; then
31433 ac_sub_configure=$ac_configure
31434 else
31435 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31436echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31437 ac_sub_configure=
31438 fi
31439
31440 # The recursion is here.
31441 if test -n "$ac_sub_configure"; then
31442 # Make the cache file name correct relative to the subdirectory.
31443 case $cache_file in
31444 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31445 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031446 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031447 esac
31448
31449 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31450echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31451 # The eval makes quoting arguments work.
31452 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031453 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31454 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031455echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31456 { (exit 1); exit 1; }; }
31457 fi
31458
31459 cd $ac_popdir
31460 done
31461fi
31462
Brian Gaekef3b24102003-11-16 18:38:14 +000031463
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031464if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000031465 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31466echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000031467 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31468echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31469 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31470echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31471 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31472echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31473 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31474echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000031475fi