blob: 711ae0e8d398f964415cc24ae906e27302ed3a09 [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 Spencer59473af2004-12-25 07:31:29 +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 MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +0000968\`configure' configures llvm 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencerabec8f92004-10-27 23:03:44 +00001030 short | recursive ) echo "Configuration of llvm 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001039 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001040 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001047 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001048
1049Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001052 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1053 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001054 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001055 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1056 --with-pic try to use only PIC/non-PIC objects [default=use
1057 both]
1058 --with-tags[=TAGS]
1059 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001060
1061Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001062 CC C compiler command
1063 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001064 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1065 nonstandard directory <lib dir>
1066 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1067 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001068 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001069 CXX C++ compiler command
1070 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001071 CXXCPP C++ preprocessor
1072 F77 Fortran 77 compiler command
1073 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001074
1075Use these variables to override the choices made by `configure' or to help
1076it to find libraries and programs with nonstandard names/locations.
1077
1078Report bugs to <llvmbugs@cs.uiuc.edu>.
1079_ACEOF
1080fi
1081
1082if test "$ac_init_help" = "recursive"; then
1083 # If there are subdirs, report their specific --help.
1084 ac_popdir=`pwd`
1085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086 test -d $ac_dir || continue
1087 ac_builddir=.
1088
1089if test "$ac_dir" != .; then
1090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091 # A "../" for each directory in $ac_dir_suffix.
1092 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093else
1094 ac_dir_suffix= ac_top_builddir=
1095fi
1096
1097case $srcdir in
1098 .) # No --srcdir option. We are building in place.
1099 ac_srcdir=.
1100 if test -z "$ac_top_builddir"; then
1101 ac_top_srcdir=.
1102 else
1103 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104 fi ;;
1105 [\\/]* | ?:[\\/]* ) # Absolute path.
1106 ac_srcdir=$srcdir$ac_dir_suffix;
1107 ac_top_srcdir=$srcdir ;;
1108 *) # Relative path.
1109 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001112
1113# Do not use `cd foo && pwd` to compute absolute paths, because
1114# the directories may not exist.
1115case `pwd` in
1116.) ac_abs_builddir="$ac_dir";;
1117*)
1118 case "$ac_dir" in
1119 .) ac_abs_builddir=`pwd`;;
1120 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122 esac;;
1123esac
1124case $ac_abs_builddir in
1125.) ac_abs_top_builddir=${ac_top_builddir}.;;
1126*)
1127 case ${ac_top_builddir}. in
1128 .) ac_abs_top_builddir=$ac_abs_builddir;;
1129 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131 esac;;
1132esac
1133case $ac_abs_builddir in
1134.) ac_abs_srcdir=$ac_srcdir;;
1135*)
1136 case $ac_srcdir in
1137 .) ac_abs_srcdir=$ac_abs_builddir;;
1138 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140 esac;;
1141esac
1142case $ac_abs_builddir in
1143.) ac_abs_top_srcdir=$ac_top_srcdir;;
1144*)
1145 case $ac_top_srcdir in
1146 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149 esac;;
1150esac
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 cd $ac_dir
1153 # Check for guested configure; otherwise get Cygnus style configure.
1154 if test -f $ac_srcdir/configure.gnu; then
1155 echo
1156 $SHELL $ac_srcdir/configure.gnu --help=recursive
1157 elif test -f $ac_srcdir/configure; then
1158 echo
1159 $SHELL $ac_srcdir/configure --help=recursive
1160 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001161 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001162 echo
1163 $ac_configure --help
1164 else
1165 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166 fi
1167 cd $ac_popdir
1168 done
1169fi
1170
1171test -n "$ac_init_help" && exit 0
1172if $ac_init_version; then
1173 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001174llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001175generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001176
Reid Spencer2706f8c2004-09-19 23:53:36 +00001177Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001178This configure script is free software; the Free Software Foundation
1179gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001180
1181$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001182_ACEOF
1183 exit 0
1184fi
1185exec 5>config.log
1186cat >&5 <<_ACEOF
1187This file contains any messages produced by compilers while
1188running configure, to aid debugging if configure makes a mistake.
1189
Reid Spencerabec8f92004-10-27 23:03:44 +00001190It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001191generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001192
1193 $ $0 $@
1194
1195_ACEOF
1196{
1197cat <<_ASUNAME
1198## --------- ##
1199## Platform. ##
1200## --------- ##
1201
1202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1210
1211/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1218
1219_ASUNAME
1220
1221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222for as_dir in $PATH
1223do
1224 IFS=$as_save_IFS
1225 test -z "$as_dir" && as_dir=.
1226 echo "PATH: $as_dir"
1227done
1228
1229} >&5
1230
1231cat >&5 <<_ACEOF
1232
1233
1234## ----------- ##
1235## Core tests. ##
1236## ----------- ##
1237
1238_ACEOF
1239
1240
1241# Keep a trace of the command line.
1242# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001243# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001244# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001245# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001246ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001247ac_configure_args0=
1248ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001249ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001250ac_must_keep_next=false
1251for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001252do
John Criswell0c38eaf2003-09-10 15:17:25 +00001253 for ac_arg
1254 do
1255 case $ac_arg in
1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1259 continue ;;
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 esac
1263 case $ac_pass in
1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265 2)
1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001268 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001269 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001270 case $ac_arg in
1271 *=* | --config-cache | -C | -disable-* | --disable-* \
1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274 | -with-* | --with-* | -without-* | --without-* | --x)
1275 case "$ac_configure_args0 " in
1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277 esac
1278 ;;
1279 -* ) ac_must_keep_next=true ;;
1280 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001281 fi
1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283 # Get rid of the leading space.
1284 ac_sep=" "
1285 ;;
1286 esac
1287 done
John Criswell7a73b802003-06-30 21:59:07 +00001288done
John Criswell0c38eaf2003-09-10 15:17:25 +00001289$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001291
1292# When interrupted or exit'd, cleanup temporary files, and complete
1293# config.log. We remove comments because anyway the quotes in there
1294# would cause problems or look ugly.
1295# WARNING: Be sure not to use single quotes in there, as some shells,
1296# such as our DU 5.0 friend, will then `close' the trap.
1297trap 'exit_status=$?
1298 # Save into config.log some information that might help in debugging.
1299 {
1300 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001301
John Criswell7a73b802003-06-30 21:59:07 +00001302 cat <<\_ASBOX
1303## ---------------- ##
1304## Cache variables. ##
1305## ---------------- ##
1306_ASBOX
1307 echo
1308 # The following way of writing the cache mishandles newlines in values,
1309{
1310 (set) 2>&1 |
1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312 *ac_space=\ *)
1313 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001316 ;;
1317 *)
1318 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001320 ;;
1321 esac;
1322}
1323 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001324
1325 cat <<\_ASBOX
1326## ----------------- ##
1327## Output variables. ##
1328## ----------------- ##
1329_ASBOX
1330 echo
1331 for ac_var in $ac_subst_vars
1332 do
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1335 done | sort
1336 echo
1337
1338 if test -n "$ac_subst_files"; then
1339 cat <<\_ASBOX
1340## ------------- ##
1341## Output files. ##
1342## ------------- ##
1343_ASBOX
1344 echo
1345 for ac_var in $ac_subst_files
1346 do
1347 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001348 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001349 done | sort
1350 echo
1351 fi
1352
John Criswell7a73b802003-06-30 21:59:07 +00001353 if test -s confdefs.h; then
1354 cat <<\_ASBOX
1355## ----------- ##
1356## confdefs.h. ##
1357## ----------- ##
1358_ASBOX
1359 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001360 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001361 echo
1362 fi
1363 test "$ac_signal" != 0 &&
1364 echo "$as_me: caught signal $ac_signal"
1365 echo "$as_me: exit $exit_status"
1366 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001367 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001368 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369 exit $exit_status
1370 ' 0
1371for ac_signal in 1 2 13 15; do
1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373done
1374ac_signal=0
1375
1376# confdefs.h avoids OS command line length limits that DEFS can exceed.
1377rm -rf conftest* confdefs.h
1378# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379echo >confdefs.h
1380
1381# Predefined preprocessor variables.
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_NAME "$PACKAGE_NAME"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_VERSION "$PACKAGE_VERSION"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_STRING "$PACKAGE_STRING"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405_ACEOF
1406
1407
1408# Let the site file select an alternate cache file if it wants to.
1409# Prefer explicitly selected file to automatically selected ones.
1410if test -z "$CONFIG_SITE"; then
1411 if test "x$prefix" != xNONE; then
1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413 else
1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 fi
1416fi
1417for ac_site_file in $CONFIG_SITE; do
1418 if test -r "$ac_site_file"; then
1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420echo "$as_me: loading site script $ac_site_file" >&6;}
1421 sed 's/^/| /' "$ac_site_file" >&5
1422 . "$ac_site_file"
1423 fi
1424done
1425
1426if test -r "$cache_file"; then
1427 # Some versions of bash will fail to source /dev/null (special
1428 # files actually), so we avoid doing that.
1429 if test -f "$cache_file"; then
1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431echo "$as_me: loading cache $cache_file" >&6;}
1432 case $cache_file in
1433 [\\/]* | ?:[\\/]* ) . $cache_file;;
1434 *) . ./$cache_file;;
1435 esac
1436 fi
1437else
1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439echo "$as_me: creating cache $cache_file" >&6;}
1440 >$cache_file
1441fi
1442
1443# Check that the precious variables saved in the cache have kept the same
1444# value.
1445ac_cache_corrupted=false
1446for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449 eval ac_new_set=\$ac_env_${ac_var}_set
1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451 eval ac_new_val="\$ac_env_${ac_var}_value"
1452 case $ac_old_set,$ac_new_set in
1453 set,)
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1457 ,set)
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1461 ,);;
1462 *)
1463 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001465echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001467echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001469echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001470 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001471 fi;;
1472 esac
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1475 case $ac_new_val in
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1479 esac
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483 esac
1484 fi
1485done
1486if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491 { (exit 1); exit 1; }; }
1492fi
1493
1494ac_ext=c
1495ac_cpp='$CPP $CPPFLAGS'
1496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
John Criswell0c38eaf2003-09-10 15:17:25 +00001526
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001527LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1528
1529
1530
1531
1532
1533
1534
John Criswell7a73b802003-06-30 21:59:07 +00001535ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001536for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001537 if test -f $ac_dir/install-sh; then
1538 ac_aux_dir=$ac_dir
1539 ac_install_sh="$ac_aux_dir/install-sh -c"
1540 break
1541 elif test -f $ac_dir/install.sh; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install.sh -c"
1544 break
1545 elif test -f $ac_dir/shtool; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 break
1549 fi
1550done
1551if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001552 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1553echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001554 { (exit 1); exit 1; }; }
1555fi
1556ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
John Criswell392aaa32003-07-22 19:18:09 +00001560
Reid Spencer2706f8c2004-09-19 23:53:36 +00001561if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001562 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1563 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001564echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1565 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001566 fi
John Criswell93e1c722003-09-15 17:04:06 +00001567fi
1568
John Criswell33a911a2003-11-25 20:36:46 +00001569for i in `ls ${srcdir}/projects`
1570do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001571 if test -d ${srcdir}/projects/${i} ; then
1572 case ${i} in
1573 "CVS") ;;
1574 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001575
Reid Spencer4d68ba22004-09-07 16:35:45 +00001576subdirs="$subdirs projects/sample"
1577 ;;
1578 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001579
Reid Spencer4d68ba22004-09-07 16:35:45 +00001580subdirs="$subdirs projects/Stacker"
1581 ;;
1582 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001583
Reid Spencer4d68ba22004-09-07 16:35:45 +00001584subdirs="$subdirs projects/llvm-test"
1585 ;;
1586 "llvm-reopt")
1587
1588subdirs="$subdirs projects/llvm-reopt"
1589;;
1590 "llvm-gcc")
1591
1592subdirs="$subdirs projects/llvm-gcc"
1593 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001594 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001595
Reid Spencer641f7ef2004-09-20 22:14:56 +00001596subdirs="$subdirs projects/Java"
1597 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001598 "llvm-tv")
1599
1600subdirs="$subdirs projects/llvm-tv"
1601 ;;
1602 "llvm-fefw")
1603
1604subdirs="$subdirs projects/llvm-fefw"
1605 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001606 "poolalloc")
1607
1608subdirs="$subdirs projects/poolalloc"
1609 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001610 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001611 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1612echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001613 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001614 esac
John Criswell33a911a2003-11-25 20:36:46 +00001615 fi
1616done
John Criswell559a6c12003-09-30 16:31:48 +00001617
John Criswell7a73b802003-06-30 21:59:07 +00001618
1619# Make sure we can run config.sub.
1620$ac_config_sub sun4 >/dev/null 2>&1 ||
1621 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1622echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1623 { (exit 1); exit 1; }; }
1624
1625echo "$as_me:$LINENO: checking build system type" >&5
1626echo $ECHO_N "checking build system type... $ECHO_C" >&6
1627if test "${ac_cv_build+set}" = set; then
1628 echo $ECHO_N "(cached) $ECHO_C" >&6
1629else
1630 ac_cv_build_alias=$build_alias
1631test -z "$ac_cv_build_alias" &&
1632 ac_cv_build_alias=`$ac_config_guess`
1633test -z "$ac_cv_build_alias" &&
1634 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1635echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1636 { (exit 1); exit 1; }; }
1637ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1638 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1639echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1640 { (exit 1); exit 1; }; }
1641
1642fi
1643echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1644echo "${ECHO_T}$ac_cv_build" >&6
1645build=$ac_cv_build
1646build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1647build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1648build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1649
1650
1651echo "$as_me:$LINENO: checking host system type" >&5
1652echo $ECHO_N "checking host system type... $ECHO_C" >&6
1653if test "${ac_cv_host+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1655else
1656 ac_cv_host_alias=$host_alias
1657test -z "$ac_cv_host_alias" &&
1658 ac_cv_host_alias=$ac_cv_build_alias
1659ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1660 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1661echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1662 { (exit 1); exit 1; }; }
1663
1664fi
1665echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1666echo "${ECHO_T}$ac_cv_host" >&6
1667host=$ac_cv_host
1668host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1669host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1670host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1671
1672
1673echo "$as_me:$LINENO: checking target system type" >&5
1674echo $ECHO_N "checking target system type... $ECHO_C" >&6
1675if test "${ac_cv_target+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678 ac_cv_target_alias=$target_alias
1679test "x$ac_cv_target_alias" = "x" &&
1680 ac_cv_target_alias=$ac_cv_host_alias
1681ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1682 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1683echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1684 { (exit 1); exit 1; }; }
1685
1686fi
1687echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1688echo "${ECHO_T}$ac_cv_target" >&6
1689target=$ac_cv_target
1690target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1691target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1692target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1693
1694
1695# The aliases save the names the user supplied, while $host etc.
1696# will get canonicalized.
1697test -n "$target_alias" &&
1698 test "$program_prefix$program_suffix$program_transform_name" = \
1699 NONENONEs,x,x, &&
1700 program_prefix=${target_alias}-
1701
Reid Spencer7b3e8512004-12-24 06:29:05 +00001702echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1703echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1704if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001705 echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001708 *-*-aix*)
1709 llvm_cv_os_type="AIX"
1710 llvm_cv_platform_type="Unix" ;;
1711 *-*-cygwin*)
1712 llvm_cv_os_type="Cygwin"
1713 llvm_cv_platform_type="Unix" ;;
1714 *-*-darwin*)
1715 llvm_cv_os_type="Darwin"
1716 llvm_cv_platform_type="Unix" ;;
1717 *-*-freebsd*)
1718 llvm_cv_os_type="FreeBSD"
1719 llvm_cv_platform_type="Unix" ;;
1720 *-*-interix*)
1721 llvm_cv_os_type="Interix"
1722 llvm_cv_platform_type="Unix" ;;
1723 *-*-linux*)
1724 llvm_cv_os_type="Linux"
1725 llvm_cv_platform_type="Unix" ;;
1726 *-*-solaris*)
1727 llvm_cv_os_type="SunOS"
1728 llvm_cv_platform_type="Unix" ;;
1729 *-*-win32*)
1730 llvm_cv_os_type="Win32"
1731 llvm_cv_platform_type="Win32" ;;
1732 *-*-mingw*)
1733 llvm_cv_os_type="MingW"
1734 llvm_cv_platform_type="Win32" ;;
1735 *)
1736 llvm_cv_os_type="Unknown"
1737 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001738esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001739fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001740echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1741echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001742
Reid Spencer7b3e8512004-12-24 06:29:05 +00001743if test "$llvm_cv_os_type" = "Unknown" ; then
1744 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1745echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001746 { (exit 1); exit 1; }; }
1747fi
1748
Reid Spencer7b3e8512004-12-24 06:29:05 +00001749OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001750
1751
Reid Spencer7b3e8512004-12-24 06:29:05 +00001752case $llvm_cv_platform_type in
1753 Unix)
1754
1755cat >>confdefs.h <<\_ACEOF
1756#define LLVM_ON_UNIX 1
1757_ACEOF
1758
1759 ;;
1760 Win32)
1761
1762cat >>confdefs.h <<\_ACEOF
1763#define LLVM_ON_WIN32 1
1764_ACEOF
1765
1766 ;;
1767esac
1768
Reid Spencer3bf69602004-12-24 06:49:16 +00001769 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_os_type"
Reid Spencerde8c47f2004-08-29 19:35:28 +00001770
1771
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001772case $target in
1773 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1774
1775 ;;
1776esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001777
1778echo "$as_me:$LINENO: checking target architecture" >&5
1779echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001780if test "${llvm_cv_target_arch+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001784 i?86-*) llvm_cv_target_arch="x86" ;;
1785 amd64-* | x86_64-*) llvm_cv_target_arch="AMD64" ;;
1786 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1787 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1788 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001789esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001790fi
1791echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1792echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001793
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001794if test "$llvm_cv_target_arch" = "Unknown" ; then
1795 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1796echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1797fi
John Criswell76595452003-07-01 22:07:39 +00001798
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001799ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001800
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001801
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001802ac_ext=c
1803ac_cpp='$CPP $CPPFLAGS'
1804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001807if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001808 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1809set dummy ${ac_tool_prefix}gcc; ac_word=$2
1810echo "$as_me:$LINENO: checking for $ac_word" >&5
1811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812if test "${ac_cv_prog_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814else
1815 if test -n "$CC"; then
1816 ac_cv_prog_CC="$CC" # Let the user override the test.
1817else
1818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819for as_dir in $PATH
1820do
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 break 2
1828 fi
1829done
1830done
1831
1832fi
1833fi
1834CC=$ac_cv_prog_CC
1835if test -n "$CC"; then
1836 echo "$as_me:$LINENO: result: $CC" >&5
1837echo "${ECHO_T}$CC" >&6
1838else
1839 echo "$as_me:$LINENO: result: no" >&5
1840echo "${ECHO_T}no" >&6
1841fi
1842
1843fi
1844if test -z "$ac_cv_prog_CC"; then
1845 ac_ct_CC=$CC
1846 # Extract the first word of "gcc", so it can be a program name with args.
1847set dummy gcc; ac_word=$2
1848echo "$as_me:$LINENO: checking for $ac_word" >&5
1849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852else
1853 if test -n "$ac_ct_CC"; then
1854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1855else
1856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857for as_dir in $PATH
1858do
1859 IFS=$as_save_IFS
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_ac_ct_CC="gcc"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 break 2
1866 fi
1867done
1868done
1869
1870fi
1871fi
1872ac_ct_CC=$ac_cv_prog_ac_ct_CC
1873if test -n "$ac_ct_CC"; then
1874 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1875echo "${ECHO_T}$ac_ct_CC" >&6
1876else
1877 echo "$as_me:$LINENO: result: no" >&5
1878echo "${ECHO_T}no" >&6
1879fi
1880
1881 CC=$ac_ct_CC
1882else
1883 CC="$ac_cv_prog_CC"
1884fi
1885
1886if test -z "$CC"; then
1887 if test -n "$ac_tool_prefix"; then
1888 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1889set dummy ${ac_tool_prefix}cc; ac_word=$2
1890echo "$as_me:$LINENO: checking for $ac_word" >&5
1891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892if test "${ac_cv_prog_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894else
1895 if test -n "$CC"; then
1896 ac_cv_prog_CC="$CC" # Let the user override the test.
1897else
1898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899for as_dir in $PATH
1900do
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_CC="${ac_tool_prefix}cc"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 break 2
1908 fi
1909done
1910done
1911
1912fi
1913fi
1914CC=$ac_cv_prog_CC
1915if test -n "$CC"; then
1916 echo "$as_me:$LINENO: result: $CC" >&5
1917echo "${ECHO_T}$CC" >&6
1918else
1919 echo "$as_me:$LINENO: result: no" >&5
1920echo "${ECHO_T}no" >&6
1921fi
1922
1923fi
1924if test -z "$ac_cv_prog_CC"; then
1925 ac_ct_CC=$CC
1926 # Extract the first word of "cc", so it can be a program name with args.
1927set dummy cc; ac_word=$2
1928echo "$as_me:$LINENO: checking for $ac_word" >&5
1929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1930if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1932else
1933 if test -n "$ac_ct_CC"; then
1934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1935else
1936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1937for as_dir in $PATH
1938do
1939 IFS=$as_save_IFS
1940 test -z "$as_dir" && as_dir=.
1941 for ac_exec_ext in '' $ac_executable_extensions; do
1942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1943 ac_cv_prog_ac_ct_CC="cc"
1944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 break 2
1946 fi
1947done
1948done
1949
1950fi
1951fi
1952ac_ct_CC=$ac_cv_prog_ac_ct_CC
1953if test -n "$ac_ct_CC"; then
1954 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1955echo "${ECHO_T}$ac_ct_CC" >&6
1956else
1957 echo "$as_me:$LINENO: result: no" >&5
1958echo "${ECHO_T}no" >&6
1959fi
1960
1961 CC=$ac_ct_CC
1962else
1963 CC="$ac_cv_prog_CC"
1964fi
1965
1966fi
1967if test -z "$CC"; then
1968 # Extract the first word of "cc", so it can be a program name with args.
1969set dummy cc; ac_word=$2
1970echo "$as_me:$LINENO: checking for $ac_word" >&5
1971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972if test "${ac_cv_prog_CC+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
1975 if test -n "$CC"; then
1976 ac_cv_prog_CC="$CC" # Let the user override the test.
1977else
1978 ac_prog_rejected=no
1979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980for as_dir in $PATH
1981do
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1987 ac_prog_rejected=yes
1988 continue
1989 fi
1990 ac_cv_prog_CC="cc"
1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1992 break 2
1993 fi
1994done
1995done
1996
1997if test $ac_prog_rejected = yes; then
1998 # We found a bogon in the path, so make sure we never use it.
1999 set dummy $ac_cv_prog_CC
2000 shift
2001 if test $# != 0; then
2002 # We chose a different compiler from the bogus one.
2003 # However, it has the same basename, so the bogon will be chosen
2004 # first if we set CC to just the basename; use the full file name.
2005 shift
2006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2007 fi
2008fi
2009fi
2010fi
2011CC=$ac_cv_prog_CC
2012if test -n "$CC"; then
2013 echo "$as_me:$LINENO: result: $CC" >&5
2014echo "${ECHO_T}$CC" >&6
2015else
2016 echo "$as_me:$LINENO: result: no" >&5
2017echo "${ECHO_T}no" >&6
2018fi
2019
2020fi
2021if test -z "$CC"; then
2022 if test -n "$ac_tool_prefix"; then
2023 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002024 do
2025 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2026set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2027echo "$as_me:$LINENO: checking for $ac_word" >&5
2028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002029if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002030 echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002032 if test -n "$CC"; then
2033 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002034else
2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 for ac_exec_ext in '' $ac_executable_extensions; do
2041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002042 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 break 2
2045 fi
2046done
2047done
2048
2049fi
2050fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002051CC=$ac_cv_prog_CC
2052if test -n "$CC"; then
2053 echo "$as_me:$LINENO: result: $CC" >&5
2054echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002055else
2056 echo "$as_me:$LINENO: result: no" >&5
2057echo "${ECHO_T}no" >&6
2058fi
2059
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002060 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002061 done
2062fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002063if test -z "$CC"; then
2064 ac_ct_CC=$CC
2065 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002066do
2067 # Extract the first word of "$ac_prog", so it can be a program name with args.
2068set dummy $ac_prog; ac_word=$2
2069echo "$as_me:$LINENO: checking for $ac_word" >&5
2070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002071if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002074 if test -n "$ac_ct_CC"; then
2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002076else
2077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078for as_dir in $PATH
2079do
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002084 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 break 2
2087 fi
2088done
2089done
2090
2091fi
2092fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002093ac_ct_CC=$ac_cv_prog_ac_ct_CC
2094if test -n "$ac_ct_CC"; then
2095 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2096echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002097else
2098 echo "$as_me:$LINENO: result: no" >&5
2099echo "${ECHO_T}no" >&6
2100fi
2101
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002102 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002103done
John Criswell7a73b802003-06-30 21:59:07 +00002104
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002105 CC=$ac_ct_CC
2106fi
2107
John Criswell7a73b802003-06-30 21:59:07 +00002108fi
2109
2110
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002111test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2112See \`config.log' for more details." >&5
2113echo "$as_me: error: no acceptable C compiler found in \$PATH
2114See \`config.log' for more details." >&2;}
2115 { (exit 1); exit 1; }; }
2116
John Criswell7a73b802003-06-30 21:59:07 +00002117# Provide some information about the compiler.
2118echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002119 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002120ac_compiler=`set X $ac_compile; echo $2`
2121{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2122 (eval $ac_compiler --version </dev/null >&5) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2127 (eval $ac_compiler -v </dev/null >&5) 2>&5
2128 ac_status=$?
2129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130 (exit $ac_status); }
2131{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2132 (eval $ac_compiler -V </dev/null >&5) 2>&5
2133 ac_status=$?
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }
2136
2137cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002138/* confdefs.h. */
2139_ACEOF
2140cat confdefs.h >>conftest.$ac_ext
2141cat >>conftest.$ac_ext <<_ACEOF
2142/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002143
John Criswell7a73b802003-06-30 21:59:07 +00002144int
2145main ()
2146{
2147
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002153ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002154# Try to create an executable without -o first, disregard a.out.
2155# It will help us diagnose broken compilers, and finding out an intuition
2156# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002157echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2158echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002159ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2160if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2161 (eval $ac_link_default) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; then
2165 # Find the output, starting from the most likely. This scheme is
2166# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2167# resort.
2168
2169# Be careful to initialize this variable, since it used to be cached.
2170# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2171ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002172# b.out is created by i960 compilers.
2173for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2174do
2175 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002176 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002178 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002179 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002180 # This is the source file.
2181 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002182 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002183 # We found the default executable, but exeext='' is most
2184 # certainly right.
2185 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002186 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002187 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188 # FIXME: I believe we export ac_cv_exeext for Libtool,
2189 # but it would be cool to find out if it's true. Does anybody
2190 # maintain Libtool? --akim.
2191 export ac_cv_exeext
2192 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002193 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002194 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002195 esac
2196done
2197else
2198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002199sed 's/^/| /' conftest.$ac_ext >&5
2200
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002201{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002202See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002203echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002204See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002205 { (exit 77); exit 77; }; }
2206fi
2207
2208ac_exeext=$ac_cv_exeext
2209echo "$as_me:$LINENO: result: $ac_file" >&5
2210echo "${ECHO_T}$ac_file" >&6
2211
2212# Check the compiler produces executables we can run. If not, either
2213# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002214echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2215echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002216# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2217# If not cross compiling, check that we can run a simple program.
2218if test "$cross_compiling" != yes; then
2219 if { ac_try='./$ac_file'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2221 (eval $ac_try) 2>&5
2222 ac_status=$?
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; }; then
2225 cross_compiling=no
2226 else
2227 if test "$cross_compiling" = maybe; then
2228 cross_compiling=yes
2229 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002230 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002231If you meant to cross compile, use \`--host'.
2232See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002233echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002234If you meant to cross compile, use \`--host'.
2235See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002236 { (exit 1); exit 1; }; }
2237 fi
2238 fi
2239fi
2240echo "$as_me:$LINENO: result: yes" >&5
2241echo "${ECHO_T}yes" >&6
2242
John Criswell0c38eaf2003-09-10 15:17:25 +00002243rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002244ac_clean_files=$ac_clean_files_save
2245# Check the compiler produces executables we can run. If not, either
2246# the compiler is broken, or we cross compile.
2247echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2248echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2249echo "$as_me:$LINENO: result: $cross_compiling" >&5
2250echo "${ECHO_T}$cross_compiling" >&6
2251
2252echo "$as_me:$LINENO: checking for suffix of executables" >&5
2253echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2255 (eval $ac_link) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; then
2259 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2260# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2261# work properly (i.e., refer to `conftest.exe'), while it won't with
2262# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002263for ac_file in conftest.exe conftest conftest.*; do
2264 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002265 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002267 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002268 export ac_cv_exeext
2269 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002270 * ) break;;
2271 esac
2272done
2273else
John Criswell0c38eaf2003-09-10 15:17:25 +00002274 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2275See \`config.log' for more details." >&5
2276echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2277See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002278 { (exit 1); exit 1; }; }
2279fi
2280
2281rm -f conftest$ac_cv_exeext
2282echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2283echo "${ECHO_T}$ac_cv_exeext" >&6
2284
2285rm -f conftest.$ac_ext
2286EXEEXT=$ac_cv_exeext
2287ac_exeext=$EXEEXT
2288echo "$as_me:$LINENO: checking for suffix of object files" >&5
2289echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2290if test "${ac_cv_objext+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2292else
2293 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002294/* confdefs.h. */
2295_ACEOF
2296cat confdefs.h >>conftest.$ac_ext
2297cat >>conftest.$ac_ext <<_ACEOF
2298/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002299
John Criswell7a73b802003-06-30 21:59:07 +00002300int
2301main ()
2302{
2303
2304 ;
2305 return 0;
2306}
2307_ACEOF
2308rm -f conftest.o conftest.obj
2309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; then
2314 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2315 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002317 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2318 break;;
2319 esac
2320done
2321else
2322 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2326See \`config.log' for more details." >&5
2327echo "$as_me: error: cannot compute suffix of object files: cannot compile
2328See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002329 { (exit 1); exit 1; }; }
2330fi
2331
2332rm -f conftest.$ac_cv_objext conftest.$ac_ext
2333fi
2334echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2335echo "${ECHO_T}$ac_cv_objext" >&6
2336OBJEXT=$ac_cv_objext
2337ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002338echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2339echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2340if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342else
2343 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002344/* confdefs.h. */
2345_ACEOF
2346cat confdefs.h >>conftest.$ac_ext
2347cat >>conftest.$ac_ext <<_ACEOF
2348/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002349
John Criswell7a73b802003-06-30 21:59:07 +00002350int
2351main ()
2352{
2353#ifndef __GNUC__
2354 choke me
2355#endif
2356
2357 ;
2358 return 0;
2359}
2360_ACEOF
2361rm -f conftest.$ac_objext
2362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002363 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002364 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002365 grep -v '^ *+' conftest.er1 >conftest.err
2366 rm -f conftest.er1
2367 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002370 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002371 || test ! -s conftest.err'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 (eval $ac_try) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; } &&
2377 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 (eval $ac_try) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2383 ac_compiler_gnu=yes
2384else
2385 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002386sed 's/^/| /' conftest.$ac_ext >&5
2387
John Criswell7a73b802003-06-30 21:59:07 +00002388ac_compiler_gnu=no
2389fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002391ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002392
2393fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002394echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2395echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2396GCC=`test $ac_compiler_gnu = yes && echo yes`
2397ac_test_CFLAGS=${CFLAGS+set}
2398ac_save_CFLAGS=$CFLAGS
2399CFLAGS="-g"
2400echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2401echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2402if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002403 echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002406/* confdefs.h. */
2407_ACEOF
2408cat confdefs.h >>conftest.$ac_ext
2409cat >>conftest.$ac_ext <<_ACEOF
2410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002411
John Criswell7a73b802003-06-30 21:59:07 +00002412int
2413main ()
2414{
2415
2416 ;
2417 return 0;
2418}
2419_ACEOF
2420rm -f conftest.$ac_objext
2421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002422 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002423 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002424 grep -v '^ *+' conftest.er1 >conftest.err
2425 rm -f conftest.er1
2426 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002430 || test ! -s conftest.err'
2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2432 (eval $ac_try) 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; } &&
2436 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2438 (eval $ac_try) 2>&5
2439 ac_status=$?
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002442 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002443else
2444 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002445sed 's/^/| /' conftest.$ac_ext >&5
2446
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002447ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002448fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002450fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002451echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2452echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2453if test "$ac_test_CFLAGS" = set; then
2454 CFLAGS=$ac_save_CFLAGS
2455elif test $ac_cv_prog_cc_g = yes; then
2456 if test "$GCC" = yes; then
2457 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002458 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002460 fi
2461else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002462 if test "$GCC" = yes; then
2463 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002464 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002465 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002466 fi
2467fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002468echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2469echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2470if test "${ac_cv_prog_cc_stdc+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2472else
2473 ac_cv_prog_cc_stdc=no
2474ac_save_CC=$CC
2475cat >conftest.$ac_ext <<_ACEOF
2476/* confdefs.h. */
2477_ACEOF
2478cat confdefs.h >>conftest.$ac_ext
2479cat >>conftest.$ac_ext <<_ACEOF
2480/* end confdefs.h. */
2481#include <stdarg.h>
2482#include <stdio.h>
2483#include <sys/types.h>
2484#include <sys/stat.h>
2485/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2486struct buf { int x; };
2487FILE * (*rcsopen) (struct buf *, struct stat *, int);
2488static char *e (p, i)
2489 char **p;
2490 int i;
2491{
2492 return p[i];
2493}
2494static char *f (char * (*g) (char **, int), char **p, ...)
2495{
2496 char *s;
2497 va_list v;
2498 va_start (v,p);
2499 s = g (p, va_arg (v,int));
2500 va_end (v);
2501 return s;
2502}
2503
2504/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2505 function prototypes and stuff, but not '\xHH' hex character constants.
2506 These don't provoke an error unfortunately, instead are silently treated
2507 as 'x'. The following induces an error, until -std1 is added to get
2508 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2509 array size at least. It's necessary to write '\x00'==0 to get something
2510 that's true only with -std1. */
2511int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2512
2513int test (int i, double x);
2514struct s1 {int (*f) (int a);};
2515struct s2 {int (*f) (double a);};
2516int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2517int argc;
2518char **argv;
2519int
2520main ()
2521{
2522return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2523 ;
2524 return 0;
2525}
2526_ACEOF
2527# Don't try gcc -ansi; that turns off useful extensions and
2528# breaks some systems' header files.
2529# AIX -qlanglvl=ansi
2530# Ultrix and OSF/1 -std1
2531# HP-UX 10.20 and later -Ae
2532# HP-UX older versions -Aa -D_HPUX_SOURCE
2533# SVR4 -Xc -D__EXTENSIONS__
2534for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2535do
2536 CC="$ac_save_CC $ac_arg"
2537 rm -f conftest.$ac_objext
2538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539 (eval $ac_compile) 2>conftest.er1
2540 ac_status=$?
2541 grep -v '^ *+' conftest.er1 >conftest.err
2542 rm -f conftest.er1
2543 cat conftest.err >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } &&
2546 { ac_try='test -z "$ac_c_werror_flag"
2547 || test ! -s conftest.err'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 (eval $ac_try) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; } &&
2553 { ac_try='test -s conftest.$ac_objext'
2554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2555 (eval $ac_try) 2>&5
2556 ac_status=$?
2557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558 (exit $ac_status); }; }; then
2559 ac_cv_prog_cc_stdc=$ac_arg
2560break
2561else
2562 echo "$as_me: failed program was:" >&5
2563sed 's/^/| /' conftest.$ac_ext >&5
2564
2565fi
2566rm -f conftest.err conftest.$ac_objext
2567done
2568rm -f conftest.$ac_ext conftest.$ac_objext
2569CC=$ac_save_CC
2570
2571fi
2572
2573case "x$ac_cv_prog_cc_stdc" in
2574 x|xno)
2575 echo "$as_me:$LINENO: result: none needed" >&5
2576echo "${ECHO_T}none needed" >&6 ;;
2577 *)
2578 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2579echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2580 CC="$CC $ac_cv_prog_cc_stdc" ;;
2581esac
2582
2583# Some people use a C++ compiler to compile C. Since we use `exit',
2584# in C++ we need to declare it. In case someone uses the same compiler
2585# for both compiling C and C++ we need to have the C++ compiler decide
2586# the declaration of exit, since it's the most demanding environment.
2587cat >conftest.$ac_ext <<_ACEOF
2588#ifndef __cplusplus
2589 choke me
2590#endif
2591_ACEOF
2592rm -f conftest.$ac_objext
2593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2594 (eval $ac_compile) 2>conftest.er1
2595 ac_status=$?
2596 grep -v '^ *+' conftest.er1 >conftest.err
2597 rm -f conftest.er1
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } &&
2601 { ac_try='test -z "$ac_c_werror_flag"
2602 || test ! -s conftest.err'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 (eval $ac_try) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; } &&
2608 { ac_try='test -s conftest.$ac_objext'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2614 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002615 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002616 'extern "C" void std::exit (int) throw (); using std::exit;' \
2617 'extern "C" void std::exit (int); using std::exit;' \
2618 'extern "C" void exit (int) throw ();' \
2619 'extern "C" void exit (int);' \
2620 'void exit (int);'
2621do
2622 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002623/* confdefs.h. */
2624_ACEOF
2625cat confdefs.h >>conftest.$ac_ext
2626cat >>conftest.$ac_ext <<_ACEOF
2627/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002628$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002629#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002630int
2631main ()
2632{
2633exit (42);
2634 ;
2635 return 0;
2636}
2637_ACEOF
2638rm -f conftest.$ac_objext
2639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002640 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002641 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002642 grep -v '^ *+' conftest.er1 >conftest.err
2643 rm -f conftest.er1
2644 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002647 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002648 || test ! -s conftest.err'
2649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 (eval $ac_try) 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; } &&
2654 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 (eval $ac_try) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2660 :
2661else
2662 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002663sed 's/^/| /' conftest.$ac_ext >&5
2664
John Criswell7a73b802003-06-30 21:59:07 +00002665continue
2666fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002668 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002669/* confdefs.h. */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002674$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002675int
2676main ()
2677{
2678exit (42);
2679 ;
2680 return 0;
2681}
2682_ACEOF
2683rm -f conftest.$ac_objext
2684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002685 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002687 grep -v '^ *+' conftest.er1 >conftest.err
2688 rm -f conftest.er1
2689 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002692 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002693 || test ! -s conftest.err'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 (eval $ac_try) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; } &&
2699 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; }; then
2705 break
2706else
2707 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002708sed 's/^/| /' conftest.$ac_ext >&5
2709
John Criswell7a73b802003-06-30 21:59:07 +00002710fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002712done
2713rm -f conftest*
2714if test -n "$ac_declaration"; then
2715 echo '#ifdef __cplusplus' >>confdefs.h
2716 echo $ac_declaration >>confdefs.h
2717 echo '#endif' >>confdefs.h
2718fi
2719
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002720else
2721 echo "$as_me: failed program was:" >&5
2722sed 's/^/| /' conftest.$ac_ext >&5
2723
2724fi
2725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726ac_ext=c
2727ac_cpp='$CPP $CPPFLAGS'
2728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2730ac_compiler_gnu=$ac_cv_c_compiler_gnu
2731
2732
2733echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2734echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2735if test "${ac_cv_c_bigendian+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737else
2738 # See if sys/param.h defines the BYTE_ORDER macro.
2739cat >conftest.$ac_ext <<_ACEOF
2740/* confdefs.h. */
2741_ACEOF
2742cat confdefs.h >>conftest.$ac_ext
2743cat >>conftest.$ac_ext <<_ACEOF
2744/* end confdefs.h. */
2745#include <sys/types.h>
2746#include <sys/param.h>
2747
2748int
2749main ()
2750{
2751#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2752 bogus endian macros
2753#endif
2754
2755 ;
2756 return 0;
2757}
2758_ACEOF
2759rm -f conftest.$ac_objext
2760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>conftest.er1
2762 ac_status=$?
2763 grep -v '^ *+' conftest.er1 >conftest.err
2764 rm -f conftest.er1
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -z "$ac_c_werror_flag"
2769 || test ! -s conftest.err'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 (eval $ac_try) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; } &&
2775 { ac_try='test -s conftest.$ac_objext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 # It does; now see whether it defined to BIG_ENDIAN or not.
2782cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h. */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h. */
2788#include <sys/types.h>
2789#include <sys/param.h>
2790
2791int
2792main ()
2793{
2794#if BYTE_ORDER != BIG_ENDIAN
2795 not big endian
2796#endif
2797
2798 ;
2799 return 0;
2800}
2801_ACEOF
2802rm -f conftest.$ac_objext
2803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2804 (eval $ac_compile) 2>conftest.er1
2805 ac_status=$?
2806 grep -v '^ *+' conftest.er1 >conftest.err
2807 rm -f conftest.er1
2808 cat conftest.err >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); } &&
2811 { ac_try='test -z "$ac_c_werror_flag"
2812 || test ! -s conftest.err'
2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814 (eval $ac_try) 2>&5
2815 ac_status=$?
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; } &&
2818 { ac_try='test -s conftest.$ac_objext'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2820 (eval $ac_try) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2824 ac_cv_c_bigendian=yes
2825else
2826 echo "$as_me: failed program was:" >&5
2827sed 's/^/| /' conftest.$ac_ext >&5
2828
2829ac_cv_c_bigendian=no
2830fi
2831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832else
2833 echo "$as_me: failed program was:" >&5
2834sed 's/^/| /' conftest.$ac_ext >&5
2835
2836# It does not; compile a test program.
2837if test "$cross_compiling" = yes; then
2838 # try to guess the endianness by grepping values into an object file
2839 ac_cv_c_bigendian=unknown
2840 cat >conftest.$ac_ext <<_ACEOF
2841/* confdefs.h. */
2842_ACEOF
2843cat confdefs.h >>conftest.$ac_ext
2844cat >>conftest.$ac_ext <<_ACEOF
2845/* end confdefs.h. */
2846short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2847short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2848void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2849short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2850short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2851void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2852int
2853main ()
2854{
2855 _ascii (); _ebcdic ();
2856 ;
2857 return 0;
2858}
2859_ACEOF
2860rm -f conftest.$ac_objext
2861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862 (eval $ac_compile) 2>conftest.er1
2863 ac_status=$?
2864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } &&
2869 { ac_try='test -z "$ac_c_werror_flag"
2870 || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 (eval $ac_try) 2>&5
2873 ac_status=$?
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 (eval $ac_try) 2>&5
2879 ac_status=$?
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2883 ac_cv_c_bigendian=yes
2884fi
2885if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2886 if test "$ac_cv_c_bigendian" = unknown; then
2887 ac_cv_c_bigendian=no
2888 else
2889 # finding both strings is unlikely to happen, but who knows?
2890 ac_cv_c_bigendian=unknown
2891 fi
2892fi
2893else
2894 echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897fi
2898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2899else
2900 cat >conftest.$ac_ext <<_ACEOF
2901/* confdefs.h. */
2902_ACEOF
2903cat confdefs.h >>conftest.$ac_ext
2904cat >>conftest.$ac_ext <<_ACEOF
2905/* end confdefs.h. */
2906int
2907main ()
2908{
2909 /* Are we little or big endian? From Harbison&Steele. */
2910 union
2911 {
2912 long l;
2913 char c[sizeof (long)];
2914 } u;
2915 u.l = 1;
2916 exit (u.c[sizeof (long) - 1] == 1);
2917}
2918_ACEOF
2919rm -f conftest$ac_exeext
2920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2921 (eval $ac_link) 2>&5
2922 ac_status=$?
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 (eval $ac_try) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; }; then
2930 ac_cv_c_bigendian=no
2931else
2932 echo "$as_me: program exited with status $ac_status" >&5
2933echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936( exit $ac_status )
2937ac_cv_c_bigendian=yes
2938fi
2939rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2940fi
2941fi
2942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2943fi
2944echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2945echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2946case $ac_cv_c_bigendian in
2947 yes)
2948 ENDIAN=big
2949 ;;
2950 no)
2951 ENDIAN=little
2952 ;;
2953 *)
2954 { { echo "$as_me:$LINENO: error: unknown endianness
2955presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2956echo "$as_me: error: unknown endianness
2957presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2958 { (exit 1); exit 1; }; } ;;
2959esac
2960
2961
2962
2963# Check whether --enable-optimized or --disable-optimized was given.
2964if test "${enable_optimized+set}" = set; then
2965 enableval="$enable_optimized"
2966
2967else
2968 enableval=no
2969fi;
2970if test ${enableval} = "no" ; then
2971 ENABLE_OPTIMIZED=
2972
2973else
2974 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2975
2976fi
2977
2978# Check whether --enable-jit or --disable-jit was given.
2979if test "${enable_jit+set}" = set; then
2980 enableval="$enable_jit"
2981
2982else
2983 enableval=default
2984fi;
2985if test ${enableval} = "no"
2986then
2987 JIT=
2988
2989else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002990 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002991 x86) JIT=TARGET_HAS_JIT=1
2992 ;;
2993 Sparc) JIT=TARGET_HAS_JIT=1
2994 ;;
2995 PowerPC) JIT=TARGET_HAS_JIT=1
2996 ;;
Reid Spenceree93c872004-12-23 21:08:52 +00002997 AMD64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00002998 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002999 *) JIT=
3000 ;;
3001 esac
3002fi
3003
Reid Spencer1f319422004-11-29 04:56:35 +00003004# Check whether --enable-doxygen or --disable-doxygen was given.
3005if test "${enable_doxygen+set}" = set; then
3006 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003007
Reid Spencer1f319422004-11-29 04:56:35 +00003008else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003009 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003010fi;
3011case "$enableval" in
3012 yes) ENABLE_DOXYGEN=1
3013 ;;
3014 no) ENABLE_DOXYGEN=0
3015 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003016 default) ENABLE_DOXYGEN=0
3017 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003018 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3019echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3020 { (exit 1); exit 1; }; } ;;
3021esac
3022
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003023
Reid Spencer59473af2004-12-25 07:31:29 +00003024# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3025if test "${with_llvmgccdir+set}" = set; then
3026 withval="$with_llvmgccdir"
3027
3028else
3029 withval=default
3030fi;
3031case "$withval" in
3032 default) WITH_LLVMGCCDIR=default ;;
3033 /*) WITH_LLVMGCCDIR=$withval ;;
3034 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3035echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3036 { (exit 1); exit 1; }; } ;;
3037esac
3038
3039
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003040ac_ext=c
3041ac_cpp='$CPP $CPPFLAGS'
3042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044ac_compiler_gnu=$ac_cv_c_compiler_gnu
3045echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3046echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3047# On Suns, sometimes $CPP names a directory.
3048if test -n "$CPP" && test -d "$CPP"; then
3049 CPP=
3050fi
3051if test -z "$CPP"; then
3052 if test "${ac_cv_prog_CPP+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3054else
3055 # Double quotes because CPP needs to be expanded
3056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3057 do
3058 ac_preproc_ok=false
3059for ac_c_preproc_warn_flag in '' yes
3060do
3061 # Use a header file that comes with gcc, so configuring glibc
3062 # with a fresh cross-compiler works.
3063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3064 # <limits.h> exists even on freestanding compilers.
3065 # On the NeXT, cc -E runs the code through the compiler's parser,
3066 # not just through cpp. "Syntax error" is here to catch this case.
3067 cat >conftest.$ac_ext <<_ACEOF
3068/* confdefs.h. */
3069_ACEOF
3070cat confdefs.h >>conftest.$ac_ext
3071cat >>conftest.$ac_ext <<_ACEOF
3072/* end confdefs.h. */
3073#ifdef __STDC__
3074# include <limits.h>
3075#else
3076# include <assert.h>
3077#endif
3078 Syntax error
3079_ACEOF
3080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3082 ac_status=$?
3083 grep -v '^ *+' conftest.er1 >conftest.err
3084 rm -f conftest.er1
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } >/dev/null; then
3088 if test -s conftest.err; then
3089 ac_cpp_err=$ac_c_preproc_warn_flag
3090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3091 else
3092 ac_cpp_err=
3093 fi
3094else
3095 ac_cpp_err=yes
3096fi
3097if test -z "$ac_cpp_err"; then
3098 :
3099else
3100 echo "$as_me: failed program was:" >&5
3101sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 # Broken: fails on valid input.
3104continue
3105fi
3106rm -f conftest.err conftest.$ac_ext
3107
3108 # OK, works on sane cases. Now check whether non-existent headers
3109 # can be detected and how.
3110 cat >conftest.$ac_ext <<_ACEOF
3111/* confdefs.h. */
3112_ACEOF
3113cat confdefs.h >>conftest.$ac_ext
3114cat >>conftest.$ac_ext <<_ACEOF
3115/* end confdefs.h. */
3116#include <ac_nonexistent.h>
3117_ACEOF
3118if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3119 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3120 ac_status=$?
3121 grep -v '^ *+' conftest.er1 >conftest.err
3122 rm -f conftest.er1
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } >/dev/null; then
3126 if test -s conftest.err; then
3127 ac_cpp_err=$ac_c_preproc_warn_flag
3128 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3129 else
3130 ac_cpp_err=
3131 fi
3132else
3133 ac_cpp_err=yes
3134fi
3135if test -z "$ac_cpp_err"; then
3136 # Broken: success on invalid input.
3137continue
3138else
3139 echo "$as_me: failed program was:" >&5
3140sed 's/^/| /' conftest.$ac_ext >&5
3141
3142 # Passes both tests.
3143ac_preproc_ok=:
3144break
3145fi
3146rm -f conftest.err conftest.$ac_ext
3147
3148done
3149# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3150rm -f conftest.err conftest.$ac_ext
3151if $ac_preproc_ok; then
3152 break
3153fi
3154
3155 done
3156 ac_cv_prog_CPP=$CPP
3157
3158fi
3159 CPP=$ac_cv_prog_CPP
3160else
3161 ac_cv_prog_CPP=$CPP
3162fi
3163echo "$as_me:$LINENO: result: $CPP" >&5
3164echo "${ECHO_T}$CPP" >&6
3165ac_preproc_ok=false
3166for ac_c_preproc_warn_flag in '' yes
3167do
3168 # Use a header file that comes with gcc, so configuring glibc
3169 # with a fresh cross-compiler works.
3170 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3171 # <limits.h> exists even on freestanding compilers.
3172 # On the NeXT, cc -E runs the code through the compiler's parser,
3173 # not just through cpp. "Syntax error" is here to catch this case.
3174 cat >conftest.$ac_ext <<_ACEOF
3175/* confdefs.h. */
3176_ACEOF
3177cat confdefs.h >>conftest.$ac_ext
3178cat >>conftest.$ac_ext <<_ACEOF
3179/* end confdefs.h. */
3180#ifdef __STDC__
3181# include <limits.h>
3182#else
3183# include <assert.h>
3184#endif
3185 Syntax error
3186_ACEOF
3187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } >/dev/null; then
3195 if test -s conftest.err; then
3196 ac_cpp_err=$ac_c_preproc_warn_flag
3197 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3198 else
3199 ac_cpp_err=
3200 fi
3201else
3202 ac_cpp_err=yes
3203fi
3204if test -z "$ac_cpp_err"; then
3205 :
3206else
3207 echo "$as_me: failed program was:" >&5
3208sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 # Broken: fails on valid input.
3211continue
3212fi
3213rm -f conftest.err conftest.$ac_ext
3214
3215 # OK, works on sane cases. Now check whether non-existent headers
3216 # can be detected and how.
3217 cat >conftest.$ac_ext <<_ACEOF
3218/* confdefs.h. */
3219_ACEOF
3220cat confdefs.h >>conftest.$ac_ext
3221cat >>conftest.$ac_ext <<_ACEOF
3222/* end confdefs.h. */
3223#include <ac_nonexistent.h>
3224_ACEOF
3225if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3226 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3227 ac_status=$?
3228 grep -v '^ *+' conftest.er1 >conftest.err
3229 rm -f conftest.er1
3230 cat conftest.err >&5
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); } >/dev/null; then
3233 if test -s conftest.err; then
3234 ac_cpp_err=$ac_c_preproc_warn_flag
3235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3236 else
3237 ac_cpp_err=
3238 fi
3239else
3240 ac_cpp_err=yes
3241fi
3242if test -z "$ac_cpp_err"; then
3243 # Broken: success on invalid input.
3244continue
3245else
3246 echo "$as_me: failed program was:" >&5
3247sed 's/^/| /' conftest.$ac_ext >&5
3248
3249 # Passes both tests.
3250ac_preproc_ok=:
3251break
3252fi
3253rm -f conftest.err conftest.$ac_ext
3254
3255done
3256# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3257rm -f conftest.err conftest.$ac_ext
3258if $ac_preproc_ok; then
3259 :
3260else
3261 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3262See \`config.log' for more details." >&5
3263echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3264See \`config.log' for more details." >&2;}
3265 { (exit 1); exit 1; }; }
3266fi
3267
John Criswell7a73b802003-06-30 21:59:07 +00003268ac_ext=c
3269ac_cpp='$CPP $CPPFLAGS'
3270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272ac_compiler_gnu=$ac_cv_c_compiler_gnu
3273
3274ac_ext=c
3275ac_cpp='$CPP $CPPFLAGS'
3276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3278ac_compiler_gnu=$ac_cv_c_compiler_gnu
3279if test -n "$ac_tool_prefix"; then
3280 for ac_prog in gcc
3281 do
3282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3283set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3284echo "$as_me:$LINENO: checking for $ac_word" >&5
3285echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286if test "${ac_cv_prog_CC+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288else
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC="$CC" # Let the user override the test.
3291else
3292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293for as_dir in $PATH
3294do
3295 IFS=$as_save_IFS
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 break 2
3302 fi
3303done
3304done
3305
3306fi
3307fi
3308CC=$ac_cv_prog_CC
3309if test -n "$CC"; then
3310 echo "$as_me:$LINENO: result: $CC" >&5
3311echo "${ECHO_T}$CC" >&6
3312else
3313 echo "$as_me:$LINENO: result: no" >&5
3314echo "${ECHO_T}no" >&6
3315fi
3316
3317 test -n "$CC" && break
3318 done
3319fi
3320if test -z "$CC"; then
3321 ac_ct_CC=$CC
3322 for ac_prog in gcc
3323do
3324 # Extract the first word of "$ac_prog", so it can be a program name with args.
3325set dummy $ac_prog; ac_word=$2
3326echo "$as_me:$LINENO: checking for $ac_word" >&5
3327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3328if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3330else
3331 if test -n "$ac_ct_CC"; then
3332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3333else
3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335for as_dir in $PATH
3336do
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3341 ac_cv_prog_ac_ct_CC="$ac_prog"
3342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 break 2
3344 fi
3345done
3346done
3347
3348fi
3349fi
3350ac_ct_CC=$ac_cv_prog_ac_ct_CC
3351if test -n "$ac_ct_CC"; then
3352 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3353echo "${ECHO_T}$ac_ct_CC" >&6
3354else
3355 echo "$as_me:$LINENO: result: no" >&5
3356echo "${ECHO_T}no" >&6
3357fi
3358
3359 test -n "$ac_ct_CC" && break
3360done
3361
3362 CC=$ac_ct_CC
3363fi
3364
3365
John Criswell0c38eaf2003-09-10 15:17:25 +00003366test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3367See \`config.log' for more details." >&5
3368echo "$as_me: error: no acceptable C compiler found in \$PATH
3369See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003370 { (exit 1); exit 1; }; }
3371
3372# Provide some information about the compiler.
3373echo "$as_me:$LINENO:" \
3374 "checking for C compiler version" >&5
3375ac_compiler=`set X $ac_compile; echo $2`
3376{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3377 (eval $ac_compiler --version </dev/null >&5) 2>&5
3378 ac_status=$?
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }
3381{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3382 (eval $ac_compiler -v </dev/null >&5) 2>&5
3383 ac_status=$?
3384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385 (exit $ac_status); }
3386{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3387 (eval $ac_compiler -V </dev/null >&5) 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }
3391
3392echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3393echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3394if test "${ac_cv_c_compiler_gnu+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003398/* confdefs.h. */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003403
John Criswell7a73b802003-06-30 21:59:07 +00003404int
3405main ()
3406{
3407#ifndef __GNUC__
3408 choke me
3409#endif
3410
3411 ;
3412 return 0;
3413}
3414_ACEOF
3415rm -f conftest.$ac_objext
3416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003417 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003418 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003419 grep -v '^ *+' conftest.er1 >conftest.err
3420 rm -f conftest.er1
3421 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003424 { ac_try='test -z "$ac_c_werror_flag"
3425 || test ! -s conftest.err'
3426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427 (eval $ac_try) 2>&5
3428 ac_status=$?
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); }; } &&
3431 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3437 ac_compiler_gnu=yes
3438else
3439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003440sed 's/^/| /' conftest.$ac_ext >&5
3441
John Criswell7a73b802003-06-30 21:59:07 +00003442ac_compiler_gnu=no
3443fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003445ac_cv_c_compiler_gnu=$ac_compiler_gnu
3446
3447fi
3448echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3449echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3450GCC=`test $ac_compiler_gnu = yes && echo yes`
3451ac_test_CFLAGS=${CFLAGS+set}
3452ac_save_CFLAGS=$CFLAGS
3453CFLAGS="-g"
3454echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3455echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3456if test "${ac_cv_prog_cc_g+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003460/* confdefs.h. */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003465
John Criswell7a73b802003-06-30 21:59:07 +00003466int
3467main ()
3468{
3469
3470 ;
3471 return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext
3475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003476 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003477 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003483 { ac_try='test -z "$ac_c_werror_flag"
3484 || test ! -s conftest.err'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; } &&
3490 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 ac_cv_prog_cc_g=yes
3497else
3498 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003499sed 's/^/| /' conftest.$ac_ext >&5
3500
John Criswell7a73b802003-06-30 21:59:07 +00003501ac_cv_prog_cc_g=no
3502fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003504fi
3505echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3506echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3507if test "$ac_test_CFLAGS" = set; then
3508 CFLAGS=$ac_save_CFLAGS
3509elif test $ac_cv_prog_cc_g = yes; then
3510 if test "$GCC" = yes; then
3511 CFLAGS="-g -O2"
3512 else
3513 CFLAGS="-g"
3514 fi
3515else
3516 if test "$GCC" = yes; then
3517 CFLAGS="-O2"
3518 else
3519 CFLAGS=
3520 fi
3521fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003522echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3523echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3524if test "${ac_cv_prog_cc_stdc+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526else
3527 ac_cv_prog_cc_stdc=no
3528ac_save_CC=$CC
3529cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003530/* confdefs.h. */
3531_ACEOF
3532cat confdefs.h >>conftest.$ac_ext
3533cat >>conftest.$ac_ext <<_ACEOF
3534/* end confdefs.h. */
3535#include <stdarg.h>
3536#include <stdio.h>
3537#include <sys/types.h>
3538#include <sys/stat.h>
3539/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3540struct buf { int x; };
3541FILE * (*rcsopen) (struct buf *, struct stat *, int);
3542static char *e (p, i)
3543 char **p;
3544 int i;
3545{
3546 return p[i];
3547}
3548static char *f (char * (*g) (char **, int), char **p, ...)
3549{
3550 char *s;
3551 va_list v;
3552 va_start (v,p);
3553 s = g (p, va_arg (v,int));
3554 va_end (v);
3555 return s;
3556}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003557
3558/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3559 function prototypes and stuff, but not '\xHH' hex character constants.
3560 These don't provoke an error unfortunately, instead are silently treated
3561 as 'x'. The following induces an error, until -std1 is added to get
3562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3563 array size at least. It's necessary to write '\x00'==0 to get something
3564 that's true only with -std1. */
3565int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3566
John Criswell0c38eaf2003-09-10 15:17:25 +00003567int test (int i, double x);
3568struct s1 {int (*f) (int a);};
3569struct s2 {int (*f) (double a);};
3570int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571int argc;
3572char **argv;
3573int
3574main ()
3575{
3576return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3577 ;
3578 return 0;
3579}
3580_ACEOF
3581# Don't try gcc -ansi; that turns off useful extensions and
3582# breaks some systems' header files.
3583# AIX -qlanglvl=ansi
3584# Ultrix and OSF/1 -std1
3585# HP-UX 10.20 and later -Ae
3586# HP-UX older versions -Aa -D_HPUX_SOURCE
3587# SVR4 -Xc -D__EXTENSIONS__
3588for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3589do
3590 CC="$ac_save_CC $ac_arg"
3591 rm -f conftest.$ac_objext
3592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003593 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003594 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003595 grep -v '^ *+' conftest.er1 >conftest.err
3596 rm -f conftest.er1
3597 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003600 { ac_try='test -z "$ac_c_werror_flag"
3601 || test ! -s conftest.err'
3602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603 (eval $ac_try) 2>&5
3604 ac_status=$?
3605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606 (exit $ac_status); }; } &&
3607 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609 (eval $ac_try) 2>&5
3610 ac_status=$?
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }; }; then
3613 ac_cv_prog_cc_stdc=$ac_arg
3614break
3615else
3616 echo "$as_me: failed program was:" >&5
3617sed 's/^/| /' conftest.$ac_ext >&5
3618
3619fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003620rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003621done
3622rm -f conftest.$ac_ext conftest.$ac_objext
3623CC=$ac_save_CC
3624
3625fi
3626
3627case "x$ac_cv_prog_cc_stdc" in
3628 x|xno)
3629 echo "$as_me:$LINENO: result: none needed" >&5
3630echo "${ECHO_T}none needed" >&6 ;;
3631 *)
3632 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3633echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3634 CC="$CC $ac_cv_prog_cc_stdc" ;;
3635esac
3636
John Criswell7a73b802003-06-30 21:59:07 +00003637# Some people use a C++ compiler to compile C. Since we use `exit',
3638# in C++ we need to declare it. In case someone uses the same compiler
3639# for both compiling C and C++ we need to have the C++ compiler decide
3640# the declaration of exit, since it's the most demanding environment.
3641cat >conftest.$ac_ext <<_ACEOF
3642#ifndef __cplusplus
3643 choke me
3644#endif
3645_ACEOF
3646rm -f conftest.$ac_objext
3647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003648 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003649 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003650 grep -v '^ *+' conftest.er1 >conftest.err
3651 rm -f conftest.er1
3652 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003655 { ac_try='test -z "$ac_c_werror_flag"
3656 || test ! -s conftest.err'
3657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3658 (eval $ac_try) 2>&5
3659 ac_status=$?
3660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661 (exit $ac_status); }; } &&
3662 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3664 (eval $ac_try) 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003669 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003670 'extern "C" void std::exit (int) throw (); using std::exit;' \
3671 'extern "C" void std::exit (int); using std::exit;' \
3672 'extern "C" void exit (int) throw ();' \
3673 'extern "C" void exit (int);' \
3674 'void exit (int);'
3675do
3676 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003677/* confdefs.h. */
3678_ACEOF
3679cat confdefs.h >>conftest.$ac_ext
3680cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003682$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003683#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003684int
3685main ()
3686{
3687exit (42);
3688 ;
3689 return 0;
3690}
3691_ACEOF
3692rm -f conftest.$ac_objext
3693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003694 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003695 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003696 grep -v '^ *+' conftest.er1 >conftest.err
3697 rm -f conftest.er1
3698 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003701 { ac_try='test -z "$ac_c_werror_flag"
3702 || test ! -s conftest.err'
3703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 (eval $ac_try) 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; } &&
3708 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 (eval $ac_try) 2>&5
3711 ac_status=$?
3712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); }; }; then
3714 :
3715else
3716 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003717sed 's/^/| /' conftest.$ac_ext >&5
3718
John Criswell7a73b802003-06-30 21:59:07 +00003719continue
3720fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003722 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003723/* confdefs.h. */
3724_ACEOF
3725cat confdefs.h >>conftest.$ac_ext
3726cat >>conftest.$ac_ext <<_ACEOF
3727/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003728$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003729int
3730main ()
3731{
3732exit (42);
3733 ;
3734 return 0;
3735}
3736_ACEOF
3737rm -f conftest.$ac_objext
3738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003739 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003741 grep -v '^ *+' conftest.er1 >conftest.err
3742 rm -f conftest.er1
3743 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003746 { ac_try='test -z "$ac_c_werror_flag"
3747 || test ! -s conftest.err'
3748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3749 (eval $ac_try) 2>&5
3750 ac_status=$?
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }; } &&
3753 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3755 (eval $ac_try) 2>&5
3756 ac_status=$?
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; }; then
3759 break
3760else
3761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003762sed 's/^/| /' conftest.$ac_ext >&5
3763
John Criswell7a73b802003-06-30 21:59:07 +00003764fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003766done
3767rm -f conftest*
3768if test -n "$ac_declaration"; then
3769 echo '#ifdef __cplusplus' >>confdefs.h
3770 echo $ac_declaration >>confdefs.h
3771 echo '#endif' >>confdefs.h
3772fi
3773
3774else
3775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003776sed 's/^/| /' conftest.$ac_ext >&5
3777
John Criswell7a73b802003-06-30 21:59:07 +00003778fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003780ac_ext=c
3781ac_cpp='$CPP $CPPFLAGS'
3782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003786ac_ext=cc
3787ac_cpp='$CXXCPP $CPPFLAGS'
3788ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3789ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3790ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3791if test -n "$ac_tool_prefix"; then
3792 for ac_prog in $CCC g++
3793 do
3794 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3795set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3796echo "$as_me:$LINENO: checking for $ac_word" >&5
3797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3798if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003799 echo $ECHO_N "(cached) $ECHO_C" >&6
3800else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003801 if test -n "$CXX"; then
3802 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3803else
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003806do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3811 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 break 2
3814 fi
3815done
3816done
3817
3818fi
3819fi
3820CXX=$ac_cv_prog_CXX
3821if test -n "$CXX"; then
3822 echo "$as_me:$LINENO: result: $CXX" >&5
3823echo "${ECHO_T}$CXX" >&6
3824else
3825 echo "$as_me:$LINENO: result: no" >&5
3826echo "${ECHO_T}no" >&6
3827fi
3828
3829 test -n "$CXX" && break
3830 done
3831fi
3832if test -z "$CXX"; then
3833 ac_ct_CXX=$CXX
3834 for ac_prog in $CCC g++
3835do
3836 # Extract the first word of "$ac_prog", so it can be a program name with args.
3837set dummy $ac_prog; ac_word=$2
3838echo "$as_me:$LINENO: checking for $ac_word" >&5
3839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3840if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3841 echo $ECHO_N "(cached) $ECHO_C" >&6
3842else
3843 if test -n "$ac_ct_CXX"; then
3844 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3845else
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH
3848do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3853 ac_cv_prog_ac_ct_CXX="$ac_prog"
3854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857done
3858done
3859
3860fi
3861fi
3862ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3863if test -n "$ac_ct_CXX"; then
3864 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3865echo "${ECHO_T}$ac_ct_CXX" >&6
3866else
3867 echo "$as_me:$LINENO: result: no" >&5
3868echo "${ECHO_T}no" >&6
3869fi
3870
3871 test -n "$ac_ct_CXX" && break
3872done
3873test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3874
3875 CXX=$ac_ct_CXX
3876fi
3877
3878
3879# Provide some information about the compiler.
3880echo "$as_me:$LINENO:" \
3881 "checking for C++ compiler version" >&5
3882ac_compiler=`set X $ac_compile; echo $2`
3883{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3884 (eval $ac_compiler --version </dev/null >&5) 2>&5
3885 ac_status=$?
3886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887 (exit $ac_status); }
3888{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3889 (eval $ac_compiler -v </dev/null >&5) 2>&5
3890 ac_status=$?
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); }
3893{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3894 (eval $ac_compiler -V </dev/null >&5) 2>&5
3895 ac_status=$?
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }
3898
3899echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3900echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3901if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3903else
John Criswell7a73b802003-06-30 21:59:07 +00003904 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003905/* confdefs.h. */
3906_ACEOF
3907cat confdefs.h >>conftest.$ac_ext
3908cat >>conftest.$ac_ext <<_ACEOF
3909/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003910
3911int
3912main ()
3913{
3914#ifndef __GNUC__
3915 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003916#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003917
3918 ;
3919 return 0;
3920}
John Criswell7a73b802003-06-30 21:59:07 +00003921_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003922rm -f conftest.$ac_objext
3923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3924 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003925 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003926 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003927 rm -f conftest.er1
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003930 (exit $ac_status); } &&
3931 { ac_try='test -z "$ac_cxx_werror_flag"
3932 || test ! -s conftest.err'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; } &&
3938 { ac_try='test -s conftest.$ac_objext'
3939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940 (eval $ac_try) 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; }; then
3944 ac_compiler_gnu=yes
3945else
3946 echo "$as_me: failed program was:" >&5
3947sed 's/^/| /' conftest.$ac_ext >&5
3948
3949ac_compiler_gnu=no
3950fi
3951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3952ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3953
3954fi
3955echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3956echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3957GXX=`test $ac_compiler_gnu = yes && echo yes`
3958ac_test_CXXFLAGS=${CXXFLAGS+set}
3959ac_save_CXXFLAGS=$CXXFLAGS
3960CXXFLAGS="-g"
3961echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3962echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3963if test "${ac_cv_prog_cxx_g+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966 cat >conftest.$ac_ext <<_ACEOF
3967/* confdefs.h. */
3968_ACEOF
3969cat confdefs.h >>conftest.$ac_ext
3970cat >>conftest.$ac_ext <<_ACEOF
3971/* end confdefs.h. */
3972
3973int
3974main ()
3975{
3976
3977 ;
3978 return 0;
3979}
3980_ACEOF
3981rm -f conftest.$ac_objext
3982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>conftest.er1
3984 ac_status=$?
3985 grep -v '^ *+' conftest.er1 >conftest.err
3986 rm -f conftest.er1
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -z "$ac_cxx_werror_flag"
3991 || test ! -s conftest.err'
3992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993 (eval $ac_try) 2>&5
3994 ac_status=$?
3995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3996 (exit $ac_status); }; } &&
3997 { ac_try='test -s conftest.$ac_objext'
3998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999 (eval $ac_try) 2>&5
4000 ac_status=$?
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); }; }; then
4003 ac_cv_prog_cxx_g=yes
4004else
4005 echo "$as_me: failed program was:" >&5
4006sed 's/^/| /' conftest.$ac_ext >&5
4007
4008ac_cv_prog_cxx_g=no
4009fi
4010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4011fi
4012echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4013echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4014if test "$ac_test_CXXFLAGS" = set; then
4015 CXXFLAGS=$ac_save_CXXFLAGS
4016elif test $ac_cv_prog_cxx_g = yes; then
4017 if test "$GXX" = yes; then
4018 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004019 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004020 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004021 fi
4022else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004023 if test "$GXX" = yes; then
4024 CXXFLAGS="-O2"
4025 else
4026 CXXFLAGS=
4027 fi
John Criswell7a73b802003-06-30 21:59:07 +00004028fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004029for ac_declaration in \
4030 '' \
4031 'extern "C" void std::exit (int) throw (); using std::exit;' \
4032 'extern "C" void std::exit (int); using std::exit;' \
4033 'extern "C" void exit (int) throw ();' \
4034 'extern "C" void exit (int);' \
4035 'void exit (int);'
4036do
4037 cat >conftest.$ac_ext <<_ACEOF
4038/* confdefs.h. */
4039_ACEOF
4040cat confdefs.h >>conftest.$ac_ext
4041cat >>conftest.$ac_ext <<_ACEOF
4042/* end confdefs.h. */
4043$ac_declaration
4044#include <stdlib.h>
4045int
4046main ()
4047{
4048exit (42);
4049 ;
4050 return 0;
4051}
4052_ACEOF
4053rm -f conftest.$ac_objext
4054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4055 (eval $ac_compile) 2>conftest.er1
4056 ac_status=$?
4057 grep -v '^ *+' conftest.er1 >conftest.err
4058 rm -f conftest.er1
4059 cat conftest.err >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } &&
4062 { ac_try='test -z "$ac_cxx_werror_flag"
4063 || test ! -s conftest.err'
4064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065 (eval $ac_try) 2>&5
4066 ac_status=$?
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); }; } &&
4069 { ac_try='test -s conftest.$ac_objext'
4070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071 (eval $ac_try) 2>&5
4072 ac_status=$?
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004075 :
4076else
4077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004078sed 's/^/| /' conftest.$ac_ext >&5
4079
John Criswell7a73b802003-06-30 21:59:07 +00004080continue
4081fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004083 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004084/* confdefs.h. */
4085_ACEOF
4086cat confdefs.h >>conftest.$ac_ext
4087cat >>conftest.$ac_ext <<_ACEOF
4088/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004089$ac_declaration
4090int
4091main ()
4092{
4093exit (42);
4094 ;
4095 return 0;
4096}
John Criswell7a73b802003-06-30 21:59:07 +00004097_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004098rm -f conftest.$ac_objext
4099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4100 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004101 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004102 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004103 rm -f conftest.er1
4104 cat conftest.err >&5
4105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004106 (exit $ac_status); } &&
4107 { ac_try='test -z "$ac_cxx_werror_flag"
4108 || test ! -s conftest.err'
4109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 (eval $ac_try) 2>&5
4111 ac_status=$?
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); }; } &&
4114 { ac_try='test -s conftest.$ac_objext'
4115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 (eval $ac_try) 2>&5
4117 ac_status=$?
4118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4119 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004120 break
John Criswell7a73b802003-06-30 21:59:07 +00004121else
4122 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004123sed 's/^/| /' conftest.$ac_ext >&5
4124
John Criswell7a73b802003-06-30 21:59:07 +00004125fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004127done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004128rm -f conftest*
4129if test -n "$ac_declaration"; then
4130 echo '#ifdef __cplusplus' >>confdefs.h
4131 echo $ac_declaration >>confdefs.h
4132 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004133fi
4134
4135ac_ext=c
4136ac_cpp='$CPP $CPPFLAGS'
4137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140
John Criswell7a73b802003-06-30 21:59:07 +00004141echo "$as_me:$LINENO: checking " >&5
4142echo $ECHO_N "checking ... $ECHO_C" >&6
4143if test "${ac_cv_has_flex+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145else
4146 for ac_prog in flex lex
4147do
4148 # Extract the first word of "$ac_prog", so it can be a program name with args.
4149set dummy $ac_prog; ac_word=$2
4150echo "$as_me:$LINENO: checking for $ac_word" >&5
4151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152if test "${ac_cv_prog_LEX+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154else
4155 if test -n "$LEX"; then
4156 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4157else
4158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159for as_dir in $PATH
4160do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4165 ac_cv_prog_LEX="$ac_prog"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4168 fi
4169done
4170done
4171
4172fi
4173fi
4174LEX=$ac_cv_prog_LEX
4175if test -n "$LEX"; then
4176 echo "$as_me:$LINENO: result: $LEX" >&5
4177echo "${ECHO_T}$LEX" >&6
4178else
4179 echo "$as_me:$LINENO: result: no" >&5
4180echo "${ECHO_T}no" >&6
4181fi
4182
4183 test -n "$LEX" && break
4184done
4185test -n "$LEX" || LEX=":"
4186
4187if test -z "$LEXLIB"
4188then
4189 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4190echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4191if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193else
4194 ac_check_lib_save_LIBS=$LIBS
4195LIBS="-lfl $LIBS"
4196cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004197/* confdefs.h. */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
4201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004202
4203/* Override any gcc2 internal prototype to avoid an error. */
4204#ifdef __cplusplus
4205extern "C"
4206#endif
4207/* We use char because int might match the return type of a gcc2
4208 builtin and then its argument prototype would still apply. */
4209char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004210int
4211main ()
4212{
4213yywrap ();
4214 ;
4215 return 0;
4216}
4217_ACEOF
4218rm -f conftest.$ac_objext conftest$ac_exeext
4219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004220 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004221 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004222 grep -v '^ *+' conftest.er1 >conftest.err
4223 rm -f conftest.er1
4224 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004227 { ac_try='test -z "$ac_c_werror_flag"
4228 || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4230 (eval $ac_try) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4236 (eval $ac_try) 2>&5
4237 ac_status=$?
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_cv_lib_fl_yywrap=yes
4241else
4242 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004243sed 's/^/| /' conftest.$ac_ext >&5
4244
John Criswell7a73b802003-06-30 21:59:07 +00004245ac_cv_lib_fl_yywrap=no
4246fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004247rm -f conftest.err conftest.$ac_objext \
4248 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004249LIBS=$ac_check_lib_save_LIBS
4250fi
4251echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4252echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4253if test $ac_cv_lib_fl_yywrap = yes; then
4254 LEXLIB="-lfl"
4255else
4256 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4257echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4258if test "${ac_cv_lib_l_yywrap+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260else
4261 ac_check_lib_save_LIBS=$LIBS
4262LIBS="-ll $LIBS"
4263cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004264/* confdefs.h. */
4265_ACEOF
4266cat confdefs.h >>conftest.$ac_ext
4267cat >>conftest.$ac_ext <<_ACEOF
4268/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004269
4270/* Override any gcc2 internal prototype to avoid an error. */
4271#ifdef __cplusplus
4272extern "C"
4273#endif
4274/* We use char because int might match the return type of a gcc2
4275 builtin and then its argument prototype would still apply. */
4276char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004277int
4278main ()
4279{
4280yywrap ();
4281 ;
4282 return 0;
4283}
4284_ACEOF
4285rm -f conftest.$ac_objext conftest$ac_exeext
4286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004287 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004288 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004289 grep -v '^ *+' conftest.er1 >conftest.err
4290 rm -f conftest.er1
4291 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004294 { ac_try='test -z "$ac_c_werror_flag"
4295 || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297 (eval $ac_try) 2>&5
4298 ac_status=$?
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303 (eval $ac_try) 2>&5
4304 ac_status=$?
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 ac_cv_lib_l_yywrap=yes
4308else
4309 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004310sed 's/^/| /' conftest.$ac_ext >&5
4311
John Criswell7a73b802003-06-30 21:59:07 +00004312ac_cv_lib_l_yywrap=no
4313fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004314rm -f conftest.err conftest.$ac_objext \
4315 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004316LIBS=$ac_check_lib_save_LIBS
4317fi
4318echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4319echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4320if test $ac_cv_lib_l_yywrap = yes; then
4321 LEXLIB="-ll"
4322fi
4323
4324fi
4325
4326fi
4327
4328if test "x$LEX" != "x:"; then
4329 echo "$as_me:$LINENO: checking lex output file root" >&5
4330echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4331if test "${ac_cv_prog_lex_root+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334 # The minimal lex program is just a single line: %%. But some broken lexes
4335# (Solaris, I think it was) want two %% lines, so accommodate them.
4336cat >conftest.l <<_ACEOF
4337%%
4338%%
4339_ACEOF
4340{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4341 (eval $LEX conftest.l) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }
4345if test -f lex.yy.c; then
4346 ac_cv_prog_lex_root=lex.yy
4347elif test -f lexyy.c; then
4348 ac_cv_prog_lex_root=lexyy
4349else
4350 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4351echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4352 { (exit 1); exit 1; }; }
4353fi
4354fi
4355echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4356echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4357rm -f conftest.l
4358LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4359
4360echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4361echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4362if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365 # POSIX says lex can declare yytext either as a pointer or an array; the
4366# default is implementation-dependent. Figure out which it is, since
4367# not all implementations provide the %pointer and %array declarations.
4368ac_cv_prog_lex_yytext_pointer=no
4369echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4370ac_save_LIBS=$LIBS
4371LIBS="$LIBS $LEXLIB"
4372cat >conftest.$ac_ext <<_ACEOF
4373`cat $LEX_OUTPUT_ROOT.c`
4374_ACEOF
4375rm -f conftest.$ac_objext conftest$ac_exeext
4376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004377 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004378 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004379 grep -v '^ *+' conftest.er1 >conftest.err
4380 rm -f conftest.er1
4381 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004384 { ac_try='test -z "$ac_c_werror_flag"
4385 || test ! -s conftest.err'
4386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4387 (eval $ac_try) 2>&5
4388 ac_status=$?
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); }; } &&
4391 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 (eval $ac_try) 2>&5
4394 ac_status=$?
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then
4397 ac_cv_prog_lex_yytext_pointer=yes
4398else
4399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004400sed 's/^/| /' conftest.$ac_ext >&5
4401
John Criswell7a73b802003-06-30 21:59:07 +00004402fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004403rm -f conftest.err conftest.$ac_objext \
4404 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004405LIBS=$ac_save_LIBS
4406rm -f "${LEX_OUTPUT_ROOT}.c"
4407
4408fi
4409echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4410echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4411if test $ac_cv_prog_lex_yytext_pointer = yes; then
4412
4413cat >>confdefs.h <<\_ACEOF
4414#define YYTEXT_POINTER 1
4415_ACEOF
4416
4417fi
4418
4419fi
4420
4421fi
4422echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4423echo "${ECHO_T}$ac_cv_has_flex" >&6
4424if test "$LEX" != "flex"; then
4425 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4426echo "$as_me: error: flex not found but required" >&2;}
4427 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004428else
4429 FLEX=flex
4430
John Criswell7a73b802003-06-30 21:59:07 +00004431fi
4432
4433echo "$as_me:$LINENO: checking " >&5
4434echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004435if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004436 echo $ECHO_N "(cached) $ECHO_C" >&6
4437else
4438 for ac_prog in 'bison -y' byacc
4439do
4440 # Extract the first word of "$ac_prog", so it can be a program name with args.
4441set dummy $ac_prog; ac_word=$2
4442echo "$as_me:$LINENO: checking for $ac_word" >&5
4443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4444if test "${ac_cv_prog_YACC+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446else
4447 if test -n "$YACC"; then
4448 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4449else
4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451for as_dir in $PATH
4452do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457 ac_cv_prog_YACC="$ac_prog"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4460 fi
4461done
4462done
4463
4464fi
4465fi
4466YACC=$ac_cv_prog_YACC
4467if test -n "$YACC"; then
4468 echo "$as_me:$LINENO: result: $YACC" >&5
4469echo "${ECHO_T}$YACC" >&6
4470else
4471 echo "$as_me:$LINENO: result: no" >&5
4472echo "${ECHO_T}no" >&6
4473fi
4474
4475 test -n "$YACC" && break
4476done
4477test -n "$YACC" || YACC="yacc"
4478
John Criswell7a73b802003-06-30 21:59:07 +00004479fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004480echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4481echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004482if test "$YACC" != "bison -y"; then
4483 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4484echo "$as_me: error: bison not found but required" >&2;}
4485 { (exit 1); exit 1; }; }
4486else
Brian Gaeke12810632004-01-13 06:52:10 +00004487 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004488
4489fi
4490
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004491echo "$as_me:$LINENO: checking for GNU make" >&5
4492echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4493if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004496 llvm_cv_gnu_make_command=''
4497 for a in "$MAKE" make gmake gnumake ; do
4498 if test -z "$a" ; then continue ; fi ;
4499 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4500 then
4501 llvm_cv_gnu_make_command=$a ;
4502 break;
John Criswell47fdd832003-07-14 16:52:07 +00004503 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004504 done
John Criswell7a73b802003-06-30 21:59:07 +00004505fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004506echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4507echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4508 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4509 ifGNUmake='' ;
4510 else
4511 ifGNUmake='#' ;
4512 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4513echo "${ECHO_T}\"Not found\"" >&6;
4514 fi
John Criswell7a73b802003-06-30 21:59:07 +00004515
John Criswell7a73b802003-06-30 21:59:07 +00004516
4517echo "$as_me:$LINENO: checking whether ln -s works" >&5
4518echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4519LN_S=$as_ln_s
4520if test "$LN_S" = "ln -s"; then
4521 echo "$as_me:$LINENO: result: yes" >&5
4522echo "${ECHO_T}yes" >&6
4523else
4524 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4525echo "${ECHO_T}no, using $LN_S" >&6
4526fi
4527
Reid Spencer8a2d4712004-12-16 17:48:14 +00004528# Extract the first word of "cmp", so it can be a program name with args.
4529set dummy cmp; ac_word=$2
4530echo "$as_me:$LINENO: checking for $ac_word" >&5
4531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4532if test "${ac_cv_path_CMP+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4534else
4535 case $CMP in
4536 [\\/]* | ?:[\\/]*)
4537 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4538 ;;
4539 *)
4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541for as_dir in $PATH
4542do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4547 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4549 break 2
4550 fi
4551done
4552done
4553
4554 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4555 ;;
4556esac
4557fi
4558CMP=$ac_cv_path_CMP
4559
4560if test -n "$CMP"; then
4561 echo "$as_me:$LINENO: result: $CMP" >&5
4562echo "${ECHO_T}$CMP" >&6
4563else
4564 echo "$as_me:$LINENO: result: no" >&5
4565echo "${ECHO_T}no" >&6
4566fi
4567
4568# Extract the first word of "cp", so it can be a program name with args.
4569set dummy cp; ac_word=$2
4570echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4572if test "${ac_cv_path_CP+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 case $CP in
4576 [\\/]* | ?:[\\/]*)
4577 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4578 ;;
4579 *)
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
4586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4587 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592done
4593
4594 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4595 ;;
4596esac
4597fi
4598CP=$ac_cv_path_CP
4599
4600if test -n "$CP"; then
4601 echo "$as_me:$LINENO: result: $CP" >&5
4602echo "${ECHO_T}$CP" >&6
4603else
4604 echo "$as_me:$LINENO: result: no" >&5
4605echo "${ECHO_T}no" >&6
4606fi
4607
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004608# Extract the first word of "date", so it can be a program name with args.
4609set dummy date; ac_word=$2
4610echo "$as_me:$LINENO: checking for $ac_word" >&5
4611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4612if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004615 case $DATE in
4616 [\\/]* | ?:[\\/]*)
4617 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004618 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004619 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004630 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004631done
4632done
John Criswell7a73b802003-06-30 21:59:07 +00004633
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004634 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004635 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004636esac
John Criswell7a73b802003-06-30 21:59:07 +00004637fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004638DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004639
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004640if test -n "$DATE"; then
4641 echo "$as_me:$LINENO: result: $DATE" >&5
4642echo "${ECHO_T}$DATE" >&6
4643else
4644 echo "$as_me:$LINENO: result: no" >&5
4645echo "${ECHO_T}no" >&6
4646fi
John Criswell7a73b802003-06-30 21:59:07 +00004647
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004648# Extract the first word of "find", so it can be a program name with args.
4649set dummy find; ac_word=$2
4650echo "$as_me:$LINENO: checking for $ac_word" >&5
4651echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4652if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004653 echo $ECHO_N "(cached) $ECHO_C" >&6
4654else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004655 case $FIND in
4656 [\\/]* | ?:[\\/]*)
4657 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4658 ;;
4659 *)
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661for as_dir in $PATH
4662do
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4670 fi
4671done
4672done
4673
4674 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4675 ;;
4676esac
4677fi
4678FIND=$ac_cv_path_FIND
4679
4680if test -n "$FIND"; then
4681 echo "$as_me:$LINENO: result: $FIND" >&5
4682echo "${ECHO_T}$FIND" >&6
4683else
4684 echo "$as_me:$LINENO: result: no" >&5
4685echo "${ECHO_T}no" >&6
4686fi
4687
4688# Extract the first word of "grep", so it can be a program name with args.
4689set dummy grep; ac_word=$2
4690echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4692if test "${ac_cv_path_GREP+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 case $GREP in
4696 [\\/]* | ?:[\\/]*)
4697 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4698 ;;
4699 *)
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4707 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711done
4712done
4713
4714 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4715 ;;
4716esac
4717fi
4718GREP=$ac_cv_path_GREP
4719
4720if test -n "$GREP"; then
4721 echo "$as_me:$LINENO: result: $GREP" >&5
4722echo "${ECHO_T}$GREP" >&6
4723else
4724 echo "$as_me:$LINENO: result: no" >&5
4725echo "${ECHO_T}no" >&6
4726fi
4727
4728# Extract the first word of "mkdir", so it can be a program name with args.
4729set dummy mkdir; ac_word=$2
4730echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4732if test "${ac_cv_path_MKDIR+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735 case $MKDIR in
4736 [\\/]* | ?:[\\/]*)
4737 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4738 ;;
4739 *)
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749 break 2
4750 fi
4751done
4752done
4753
4754 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4755 ;;
4756esac
4757fi
4758MKDIR=$ac_cv_path_MKDIR
4759
4760if test -n "$MKDIR"; then
4761 echo "$as_me:$LINENO: result: $MKDIR" >&5
4762echo "${ECHO_T}$MKDIR" >&6
4763else
4764 echo "$as_me:$LINENO: result: no" >&5
4765echo "${ECHO_T}no" >&6
4766fi
4767
4768# Extract the first word of "mv", so it can be a program name with args.
4769set dummy mv; ac_word=$2
4770echo "$as_me:$LINENO: checking for $ac_word" >&5
4771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4772if test "${ac_cv_path_MV+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774else
4775 case $MV in
4776 [\\/]* | ?:[\\/]*)
4777 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4778 ;;
4779 *)
4780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781for as_dir in $PATH
4782do
4783 IFS=$as_save_IFS
4784 test -z "$as_dir" && as_dir=.
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791done
4792done
4793
4794 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4795 ;;
4796esac
4797fi
4798MV=$ac_cv_path_MV
4799
4800if test -n "$MV"; then
4801 echo "$as_me:$LINENO: result: $MV" >&5
4802echo "${ECHO_T}$MV" >&6
4803else
4804 echo "$as_me:$LINENO: result: no" >&5
4805echo "${ECHO_T}no" >&6
4806fi
4807
4808# Extract the first word of "pax", so it can be a program name with args.
4809set dummy pax; ac_word=$2
4810echo "$as_me:$LINENO: checking for $ac_word" >&5
4811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4812if test "${ac_cv_path_PAX+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4814else
4815 case $PAX in
4816 [\\/]* | ?:[\\/]*)
4817 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4818 ;;
4819 *)
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4830 fi
4831done
4832done
4833
4834 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4835 ;;
4836esac
4837fi
4838PAX=$ac_cv_path_PAX
4839
4840if test -n "$PAX"; then
4841 echo "$as_me:$LINENO: result: $PAX" >&5
4842echo "${ECHO_T}$PAX" >&6
4843else
4844 echo "$as_me:$LINENO: result: no" >&5
4845echo "${ECHO_T}no" >&6
4846fi
4847
4848if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4850set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4851echo "$as_me:$LINENO: checking for $ac_word" >&5
4852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4853if test "${ac_cv_prog_RANLIB+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855else
4856 if test -n "$RANLIB"; then
4857 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870done
4871done
4872
4873fi
4874fi
4875RANLIB=$ac_cv_prog_RANLIB
4876if test -n "$RANLIB"; then
4877 echo "$as_me:$LINENO: result: $RANLIB" >&5
4878echo "${ECHO_T}$RANLIB" >&6
4879else
4880 echo "$as_me:$LINENO: result: no" >&5
4881echo "${ECHO_T}no" >&6
4882fi
4883
4884fi
4885if test -z "$ac_cv_prog_RANLIB"; then
4886 ac_ct_RANLIB=$RANLIB
4887 # Extract the first word of "ranlib", so it can be a program name with args.
4888set dummy ranlib; ac_word=$2
4889echo "$as_me:$LINENO: checking for $ac_word" >&5
4890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4891if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4892 echo $ECHO_N "(cached) $ECHO_C" >&6
4893else
4894 if test -n "$ac_ct_RANLIB"; then
4895 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4896else
4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH
4899do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4904 ac_cv_prog_ac_ct_RANLIB="ranlib"
4905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 break 2
4907 fi
4908done
4909done
4910
4911 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4912fi
4913fi
4914ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4915if test -n "$ac_ct_RANLIB"; then
4916 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4917echo "${ECHO_T}$ac_ct_RANLIB" >&6
4918else
4919 echo "$as_me:$LINENO: result: no" >&5
4920echo "${ECHO_T}no" >&6
4921fi
4922
4923 RANLIB=$ac_ct_RANLIB
4924else
4925 RANLIB="$ac_cv_prog_RANLIB"
4926fi
4927
4928# Extract the first word of "rm", so it can be a program name with args.
4929set dummy rm; ac_word=$2
4930echo "$as_me:$LINENO: checking for $ac_word" >&5
4931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4932if test "${ac_cv_path_RM+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935 case $RM in
4936 [\\/]* | ?:[\\/]*)
4937 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4938 ;;
4939 *)
4940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH
4942do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
4946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4950 fi
4951done
4952done
4953
4954 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4955 ;;
4956esac
4957fi
4958RM=$ac_cv_path_RM
4959
4960if test -n "$RM"; then
4961 echo "$as_me:$LINENO: result: $RM" >&5
4962echo "${ECHO_T}$RM" >&6
4963else
4964 echo "$as_me:$LINENO: result: no" >&5
4965echo "${ECHO_T}no" >&6
4966fi
4967
4968# Extract the first word of "sed", so it can be a program name with args.
4969set dummy sed; ac_word=$2
4970echo "$as_me:$LINENO: checking for $ac_word" >&5
4971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4972if test "${ac_cv_path_SED+set}" = set; then
4973 echo $ECHO_N "(cached) $ECHO_C" >&6
4974else
4975 case $SED in
4976 [\\/]* | ?:[\\/]*)
4977 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4978 ;;
4979 *)
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981for as_dir in $PATH
4982do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4987 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4990 fi
4991done
4992done
4993
4994 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4995 ;;
4996esac
4997fi
4998SED=$ac_cv_path_SED
4999
5000if test -n "$SED"; then
5001 echo "$as_me:$LINENO: result: $SED" >&5
5002echo "${ECHO_T}$SED" >&6
5003else
5004 echo "$as_me:$LINENO: result: no" >&5
5005echo "${ECHO_T}no" >&6
5006fi
5007
5008# Extract the first word of "tar", so it can be a program name with args.
5009set dummy tar; ac_word=$2
5010echo "$as_me:$LINENO: checking for $ac_word" >&5
5011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5012if test "${ac_cv_path_TAR+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014else
5015 case $TAR in
5016 [\\/]* | ?:[\\/]*)
5017 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5018 ;;
5019 *)
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021for as_dir in $PATH
5022do
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5027 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5030 fi
5031done
5032done
5033
5034 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5035 ;;
5036esac
5037fi
5038TAR=$ac_cv_path_TAR
5039
5040if test -n "$TAR"; then
5041 echo "$as_me:$LINENO: result: $TAR" >&5
5042echo "${ECHO_T}$TAR" >&6
5043else
5044 echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6
5046fi
5047
5048
5049# Find a good install program. We prefer a C program (faster),
5050# so one script is as good as another. But avoid the broken or
5051# incompatible versions:
5052# SysV /etc/install, /usr/sbin/install
5053# SunOS /usr/etc/install
5054# IRIX /sbin/install
5055# AIX /bin/install
5056# AmigaOS /C/install, which installs bootblocks on floppy discs
5057# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5058# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5059# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5060# OS/2's system install, which has a completely different semantic
5061# ./install, which can be erroneously created by make from ./install.sh.
5062echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5063echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5064if test -z "$INSTALL"; then
5065if test "${ac_cv_path_install+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 # Account for people who put trailing slashes in PATH elements.
5074case $as_dir/ in
5075 ./ | .// | /cC/* | \
5076 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5077 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5078 /usr/ucb/* ) ;;
5079 *)
5080 # OSF1 and SCO ODT 3.0 have their own names for install.
5081 # Don't use installbsd from OSF since it installs stuff as root
5082 # by default.
5083 for ac_prog in ginstall scoinst install; do
5084 for ac_exec_ext in '' $ac_executable_extensions; do
5085 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5086 if test $ac_prog = install &&
5087 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5088 # AIX install. It has an incompatible calling convention.
5089 :
5090 elif test $ac_prog = install &&
5091 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5092 # program-specific install script used by HP pwplus--don't use.
5093 :
5094 else
5095 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5096 break 3
5097 fi
5098 fi
5099 done
5100 done
5101 ;;
5102esac
5103done
5104
5105
5106fi
5107 if test "${ac_cv_path_install+set}" = set; then
5108 INSTALL=$ac_cv_path_install
5109 else
5110 # As a last resort, use the slow shell script. We don't cache a
5111 # path for INSTALL within a source directory, because that will
5112 # break other packages using the cache if that directory is
5113 # removed, or if the path is relative.
5114 INSTALL=$ac_install_sh
5115 fi
5116fi
5117echo "$as_me:$LINENO: result: $INSTALL" >&5
5118echo "${ECHO_T}$INSTALL" >&6
5119
5120# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5121# It thinks the first close brace ends the variable substitution.
5122test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5123
5124test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5125
5126test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5127
5128
5129# Extract the first word of "bzip2", so it can be a program name with args.
5130set dummy bzip2; ac_word=$2
5131echo "$as_me:$LINENO: checking for $ac_word" >&5
5132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5133if test "${ac_cv_path_BZIP2+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5135else
5136 case $BZIP2 in
5137 [\\/]* | ?:[\\/]*)
5138 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5139 ;;
5140 *)
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142for as_dir in $PATH
5143do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152done
5153done
5154
5155 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5156 ;;
5157esac
5158fi
5159BZIP2=$ac_cv_path_BZIP2
5160
5161if test -n "$BZIP2"; then
5162 echo "$as_me:$LINENO: result: $BZIP2" >&5
5163echo "${ECHO_T}$BZIP2" >&6
5164else
5165 echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6
5167fi
5168
5169# Extract the first word of "dot", so it can be a program name with args.
5170set dummy dot; ac_word=$2
5171echo "$as_me:$LINENO: checking for $ac_word" >&5
5172echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173if test "${ac_cv_path_DOT+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5175else
5176 case $DOT in
5177 [\\/]* | ?:[\\/]*)
5178 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5179 ;;
5180 *)
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5188 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190 break 2
5191 fi
5192done
5193done
5194
5195 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5196 ;;
5197esac
5198fi
5199DOT=$ac_cv_path_DOT
5200
5201if test -n "$DOT"; then
5202 echo "$as_me:$LINENO: result: $DOT" >&5
5203echo "${ECHO_T}$DOT" >&6
5204else
5205 echo "$as_me:$LINENO: result: no" >&5
5206echo "${ECHO_T}no" >&6
5207fi
5208
5209# Extract the first word of "doxygen", so it can be a program name with args.
5210set dummy doxygen; ac_word=$2
5211echo "$as_me:$LINENO: checking for $ac_word" >&5
5212echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5213if test "${ac_cv_path_DOXYGEN+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5215else
5216 case $DOXYGEN in
5217 [\\/]* | ?:[\\/]*)
5218 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5219 ;;
5220 *)
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222for as_dir in $PATH
5223do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232done
5233done
5234
5235 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5236 ;;
5237esac
5238fi
5239DOXYGEN=$ac_cv_path_DOXYGEN
5240
5241if test -n "$DOXYGEN"; then
5242 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5243echo "${ECHO_T}$DOXYGEN" >&6
5244else
5245 echo "$as_me:$LINENO: result: no" >&5
5246echo "${ECHO_T}no" >&6
5247fi
5248
5249# Extract the first word of "etags", so it can be a program name with args.
5250set dummy etags; ac_word=$2
5251echo "$as_me:$LINENO: checking for $ac_word" >&5
5252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5253if test "${ac_cv_path_ETAGS+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255else
5256 case $ETAGS in
5257 [\\/]* | ?:[\\/]*)
5258 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5259 ;;
5260 *)
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262for as_dir in $PATH
5263do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5268 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272done
5273done
5274
5275 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5276 ;;
5277esac
5278fi
5279ETAGS=$ac_cv_path_ETAGS
5280
5281if test -n "$ETAGS"; then
5282 echo "$as_me:$LINENO: result: $ETAGS" >&5
5283echo "${ECHO_T}$ETAGS" >&6
5284else
5285 echo "$as_me:$LINENO: result: no" >&5
5286echo "${ECHO_T}no" >&6
5287fi
5288
5289# Extract the first word of "groff", so it can be a program name with args.
5290set dummy groff; ac_word=$2
5291echo "$as_me:$LINENO: checking for $ac_word" >&5
5292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5293if test "${ac_cv_path_GROFF+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295else
5296 case $GROFF in
5297 [\\/]* | ?:[\\/]*)
5298 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5299 ;;
5300 *)
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302for as_dir in $PATH
5303do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312done
5313done
5314
5315 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5316 ;;
5317esac
5318fi
5319GROFF=$ac_cv_path_GROFF
5320
5321if test -n "$GROFF"; then
5322 echo "$as_me:$LINENO: result: $GROFF" >&5
5323echo "${ECHO_T}$GROFF" >&6
5324else
5325 echo "$as_me:$LINENO: result: no" >&5
5326echo "${ECHO_T}no" >&6
5327fi
5328
5329# Extract the first word of "gzip", so it can be a program name with args.
5330set dummy gzip; ac_word=$2
5331echo "$as_me:$LINENO: checking for $ac_word" >&5
5332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5333if test "${ac_cv_path_GZIP+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335else
5336 case $GZIP in
5337 [\\/]* | ?:[\\/]*)
5338 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5339 ;;
5340 *)
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342for as_dir in $PATH
5343do
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5348 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5349 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5351 fi
5352done
5353done
5354
5355 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5356 ;;
5357esac
5358fi
5359GZIP=$ac_cv_path_GZIP
5360
5361if test -n "$GZIP"; then
5362 echo "$as_me:$LINENO: result: $GZIP" >&5
5363echo "${ECHO_T}$GZIP" >&6
5364else
5365 echo "$as_me:$LINENO: result: no" >&5
5366echo "${ECHO_T}no" >&6
5367fi
5368
5369# Extract the first word of "pod2html", so it can be a program name with args.
5370set dummy pod2html; ac_word=$2
5371echo "$as_me:$LINENO: checking for $ac_word" >&5
5372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5373if test "${ac_cv_path_POD2HTML+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5375else
5376 case $POD2HTML in
5377 [\\/]* | ?:[\\/]*)
5378 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5379 ;;
5380 *)
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5382for as_dir in $PATH
5383do
5384 IFS=$as_save_IFS
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5388 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5390 break 2
5391 fi
5392done
5393done
5394
5395 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5396 ;;
5397esac
5398fi
5399POD2HTML=$ac_cv_path_POD2HTML
5400
5401if test -n "$POD2HTML"; then
5402 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5403echo "${ECHO_T}$POD2HTML" >&6
5404else
5405 echo "$as_me:$LINENO: result: no" >&5
5406echo "${ECHO_T}no" >&6
5407fi
5408
5409# Extract the first word of "pod2man", so it can be a program name with args.
5410set dummy pod2man; ac_word=$2
5411echo "$as_me:$LINENO: checking for $ac_word" >&5
5412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5413if test "${ac_cv_path_POD2MAN+set}" = set; then
5414 echo $ECHO_N "(cached) $ECHO_C" >&6
5415else
5416 case $POD2MAN in
5417 [\\/]* | ?:[\\/]*)
5418 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5419 ;;
5420 *)
5421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5422for as_dir in $PATH
5423do
5424 IFS=$as_save_IFS
5425 test -z "$as_dir" && as_dir=.
5426 for ac_exec_ext in '' $ac_executable_extensions; do
5427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5428 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5430 break 2
5431 fi
5432done
5433done
5434
5435 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5436 ;;
5437esac
5438fi
5439POD2MAN=$ac_cv_path_POD2MAN
5440
5441if test -n "$POD2MAN"; then
5442 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5443echo "${ECHO_T}$POD2MAN" >&6
5444else
5445 echo "$as_me:$LINENO: result: no" >&5
5446echo "${ECHO_T}no" >&6
5447fi
5448
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005449# Extract the first word of "runtest", so it can be a program name with args.
5450set dummy runtest; ac_word=$2
5451echo "$as_me:$LINENO: checking for $ac_word" >&5
5452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5453if test "${ac_cv_path_RUNTEST+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5455else
5456 case $RUNTEST in
5457 [\\/]* | ?:[\\/]*)
5458 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5459 ;;
5460 *)
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462for as_dir in $PATH
5463do
5464 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2
5471 fi
5472done
5473done
5474
5475 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5476 ;;
5477esac
5478fi
5479RUNTEST=$ac_cv_path_RUNTEST
5480
5481if test -n "$RUNTEST"; then
5482 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5483echo "${ECHO_T}$RUNTEST" >&6
5484else
5485 echo "$as_me:$LINENO: result: no" >&5
5486echo "${ECHO_T}no" >&6
5487fi
5488
Reid Spencer0fcb9412004-11-30 08:11:54 +00005489
Reid Spencer0fcb9412004-11-30 08:11:54 +00005490no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005491echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5492echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005493
5494# Check whether --with-tclinclude or --without-tclinclude was given.
5495if test "${with_tclinclude+set}" = set; then
5496 withval="$with_tclinclude"
5497 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005498else
5499 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005500fi;
5501if test "${ac_cv_path_tclsh+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504
5505if test x"${with_tclinclude}" != x ; then
5506 if test -f ${with_tclinclude}/tclsh ; then
5507 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5508 elif test -f ${with_tclinclude}/src/tclsh ; then
5509 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5510 else
5511 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5512echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5513 { (exit 1); exit 1; }; }
5514 fi
5515fi
5516
Reid Spencer0fcb9412004-11-30 08:11:54 +00005517if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005518 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005519echo "${ECHO_T}none" >&6
Reid Spencerfc757b52004-12-02 07:31:22 +00005520 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 +00005521do
5522 # Extract the first word of "$ac_prog", so it can be a program name with args.
5523set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005524echo "$as_me:$LINENO: checking for $ac_word" >&5
5525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005526if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528else
Reid Spencercda35f82004-12-02 04:17:20 +00005529 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005530 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005531 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005532 ;;
5533 *)
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535for as_dir in $PATH
5536do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005541 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5544 fi
5545done
5546done
5547
5548 ;;
5549esac
5550fi
Reid Spencercda35f82004-12-02 04:17:20 +00005551TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005552
Reid Spencercda35f82004-12-02 04:17:20 +00005553if test -n "$TCLSH"; then
5554 echo "$as_me:$LINENO: result: $TCLSH" >&5
5555echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005556else
5557 echo "$as_me:$LINENO: result: no" >&5
5558echo "${ECHO_T}no" >&6
5559fi
5560
Reid Spencercda35f82004-12-02 04:17:20 +00005561 test -n "$TCLSH" && break
5562done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005563
Reid Spencercda35f82004-12-02 04:17:20 +00005564 if test x"${TCLSH}" = x ; then
5565 ac_cv_path_tclsh='';
5566 else
5567 ac_cv_path_tclsh="${TCLSH}";
5568 fi
5569else
5570 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5571echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5572 TCLSH="${ac_cv_path_tclsh}"
5573
5574fi
5575
5576fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005577
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005578# Extract the first word of "zip", so it can be a program name with args.
5579set dummy zip; ac_word=$2
5580echo "$as_me:$LINENO: checking for $ac_word" >&5
5581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5582if test "${ac_cv_path_ZIP+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585 case $ZIP in
5586 [\\/]* | ?:[\\/]*)
5587 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5588 ;;
5589 *)
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591for as_dir in $PATH
5592do
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_exec_ext in '' $ac_executable_extensions; do
5596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5597 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 break 2
5600 fi
5601done
5602done
5603
5604 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5605 ;;
5606esac
5607fi
5608ZIP=$ac_cv_path_ZIP
5609
5610if test -n "$ZIP"; then
5611 echo "$as_me:$LINENO: result: $ZIP" >&5
5612echo "${ECHO_T}$ZIP" >&6
5613else
5614 echo "$as_me:$LINENO: result: no" >&5
5615echo "${ECHO_T}no" >&6
5616fi
5617
5618
5619echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5620echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5621if test "${llvm_cv_link_use_r+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623else
5624 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005625ac_cpp='$CPP $CPPFLAGS'
5626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628ac_compiler_gnu=$ac_cv_c_compiler_gnu
5629
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005630 oldcflags="$CFLAGS"
5631 CFLAGS="$CFLAGS -Wl,-R."
5632 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005633/* confdefs.h. */
5634_ACEOF
5635cat confdefs.h >>conftest.$ac_ext
5636cat >>conftest.$ac_ext <<_ACEOF
5637/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005638
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005639int
5640main ()
5641{
5642int main() { return 0; }
5643 ;
5644 return 0;
5645}
John Criswell47fdd832003-07-14 16:52:07 +00005646_ACEOF
5647rm -f conftest.$ac_objext conftest$ac_exeext
5648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005649 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005650 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005655 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005656 { ac_try='test -z "$ac_c_werror_flag"
5657 || test ! -s conftest.err'
5658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5659 (eval $ac_try) 2>&5
5660 ac_status=$?
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); }; } &&
5663 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5665 (eval $ac_try) 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005669 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005670else
John Criswell47fdd832003-07-14 16:52:07 +00005671 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005672sed 's/^/| /' conftest.$ac_ext >&5
5673
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005674llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005675fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005676rm -f conftest.err conftest.$ac_objext \
5677 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005678 CFLAGS="$oldcflags"
5679 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005680ac_cpp='$CPP $CPPFLAGS'
5681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5683ac_compiler_gnu=$ac_cv_c_compiler_gnu
5684
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005685
John Criswell7a73b802003-06-30 21:59:07 +00005686fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005687echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5688echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5689if test "$llvm_cv_link_use_r" = yes ; then
5690
5691cat >>confdefs.h <<\_ACEOF
5692#define HAVE_LINK_R 1
5693_ACEOF
5694
John Criswell47fdd832003-07-14 16:52:07 +00005695 fi
John Criswell47fdd832003-07-14 16:52:07 +00005696
John Criswell47fdd832003-07-14 16:52:07 +00005697
John Criswell47fdd832003-07-14 16:52:07 +00005698
John Criswell7a73b802003-06-30 21:59:07 +00005699
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005700echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5701echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5702if test "${ac_cv_c_const+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704else
5705 cat >conftest.$ac_ext <<_ACEOF
5706/* confdefs.h. */
5707_ACEOF
5708cat confdefs.h >>conftest.$ac_ext
5709cat >>conftest.$ac_ext <<_ACEOF
5710/* end confdefs.h. */
5711
5712int
5713main ()
5714{
5715/* FIXME: Include the comments suggested by Paul. */
5716#ifndef __cplusplus
5717 /* Ultrix mips cc rejects this. */
5718 typedef int charset[2];
5719 const charset x;
5720 /* SunOS 4.1.1 cc rejects this. */
5721 char const *const *ccp;
5722 char **p;
5723 /* NEC SVR4.0.2 mips cc rejects this. */
5724 struct point {int x, y;};
5725 static struct point const zero = {0,0};
5726 /* AIX XL C 1.02.0.0 rejects this.
5727 It does not let you subtract one const X* pointer from another in
5728 an arm of an if-expression whose if-part is not a constant
5729 expression */
5730 const char *g = "string";
5731 ccp = &g + (g ? g-g : 0);
5732 /* HPUX 7.0 cc rejects these. */
5733 ++ccp;
5734 p = (char**) ccp;
5735 ccp = (char const *const *) p;
5736 { /* SCO 3.2v4 cc rejects this. */
5737 char *t;
5738 char const *s = 0 ? (char *) 0 : (char const *) 0;
5739
5740 *t++ = 0;
5741 }
5742 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5743 int x[] = {25, 17};
5744 const int *foo = &x[0];
5745 ++foo;
5746 }
5747 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5748 typedef const int *iptr;
5749 iptr p = 0;
5750 ++p;
5751 }
5752 { /* AIX XL C 1.02.0.0 rejects this saying
5753 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5754 struct s { int j; const int *ap[3]; };
5755 struct s *b; b->j = 5;
5756 }
5757 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5758 const int foo = 10;
5759 }
5760#endif
5761
5762 ;
5763 return 0;
5764}
5765_ACEOF
5766rm -f conftest.$ac_objext
5767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5768 (eval $ac_compile) 2>conftest.er1
5769 ac_status=$?
5770 grep -v '^ *+' conftest.er1 >conftest.err
5771 rm -f conftest.er1
5772 cat conftest.err >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); } &&
5775 { ac_try='test -z "$ac_c_werror_flag"
5776 || test ! -s conftest.err'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5778 (eval $ac_try) 2>&5
5779 ac_status=$?
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; } &&
5782 { ac_try='test -s conftest.$ac_objext'
5783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5784 (eval $ac_try) 2>&5
5785 ac_status=$?
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); }; }; then
5788 ac_cv_c_const=yes
5789else
5790 echo "$as_me: failed program was:" >&5
5791sed 's/^/| /' conftest.$ac_ext >&5
5792
5793ac_cv_c_const=no
5794fi
5795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5796fi
5797echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5798echo "${ECHO_T}$ac_cv_c_const" >&6
5799if test $ac_cv_c_const = no; then
5800
5801cat >>confdefs.h <<\_ACEOF
5802#define const
5803_ACEOF
5804
5805fi
5806
5807
5808echo "$as_me:$LINENO: checking for egrep" >&5
5809echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5810if test "${ac_cv_prog_egrep+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5812else
5813 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5814 then ac_cv_prog_egrep='grep -E'
5815 else ac_cv_prog_egrep='egrep'
5816 fi
5817fi
5818echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5819echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5820 EGREP=$ac_cv_prog_egrep
5821
John Criswell7a73b802003-06-30 21:59:07 +00005822
5823echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5824echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5825if test "${ac_cv_header_stdc+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827else
5828 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005829/* confdefs.h. */
5830_ACEOF
5831cat confdefs.h >>conftest.$ac_ext
5832cat >>conftest.$ac_ext <<_ACEOF
5833/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005834#include <stdlib.h>
5835#include <stdarg.h>
5836#include <string.h>
5837#include <float.h>
5838
John Criswell0c38eaf2003-09-10 15:17:25 +00005839int
5840main ()
5841{
5842
5843 ;
5844 return 0;
5845}
John Criswell7a73b802003-06-30 21:59:07 +00005846_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005847rm -f conftest.$ac_objext
5848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005849 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005850 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005855 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005856 { ac_try='test -z "$ac_c_werror_flag"
5857 || test ! -s conftest.err'
5858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 (eval $ac_try) 2>&5
5860 ac_status=$?
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; } &&
5863 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865 (eval $ac_try) 2>&5
5866 ac_status=$?
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005869 ac_cv_header_stdc=yes
5870else
5871 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005872sed 's/^/| /' conftest.$ac_ext >&5
5873
5874ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005875fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005877
5878if test $ac_cv_header_stdc = yes; then
5879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5880 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005881/* confdefs.h. */
5882_ACEOF
5883cat confdefs.h >>conftest.$ac_ext
5884cat >>conftest.$ac_ext <<_ACEOF
5885/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005886#include <string.h>
5887
5888_ACEOF
5889if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005890 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005891 :
5892else
5893 ac_cv_header_stdc=no
5894fi
5895rm -f conftest*
5896
5897fi
5898
5899if test $ac_cv_header_stdc = yes; then
5900 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5901 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005902/* confdefs.h. */
5903_ACEOF
5904cat confdefs.h >>conftest.$ac_ext
5905cat >>conftest.$ac_ext <<_ACEOF
5906/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005907#include <stdlib.h>
5908
5909_ACEOF
5910if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005911 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005912 :
5913else
5914 ac_cv_header_stdc=no
5915fi
5916rm -f conftest*
5917
5918fi
5919
5920if test $ac_cv_header_stdc = yes; then
5921 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5922 if test "$cross_compiling" = yes; then
5923 :
5924else
5925 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005926/* confdefs.h. */
5927_ACEOF
5928cat confdefs.h >>conftest.$ac_ext
5929cat >>conftest.$ac_ext <<_ACEOF
5930/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005931#include <ctype.h>
5932#if ((' ' & 0x0FF) == 0x020)
5933# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5934# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5935#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005936# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005937 (('a' <= (c) && (c) <= 'i') \
5938 || ('j' <= (c) && (c) <= 'r') \
5939 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005940# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5941#endif
5942
5943#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5944int
5945main ()
5946{
5947 int i;
5948 for (i = 0; i < 256; i++)
5949 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005950 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005951 exit(2);
5952 exit (0);
5953}
5954_ACEOF
5955rm -f conftest$ac_exeext
5956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5957 (eval $ac_link) 2>&5
5958 ac_status=$?
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5962 (eval $ac_try) 2>&5
5963 ac_status=$?
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 :
5967else
5968 echo "$as_me: program exited with status $ac_status" >&5
5969echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005970sed 's/^/| /' conftest.$ac_ext >&5
5971
John Criswell7a73b802003-06-30 21:59:07 +00005972( exit $ac_status )
5973ac_cv_header_stdc=no
5974fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005975rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005976fi
5977fi
5978fi
5979echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5980echo "${ECHO_T}$ac_cv_header_stdc" >&6
5981if test $ac_cv_header_stdc = yes; then
5982
5983cat >>confdefs.h <<\_ACEOF
5984#define STDC_HEADERS 1
5985_ACEOF
5986
5987fi
5988
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005989
5990
5991
5992
5993
5994ac_header_dirent=no
5995for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5996 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5997echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5998echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5999if eval "test \"\${$as_ac_Header+set}\" = set"; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001else
6002 cat >conftest.$ac_ext <<_ACEOF
6003/* confdefs.h. */
6004_ACEOF
6005cat confdefs.h >>conftest.$ac_ext
6006cat >>conftest.$ac_ext <<_ACEOF
6007/* end confdefs.h. */
6008#include <sys/types.h>
6009#include <$ac_hdr>
6010
6011int
6012main ()
6013{
6014if ((DIR *) 0)
6015return 0;
6016 ;
6017 return 0;
6018}
6019_ACEOF
6020rm -f conftest.$ac_objext
6021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6022 (eval $ac_compile) 2>conftest.er1
6023 ac_status=$?
6024 grep -v '^ *+' conftest.er1 >conftest.err
6025 rm -f conftest.er1
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -z "$ac_c_werror_flag"
6030 || test ! -s conftest.err'
6031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6032 (eval $ac_try) 2>&5
6033 ac_status=$?
6034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6035 (exit $ac_status); }; } &&
6036 { ac_try='test -s conftest.$ac_objext'
6037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 (eval $ac_try) 2>&5
6039 ac_status=$?
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); }; }; then
6042 eval "$as_ac_Header=yes"
6043else
6044 echo "$as_me: failed program was:" >&5
6045sed 's/^/| /' conftest.$ac_ext >&5
6046
6047eval "$as_ac_Header=no"
6048fi
6049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6050fi
6051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6053if test `eval echo '${'$as_ac_Header'}'` = yes; then
6054 cat >>confdefs.h <<_ACEOF
6055#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6056_ACEOF
6057
6058ac_header_dirent=$ac_hdr; break
6059fi
6060
6061done
6062# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6063if test $ac_header_dirent = dirent.h; then
6064 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6065echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6066if test "${ac_cv_search_opendir+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6068else
6069 ac_func_search_save_LIBS=$LIBS
6070ac_cv_search_opendir=no
6071cat >conftest.$ac_ext <<_ACEOF
6072/* confdefs.h. */
6073_ACEOF
6074cat confdefs.h >>conftest.$ac_ext
6075cat >>conftest.$ac_ext <<_ACEOF
6076/* end confdefs.h. */
6077
6078/* Override any gcc2 internal prototype to avoid an error. */
6079#ifdef __cplusplus
6080extern "C"
6081#endif
6082/* We use char because int might match the return type of a gcc2
6083 builtin and then its argument prototype would still apply. */
6084char opendir ();
6085int
6086main ()
6087{
6088opendir ();
6089 ;
6090 return 0;
6091}
6092_ACEOF
6093rm -f conftest.$ac_objext conftest$ac_exeext
6094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6095 (eval $ac_link) 2>conftest.er1
6096 ac_status=$?
6097 grep -v '^ *+' conftest.er1 >conftest.err
6098 rm -f conftest.er1
6099 cat conftest.err >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } &&
6102 { ac_try='test -z "$ac_c_werror_flag"
6103 || test ! -s conftest.err'
6104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6105 (eval $ac_try) 2>&5
6106 ac_status=$?
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }; } &&
6109 { ac_try='test -s conftest$ac_exeext'
6110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6111 (eval $ac_try) 2>&5
6112 ac_status=$?
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); }; }; then
6115 ac_cv_search_opendir="none required"
6116else
6117 echo "$as_me: failed program was:" >&5
6118sed 's/^/| /' conftest.$ac_ext >&5
6119
6120fi
6121rm -f conftest.err conftest.$ac_objext \
6122 conftest$ac_exeext conftest.$ac_ext
6123if test "$ac_cv_search_opendir" = no; then
6124 for ac_lib in dir; do
6125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6126 cat >conftest.$ac_ext <<_ACEOF
6127/* confdefs.h. */
6128_ACEOF
6129cat confdefs.h >>conftest.$ac_ext
6130cat >>conftest.$ac_ext <<_ACEOF
6131/* end confdefs.h. */
6132
6133/* Override any gcc2 internal prototype to avoid an error. */
6134#ifdef __cplusplus
6135extern "C"
6136#endif
6137/* We use char because int might match the return type of a gcc2
6138 builtin and then its argument prototype would still apply. */
6139char opendir ();
6140int
6141main ()
6142{
6143opendir ();
6144 ;
6145 return 0;
6146}
6147_ACEOF
6148rm -f conftest.$ac_objext conftest$ac_exeext
6149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6150 (eval $ac_link) 2>conftest.er1
6151 ac_status=$?
6152 grep -v '^ *+' conftest.er1 >conftest.err
6153 rm -f conftest.er1
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } &&
6157 { ac_try='test -z "$ac_c_werror_flag"
6158 || test ! -s conftest.err'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try='test -s conftest$ac_exeext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6166 (eval $ac_try) 2>&5
6167 ac_status=$?
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_search_opendir="-l$ac_lib"
6171break
6172else
6173 echo "$as_me: failed program was:" >&5
6174sed 's/^/| /' conftest.$ac_ext >&5
6175
6176fi
6177rm -f conftest.err conftest.$ac_objext \
6178 conftest$ac_exeext conftest.$ac_ext
6179 done
6180fi
6181LIBS=$ac_func_search_save_LIBS
6182fi
6183echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6184echo "${ECHO_T}$ac_cv_search_opendir" >&6
6185if test "$ac_cv_search_opendir" != no; then
6186 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6187
6188fi
6189
6190else
6191 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6192echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6193if test "${ac_cv_search_opendir+set}" = set; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195else
6196 ac_func_search_save_LIBS=$LIBS
6197ac_cv_search_opendir=no
6198cat >conftest.$ac_ext <<_ACEOF
6199/* confdefs.h. */
6200_ACEOF
6201cat confdefs.h >>conftest.$ac_ext
6202cat >>conftest.$ac_ext <<_ACEOF
6203/* end confdefs.h. */
6204
6205/* Override any gcc2 internal prototype to avoid an error. */
6206#ifdef __cplusplus
6207extern "C"
6208#endif
6209/* We use char because int might match the return type of a gcc2
6210 builtin and then its argument prototype would still apply. */
6211char opendir ();
6212int
6213main ()
6214{
6215opendir ();
6216 ;
6217 return 0;
6218}
6219_ACEOF
6220rm -f conftest.$ac_objext conftest$ac_exeext
6221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6222 (eval $ac_link) 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } &&
6229 { ac_try='test -z "$ac_c_werror_flag"
6230 || test ! -s conftest.err'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6232 (eval $ac_try) 2>&5
6233 ac_status=$?
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; } &&
6236 { ac_try='test -s conftest$ac_exeext'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6238 (eval $ac_try) 2>&5
6239 ac_status=$?
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6242 ac_cv_search_opendir="none required"
6243else
6244 echo "$as_me: failed program was:" >&5
6245sed 's/^/| /' conftest.$ac_ext >&5
6246
6247fi
6248rm -f conftest.err conftest.$ac_objext \
6249 conftest$ac_exeext conftest.$ac_ext
6250if test "$ac_cv_search_opendir" = no; then
6251 for ac_lib in x; do
6252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6253 cat >conftest.$ac_ext <<_ACEOF
6254/* confdefs.h. */
6255_ACEOF
6256cat confdefs.h >>conftest.$ac_ext
6257cat >>conftest.$ac_ext <<_ACEOF
6258/* end confdefs.h. */
6259
6260/* Override any gcc2 internal prototype to avoid an error. */
6261#ifdef __cplusplus
6262extern "C"
6263#endif
6264/* We use char because int might match the return type of a gcc2
6265 builtin and then its argument prototype would still apply. */
6266char opendir ();
6267int
6268main ()
6269{
6270opendir ();
6271 ;
6272 return 0;
6273}
6274_ACEOF
6275rm -f conftest.$ac_objext conftest$ac_exeext
6276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6277 (eval $ac_link) 2>conftest.er1
6278 ac_status=$?
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } &&
6284 { ac_try='test -z "$ac_c_werror_flag"
6285 || test ! -s conftest.err'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try='test -s conftest$ac_exeext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 ac_cv_search_opendir="-l$ac_lib"
6298break
6299else
6300 echo "$as_me: failed program was:" >&5
6301sed 's/^/| /' conftest.$ac_ext >&5
6302
6303fi
6304rm -f conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6306 done
6307fi
6308LIBS=$ac_func_search_save_LIBS
6309fi
6310echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6311echo "${ECHO_T}$ac_cv_search_opendir" >&6
6312if test "$ac_cv_search_opendir" != no; then
6313 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6314
6315fi
6316
6317fi
6318
John Criswell7a73b802003-06-30 21:59:07 +00006319# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006330 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006331do
6332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6333echo "$as_me:$LINENO: checking for $ac_header" >&5
6334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6335if eval "test \"\${$as_ac_Header+set}\" = set"; then
6336 echo $ECHO_N "(cached) $ECHO_C" >&6
6337else
6338 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006339/* confdefs.h. */
6340_ACEOF
6341cat confdefs.h >>conftest.$ac_ext
6342cat >>conftest.$ac_ext <<_ACEOF
6343/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006344$ac_includes_default
6345
6346#include <$ac_header>
6347_ACEOF
6348rm -f conftest.$ac_objext
6349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006350 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006351 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006352 grep -v '^ *+' conftest.er1 >conftest.err
6353 rm -f conftest.er1
6354 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006357 { ac_try='test -z "$ac_c_werror_flag"
6358 || test ! -s conftest.err'
6359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6360 (eval $ac_try) 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; } &&
6364 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 (eval $ac_try) 2>&5
6367 ac_status=$?
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 eval "$as_ac_Header=yes"
6371else
6372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006373sed 's/^/| /' conftest.$ac_ext >&5
6374
John Criswell7a73b802003-06-30 21:59:07 +00006375eval "$as_ac_Header=no"
6376fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006378fi
6379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381if test `eval echo '${'$as_ac_Header'}'` = yes; then
6382 cat >>confdefs.h <<_ACEOF
6383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6384_ACEOF
6385
6386fi
6387
6388done
6389
6390
6391
6392for ac_header in dlfcn.h
6393do
6394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006395if eval "test \"\${$as_ac_Header+set}\" = set"; then
6396 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6398if eval "test \"\${$as_ac_Header+set}\" = set"; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006400fi
6401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006403else
Brian Gaeke0a621332004-09-08 20:38:05 +00006404 # Is the header compilable?
6405echo "$as_me:$LINENO: checking $ac_header usability" >&5
6406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6407cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006408/* confdefs.h. */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
6412/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006413$ac_includes_default
6414#include <$ac_header>
6415_ACEOF
6416rm -f conftest.$ac_objext
6417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006418 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006419 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006425 { ac_try='test -z "$ac_c_werror_flag"
6426 || test ! -s conftest.err'
6427 { (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); }; } &&
6432 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006438 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006439else
6440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006441sed 's/^/| /' conftest.$ac_ext >&5
6442
Brian Gaeke0a621332004-09-08 20:38:05 +00006443ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006444fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006446echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6447echo "${ECHO_T}$ac_header_compiler" >&6
6448
6449# Is the header present?
6450echo "$as_me:$LINENO: checking $ac_header presence" >&5
6451echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6452cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006453/* confdefs.h. */
6454_ACEOF
6455cat confdefs.h >>conftest.$ac_ext
6456cat >>conftest.$ac_ext <<_ACEOF
6457/* end confdefs.h. */
6458#include <$ac_header>
6459_ACEOF
6460if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6462 ac_status=$?
6463 grep -v '^ *+' conftest.er1 >conftest.err
6464 rm -f conftest.er1
6465 cat conftest.err >&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } >/dev/null; then
6468 if test -s conftest.err; then
6469 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006471 else
6472 ac_cpp_err=
6473 fi
6474else
6475 ac_cpp_err=yes
6476fi
6477if test -z "$ac_cpp_err"; then
6478 ac_header_preproc=yes
6479else
6480 echo "$as_me: failed program was:" >&5
6481sed 's/^/| /' conftest.$ac_ext >&5
6482
6483 ac_header_preproc=no
6484fi
6485rm -f conftest.err conftest.$ac_ext
6486echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6487echo "${ECHO_T}$ac_header_preproc" >&6
6488
6489# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6491 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6493echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6495echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6496 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006497 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006498 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6500echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6502echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6504echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6506echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6510echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006511 (
6512 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006513## ----------------------------------- ##
6514## Report this to llvmbugs@cs.uiuc.edu ##
6515## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006516_ASBOX
6517 ) |
6518 sed "s/^/$as_me: WARNING: /" >&2
6519 ;;
6520esac
6521echo "$as_me:$LINENO: checking for $ac_header" >&5
6522echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6523if eval "test \"\${$as_ac_Header+set}\" = set"; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006526 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006527fi
6528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6529echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006530
6531fi
John Criswell7a73b802003-06-30 21:59:07 +00006532if test `eval echo '${'$as_ac_Header'}'` = yes; then
6533 cat >>confdefs.h <<_ACEOF
6534#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6535_ACEOF
6536
6537fi
6538
6539done
6540
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006541# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6542if test "${enable_ltdl_install+set}" = set; then
6543 enableval="$enable_ltdl_install"
6544
6545fi;
6546
6547
6548
6549if test x"${enable_ltdl_install-no}" != xno; then
6550 INSTALL_LTDL_TRUE=
6551 INSTALL_LTDL_FALSE='#'
6552else
6553 INSTALL_LTDL_TRUE='#'
6554 INSTALL_LTDL_FALSE=
6555fi
6556
6557
6558
6559if test x"${enable_ltdl_convenience-no}" != xno; then
6560 CONVENIENCE_LTDL_TRUE=
6561 CONVENIENCE_LTDL_FALSE='#'
6562else
6563 CONVENIENCE_LTDL_TRUE='#'
6564 CONVENIENCE_LTDL_FALSE=
6565fi
6566
6567
6568echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6569echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6570library_names_spec=
6571libname_spec='lib$name'
6572soname_spec=
6573shrext_cmds=".so"
6574postinstall_cmds=
6575postuninstall_cmds=
6576finish_cmds=
6577finish_eval=
6578shlibpath_var=
6579shlibpath_overrides_runpath=unknown
6580version_type=none
6581dynamic_linker="$host_os ld.so"
6582sys_lib_dlsearch_path_spec="/lib /usr/lib"
6583if test "$GCC" = yes; then
6584 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6585 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6586 # if the path contains ";" then we assume it to be the separator
6587 # otherwise default to the standard path separator (i.e. ":") - it is
6588 # assumed that no part of a normal pathname contains ";" but that should
6589 # okay in the real world where ";" in dirpaths is itself problematic.
6590 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6591 else
6592 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6593 fi
6594else
6595 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6596fi
6597need_lib_prefix=unknown
6598hardcode_into_libs=no
6599
6600# when you set need_version to no, make sure it does not cause -set_version
6601# flags to be left without arguments
6602need_version=unknown
6603
6604case $host_os in
6605aix3*)
6606 version_type=linux
6607 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6608 shlibpath_var=LIBPATH
6609
6610 # AIX 3 has no versioning support, so we append a major version to the name.
6611 soname_spec='${libname}${release}${shared_ext}$major'
6612 ;;
6613
6614aix4* | aix5*)
6615 version_type=linux
6616 need_lib_prefix=no
6617 need_version=no
6618 hardcode_into_libs=yes
6619 if test "$host_cpu" = ia64; then
6620 # AIX 5 supports IA64
6621 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6622 shlibpath_var=LD_LIBRARY_PATH
6623 else
6624 # With GCC up to 2.95.x, collect2 would create an import file
6625 # for dependence libraries. The import file would start with
6626 # the line `#! .'. This would cause the generated library to
6627 # depend on `.', always an invalid library. This was fixed in
6628 # development snapshots of GCC prior to 3.0.
6629 case $host_os in
6630 aix4 | aix4.[01] | aix4.[01].*)
6631 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6632 echo ' yes '
6633 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6634 :
6635 else
6636 can_build_shared=no
6637 fi
6638 ;;
6639 esac
6640 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6641 # soname into executable. Probably we can add versioning support to
6642 # collect2, so additional links can be useful in future.
6643 if test "$aix_use_runtimelinking" = yes; then
6644 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6645 # instead of lib<name>.a to let people know that these are not
6646 # typical AIX shared libraries.
6647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6648 else
6649 # We preserve .a as extension for shared libraries through AIX4.2
6650 # and later when we are not doing run time linking.
6651 library_names_spec='${libname}${release}.a $libname.a'
6652 soname_spec='${libname}${release}${shared_ext}$major'
6653 fi
6654 shlibpath_var=LIBPATH
6655 fi
6656 ;;
6657
6658amigaos*)
6659 library_names_spec='$libname.ixlibrary $libname.a'
6660 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6661 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'
6662 ;;
6663
6664beos*)
6665 library_names_spec='${libname}${shared_ext}'
6666 dynamic_linker="$host_os ld.so"
6667 shlibpath_var=LIBRARY_PATH
6668 ;;
6669
6670bsdi[45]*)
6671 version_type=linux
6672 need_version=no
6673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6674 soname_spec='${libname}${release}${shared_ext}$major'
6675 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6676 shlibpath_var=LD_LIBRARY_PATH
6677 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6678 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6679 # the default ld.so.conf also contains /usr/contrib/lib and
6680 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6681 # libtool to hard-code these into programs
6682 ;;
6683
6684cygwin* | mingw* | pw32*)
6685 version_type=windows
6686 shrext_cmds=".dll"
6687 need_version=no
6688 need_lib_prefix=no
6689
6690 case $GCC,$host_os in
6691 yes,cygwin* | yes,mingw* | yes,pw32*)
6692 library_names_spec='$libname.dll.a'
6693 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6694 postinstall_cmds='base_file=`basename \${file}`~
6695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6696 dldir=$destdir/`dirname \$dlpath`~
6697 test -d \$dldir || mkdir -p \$dldir~
6698 $install_prog $dir/$dlname \$dldir/$dlname'
6699 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6700 dlpath=$dir/\$dldll~
6701 $rm \$dlpath'
6702 shlibpath_overrides_runpath=yes
6703
6704 case $host_os in
6705 cygwin*)
6706 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6707 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6708 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6709 ;;
6710 mingw*)
6711 # MinGW DLLs use traditional 'lib' prefix
6712 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6713 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6714 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6715 # It is most probably a Windows format PATH printed by
6716 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6717 # path with ; separators, and with drive letters. We can handle the
6718 # drive letters (cygwin fileutils understands them), so leave them,
6719 # especially as we might pass files found there to a mingw objdump,
6720 # which wouldn't understand a cygwinified path. Ahh.
6721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6722 else
6723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6724 fi
6725 ;;
6726 pw32*)
6727 # pw32 DLLs use 'pw' prefix rather than 'lib'
6728 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6729 ;;
6730 esac
6731 ;;
6732
6733 *)
6734 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6735 ;;
6736 esac
6737 dynamic_linker='Win32 ld.exe'
6738 # FIXME: first we should search . and the directory the executable is in
6739 shlibpath_var=PATH
6740 ;;
6741
6742darwin* | rhapsody*)
6743 dynamic_linker="$host_os dyld"
6744 version_type=darwin
6745 need_lib_prefix=no
6746 need_version=no
6747 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6748 soname_spec='${libname}${release}${major}$shared_ext'
6749 shlibpath_overrides_runpath=yes
6750 shlibpath_var=DYLD_LIBRARY_PATH
6751 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6752 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6753 if test "$GCC" = yes; then
6754 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"`
6755 else
6756 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6757 fi
6758 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6759 ;;
6760
6761dgux*)
6762 version_type=linux
6763 need_lib_prefix=no
6764 need_version=no
6765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6766 soname_spec='${libname}${release}${shared_ext}$major'
6767 shlibpath_var=LD_LIBRARY_PATH
6768 ;;
6769
6770freebsd1*)
6771 dynamic_linker=no
6772 ;;
6773
6774kfreebsd*-gnu)
6775 version_type=linux
6776 need_lib_prefix=no
6777 need_version=no
6778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6779 soname_spec='${libname}${release}${shared_ext}$major'
6780 shlibpath_var=LD_LIBRARY_PATH
6781 shlibpath_overrides_runpath=no
6782 hardcode_into_libs=yes
6783 dynamic_linker='GNU ld.so'
6784 ;;
6785
6786freebsd*)
6787 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6788 version_type=freebsd-$objformat
6789 case $version_type in
6790 freebsd-elf*)
6791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6792 need_version=no
6793 need_lib_prefix=no
6794 ;;
6795 freebsd-*)
6796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6797 need_version=yes
6798 ;;
6799 esac
6800 shlibpath_var=LD_LIBRARY_PATH
6801 case $host_os in
6802 freebsd2*)
6803 shlibpath_overrides_runpath=yes
6804 ;;
6805 freebsd3.01* | freebsdelf3.01*)
6806 shlibpath_overrides_runpath=yes
6807 hardcode_into_libs=yes
6808 ;;
6809 *) # from 3.2 on
6810 shlibpath_overrides_runpath=no
6811 hardcode_into_libs=yes
6812 ;;
6813 esac
6814 ;;
6815
6816gnu*)
6817 version_type=linux
6818 need_lib_prefix=no
6819 need_version=no
6820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6821 soname_spec='${libname}${release}${shared_ext}$major'
6822 shlibpath_var=LD_LIBRARY_PATH
6823 hardcode_into_libs=yes
6824 ;;
6825
6826hpux9* | hpux10* | hpux11*)
6827 # Give a soname corresponding to the major version so that dld.sl refuses to
6828 # link against other versions.
6829 version_type=sunos
6830 need_lib_prefix=no
6831 need_version=no
6832 case "$host_cpu" in
6833 ia64*)
6834 shrext_cmds='.so'
6835 hardcode_into_libs=yes
6836 dynamic_linker="$host_os dld.so"
6837 shlibpath_var=LD_LIBRARY_PATH
6838 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6840 soname_spec='${libname}${release}${shared_ext}$major'
6841 if test "X$HPUX_IA64_MODE" = X32; then
6842 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6843 else
6844 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6845 fi
6846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6847 ;;
6848 hppa*64*)
6849 shrext_cmds='.sl'
6850 hardcode_into_libs=yes
6851 dynamic_linker="$host_os dld.sl"
6852 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6853 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6855 soname_spec='${libname}${release}${shared_ext}$major'
6856 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6857 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6858 ;;
6859 *)
6860 shrext_cmds='.sl'
6861 dynamic_linker="$host_os dld.sl"
6862 shlibpath_var=SHLIB_PATH
6863 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6865 soname_spec='${libname}${release}${shared_ext}$major'
6866 ;;
6867 esac
6868 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6869 postinstall_cmds='chmod 555 $lib'
6870 ;;
6871
6872irix5* | irix6* | nonstopux*)
6873 case $host_os in
6874 nonstopux*) version_type=nonstopux ;;
6875 *)
6876 if test "$lt_cv_prog_gnu_ld" = yes; then
6877 version_type=linux
6878 else
6879 version_type=irix
6880 fi ;;
6881 esac
6882 need_lib_prefix=no
6883 need_version=no
6884 soname_spec='${libname}${release}${shared_ext}$major'
6885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6886 case $host_os in
6887 irix5* | nonstopux*)
6888 libsuff= shlibsuff=
6889 ;;
6890 *)
6891 case $LD in # libtool.m4 will add one of these switches to LD
6892 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6893 libsuff= shlibsuff= libmagic=32-bit;;
6894 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6895 libsuff=32 shlibsuff=N32 libmagic=N32;;
6896 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6897 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6898 *) libsuff= shlibsuff= libmagic=never-match;;
6899 esac
6900 ;;
6901 esac
6902 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6903 shlibpath_overrides_runpath=no
6904 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6905 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6906 hardcode_into_libs=yes
6907 ;;
6908
6909# No shared lib support for Linux oldld, aout, or coff.
6910linux*oldld* | linux*aout* | linux*coff*)
6911 dynamic_linker=no
6912 ;;
6913
6914# This must be Linux ELF.
6915linux*)
6916 version_type=linux
6917 need_lib_prefix=no
6918 need_version=no
6919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6920 soname_spec='${libname}${release}${shared_ext}$major'
6921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6922 shlibpath_var=LD_LIBRARY_PATH
6923 shlibpath_overrides_runpath=no
6924 # This implies no fast_install, which is unacceptable.
6925 # Some rework will be needed to allow for fast_install
6926 # before this can be enabled.
6927 hardcode_into_libs=yes
6928
6929 # Append ld.so.conf contents to the search path
6930 if test -f /etc/ld.so.conf; then
6931 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6932 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6933 fi
6934
6935 # We used to test for /lib/ld.so.1 and disable shared libraries on
6936 # powerpc, because MkLinux only supported shared libraries with the
6937 # GNU dynamic linker. Since this was broken with cross compilers,
6938 # most powerpc-linux boxes support dynamic linking these days and
6939 # people can always --disable-shared, the test was removed, and we
6940 # assume the GNU/Linux dynamic linker is in use.
6941 dynamic_linker='GNU/Linux ld.so'
6942 ;;
6943
6944knetbsd*-gnu)
6945 version_type=linux
6946 need_lib_prefix=no
6947 need_version=no
6948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6949 soname_spec='${libname}${release}${shared_ext}$major'
6950 shlibpath_var=LD_LIBRARY_PATH
6951 shlibpath_overrides_runpath=no
6952 hardcode_into_libs=yes
6953 dynamic_linker='GNU ld.so'
6954 ;;
6955
6956netbsd*)
6957 version_type=sunos
6958 need_lib_prefix=no
6959 need_version=no
6960 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6963 dynamic_linker='NetBSD (a.out) ld.so'
6964 else
6965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6966 soname_spec='${libname}${release}${shared_ext}$major'
6967 dynamic_linker='NetBSD ld.elf_so'
6968 fi
6969 shlibpath_var=LD_LIBRARY_PATH
6970 shlibpath_overrides_runpath=yes
6971 hardcode_into_libs=yes
6972 ;;
6973
6974newsos6)
6975 version_type=linux
6976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6977 shlibpath_var=LD_LIBRARY_PATH
6978 shlibpath_overrides_runpath=yes
6979 ;;
6980
6981nto-qnx*)
6982 version_type=linux
6983 need_lib_prefix=no
6984 need_version=no
6985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6986 soname_spec='${libname}${release}${shared_ext}$major'
6987 shlibpath_var=LD_LIBRARY_PATH
6988 shlibpath_overrides_runpath=yes
6989 ;;
6990
6991openbsd*)
6992 version_type=sunos
6993 need_lib_prefix=no
6994 need_version=no
6995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6996 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6997 shlibpath_var=LD_LIBRARY_PATH
6998 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6999 case $host_os in
7000 openbsd2.[89] | openbsd2.[89].*)
7001 shlibpath_overrides_runpath=no
7002 ;;
7003 *)
7004 shlibpath_overrides_runpath=yes
7005 ;;
7006 esac
7007 else
7008 shlibpath_overrides_runpath=yes
7009 fi
7010 ;;
7011
7012os2*)
7013 libname_spec='$name'
7014 shrext_cmds=".dll"
7015 need_lib_prefix=no
7016 library_names_spec='$libname${shared_ext} $libname.a'
7017 dynamic_linker='OS/2 ld.exe'
7018 shlibpath_var=LIBPATH
7019 ;;
7020
7021osf3* | osf4* | osf5*)
7022 version_type=osf
7023 need_lib_prefix=no
7024 need_version=no
7025 soname_spec='${libname}${release}${shared_ext}$major'
7026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7027 shlibpath_var=LD_LIBRARY_PATH
7028 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7029 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7030 ;;
7031
7032sco3.2v5*)
7033 version_type=osf
7034 soname_spec='${libname}${release}${shared_ext}$major'
7035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7036 shlibpath_var=LD_LIBRARY_PATH
7037 ;;
7038
7039solaris*)
7040 version_type=linux
7041 need_lib_prefix=no
7042 need_version=no
7043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7044 soname_spec='${libname}${release}${shared_ext}$major'
7045 shlibpath_var=LD_LIBRARY_PATH
7046 shlibpath_overrides_runpath=yes
7047 hardcode_into_libs=yes
7048 # ldd complains unless libraries are executable
7049 postinstall_cmds='chmod +x $lib'
7050 ;;
7051
7052sunos4*)
7053 version_type=sunos
7054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7055 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7056 shlibpath_var=LD_LIBRARY_PATH
7057 shlibpath_overrides_runpath=yes
7058 if test "$with_gnu_ld" = yes; then
7059 need_lib_prefix=no
7060 fi
7061 need_version=yes
7062 ;;
7063
7064sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7065 version_type=linux
7066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7067 soname_spec='${libname}${release}${shared_ext}$major'
7068 shlibpath_var=LD_LIBRARY_PATH
7069 case $host_vendor in
7070 sni)
7071 shlibpath_overrides_runpath=no
7072 need_lib_prefix=no
7073 export_dynamic_flag_spec='${wl}-Blargedynsym'
7074 runpath_var=LD_RUN_PATH
7075 ;;
7076 siemens)
7077 need_lib_prefix=no
7078 ;;
7079 motorola)
7080 need_lib_prefix=no
7081 need_version=no
7082 shlibpath_overrides_runpath=no
7083 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7084 ;;
7085 esac
7086 ;;
7087
7088sysv4*MP*)
7089 if test -d /usr/nec ;then
7090 version_type=linux
7091 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7092 soname_spec='$libname${shared_ext}.$major'
7093 shlibpath_var=LD_LIBRARY_PATH
7094 fi
7095 ;;
7096
7097uts4*)
7098 version_type=linux
7099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7100 soname_spec='${libname}${release}${shared_ext}$major'
7101 shlibpath_var=LD_LIBRARY_PATH
7102 ;;
7103
7104*)
7105 dynamic_linker=no
7106 ;;
7107esac
7108echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7109echo "${ECHO_T}$dynamic_linker" >&6
7110test "$dynamic_linker" = no && can_build_shared=no
7111
7112
7113echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7114echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7115if test "${libltdl_cv_shlibext+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117else
7118
7119module=yes
7120eval libltdl_cv_shlibext=$shrext_cmds
7121
7122fi
7123echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7124echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7125if test -n "$libltdl_cv_shlibext"; then
7126
7127cat >>confdefs.h <<_ACEOF
7128#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7129_ACEOF
7130
7131fi
7132
7133
7134echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7135echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7136if test "${libltdl_cv_shlibpath_var+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138else
7139 libltdl_cv_shlibpath_var="$shlibpath_var"
7140fi
7141echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7142echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7143if test -n "$libltdl_cv_shlibpath_var"; then
7144
7145cat >>confdefs.h <<_ACEOF
7146#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7147_ACEOF
7148
7149fi
7150
7151
7152echo "$as_me:$LINENO: checking for the default library search path" >&5
7153echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7154if test "${libltdl_cv_sys_search_path+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7156else
7157 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7158fi
7159echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7160echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7161if test -n "$libltdl_cv_sys_search_path"; then
7162 sys_search_path=
7163 for dir in $libltdl_cv_sys_search_path; do
7164 if test -z "$sys_search_path"; then
7165 sys_search_path="$dir"
7166 else
7167 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7168 fi
7169 done
7170
7171cat >>confdefs.h <<_ACEOF
7172#define LTDL_SYSSEARCHPATH "$sys_search_path"
7173_ACEOF
7174
7175fi
7176
7177echo "$as_me:$LINENO: checking for objdir" >&5
7178echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7179if test "${libltdl_cv_objdir+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181else
7182 libltdl_cv_objdir="$objdir"
7183 if test -n "$objdir"; then
7184 :
7185 else
7186 rm -f .libs 2>/dev/null
7187 mkdir .libs 2>/dev/null
7188 if test -d .libs; then
7189 libltdl_cv_objdir=.libs
7190 else
7191 # MS-DOS does not allow filenames that begin with a dot.
7192 libltdl_cv_objdir=_libs
7193 fi
7194 rmdir .libs 2>/dev/null
7195 fi
7196
7197fi
7198echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7199echo "${ECHO_T}$libltdl_cv_objdir" >&6
7200
7201cat >>confdefs.h <<_ACEOF
7202#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7203_ACEOF
7204
7205
7206echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7207echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7208if test "${lt_cv_path_NM+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210else
7211 if test -n "$NM"; then
7212 # Let the user override the test.
7213 lt_cv_path_NM="$NM"
7214else
7215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7216 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7217 IFS="$lt_save_ifs"
7218 test -z "$ac_dir" && ac_dir=.
7219 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7220 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7221 # Check to see if the nm accepts a BSD-compat flag.
7222 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7223 # nm: unknown option "B" ignored
7224 # Tru64's nm complains that /dev/null is an invalid object file
7225 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7226 */dev/null* | *'Invalid file or object type'*)
7227 lt_cv_path_NM="$tmp_nm -B"
7228 break
7229 ;;
7230 *)
7231 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7232 */dev/null*)
7233 lt_cv_path_NM="$tmp_nm -p"
7234 break
7235 ;;
7236 *)
7237 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7238 continue # so that we can try to find one that supports BSD flags
7239 ;;
7240 esac
7241 esac
7242 fi
7243 done
7244 IFS="$lt_save_ifs"
7245 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7246fi
7247fi
7248echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7249echo "${ECHO_T}$lt_cv_path_NM" >&6
7250NM="$lt_cv_path_NM"
7251
7252
7253
7254
7255
7256# Check for command to grab the raw symbol name followed by C symbol from nm.
7257echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7258echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7259if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7261else
7262
7263# These are sane defaults that work on at least a few old systems.
7264# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7265
7266# Character class describing NM global symbol codes.
7267symcode='[BCDEGRST]'
7268
7269# Regexp to match symbols that can be accessed directly from C.
7270sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7271
7272# Transform the above into a raw symbol and a C symbol.
7273symxfrm='\1 \2\3 \3'
7274
7275# Transform an extracted symbol line into a proper C declaration
7276lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7277
7278# Transform an extracted symbol line into symbol name and symbol address
7279lt_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'"
7280
7281# Define system-specific variables.
7282case $host_os in
7283aix*)
7284 symcode='[BCDT]'
7285 ;;
7286cygwin* | mingw* | pw32*)
7287 symcode='[ABCDGISTW]'
7288 ;;
7289hpux*) # Its linker distinguishes data from code symbols
7290 if test "$host_cpu" = ia64; then
7291 symcode='[ABCDEGRST]'
7292 fi
7293 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7294 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'"
7295 ;;
7296linux*)
7297 if test "$host_cpu" = ia64; then
7298 symcode='[ABCDGIRSTW]'
7299 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7300 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'"
7301 fi
7302 ;;
7303irix* | nonstopux*)
7304 symcode='[BCDEGRST]'
7305 ;;
7306osf*)
7307 symcode='[BCDEGQRST]'
7308 ;;
7309solaris* | sysv5*)
7310 symcode='[BDRT]'
7311 ;;
7312sysv4)
7313 symcode='[DFNSTU]'
7314 ;;
7315esac
7316
7317# Handle CRLF in mingw tool chain
7318opt_cr=
7319case $build_os in
7320mingw*)
7321 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7322 ;;
7323esac
7324
7325# If we're using GNU nm, then use its standard symbol codes.
7326case `$NM -V 2>&1` in
7327*GNU* | *'with BFD'*)
7328 symcode='[ABCDGIRSTW]' ;;
7329esac
7330
7331# Try without a prefix undercore, then with it.
7332for ac_symprfx in "" "_"; do
7333
7334 # Write the raw and C identifiers.
7335 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7336
7337 # Check to see that the pipe works correctly.
7338 pipe_works=no
7339
7340 rm -f conftest*
7341 cat > conftest.$ac_ext <<EOF
7342#ifdef __cplusplus
7343extern "C" {
7344#endif
7345char nm_test_var;
7346void nm_test_func(){}
7347#ifdef __cplusplus
7348}
7349#endif
7350int main(){nm_test_var='a';nm_test_func();return(0);}
7351EOF
7352
7353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7354 (eval $ac_compile) 2>&5
7355 ac_status=$?
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; then
7358 # Now try to grab the symbols.
7359 nlist=conftest.nm
7360 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7361 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } && test -s "$nlist"; then
7365 # Try sorting and uniquifying the output.
7366 if sort "$nlist" | uniq > "$nlist"T; then
7367 mv -f "$nlist"T "$nlist"
7368 else
7369 rm -f "$nlist"T
7370 fi
7371
7372 # Make sure that we snagged all the symbols we need.
7373 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7374 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7375 cat <<EOF > conftest.$ac_ext
7376#ifdef __cplusplus
7377extern "C" {
7378#endif
7379
7380EOF
7381 # Now generate the symbol file.
7382 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7383
7384 cat <<EOF >> conftest.$ac_ext
7385#if defined (__STDC__) && __STDC__
7386# define lt_ptr_t void *
7387#else
7388# define lt_ptr_t char *
7389# define const
7390#endif
7391
7392/* The mapping between symbol names and symbols. */
7393const struct {
7394 const char *name;
7395 lt_ptr_t address;
7396}
7397lt_preloaded_symbols[] =
7398{
7399EOF
7400 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7401 cat <<\EOF >> conftest.$ac_ext
7402 {0, (lt_ptr_t) 0}
7403};
7404
7405#ifdef __cplusplus
7406}
7407#endif
7408EOF
7409 # Now try linking the two files.
7410 mv conftest.$ac_objext conftstm.$ac_objext
7411 lt_save_LIBS="$LIBS"
7412 lt_save_CFLAGS="$CFLAGS"
7413 LIBS="conftstm.$ac_objext"
7414 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7416 (eval $ac_link) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7420 pipe_works=yes
7421 fi
7422 LIBS="$lt_save_LIBS"
7423 CFLAGS="$lt_save_CFLAGS"
7424 else
7425 echo "cannot find nm_test_func in $nlist" >&5
7426 fi
7427 else
7428 echo "cannot find nm_test_var in $nlist" >&5
7429 fi
7430 else
7431 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7432 fi
7433 else
7434 echo "$progname: failed program was:" >&5
7435 cat conftest.$ac_ext >&5
7436 fi
7437 rm -f conftest* conftst*
7438
7439 # Do not use the global_symbol_pipe unless it works.
7440 if test "$pipe_works" = yes; then
7441 break
7442 else
7443 lt_cv_sys_global_symbol_pipe=
7444 fi
7445done
7446
7447fi
7448
7449if test -z "$lt_cv_sys_global_symbol_pipe"; then
7450 lt_cv_sys_global_symbol_to_cdecl=
7451fi
7452if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7453 echo "$as_me:$LINENO: result: failed" >&5
7454echo "${ECHO_T}failed" >&6
7455else
7456 echo "$as_me:$LINENO: result: ok" >&5
7457echo "${ECHO_T}ok" >&6
7458fi
7459
7460
7461echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7462echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7463if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7465else
7466 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7467 libltdl_cv_preloaded_symbols=yes
7468 else
7469 libltdl_cv_preloaded_symbols=no
7470 fi
7471
7472fi
7473echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7474echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7475if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7476
7477cat >>confdefs.h <<\_ACEOF
7478#define HAVE_PRELOADED_SYMBOLS 1
7479_ACEOF
7480
7481fi
7482
7483LIBADD_DL=
7484
7485ac_ext=c
7486ac_cpp='$CPP $CPPFLAGS'
7487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7489ac_compiler_gnu=$ac_cv_c_compiler_gnu
7490
7491
7492echo "$as_me:$LINENO: checking for shl_load" >&5
7493echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7494if test "${ac_cv_func_shl_load+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7496else
7497 cat >conftest.$ac_ext <<_ACEOF
7498/* confdefs.h. */
7499_ACEOF
7500cat confdefs.h >>conftest.$ac_ext
7501cat >>conftest.$ac_ext <<_ACEOF
7502/* end confdefs.h. */
7503/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7505#define shl_load innocuous_shl_load
7506
7507/* System header to define __stub macros and hopefully few prototypes,
7508 which can conflict with char shl_load (); below.
7509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7510 <limits.h> exists even on freestanding compilers. */
7511
7512#ifdef __STDC__
7513# include <limits.h>
7514#else
7515# include <assert.h>
7516#endif
7517
7518#undef shl_load
7519
7520/* Override any gcc2 internal prototype to avoid an error. */
7521#ifdef __cplusplus
7522extern "C"
7523{
7524#endif
7525/* We use char because int might match the return type of a gcc2
7526 builtin and then its argument prototype would still apply. */
7527char shl_load ();
7528/* The GNU C library defines this for functions which it implements
7529 to always fail with ENOSYS. Some functions are actually named
7530 something starting with __ and the normal name is an alias. */
7531#if defined (__stub_shl_load) || defined (__stub___shl_load)
7532choke me
7533#else
7534char (*f) () = shl_load;
7535#endif
7536#ifdef __cplusplus
7537}
7538#endif
7539
7540int
7541main ()
7542{
7543return f != shl_load;
7544 ;
7545 return 0;
7546}
7547_ACEOF
7548rm -f conftest.$ac_objext conftest$ac_exeext
7549if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7550 (eval $ac_link) 2>conftest.er1
7551 ac_status=$?
7552 grep -v '^ *+' conftest.er1 >conftest.err
7553 rm -f conftest.er1
7554 cat conftest.err >&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); } &&
7557 { ac_try='test -z "$ac_c_werror_flag"
7558 || test ! -s conftest.err'
7559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 (eval $ac_try) 2>&5
7561 ac_status=$?
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); }; } &&
7564 { ac_try='test -s conftest$ac_exeext'
7565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566 (eval $ac_try) 2>&5
7567 ac_status=$?
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); }; }; then
7570 ac_cv_func_shl_load=yes
7571else
7572 echo "$as_me: failed program was:" >&5
7573sed 's/^/| /' conftest.$ac_ext >&5
7574
7575ac_cv_func_shl_load=no
7576fi
7577rm -f conftest.err conftest.$ac_objext \
7578 conftest$ac_exeext conftest.$ac_ext
7579fi
7580echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7581echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7582if test $ac_cv_func_shl_load = yes; then
7583
7584cat >>confdefs.h <<\_ACEOF
7585#define HAVE_SHL_LOAD 1
7586_ACEOF
7587
7588else
7589 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7590echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7591if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593else
7594 ac_check_lib_save_LIBS=$LIBS
7595LIBS="-ldld $LIBS"
7596cat >conftest.$ac_ext <<_ACEOF
7597/* confdefs.h. */
7598_ACEOF
7599cat confdefs.h >>conftest.$ac_ext
7600cat >>conftest.$ac_ext <<_ACEOF
7601/* end confdefs.h. */
7602
7603/* Override any gcc2 internal prototype to avoid an error. */
7604#ifdef __cplusplus
7605extern "C"
7606#endif
7607/* We use char because int might match the return type of a gcc2
7608 builtin and then its argument prototype would still apply. */
7609char shl_load ();
7610int
7611main ()
7612{
7613shl_load ();
7614 ;
7615 return 0;
7616}
7617_ACEOF
7618rm -f conftest.$ac_objext conftest$ac_exeext
7619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7620 (eval $ac_link) 2>conftest.er1
7621 ac_status=$?
7622 grep -v '^ *+' conftest.er1 >conftest.err
7623 rm -f conftest.er1
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try='test -z "$ac_c_werror_flag"
7628 || test ! -s conftest.err'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 (eval $ac_try) 2>&5
7631 ac_status=$?
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; } &&
7634 { ac_try='test -s conftest$ac_exeext'
7635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 (eval $ac_try) 2>&5
7637 ac_status=$?
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); }; }; then
7640 ac_cv_lib_dld_shl_load=yes
7641else
7642 echo "$as_me: failed program was:" >&5
7643sed 's/^/| /' conftest.$ac_ext >&5
7644
7645ac_cv_lib_dld_shl_load=no
7646fi
7647rm -f conftest.err conftest.$ac_objext \
7648 conftest$ac_exeext conftest.$ac_ext
7649LIBS=$ac_check_lib_save_LIBS
7650fi
7651echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7652echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7653if test $ac_cv_lib_dld_shl_load = yes; then
7654
7655cat >>confdefs.h <<\_ACEOF
7656#define HAVE_SHL_LOAD 1
7657_ACEOF
7658
7659 LIBADD_DL="$LIBADD_DL -ldld"
7660else
7661 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7662echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7663if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7665else
7666 ac_check_lib_save_LIBS=$LIBS
7667LIBS="-ldl $LIBS"
7668cat >conftest.$ac_ext <<_ACEOF
7669/* confdefs.h. */
7670_ACEOF
7671cat confdefs.h >>conftest.$ac_ext
7672cat >>conftest.$ac_ext <<_ACEOF
7673/* end confdefs.h. */
7674
7675/* Override any gcc2 internal prototype to avoid an error. */
7676#ifdef __cplusplus
7677extern "C"
7678#endif
7679/* We use char because int might match the return type of a gcc2
7680 builtin and then its argument prototype would still apply. */
7681char dlopen ();
7682int
7683main ()
7684{
7685dlopen ();
7686 ;
7687 return 0;
7688}
7689_ACEOF
7690rm -f conftest.$ac_objext conftest$ac_exeext
7691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7692 (eval $ac_link) 2>conftest.er1
7693 ac_status=$?
7694 grep -v '^ *+' conftest.er1 >conftest.err
7695 rm -f conftest.er1
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try='test -z "$ac_c_werror_flag"
7700 || test ! -s conftest.err'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7702 (eval $ac_try) 2>&5
7703 ac_status=$?
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; } &&
7706 { ac_try='test -s conftest$ac_exeext'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 (eval $ac_try) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; }; then
7712 ac_cv_lib_dl_dlopen=yes
7713else
7714 echo "$as_me: failed program was:" >&5
7715sed 's/^/| /' conftest.$ac_ext >&5
7716
7717ac_cv_lib_dl_dlopen=no
7718fi
7719rm -f conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7721LIBS=$ac_check_lib_save_LIBS
7722fi
7723echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7724echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7725if test $ac_cv_lib_dl_dlopen = yes; then
7726
7727cat >>confdefs.h <<\_ACEOF
7728#define HAVE_LIBDL 1
7729_ACEOF
7730
7731 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7732else
7733 cat >conftest.$ac_ext <<_ACEOF
7734/* confdefs.h. */
7735_ACEOF
7736cat confdefs.h >>conftest.$ac_ext
7737cat >>conftest.$ac_ext <<_ACEOF
7738/* end confdefs.h. */
7739#if HAVE_DLFCN_H
7740# include <dlfcn.h>
7741#endif
7742
7743int
7744main ()
7745{
7746dlopen(0, 0);
7747 ;
7748 return 0;
7749}
7750_ACEOF
7751rm -f conftest.$ac_objext conftest$ac_exeext
7752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7753 (eval $ac_link) 2>conftest.er1
7754 ac_status=$?
7755 grep -v '^ *+' conftest.er1 >conftest.err
7756 rm -f conftest.er1
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } &&
7760 { ac_try='test -z "$ac_c_werror_flag"
7761 || test ! -s conftest.err'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763 (eval $ac_try) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; } &&
7767 { ac_try='test -s conftest$ac_exeext'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7769 (eval $ac_try) 2>&5
7770 ac_status=$?
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; }; then
7773
7774cat >>confdefs.h <<\_ACEOF
7775#define HAVE_LIBDL 1
7776_ACEOF
7777 libltdl_cv_func_dlopen="yes"
7778else
7779 echo "$as_me: failed program was:" >&5
7780sed 's/^/| /' conftest.$ac_ext >&5
7781
7782echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7783echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7784if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7786else
7787 ac_check_lib_save_LIBS=$LIBS
7788LIBS="-lsvld $LIBS"
7789cat >conftest.$ac_ext <<_ACEOF
7790/* confdefs.h. */
7791_ACEOF
7792cat confdefs.h >>conftest.$ac_ext
7793cat >>conftest.$ac_ext <<_ACEOF
7794/* end confdefs.h. */
7795
7796/* Override any gcc2 internal prototype to avoid an error. */
7797#ifdef __cplusplus
7798extern "C"
7799#endif
7800/* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7802char dlopen ();
7803int
7804main ()
7805{
7806dlopen ();
7807 ;
7808 return 0;
7809}
7810_ACEOF
7811rm -f conftest.$ac_objext conftest$ac_exeext
7812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7813 (eval $ac_link) 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag"
7821 || test ! -s conftest.err'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7823 (eval $ac_try) 2>&5
7824 ac_status=$?
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; } &&
7827 { ac_try='test -s conftest$ac_exeext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 (eval $ac_try) 2>&5
7830 ac_status=$?
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_cv_lib_svld_dlopen=yes
7834else
7835 echo "$as_me: failed program was:" >&5
7836sed 's/^/| /' conftest.$ac_ext >&5
7837
7838ac_cv_lib_svld_dlopen=no
7839fi
7840rm -f conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext conftest.$ac_ext
7842LIBS=$ac_check_lib_save_LIBS
7843fi
7844echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7845echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7846if test $ac_cv_lib_svld_dlopen = yes; then
7847
7848cat >>confdefs.h <<\_ACEOF
7849#define HAVE_LIBDL 1
7850_ACEOF
7851
7852 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7853else
7854 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7855echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7856if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7857 echo $ECHO_N "(cached) $ECHO_C" >&6
7858else
7859 ac_check_lib_save_LIBS=$LIBS
7860LIBS="-ldld $LIBS"
7861cat >conftest.$ac_ext <<_ACEOF
7862/* confdefs.h. */
7863_ACEOF
7864cat confdefs.h >>conftest.$ac_ext
7865cat >>conftest.$ac_ext <<_ACEOF
7866/* end confdefs.h. */
7867
7868/* Override any gcc2 internal prototype to avoid an error. */
7869#ifdef __cplusplus
7870extern "C"
7871#endif
7872/* We use char because int might match the return type of a gcc2
7873 builtin and then its argument prototype would still apply. */
7874char dld_link ();
7875int
7876main ()
7877{
7878dld_link ();
7879 ;
7880 return 0;
7881}
7882_ACEOF
7883rm -f conftest.$ac_objext conftest$ac_exeext
7884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7885 (eval $ac_link) 2>conftest.er1
7886 ac_status=$?
7887 grep -v '^ *+' conftest.er1 >conftest.err
7888 rm -f conftest.er1
7889 cat conftest.err >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); } &&
7892 { ac_try='test -z "$ac_c_werror_flag"
7893 || test ! -s conftest.err'
7894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 (eval $ac_try) 2>&5
7896 ac_status=$?
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); }; } &&
7899 { ac_try='test -s conftest$ac_exeext'
7900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 (eval $ac_try) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); }; }; then
7905 ac_cv_lib_dld_dld_link=yes
7906else
7907 echo "$as_me: failed program was:" >&5
7908sed 's/^/| /' conftest.$ac_ext >&5
7909
7910ac_cv_lib_dld_dld_link=no
7911fi
7912rm -f conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914LIBS=$ac_check_lib_save_LIBS
7915fi
7916echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7917echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7918if test $ac_cv_lib_dld_dld_link = yes; then
7919
7920cat >>confdefs.h <<\_ACEOF
7921#define HAVE_DLD 1
7922_ACEOF
7923
7924 LIBADD_DL="$LIBADD_DL -ldld"
7925else
7926 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7927echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7928if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7929 echo $ECHO_N "(cached) $ECHO_C" >&6
7930else
7931 cat >conftest.$ac_ext <<_ACEOF
7932/* confdefs.h. */
7933_ACEOF
7934cat confdefs.h >>conftest.$ac_ext
7935cat >>conftest.$ac_ext <<_ACEOF
7936/* end confdefs.h. */
7937/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7939#define _dyld_func_lookup innocuous__dyld_func_lookup
7940
7941/* System header to define __stub macros and hopefully few prototypes,
7942 which can conflict with char _dyld_func_lookup (); below.
7943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7944 <limits.h> exists even on freestanding compilers. */
7945
7946#ifdef __STDC__
7947# include <limits.h>
7948#else
7949# include <assert.h>
7950#endif
7951
7952#undef _dyld_func_lookup
7953
7954/* Override any gcc2 internal prototype to avoid an error. */
7955#ifdef __cplusplus
7956extern "C"
7957{
7958#endif
7959/* We use char because int might match the return type of a gcc2
7960 builtin and then its argument prototype would still apply. */
7961char _dyld_func_lookup ();
7962/* The GNU C library defines this for functions which it implements
7963 to always fail with ENOSYS. Some functions are actually named
7964 something starting with __ and the normal name is an alias. */
7965#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7966choke me
7967#else
7968char (*f) () = _dyld_func_lookup;
7969#endif
7970#ifdef __cplusplus
7971}
7972#endif
7973
7974int
7975main ()
7976{
7977return f != _dyld_func_lookup;
7978 ;
7979 return 0;
7980}
7981_ACEOF
7982rm -f conftest.$ac_objext conftest$ac_exeext
7983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7984 (eval $ac_link) 2>conftest.er1
7985 ac_status=$?
7986 grep -v '^ *+' conftest.er1 >conftest.err
7987 rm -f conftest.er1
7988 cat conftest.err >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -z "$ac_c_werror_flag"
7992 || test ! -s conftest.err'
7993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7994 (eval $ac_try) 2>&5
7995 ac_status=$?
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); }; } &&
7998 { ac_try='test -s conftest$ac_exeext'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 (eval $ac_try) 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; }; then
8004 ac_cv_func__dyld_func_lookup=yes
8005else
8006 echo "$as_me: failed program was:" >&5
8007sed 's/^/| /' conftest.$ac_ext >&5
8008
8009ac_cv_func__dyld_func_lookup=no
8010fi
8011rm -f conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
8013fi
8014echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8015echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8016if test $ac_cv_func__dyld_func_lookup = yes; then
8017
8018cat >>confdefs.h <<\_ACEOF
8019#define HAVE_DYLD 1
8020_ACEOF
8021
8022fi
8023
8024
8025fi
8026
8027
8028fi
8029
8030
8031fi
8032rm -f conftest.err conftest.$ac_objext \
8033 conftest$ac_exeext conftest.$ac_ext
8034
8035fi
8036
8037
8038fi
8039
8040
8041fi
8042
8043
8044if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8045then
8046 lt_save_LIBS="$LIBS"
8047 LIBS="$LIBS $LIBADD_DL"
8048
8049for ac_func in dlerror
8050do
8051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8052echo "$as_me:$LINENO: checking for $ac_func" >&5
8053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8054if eval "test \"\${$as_ac_var+set}\" = set"; then
8055 echo $ECHO_N "(cached) $ECHO_C" >&6
8056else
8057 cat >conftest.$ac_ext <<_ACEOF
8058/* confdefs.h. */
8059_ACEOF
8060cat confdefs.h >>conftest.$ac_ext
8061cat >>conftest.$ac_ext <<_ACEOF
8062/* end confdefs.h. */
8063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8065#define $ac_func innocuous_$ac_func
8066
8067/* System header to define __stub macros and hopefully few prototypes,
8068 which can conflict with char $ac_func (); below.
8069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8070 <limits.h> exists even on freestanding compilers. */
8071
8072#ifdef __STDC__
8073# include <limits.h>
8074#else
8075# include <assert.h>
8076#endif
8077
8078#undef $ac_func
8079
8080/* Override any gcc2 internal prototype to avoid an error. */
8081#ifdef __cplusplus
8082extern "C"
8083{
8084#endif
8085/* We use char because int might match the return type of a gcc2
8086 builtin and then its argument prototype would still apply. */
8087char $ac_func ();
8088/* The GNU C library defines this for functions which it implements
8089 to always fail with ENOSYS. Some functions are actually named
8090 something starting with __ and the normal name is an alias. */
8091#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8092choke me
8093#else
8094char (*f) () = $ac_func;
8095#endif
8096#ifdef __cplusplus
8097}
8098#endif
8099
8100int
8101main ()
8102{
8103return f != $ac_func;
8104 ;
8105 return 0;
8106}
8107_ACEOF
8108rm -f conftest.$ac_objext conftest$ac_exeext
8109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110 (eval $ac_link) 2>conftest.er1
8111 ac_status=$?
8112 grep -v '^ *+' conftest.er1 >conftest.err
8113 rm -f conftest.er1
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -z "$ac_c_werror_flag"
8118 || test ! -s conftest.err'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; } &&
8124 { ac_try='test -s conftest$ac_exeext'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; }; then
8130 eval "$as_ac_var=yes"
8131else
8132 echo "$as_me: failed program was:" >&5
8133sed 's/^/| /' conftest.$ac_ext >&5
8134
8135eval "$as_ac_var=no"
8136fi
8137rm -f conftest.err conftest.$ac_objext \
8138 conftest$ac_exeext conftest.$ac_ext
8139fi
8140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8141echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8142if test `eval echo '${'$as_ac_var'}'` = yes; then
8143 cat >>confdefs.h <<_ACEOF
8144#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8145_ACEOF
8146
8147fi
8148done
8149
8150 LIBS="$lt_save_LIBS"
8151fi
8152ac_ext=c
8153ac_cpp='$CPP $CPPFLAGS'
8154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156ac_compiler_gnu=$ac_cv_c_compiler_gnu
8157
8158
8159
8160echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8161echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8162if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8164else
8165 ac_cv_sys_symbol_underscore=no
8166 cat > conftest.$ac_ext <<EOF
8167void nm_test_func(){}
8168int main(){nm_test_func;return 0;}
8169EOF
8170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8171 (eval $ac_compile) 2>&5
8172 ac_status=$?
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; then
8175 # Now try to grab the symbols.
8176 ac_nlist=conftest.nm
8177 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8178 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } && test -s "$ac_nlist"; then
8182 # See whether the symbols have a leading underscore.
8183 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8184 ac_cv_sys_symbol_underscore=yes
8185 else
8186 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8187 :
8188 else
8189 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8190 fi
8191 fi
8192 else
8193 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8194 fi
8195 else
8196 echo "configure: failed program was:" >&5
8197 cat conftest.c >&5
8198 fi
8199 rm -rf conftest*
8200
8201fi
8202echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8203echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8204
8205
8206if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8207 if test x"$libltdl_cv_func_dlopen" = xyes ||
8208 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8209 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8210echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8211if test "${libltdl_cv_need_uscore+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8213else
8214 libltdl_cv_need_uscore=unknown
8215 save_LIBS="$LIBS"
8216 LIBS="$LIBS $LIBADD_DL"
8217 if test "$cross_compiling" = yes; then :
8218 libltdl_cv_need_uscore=cross
8219else
8220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8221 lt_status=$lt_dlunknown
8222 cat > conftest.$ac_ext <<EOF
Reid Spencer59473af2004-12-25 07:31:29 +00008223#line 8223 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008224#include "confdefs.h"
8225
8226#if HAVE_DLFCN_H
8227#include <dlfcn.h>
8228#endif
8229
8230#include <stdio.h>
8231
8232#ifdef RTLD_GLOBAL
8233# define LT_DLGLOBAL RTLD_GLOBAL
8234#else
8235# ifdef DL_GLOBAL
8236# define LT_DLGLOBAL DL_GLOBAL
8237# else
8238# define LT_DLGLOBAL 0
8239# endif
8240#endif
8241
8242/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8243 find out it does not work in some platform. */
8244#ifndef LT_DLLAZY_OR_NOW
8245# ifdef RTLD_LAZY
8246# define LT_DLLAZY_OR_NOW RTLD_LAZY
8247# else
8248# ifdef DL_LAZY
8249# define LT_DLLAZY_OR_NOW DL_LAZY
8250# else
8251# ifdef RTLD_NOW
8252# define LT_DLLAZY_OR_NOW RTLD_NOW
8253# else
8254# ifdef DL_NOW
8255# define LT_DLLAZY_OR_NOW DL_NOW
8256# else
8257# define LT_DLLAZY_OR_NOW 0
8258# endif
8259# endif
8260# endif
8261# endif
8262#endif
8263
8264#ifdef __cplusplus
8265extern "C" void exit (int);
8266#endif
8267
8268void fnord() { int i=42;}
8269int main ()
8270{
8271 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8272 int status = $lt_dlunknown;
8273
8274 if (self)
8275 {
8276 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8277 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8278 /* dlclose (self); */
8279 }
8280
8281 exit (status);
8282}
8283EOF
8284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285 (eval $ac_link) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8289 (./conftest; exit; ) 2>/dev/null
8290 lt_status=$?
8291 case x$lt_status in
8292 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8293 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8294 x$lt_unknown|x*) ;;
8295 esac
8296 else :
8297 # compilation failed
8298
8299 fi
8300fi
8301rm -fr conftest*
8302
8303 LIBS="$save_LIBS"
8304
8305fi
8306echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8307echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8308 fi
8309fi
8310
8311if test x"$libltdl_cv_need_uscore" = xyes; then
8312
8313cat >>confdefs.h <<\_ACEOF
8314#define NEED_USCORE 1
8315_ACEOF
8316
8317fi
8318
8319
8320echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8321echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8322if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324else
8325 # PORTME does your system automatically load deplibs for dlopen?
8326 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8327 # For now, we just catch OSes we know something about -- in the
8328 # future, we'll try test this programmatically.
8329 libltdl_cv_sys_dlopen_deplibs=unknown
8330 case "$host_os" in
8331 aix3*|aix4.1.*|aix4.2.*)
8332 # Unknown whether this is true for these versions of AIX, but
8333 # we want this `case' here to explicitly catch those versions.
8334 libltdl_cv_sys_dlopen_deplibs=unknown
8335 ;;
8336 aix[45]*)
8337 libltdl_cv_sys_dlopen_deplibs=yes
8338 ;;
8339 darwin*)
8340 # Assuming the user has installed a libdl from somewhere, this is true
8341 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8342 libltdl_cv_sys_dlopen_deplibs=yes
8343 ;;
8344 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8345 # GNU and its variants, using gnu ld.so (Glibc)
8346 libltdl_cv_sys_dlopen_deplibs=yes
8347 ;;
8348 hpux10*|hpux11*)
8349 libltdl_cv_sys_dlopen_deplibs=yes
8350 ;;
8351 irix[12345]*|irix6.[01]*)
8352 # Catch all versions of IRIX before 6.2, and indicate that we don't
8353 # know how it worked for any of those versions.
8354 libltdl_cv_sys_dlopen_deplibs=unknown
8355 ;;
8356 irix*)
8357 # The case above catches anything before 6.2, and it's known that
8358 # at 6.2 and later dlopen does load deplibs.
8359 libltdl_cv_sys_dlopen_deplibs=yes
8360 ;;
8361 netbsd*)
8362 libltdl_cv_sys_dlopen_deplibs=yes
8363 ;;
8364 openbsd*)
8365 libltdl_cv_sys_dlopen_deplibs=yes
8366 ;;
8367 osf[1234]*)
8368 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8369 # it did *not* use an RPATH in a shared library to find objects the
8370 # library depends on, so we explictly say `no'.
8371 libltdl_cv_sys_dlopen_deplibs=no
8372 ;;
8373 osf5.0|osf5.0a|osf5.1)
8374 # dlopen *does* load deplibs and with the right loader patch applied
8375 # it even uses RPATH in a shared library to search for shared objects
8376 # that the library depends on, but there's no easy way to know if that
8377 # patch is installed. Since this is the case, all we can really
8378 # say is unknown -- it depends on the patch being installed. If
8379 # it is, this changes to `yes'. Without it, it would be `no'.
8380 libltdl_cv_sys_dlopen_deplibs=unknown
8381 ;;
8382 osf*)
8383 # the two cases above should catch all versions of osf <= 5.1. Read
8384 # the comments above for what we know about them.
8385 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8386 # is used to find them so we can finally say `yes'.
8387 libltdl_cv_sys_dlopen_deplibs=yes
8388 ;;
8389 solaris*)
8390 libltdl_cv_sys_dlopen_deplibs=yes
8391 ;;
8392 esac
8393
8394fi
8395echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8396echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8397if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8398
8399cat >>confdefs.h <<\_ACEOF
8400#define LTDL_DLOPEN_DEPLIBS 1
8401_ACEOF
8402
8403fi
8404
8405
8406for ac_header in argz.h
8407do
8408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8409if eval "test \"\${$as_ac_Header+set}\" = set"; then
8410 echo "$as_me:$LINENO: checking for $ac_header" >&5
8411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8412if eval "test \"\${$as_ac_Header+set}\" = set"; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414fi
8415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8417else
8418 # Is the header compilable?
8419echo "$as_me:$LINENO: checking $ac_header usability" >&5
8420echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8421cat >conftest.$ac_ext <<_ACEOF
8422/* confdefs.h. */
8423_ACEOF
8424cat confdefs.h >>conftest.$ac_ext
8425cat >>conftest.$ac_ext <<_ACEOF
8426/* end confdefs.h. */
8427$ac_includes_default
8428#include <$ac_header>
8429_ACEOF
8430rm -f conftest.$ac_objext
8431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8432 (eval $ac_compile) 2>conftest.er1
8433 ac_status=$?
8434 grep -v '^ *+' conftest.er1 >conftest.err
8435 rm -f conftest.er1
8436 cat conftest.err >&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -z "$ac_c_werror_flag"
8440 || test ! -s conftest.err'
8441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8442 (eval $ac_try) 2>&5
8443 ac_status=$?
8444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8445 (exit $ac_status); }; } &&
8446 { ac_try='test -s conftest.$ac_objext'
8447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8448 (eval $ac_try) 2>&5
8449 ac_status=$?
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; }; then
8452 ac_header_compiler=yes
8453else
8454 echo "$as_me: failed program was:" >&5
8455sed 's/^/| /' conftest.$ac_ext >&5
8456
8457ac_header_compiler=no
8458fi
8459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8460echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8461echo "${ECHO_T}$ac_header_compiler" >&6
8462
8463# Is the header present?
8464echo "$as_me:$LINENO: checking $ac_header presence" >&5
8465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8466cat >conftest.$ac_ext <<_ACEOF
8467/* confdefs.h. */
8468_ACEOF
8469cat confdefs.h >>conftest.$ac_ext
8470cat >>conftest.$ac_ext <<_ACEOF
8471/* end confdefs.h. */
8472#include <$ac_header>
8473_ACEOF
8474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8476 ac_status=$?
8477 grep -v '^ *+' conftest.er1 >conftest.err
8478 rm -f conftest.er1
8479 cat conftest.err >&5
8480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481 (exit $ac_status); } >/dev/null; then
8482 if test -s conftest.err; then
8483 ac_cpp_err=$ac_c_preproc_warn_flag
8484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8485 else
8486 ac_cpp_err=
8487 fi
8488else
8489 ac_cpp_err=yes
8490fi
8491if test -z "$ac_cpp_err"; then
8492 ac_header_preproc=yes
8493else
8494 echo "$as_me: failed program was:" >&5
8495sed 's/^/| /' conftest.$ac_ext >&5
8496
8497 ac_header_preproc=no
8498fi
8499rm -f conftest.err conftest.$ac_ext
8500echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8501echo "${ECHO_T}$ac_header_preproc" >&6
8502
8503# So? What about this header?
8504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8505 yes:no: )
8506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8510 ac_header_preproc=yes
8511 ;;
8512 no:yes:* )
8513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8516echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8520echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8525 (
8526 cat <<\_ASBOX
8527## ----------------------------------- ##
8528## Report this to llvmbugs@cs.uiuc.edu ##
8529## ----------------------------------- ##
8530_ASBOX
8531 ) |
8532 sed "s/^/$as_me: WARNING: /" >&2
8533 ;;
8534esac
8535echo "$as_me:$LINENO: checking for $ac_header" >&5
8536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8537if eval "test \"\${$as_ac_Header+set}\" = set"; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539else
8540 eval "$as_ac_Header=\$ac_header_preproc"
8541fi
8542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8544
8545fi
8546if test `eval echo '${'$as_ac_Header'}'` = yes; then
8547 cat >>confdefs.h <<_ACEOF
8548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8549_ACEOF
8550
8551fi
8552
8553done
8554
8555
8556echo "$as_me:$LINENO: checking for error_t" >&5
8557echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8558if test "${ac_cv_type_error_t+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8560else
8561 cat >conftest.$ac_ext <<_ACEOF
8562/* confdefs.h. */
8563_ACEOF
8564cat confdefs.h >>conftest.$ac_ext
8565cat >>conftest.$ac_ext <<_ACEOF
8566/* end confdefs.h. */
8567#if HAVE_ARGZ_H
8568# include <argz.h>
8569#endif
8570
8571int
8572main ()
8573{
8574if ((error_t *) 0)
8575 return 0;
8576if (sizeof (error_t))
8577 return 0;
8578 ;
8579 return 0;
8580}
8581_ACEOF
8582rm -f conftest.$ac_objext
8583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8584 (eval $ac_compile) 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } &&
8591 { ac_try='test -z "$ac_c_werror_flag"
8592 || test ! -s conftest.err'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; } &&
8598 { ac_try='test -s conftest.$ac_objext'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 (eval $ac_try) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 ac_cv_type_error_t=yes
8605else
8606 echo "$as_me: failed program was:" >&5
8607sed 's/^/| /' conftest.$ac_ext >&5
8608
8609ac_cv_type_error_t=no
8610fi
8611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8612fi
8613echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8614echo "${ECHO_T}$ac_cv_type_error_t" >&6
8615if test $ac_cv_type_error_t = yes; then
8616
8617cat >>confdefs.h <<_ACEOF
8618#define HAVE_ERROR_T 1
8619_ACEOF
8620
8621
8622else
8623
8624cat >>confdefs.h <<\_ACEOF
8625#define error_t int
8626_ACEOF
8627
8628fi
8629
8630
8631
8632
8633
8634
8635
8636for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8637do
8638as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8639echo "$as_me:$LINENO: checking for $ac_func" >&5
8640echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8641if eval "test \"\${$as_ac_var+set}\" = set"; then
8642 echo $ECHO_N "(cached) $ECHO_C" >&6
8643else
8644 cat >conftest.$ac_ext <<_ACEOF
8645/* confdefs.h. */
8646_ACEOF
8647cat confdefs.h >>conftest.$ac_ext
8648cat >>conftest.$ac_ext <<_ACEOF
8649/* end confdefs.h. */
8650/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8651 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8652#define $ac_func innocuous_$ac_func
8653
8654/* System header to define __stub macros and hopefully few prototypes,
8655 which can conflict with char $ac_func (); below.
8656 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8657 <limits.h> exists even on freestanding compilers. */
8658
8659#ifdef __STDC__
8660# include <limits.h>
8661#else
8662# include <assert.h>
8663#endif
8664
8665#undef $ac_func
8666
8667/* Override any gcc2 internal prototype to avoid an error. */
8668#ifdef __cplusplus
8669extern "C"
8670{
8671#endif
8672/* We use char because int might match the return type of a gcc2
8673 builtin and then its argument prototype would still apply. */
8674char $ac_func ();
8675/* The GNU C library defines this for functions which it implements
8676 to always fail with ENOSYS. Some functions are actually named
8677 something starting with __ and the normal name is an alias. */
8678#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8679choke me
8680#else
8681char (*f) () = $ac_func;
8682#endif
8683#ifdef __cplusplus
8684}
8685#endif
8686
8687int
8688main ()
8689{
8690return f != $ac_func;
8691 ;
8692 return 0;
8693}
8694_ACEOF
8695rm -f conftest.$ac_objext conftest$ac_exeext
8696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697 (eval $ac_link) 2>conftest.er1
8698 ac_status=$?
8699 grep -v '^ *+' conftest.er1 >conftest.err
8700 rm -f conftest.er1
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } &&
8704 { ac_try='test -z "$ac_c_werror_flag"
8705 || test ! -s conftest.err'
8706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 (eval $ac_try) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); }; } &&
8711 { ac_try='test -s conftest$ac_exeext'
8712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 (eval $ac_try) 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); }; }; then
8717 eval "$as_ac_var=yes"
8718else
8719 echo "$as_me: failed program was:" >&5
8720sed 's/^/| /' conftest.$ac_ext >&5
8721
8722eval "$as_ac_var=no"
8723fi
8724rm -f conftest.err conftest.$ac_objext \
8725 conftest$ac_exeext conftest.$ac_ext
8726fi
8727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8728echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8729if test `eval echo '${'$as_ac_var'}'` = yes; then
8730 cat >>confdefs.h <<_ACEOF
8731#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8732_ACEOF
8733
8734fi
8735done
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8765 stdio.h unistd.h
8766do
8767as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8768if eval "test \"\${$as_ac_Header+set}\" = set"; then
8769 echo "$as_me:$LINENO: checking for $ac_header" >&5
8770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8771if eval "test \"\${$as_ac_Header+set}\" = set"; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773fi
8774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8775echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8776else
8777 # Is the header compilable?
8778echo "$as_me:$LINENO: checking $ac_header usability" >&5
8779echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8780cat >conftest.$ac_ext <<_ACEOF
8781/* confdefs.h. */
8782_ACEOF
8783cat confdefs.h >>conftest.$ac_ext
8784cat >>conftest.$ac_ext <<_ACEOF
8785/* end confdefs.h. */
8786$ac_includes_default
8787#include <$ac_header>
8788_ACEOF
8789rm -f conftest.$ac_objext
8790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8791 (eval $ac_compile) 2>conftest.er1
8792 ac_status=$?
8793 grep -v '^ *+' conftest.er1 >conftest.err
8794 rm -f conftest.er1
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } &&
8798 { ac_try='test -z "$ac_c_werror_flag"
8799 || test ! -s conftest.err'
8800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 (eval $ac_try) 2>&5
8802 ac_status=$?
8803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8804 (exit $ac_status); }; } &&
8805 { ac_try='test -s conftest.$ac_objext'
8806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 (eval $ac_try) 2>&5
8808 ac_status=$?
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 (exit $ac_status); }; }; then
8811 ac_header_compiler=yes
8812else
8813 echo "$as_me: failed program was:" >&5
8814sed 's/^/| /' conftest.$ac_ext >&5
8815
8816ac_header_compiler=no
8817fi
8818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8819echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8820echo "${ECHO_T}$ac_header_compiler" >&6
8821
8822# Is the header present?
8823echo "$as_me:$LINENO: checking $ac_header presence" >&5
8824echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8825cat >conftest.$ac_ext <<_ACEOF
8826/* confdefs.h. */
8827_ACEOF
8828cat confdefs.h >>conftest.$ac_ext
8829cat >>conftest.$ac_ext <<_ACEOF
8830/* end confdefs.h. */
8831#include <$ac_header>
8832_ACEOF
8833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8835 ac_status=$?
8836 grep -v '^ *+' conftest.er1 >conftest.err
8837 rm -f conftest.er1
8838 cat conftest.err >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } >/dev/null; then
8841 if test -s conftest.err; then
8842 ac_cpp_err=$ac_c_preproc_warn_flag
8843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8844 else
8845 ac_cpp_err=
8846 fi
8847else
8848 ac_cpp_err=yes
8849fi
8850if test -z "$ac_cpp_err"; then
8851 ac_header_preproc=yes
8852else
8853 echo "$as_me: failed program was:" >&5
8854sed 's/^/| /' conftest.$ac_ext >&5
8855
8856 ac_header_preproc=no
8857fi
8858rm -f conftest.err conftest.$ac_ext
8859echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8860echo "${ECHO_T}$ac_header_preproc" >&6
8861
8862# So? What about this header?
8863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8864 yes:no: )
8865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8868echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8869 ac_header_preproc=yes
8870 ;;
8871 no:yes:* )
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8877echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8879echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8883echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8884 (
8885 cat <<\_ASBOX
8886## ----------------------------------- ##
8887## Report this to llvmbugs@cs.uiuc.edu ##
8888## ----------------------------------- ##
8889_ASBOX
8890 ) |
8891 sed "s/^/$as_me: WARNING: /" >&2
8892 ;;
8893esac
8894echo "$as_me:$LINENO: checking for $ac_header" >&5
8895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8896if eval "test \"\${$as_ac_Header+set}\" = set"; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8898else
8899 eval "$as_ac_Header=\$ac_header_preproc"
8900fi
8901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8903
8904fi
8905if test `eval echo '${'$as_ac_Header'}'` = yes; then
8906 cat >>confdefs.h <<_ACEOF
8907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8908_ACEOF
8909
8910fi
8911
8912done
8913
8914
8915
8916
8917
8918for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8919do
8920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8921if eval "test \"\${$as_ac_Header+set}\" = set"; then
8922 echo "$as_me:$LINENO: checking for $ac_header" >&5
8923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8924if eval "test \"\${$as_ac_Header+set}\" = set"; then
8925 echo $ECHO_N "(cached) $ECHO_C" >&6
8926fi
8927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8929else
8930 # Is the header compilable?
8931echo "$as_me:$LINENO: checking $ac_header usability" >&5
8932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8933cat >conftest.$ac_ext <<_ACEOF
8934/* confdefs.h. */
8935_ACEOF
8936cat confdefs.h >>conftest.$ac_ext
8937cat >>conftest.$ac_ext <<_ACEOF
8938/* end confdefs.h. */
8939$ac_includes_default
8940#include <$ac_header>
8941_ACEOF
8942rm -f conftest.$ac_objext
8943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8944 (eval $ac_compile) 2>conftest.er1
8945 ac_status=$?
8946 grep -v '^ *+' conftest.er1 >conftest.err
8947 rm -f conftest.er1
8948 cat conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -z "$ac_c_werror_flag"
8952 || test ! -s conftest.err'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; } &&
8958 { ac_try='test -s conftest.$ac_objext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960 (eval $ac_try) 2>&5
8961 ac_status=$?
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8964 ac_header_compiler=yes
8965else
8966 echo "$as_me: failed program was:" >&5
8967sed 's/^/| /' conftest.$ac_ext >&5
8968
8969ac_header_compiler=no
8970fi
8971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8972echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8973echo "${ECHO_T}$ac_header_compiler" >&6
8974
8975# Is the header present?
8976echo "$as_me:$LINENO: checking $ac_header presence" >&5
8977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8978cat >conftest.$ac_ext <<_ACEOF
8979/* confdefs.h. */
8980_ACEOF
8981cat confdefs.h >>conftest.$ac_ext
8982cat >>conftest.$ac_ext <<_ACEOF
8983/* end confdefs.h. */
8984#include <$ac_header>
8985_ACEOF
8986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } >/dev/null; then
8994 if test -s conftest.err; then
8995 ac_cpp_err=$ac_c_preproc_warn_flag
8996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8997 else
8998 ac_cpp_err=
8999 fi
9000else
9001 ac_cpp_err=yes
9002fi
9003if test -z "$ac_cpp_err"; then
9004 ac_header_preproc=yes
9005else
9006 echo "$as_me: failed program was:" >&5
9007sed 's/^/| /' conftest.$ac_ext >&5
9008
9009 ac_header_preproc=no
9010fi
9011rm -f conftest.err conftest.$ac_ext
9012echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9013echo "${ECHO_T}$ac_header_preproc" >&6
9014
9015# So? What about this header?
9016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9017 yes:no: )
9018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9022 ac_header_preproc=yes
9023 ;;
9024 no:yes:* )
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9037 (
9038 cat <<\_ASBOX
9039## ----------------------------------- ##
9040## Report this to llvmbugs@cs.uiuc.edu ##
9041## ----------------------------------- ##
9042_ASBOX
9043 ) |
9044 sed "s/^/$as_me: WARNING: /" >&2
9045 ;;
9046esac
9047echo "$as_me:$LINENO: checking for $ac_header" >&5
9048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9049if eval "test \"\${$as_ac_Header+set}\" = set"; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9051else
9052 eval "$as_ac_Header=\$ac_header_preproc"
9053fi
9054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9056
9057fi
9058if test `eval echo '${'$as_ac_Header'}'` = yes; then
9059 cat >>confdefs.h <<_ACEOF
9060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9061_ACEOF
9062
9063fi
9064
9065done
9066
9067
9068
9069for ac_header in string.h strings.h
9070do
9071as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9072if eval "test \"\${$as_ac_Header+set}\" = set"; then
9073 echo "$as_me:$LINENO: checking for $ac_header" >&5
9074echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9075if eval "test \"\${$as_ac_Header+set}\" = set"; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9077fi
9078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9079echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9080else
9081 # Is the header compilable?
9082echo "$as_me:$LINENO: checking $ac_header usability" >&5
9083echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9084cat >conftest.$ac_ext <<_ACEOF
9085/* confdefs.h. */
9086_ACEOF
9087cat confdefs.h >>conftest.$ac_ext
9088cat >>conftest.$ac_ext <<_ACEOF
9089/* end confdefs.h. */
9090$ac_includes_default
9091#include <$ac_header>
9092_ACEOF
9093rm -f conftest.$ac_objext
9094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9095 (eval $ac_compile) 2>conftest.er1
9096 ac_status=$?
9097 grep -v '^ *+' conftest.er1 >conftest.err
9098 rm -f conftest.er1
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } &&
9102 { ac_try='test -z "$ac_c_werror_flag"
9103 || test ! -s conftest.err'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; } &&
9109 { ac_try='test -s conftest.$ac_objext'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111 (eval $ac_try) 2>&5
9112 ac_status=$?
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; }; then
9115 ac_header_compiler=yes
9116else
9117 echo "$as_me: failed program was:" >&5
9118sed 's/^/| /' conftest.$ac_ext >&5
9119
9120ac_header_compiler=no
9121fi
9122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9123echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9124echo "${ECHO_T}$ac_header_compiler" >&6
9125
9126# Is the header present?
9127echo "$as_me:$LINENO: checking $ac_header presence" >&5
9128echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9129cat >conftest.$ac_ext <<_ACEOF
9130/* confdefs.h. */
9131_ACEOF
9132cat confdefs.h >>conftest.$ac_ext
9133cat >>conftest.$ac_ext <<_ACEOF
9134/* end confdefs.h. */
9135#include <$ac_header>
9136_ACEOF
9137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9139 ac_status=$?
9140 grep -v '^ *+' conftest.er1 >conftest.err
9141 rm -f conftest.er1
9142 cat conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } >/dev/null; then
9145 if test -s conftest.err; then
9146 ac_cpp_err=$ac_c_preproc_warn_flag
9147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9148 else
9149 ac_cpp_err=
9150 fi
9151else
9152 ac_cpp_err=yes
9153fi
9154if test -z "$ac_cpp_err"; then
9155 ac_header_preproc=yes
9156else
9157 echo "$as_me: failed program was:" >&5
9158sed 's/^/| /' conftest.$ac_ext >&5
9159
9160 ac_header_preproc=no
9161fi
9162rm -f conftest.err conftest.$ac_ext
9163echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9164echo "${ECHO_T}$ac_header_preproc" >&6
9165
9166# So? What about this header?
9167case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9168 yes:no: )
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9170echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9172echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9173 ac_header_preproc=yes
9174 ;;
9175 no:yes:* )
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9177echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9179echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9181echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9183echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9185echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9187echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9188 (
9189 cat <<\_ASBOX
9190## ----------------------------------- ##
9191## Report this to llvmbugs@cs.uiuc.edu ##
9192## ----------------------------------- ##
9193_ASBOX
9194 ) |
9195 sed "s/^/$as_me: WARNING: /" >&2
9196 ;;
9197esac
9198echo "$as_me:$LINENO: checking for $ac_header" >&5
9199echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9200if eval "test \"\${$as_ac_Header+set}\" = set"; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9202else
9203 eval "$as_ac_Header=\$ac_header_preproc"
9204fi
9205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9207
9208fi
9209if test `eval echo '${'$as_ac_Header'}'` = yes; then
9210 cat >>confdefs.h <<_ACEOF
9211#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9212_ACEOF
9213 break
9214fi
9215
9216done
9217
9218
9219
9220
9221for ac_func in strchr index
9222do
9223as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9224echo "$as_me:$LINENO: checking for $ac_func" >&5
9225echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9226if eval "test \"\${$as_ac_var+set}\" = set"; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9228else
9229 cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h. */
9235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9237#define $ac_func innocuous_$ac_func
9238
9239/* System header to define __stub macros and hopefully few prototypes,
9240 which can conflict with char $ac_func (); below.
9241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9242 <limits.h> exists even on freestanding compilers. */
9243
9244#ifdef __STDC__
9245# include <limits.h>
9246#else
9247# include <assert.h>
9248#endif
9249
9250#undef $ac_func
9251
9252/* Override any gcc2 internal prototype to avoid an error. */
9253#ifdef __cplusplus
9254extern "C"
9255{
9256#endif
9257/* We use char because int might match the return type of a gcc2
9258 builtin and then its argument prototype would still apply. */
9259char $ac_func ();
9260/* The GNU C library defines this for functions which it implements
9261 to always fail with ENOSYS. Some functions are actually named
9262 something starting with __ and the normal name is an alias. */
9263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9264choke me
9265#else
9266char (*f) () = $ac_func;
9267#endif
9268#ifdef __cplusplus
9269}
9270#endif
9271
9272int
9273main ()
9274{
9275return f != $ac_func;
9276 ;
9277 return 0;
9278}
9279_ACEOF
9280rm -f conftest.$ac_objext conftest$ac_exeext
9281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9282 (eval $ac_link) 2>conftest.er1
9283 ac_status=$?
9284 grep -v '^ *+' conftest.er1 >conftest.err
9285 rm -f conftest.er1
9286 cat conftest.err >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); } &&
9289 { ac_try='test -z "$ac_c_werror_flag"
9290 || test ! -s conftest.err'
9291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 (eval $ac_try) 2>&5
9293 ac_status=$?
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest$ac_exeext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9298 (eval $ac_try) 2>&5
9299 ac_status=$?
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 eval "$as_ac_var=yes"
9303else
9304 echo "$as_me: failed program was:" >&5
9305sed 's/^/| /' conftest.$ac_ext >&5
9306
9307eval "$as_ac_var=no"
9308fi
9309rm -f conftest.err conftest.$ac_objext \
9310 conftest$ac_exeext conftest.$ac_ext
9311fi
9312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9313echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9314if test `eval echo '${'$as_ac_var'}'` = yes; then
9315 cat >>confdefs.h <<_ACEOF
9316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9317_ACEOF
9318 break
9319fi
9320done
9321
9322
9323
9324for ac_func in strrchr rindex
9325do
9326as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9327echo "$as_me:$LINENO: checking for $ac_func" >&5
9328echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9329if eval "test \"\${$as_ac_var+set}\" = set"; then
9330 echo $ECHO_N "(cached) $ECHO_C" >&6
9331else
9332 cat >conftest.$ac_ext <<_ACEOF
9333/* confdefs.h. */
9334_ACEOF
9335cat confdefs.h >>conftest.$ac_ext
9336cat >>conftest.$ac_ext <<_ACEOF
9337/* end confdefs.h. */
9338/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9340#define $ac_func innocuous_$ac_func
9341
9342/* System header to define __stub macros and hopefully few prototypes,
9343 which can conflict with char $ac_func (); below.
9344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9345 <limits.h> exists even on freestanding compilers. */
9346
9347#ifdef __STDC__
9348# include <limits.h>
9349#else
9350# include <assert.h>
9351#endif
9352
9353#undef $ac_func
9354
9355/* Override any gcc2 internal prototype to avoid an error. */
9356#ifdef __cplusplus
9357extern "C"
9358{
9359#endif
9360/* We use char because int might match the return type of a gcc2
9361 builtin and then its argument prototype would still apply. */
9362char $ac_func ();
9363/* The GNU C library defines this for functions which it implements
9364 to always fail with ENOSYS. Some functions are actually named
9365 something starting with __ and the normal name is an alias. */
9366#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9367choke me
9368#else
9369char (*f) () = $ac_func;
9370#endif
9371#ifdef __cplusplus
9372}
9373#endif
9374
9375int
9376main ()
9377{
9378return f != $ac_func;
9379 ;
9380 return 0;
9381}
9382_ACEOF
9383rm -f conftest.$ac_objext conftest$ac_exeext
9384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } &&
9392 { ac_try='test -z "$ac_c_werror_flag"
9393 || test ! -s conftest.err'
9394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 (eval $ac_try) 2>&5
9396 ac_status=$?
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); }; } &&
9399 { ac_try='test -s conftest$ac_exeext'
9400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 (eval $ac_try) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; }; then
9405 eval "$as_ac_var=yes"
9406else
9407 echo "$as_me: failed program was:" >&5
9408sed 's/^/| /' conftest.$ac_ext >&5
9409
9410eval "$as_ac_var=no"
9411fi
9412rm -f conftest.err conftest.$ac_objext \
9413 conftest$ac_exeext conftest.$ac_ext
9414fi
9415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9416echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9417if test `eval echo '${'$as_ac_var'}'` = yes; then
9418 cat >>confdefs.h <<_ACEOF
9419#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9420_ACEOF
9421 break
9422fi
9423done
9424
9425
9426
9427for ac_func in memcpy bcopy
9428do
9429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9430echo "$as_me:$LINENO: checking for $ac_func" >&5
9431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9432if eval "test \"\${$as_ac_var+set}\" = set"; then
9433 echo $ECHO_N "(cached) $ECHO_C" >&6
9434else
9435 cat >conftest.$ac_ext <<_ACEOF
9436/* confdefs.h. */
9437_ACEOF
9438cat confdefs.h >>conftest.$ac_ext
9439cat >>conftest.$ac_ext <<_ACEOF
9440/* end confdefs.h. */
9441/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9443#define $ac_func innocuous_$ac_func
9444
9445/* System header to define __stub macros and hopefully few prototypes,
9446 which can conflict with char $ac_func (); below.
9447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9448 <limits.h> exists even on freestanding compilers. */
9449
9450#ifdef __STDC__
9451# include <limits.h>
9452#else
9453# include <assert.h>
9454#endif
9455
9456#undef $ac_func
9457
9458/* Override any gcc2 internal prototype to avoid an error. */
9459#ifdef __cplusplus
9460extern "C"
9461{
9462#endif
9463/* We use char because int might match the return type of a gcc2
9464 builtin and then its argument prototype would still apply. */
9465char $ac_func ();
9466/* The GNU C library defines this for functions which it implements
9467 to always fail with ENOSYS. Some functions are actually named
9468 something starting with __ and the normal name is an alias. */
9469#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9470choke me
9471#else
9472char (*f) () = $ac_func;
9473#endif
9474#ifdef __cplusplus
9475}
9476#endif
9477
9478int
9479main ()
9480{
9481return f != $ac_func;
9482 ;
9483 return 0;
9484}
9485_ACEOF
9486rm -f conftest.$ac_objext conftest$ac_exeext
9487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9488 (eval $ac_link) 2>conftest.er1
9489 ac_status=$?
9490 grep -v '^ *+' conftest.er1 >conftest.err
9491 rm -f conftest.er1
9492 cat conftest.err >&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); } &&
9495 { ac_try='test -z "$ac_c_werror_flag"
9496 || test ! -s conftest.err'
9497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498 (eval $ac_try) 2>&5
9499 ac_status=$?
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); }; } &&
9502 { ac_try='test -s conftest$ac_exeext'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; }; then
9508 eval "$as_ac_var=yes"
9509else
9510 echo "$as_me: failed program was:" >&5
9511sed 's/^/| /' conftest.$ac_ext >&5
9512
9513eval "$as_ac_var=no"
9514fi
9515rm -f conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517fi
9518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9520if test `eval echo '${'$as_ac_var'}'` = yes; then
9521 cat >>confdefs.h <<_ACEOF
9522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9523_ACEOF
9524 break
9525fi
9526done
9527
9528
9529
9530for ac_func in memmove strcmp
9531do
9532as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9533echo "$as_me:$LINENO: checking for $ac_func" >&5
9534echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9535if eval "test \"\${$as_ac_var+set}\" = set"; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9537else
9538 cat >conftest.$ac_ext <<_ACEOF
9539/* confdefs.h. */
9540_ACEOF
9541cat confdefs.h >>conftest.$ac_ext
9542cat >>conftest.$ac_ext <<_ACEOF
9543/* end confdefs.h. */
9544/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9546#define $ac_func innocuous_$ac_func
9547
9548/* System header to define __stub macros and hopefully few prototypes,
9549 which can conflict with char $ac_func (); below.
9550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551 <limits.h> exists even on freestanding compilers. */
9552
9553#ifdef __STDC__
9554# include <limits.h>
9555#else
9556# include <assert.h>
9557#endif
9558
9559#undef $ac_func
9560
9561/* Override any gcc2 internal prototype to avoid an error. */
9562#ifdef __cplusplus
9563extern "C"
9564{
9565#endif
9566/* We use char because int might match the return type of a gcc2
9567 builtin and then its argument prototype would still apply. */
9568char $ac_func ();
9569/* The GNU C library defines this for functions which it implements
9570 to always fail with ENOSYS. Some functions are actually named
9571 something starting with __ and the normal name is an alias. */
9572#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9573choke me
9574#else
9575char (*f) () = $ac_func;
9576#endif
9577#ifdef __cplusplus
9578}
9579#endif
9580
9581int
9582main ()
9583{
9584return f != $ac_func;
9585 ;
9586 return 0;
9587}
9588_ACEOF
9589rm -f conftest.$ac_objext conftest$ac_exeext
9590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9591 (eval $ac_link) 2>conftest.er1
9592 ac_status=$?
9593 grep -v '^ *+' conftest.er1 >conftest.err
9594 rm -f conftest.er1
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -z "$ac_c_werror_flag"
9599 || test ! -s conftest.err'
9600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 (eval $ac_try) 2>&5
9602 ac_status=$?
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); }; } &&
9605 { ac_try='test -s conftest$ac_exeext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9607 (eval $ac_try) 2>&5
9608 ac_status=$?
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 eval "$as_ac_var=yes"
9612else
9613 echo "$as_me: failed program was:" >&5
9614sed 's/^/| /' conftest.$ac_ext >&5
9615
9616eval "$as_ac_var=no"
9617fi
9618rm -f conftest.err conftest.$ac_objext \
9619 conftest$ac_exeext conftest.$ac_ext
9620fi
9621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9622echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9623if test `eval echo '${'$as_ac_var'}'` = yes; then
9624 cat >>confdefs.h <<_ACEOF
9625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9626_ACEOF
9627
9628fi
9629done
9630
9631
9632
9633
9634for ac_func in closedir opendir readdir
9635do
9636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9637echo "$as_me:$LINENO: checking for $ac_func" >&5
9638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9639if eval "test \"\${$as_ac_var+set}\" = set"; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641else
9642 cat >conftest.$ac_ext <<_ACEOF
9643/* confdefs.h. */
9644_ACEOF
9645cat confdefs.h >>conftest.$ac_ext
9646cat >>conftest.$ac_ext <<_ACEOF
9647/* end confdefs.h. */
9648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9650#define $ac_func innocuous_$ac_func
9651
9652/* System header to define __stub macros and hopefully few prototypes,
9653 which can conflict with char $ac_func (); below.
9654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9655 <limits.h> exists even on freestanding compilers. */
9656
9657#ifdef __STDC__
9658# include <limits.h>
9659#else
9660# include <assert.h>
9661#endif
9662
9663#undef $ac_func
9664
9665/* Override any gcc2 internal prototype to avoid an error. */
9666#ifdef __cplusplus
9667extern "C"
9668{
9669#endif
9670/* We use char because int might match the return type of a gcc2
9671 builtin and then its argument prototype would still apply. */
9672char $ac_func ();
9673/* The GNU C library defines this for functions which it implements
9674 to always fail with ENOSYS. Some functions are actually named
9675 something starting with __ and the normal name is an alias. */
9676#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9677choke me
9678#else
9679char (*f) () = $ac_func;
9680#endif
9681#ifdef __cplusplus
9682}
9683#endif
9684
9685int
9686main ()
9687{
9688return f != $ac_func;
9689 ;
9690 return 0;
9691}
9692_ACEOF
9693rm -f conftest.$ac_objext conftest$ac_exeext
9694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9695 (eval $ac_link) 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
9702 { ac_try='test -z "$ac_c_werror_flag"
9703 || test ! -s conftest.err'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest$ac_exeext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 eval "$as_ac_var=yes"
9716else
9717 echo "$as_me: failed program was:" >&5
9718sed 's/^/| /' conftest.$ac_ext >&5
9719
9720eval "$as_ac_var=no"
9721fi
9722rm -f conftest.err conftest.$ac_objext \
9723 conftest$ac_exeext conftest.$ac_ext
9724fi
9725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9726echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9727if test `eval echo '${'$as_ac_var'}'` = yes; then
9728 cat >>confdefs.h <<_ACEOF
9729#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9730_ACEOF
9731
9732fi
9733done
9734
9735
9736# Check whether --enable-shared or --disable-shared was given.
9737if test "${enable_shared+set}" = set; then
9738 enableval="$enable_shared"
9739 p=${PACKAGE-default}
9740 case $enableval in
9741 yes) enable_shared=yes ;;
9742 no) enable_shared=no ;;
9743 *)
9744 enable_shared=no
9745 # Look at the argument we got. We use all the common list separators.
9746 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9747 for pkg in $enableval; do
9748 IFS="$lt_save_ifs"
9749 if test "X$pkg" = "X$p"; then
9750 enable_shared=yes
9751 fi
9752 done
9753 IFS="$lt_save_ifs"
9754 ;;
9755 esac
9756else
9757 enable_shared=yes
9758fi;
9759
9760# Check whether --enable-static or --disable-static was given.
9761if test "${enable_static+set}" = set; then
9762 enableval="$enable_static"
9763 p=${PACKAGE-default}
9764 case $enableval in
9765 yes) enable_static=yes ;;
9766 no) enable_static=no ;;
9767 *)
9768 enable_static=no
9769 # Look at the argument we got. We use all the common list separators.
9770 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9771 for pkg in $enableval; do
9772 IFS="$lt_save_ifs"
9773 if test "X$pkg" = "X$p"; then
9774 enable_static=yes
9775 fi
9776 done
9777 IFS="$lt_save_ifs"
9778 ;;
9779 esac
9780else
9781 enable_static=yes
9782fi;
9783
9784# Check whether --enable-fast-install or --disable-fast-install was given.
9785if test "${enable_fast_install+set}" = set; then
9786 enableval="$enable_fast_install"
9787 p=${PACKAGE-default}
9788 case $enableval in
9789 yes) enable_fast_install=yes ;;
9790 no) enable_fast_install=no ;;
9791 *)
9792 enable_fast_install=no
9793 # Look at the argument we got. We use all the common list separators.
9794 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9795 for pkg in $enableval; do
9796 IFS="$lt_save_ifs"
9797 if test "X$pkg" = "X$p"; then
9798 enable_fast_install=yes
9799 fi
9800 done
9801 IFS="$lt_save_ifs"
9802 ;;
9803 esac
9804else
9805 enable_fast_install=yes
9806fi;
9807
9808echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9809echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9810if test "${lt_cv_path_SED+set}" = set; then
9811 echo $ECHO_N "(cached) $ECHO_C" >&6
9812else
9813 # Loop through the user's path and test for sed and gsed.
9814# Then use that list of sed's as ones to test for truncation.
9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
9820 for lt_ac_prog in sed gsed; do
9821 for ac_exec_ext in '' $ac_executable_extensions; do
9822 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9823 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9824 fi
9825 done
9826 done
9827done
9828lt_ac_max=0
9829lt_ac_count=0
9830# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9831# along with /bin/sed that truncates output.
9832for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9833 test ! -f $lt_ac_sed && break
9834 cat /dev/null > conftest.in
9835 lt_ac_count=0
9836 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9837 # Check for GNU sed and select it if it is found.
9838 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9839 lt_cv_path_SED=$lt_ac_sed
9840 break
9841 fi
9842 while true; do
9843 cat conftest.in conftest.in >conftest.tmp
9844 mv conftest.tmp conftest.in
9845 cp conftest.in conftest.nl
9846 echo >>conftest.nl
9847 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9848 cmp -s conftest.out conftest.nl || break
9849 # 10000 chars as input seems more than enough
9850 test $lt_ac_count -gt 10 && break
9851 lt_ac_count=`expr $lt_ac_count + 1`
9852 if test $lt_ac_count -gt $lt_ac_max; then
9853 lt_ac_max=$lt_ac_count
9854 lt_cv_path_SED=$lt_ac_sed
9855 fi
9856 done
9857done
9858
9859fi
9860
9861SED=$lt_cv_path_SED
9862echo "$as_me:$LINENO: result: $SED" >&5
9863echo "${ECHO_T}$SED" >&6
9864
9865
9866# Check whether --with-gnu-ld or --without-gnu-ld was given.
9867if test "${with_gnu_ld+set}" = set; then
9868 withval="$with_gnu_ld"
9869 test "$withval" = no || with_gnu_ld=yes
9870else
9871 with_gnu_ld=no
9872fi;
9873ac_prog=ld
9874if test "$GCC" = yes; then
9875 # Check if gcc -print-prog-name=ld gives a path.
9876 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9877echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9878 case $host in
9879 *-*-mingw*)
9880 # gcc leaves a trailing carriage return which upsets mingw
9881 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9882 *)
9883 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9884 esac
9885 case $ac_prog in
9886 # Accept absolute paths.
9887 [\\/]* | ?:[\\/]*)
9888 re_direlt='/[^/][^/]*/\.\./'
9889 # Canonicalize the pathname of ld
9890 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9891 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9892 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9893 done
9894 test -z "$LD" && LD="$ac_prog"
9895 ;;
9896 "")
9897 # If it fails, then pretend we aren't using GCC.
9898 ac_prog=ld
9899 ;;
9900 *)
9901 # If it is relative, then search for the first ld in PATH.
9902 with_gnu_ld=unknown
9903 ;;
9904 esac
9905elif test "$with_gnu_ld" = yes; then
9906 echo "$as_me:$LINENO: checking for GNU ld" >&5
9907echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9908else
9909 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9910echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9911fi
9912if test "${lt_cv_path_LD+set}" = set; then
9913 echo $ECHO_N "(cached) $ECHO_C" >&6
9914else
9915 if test -z "$LD"; then
9916 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9917 for ac_dir in $PATH; do
9918 IFS="$lt_save_ifs"
9919 test -z "$ac_dir" && ac_dir=.
9920 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9921 lt_cv_path_LD="$ac_dir/$ac_prog"
9922 # Check to see if the program is GNU ld. I'd rather use --version,
9923 # but apparently some GNU ld's only accept -v.
9924 # Break only if it was the GNU/non-GNU ld that we prefer.
9925 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9926 *GNU* | *'with BFD'*)
9927 test "$with_gnu_ld" != no && break
9928 ;;
9929 *)
9930 test "$with_gnu_ld" != yes && break
9931 ;;
9932 esac
9933 fi
9934 done
9935 IFS="$lt_save_ifs"
9936else
9937 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9938fi
9939fi
9940
9941LD="$lt_cv_path_LD"
9942if test -n "$LD"; then
9943 echo "$as_me:$LINENO: result: $LD" >&5
9944echo "${ECHO_T}$LD" >&6
9945else
9946 echo "$as_me:$LINENO: result: no" >&5
9947echo "${ECHO_T}no" >&6
9948fi
9949test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9950echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9951 { (exit 1); exit 1; }; }
9952echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9953echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9954if test "${lt_cv_prog_gnu_ld+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956else
9957 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9958case `$LD -v 2>&1 </dev/null` in
9959*GNU* | *'with BFD'*)
9960 lt_cv_prog_gnu_ld=yes
9961 ;;
9962*)
9963 lt_cv_prog_gnu_ld=no
9964 ;;
9965esac
9966fi
9967echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9968echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9969with_gnu_ld=$lt_cv_prog_gnu_ld
9970
9971
9972echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9973echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9974if test "${lt_cv_ld_reload_flag+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976else
9977 lt_cv_ld_reload_flag='-r'
9978fi
9979echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9980echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9981reload_flag=$lt_cv_ld_reload_flag
9982case $reload_flag in
9983"" | " "*) ;;
9984*) reload_flag=" $reload_flag" ;;
9985esac
9986reload_cmds='$LD$reload_flag -o $output$reload_objs'
9987case $host_os in
9988 darwin*)
9989 if test "$GCC" = yes; then
9990 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9991 else
9992 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9993 fi
9994 ;;
9995esac
9996
9997echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9998echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9999if test "${lt_cv_deplibs_check_method+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10001else
10002 lt_cv_file_magic_cmd='$MAGIC_CMD'
10003lt_cv_file_magic_test_file=
10004lt_cv_deplibs_check_method='unknown'
10005# Need to set the preceding variable on all platforms that support
10006# interlibrary dependencies.
10007# 'none' -- dependencies not supported.
10008# `unknown' -- same as none, but documents that we really don't know.
10009# 'pass_all' -- all dependencies passed with no checks.
10010# 'test_compile' -- check by making test program.
10011# 'file_magic [[regex]]' -- check by looking for files in library path
10012# which responds to the $file_magic_cmd with a given extended regex.
10013# If you have `file' or equivalent on your system and you're not sure
10014# whether `pass_all' will *always* work, you probably want this one.
10015
10016case $host_os in
10017aix4* | aix5*)
10018 lt_cv_deplibs_check_method=pass_all
10019 ;;
10020
10021beos*)
10022 lt_cv_deplibs_check_method=pass_all
10023 ;;
10024
10025bsdi[45]*)
10026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10027 lt_cv_file_magic_cmd='/usr/bin/file -L'
10028 lt_cv_file_magic_test_file=/shlib/libc.so
10029 ;;
10030
10031cygwin*)
10032 # func_win32_libid is a shell function defined in ltmain.sh
10033 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10034 lt_cv_file_magic_cmd='func_win32_libid'
10035 ;;
10036
10037mingw* | pw32*)
10038 # Base MSYS/MinGW do not provide the 'file' command needed by
10039 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10040 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10041 lt_cv_file_magic_cmd='$OBJDUMP -f'
10042 ;;
10043
10044darwin* | rhapsody*)
10045 lt_cv_deplibs_check_method=pass_all
10046 ;;
10047
10048freebsd* | kfreebsd*-gnu)
10049 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10050 case $host_cpu in
10051 i*86 )
10052 # Not sure whether the presence of OpenBSD here was a mistake.
10053 # Let's accept both of them until this is cleared up.
10054 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10055 lt_cv_file_magic_cmd=/usr/bin/file
10056 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10057 ;;
10058 esac
10059 else
10060 lt_cv_deplibs_check_method=pass_all
10061 fi
10062 ;;
10063
10064gnu*)
10065 lt_cv_deplibs_check_method=pass_all
10066 ;;
10067
10068hpux10.20* | hpux11*)
10069 lt_cv_file_magic_cmd=/usr/bin/file
10070 case "$host_cpu" in
10071 ia64*)
10072 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10073 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10074 ;;
10075 hppa*64*)
10076 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]'
10077 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10078 ;;
10079 *)
10080 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10081 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10082 ;;
10083 esac
10084 ;;
10085
10086irix5* | irix6* | nonstopux*)
10087 case $LD in
10088 *-32|*"-32 ") libmagic=32-bit;;
10089 *-n32|*"-n32 ") libmagic=N32;;
10090 *-64|*"-64 ") libmagic=64-bit;;
10091 *) libmagic=never-match;;
10092 esac
10093 lt_cv_deplibs_check_method=pass_all
10094 ;;
10095
10096# This must be Linux ELF.
10097linux*)
10098 lt_cv_deplibs_check_method=pass_all
10099 ;;
10100
10101netbsd*)
10102 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10104 else
10105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10106 fi
10107 ;;
10108
10109newos6*)
10110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10111 lt_cv_file_magic_cmd=/usr/bin/file
10112 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10113 ;;
10114
10115nto-qnx*)
10116 lt_cv_deplibs_check_method=unknown
10117 ;;
10118
10119openbsd*)
10120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10122 else
10123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10124 fi
10125 ;;
10126
10127osf3* | osf4* | osf5*)
10128 lt_cv_deplibs_check_method=pass_all
10129 ;;
10130
10131sco3.2v5*)
10132 lt_cv_deplibs_check_method=pass_all
10133 ;;
10134
10135solaris*)
10136 lt_cv_deplibs_check_method=pass_all
10137 ;;
10138
10139sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10140 case $host_vendor in
10141 motorola)
10142 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]'
10143 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10144 ;;
10145 ncr)
10146 lt_cv_deplibs_check_method=pass_all
10147 ;;
10148 sequent)
10149 lt_cv_file_magic_cmd='/bin/file'
10150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10151 ;;
10152 sni)
10153 lt_cv_file_magic_cmd='/bin/file'
10154 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10155 lt_cv_file_magic_test_file=/lib/libc.so
10156 ;;
10157 siemens)
10158 lt_cv_deplibs_check_method=pass_all
10159 ;;
10160 esac
10161 ;;
10162
10163sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10164 lt_cv_deplibs_check_method=pass_all
10165 ;;
10166esac
10167
10168fi
10169echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10170echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10171file_magic_cmd=$lt_cv_file_magic_cmd
10172deplibs_check_method=$lt_cv_deplibs_check_method
10173test -z "$deplibs_check_method" && deplibs_check_method=unknown
10174
10175
10176
10177# If no C compiler was specified, use CC.
10178LTCC=${LTCC-"$CC"}
10179
10180# Allow CC to be a program name with arguments.
10181compiler=$CC
10182
10183# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10184if test "${enable_libtool_lock+set}" = set; then
10185 enableval="$enable_libtool_lock"
10186
10187fi;
10188test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10189
10190# Some flags need to be propagated to the compiler or linker for good
10191# libtool support.
10192case $host in
10193ia64-*-hpux*)
10194 # Find out which ABI we are using.
10195 echo 'int i;' > conftest.$ac_ext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>&5
10198 ac_status=$?
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; then
10201 case `/usr/bin/file conftest.$ac_objext` in
10202 *ELF-32*)
10203 HPUX_IA64_MODE="32"
10204 ;;
10205 *ELF-64*)
10206 HPUX_IA64_MODE="64"
10207 ;;
10208 esac
10209 fi
10210 rm -rf conftest*
10211 ;;
10212*-*-irix6*)
10213 # Find out which ABI we are using.
Reid Spencer59473af2004-12-25 07:31:29 +000010214 echo '#line 10214 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10216 (eval $ac_compile) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; then
10220 if test "$lt_cv_prog_gnu_ld" = yes; then
10221 case `/usr/bin/file conftest.$ac_objext` in
10222 *32-bit*)
10223 LD="${LD-ld} -melf32bsmip"
10224 ;;
10225 *N32*)
10226 LD="${LD-ld} -melf32bmipn32"
10227 ;;
10228 *64-bit*)
10229 LD="${LD-ld} -melf64bmip"
10230 ;;
10231 esac
10232 else
10233 case `/usr/bin/file conftest.$ac_objext` in
10234 *32-bit*)
10235 LD="${LD-ld} -32"
10236 ;;
10237 *N32*)
10238 LD="${LD-ld} -n32"
10239 ;;
10240 *64-bit*)
10241 LD="${LD-ld} -64"
10242 ;;
10243 esac
10244 fi
10245 fi
10246 rm -rf conftest*
10247 ;;
10248
10249x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10250 # Find out which ABI we are using.
10251 echo 'int i;' > conftest.$ac_ext
10252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253 (eval $ac_compile) 2>&5
10254 ac_status=$?
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); }; then
10257 case "`/usr/bin/file conftest.o`" in
10258 *32-bit*)
10259 case $host in
10260 x86_64-*linux*)
10261 LD="${LD-ld} -m elf_i386"
10262 ;;
10263 ppc64-*linux*|powerpc64-*linux*)
10264 LD="${LD-ld} -m elf32ppclinux"
10265 ;;
10266 s390x-*linux*)
10267 LD="${LD-ld} -m elf_s390"
10268 ;;
10269 sparc64-*linux*)
10270 LD="${LD-ld} -m elf32_sparc"
10271 ;;
10272 esac
10273 ;;
10274 *64-bit*)
10275 case $host in
10276 x86_64-*linux*)
10277 LD="${LD-ld} -m elf_x86_64"
10278 ;;
10279 ppc*-*linux*|powerpc*-*linux*)
10280 LD="${LD-ld} -m elf64ppc"
10281 ;;
10282 s390*-*linux*)
10283 LD="${LD-ld} -m elf64_s390"
10284 ;;
10285 sparc*-*linux*)
10286 LD="${LD-ld} -m elf64_sparc"
10287 ;;
10288 esac
10289 ;;
10290 esac
10291 fi
10292 rm -rf conftest*
10293 ;;
10294
10295*-*-sco3.2v5*)
10296 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10297 SAVE_CFLAGS="$CFLAGS"
10298 CFLAGS="$CFLAGS -belf"
10299 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10300echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10301if test "${lt_cv_cc_needs_belf+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303else
10304 ac_ext=c
10305ac_cpp='$CPP $CPPFLAGS'
10306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10308ac_compiler_gnu=$ac_cv_c_compiler_gnu
10309
10310 cat >conftest.$ac_ext <<_ACEOF
10311/* confdefs.h. */
10312_ACEOF
10313cat confdefs.h >>conftest.$ac_ext
10314cat >>conftest.$ac_ext <<_ACEOF
10315/* end confdefs.h. */
10316
10317_ACEOF
10318rm -f conftest.$ac_objext conftest$ac_exeext
10319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10320 (eval $ac_link) 2>conftest.er1
10321 ac_status=$?
10322 grep -v '^ *+' conftest.er1 >conftest.err
10323 rm -f conftest.er1
10324 cat conftest.err >&5
10325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326 (exit $ac_status); } &&
10327 { ac_try='test -z "$ac_c_werror_flag"
10328 || test ! -s conftest.err'
10329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10330 (eval $ac_try) 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; } &&
10334 { ac_try='test -s conftest$ac_exeext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 lt_cv_cc_needs_belf=yes
10341else
10342 echo "$as_me: failed program was:" >&5
10343sed 's/^/| /' conftest.$ac_ext >&5
10344
10345lt_cv_cc_needs_belf=no
10346fi
10347rm -f conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 ac_ext=c
10350ac_cpp='$CPP $CPPFLAGS'
10351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10353ac_compiler_gnu=$ac_cv_c_compiler_gnu
10354
10355fi
10356echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10357echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10358 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10359 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10360 CFLAGS="$SAVE_CFLAGS"
10361 fi
10362 ;;
10363
10364esac
10365
10366need_locks="$enable_libtool_lock"
10367
10368
Reid Spencer2706f8c2004-09-19 23:53:36 +000010369
10370
10371if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10372 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10373 (test "X$CXX" != "Xg++"))) ; then
10374 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010375ac_cpp='$CXXCPP $CPPFLAGS'
10376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10379echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10380echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10381if test -z "$CXXCPP"; then
10382 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010383 echo $ECHO_N "(cached) $ECHO_C" >&6
10384else
John Criswell47fdd832003-07-14 16:52:07 +000010385 # Double quotes because CXXCPP needs to be expanded
10386 for CXXCPP in "$CXX -E" "/lib/cpp"
10387 do
10388 ac_preproc_ok=false
10389for ac_cxx_preproc_warn_flag in '' yes
10390do
10391 # Use a header file that comes with gcc, so configuring glibc
10392 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10394 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010395 # On the NeXT, cc -E runs the code through the compiler's parser,
10396 # not just through cpp. "Syntax error" is here to catch this case.
10397 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010398/* confdefs.h. */
10399_ACEOF
10400cat confdefs.h >>conftest.$ac_ext
10401cat >>conftest.$ac_ext <<_ACEOF
10402/* end confdefs.h. */
10403#ifdef __STDC__
10404# include <limits.h>
10405#else
10406# include <assert.h>
10407#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010408 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010409_ACEOF
10410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10412 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010413 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010414 rm -f conftest.er1
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } >/dev/null; then
10418 if test -s conftest.err; then
10419 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010420 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010421 else
John Criswell47fdd832003-07-14 16:52:07 +000010422 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010423 fi
John Criswell47fdd832003-07-14 16:52:07 +000010424else
10425 ac_cpp_err=yes
10426fi
10427if test -z "$ac_cpp_err"; then
10428 :
10429else
10430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010431sed 's/^/| /' conftest.$ac_ext >&5
10432
John Criswell47fdd832003-07-14 16:52:07 +000010433 # Broken: fails on valid input.
10434continue
10435fi
10436rm -f conftest.err conftest.$ac_ext
10437
10438 # OK, works on sane cases. Now check whether non-existent headers
10439 # can be detected and how.
10440 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010441/* confdefs.h. */
10442_ACEOF
10443cat confdefs.h >>conftest.$ac_ext
10444cat >>conftest.$ac_ext <<_ACEOF
10445/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010446#include <ac_nonexistent.h>
10447_ACEOF
10448if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10449 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10450 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010451 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } >/dev/null; then
10456 if test -s conftest.err; then
10457 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010458 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010459 else
10460 ac_cpp_err=
10461 fi
10462else
10463 ac_cpp_err=yes
10464fi
10465if test -z "$ac_cpp_err"; then
10466 # Broken: success on invalid input.
10467continue
10468else
10469 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010470sed 's/^/| /' conftest.$ac_ext >&5
10471
John Criswell47fdd832003-07-14 16:52:07 +000010472 # Passes both tests.
10473ac_preproc_ok=:
10474break
10475fi
10476rm -f conftest.err conftest.$ac_ext
10477
10478done
10479# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10480rm -f conftest.err conftest.$ac_ext
10481if $ac_preproc_ok; then
10482 break
John Criswell7a73b802003-06-30 21:59:07 +000010483fi
10484
John Criswell47fdd832003-07-14 16:52:07 +000010485 done
10486 ac_cv_prog_CXXCPP=$CXXCPP
10487
10488fi
10489 CXXCPP=$ac_cv_prog_CXXCPP
10490else
10491 ac_cv_prog_CXXCPP=$CXXCPP
10492fi
10493echo "$as_me:$LINENO: result: $CXXCPP" >&5
10494echo "${ECHO_T}$CXXCPP" >&6
10495ac_preproc_ok=false
10496for ac_cxx_preproc_warn_flag in '' yes
10497do
10498 # Use a header file that comes with gcc, so configuring glibc
10499 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010500 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10501 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010502 # On the NeXT, cc -E runs the code through the compiler's parser,
10503 # not just through cpp. "Syntax error" is here to catch this case.
10504 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010505/* confdefs.h. */
10506_ACEOF
10507cat confdefs.h >>conftest.$ac_ext
10508cat >>conftest.$ac_ext <<_ACEOF
10509/* end confdefs.h. */
10510#ifdef __STDC__
10511# include <limits.h>
10512#else
10513# include <assert.h>
10514#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010515 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010516_ACEOF
10517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10519 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010520 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010521 rm -f conftest.er1
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } >/dev/null; then
10525 if test -s conftest.err; then
10526 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010527 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010528 else
10529 ac_cpp_err=
10530 fi
10531else
10532 ac_cpp_err=yes
10533fi
10534if test -z "$ac_cpp_err"; then
10535 :
10536else
10537 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010538sed 's/^/| /' conftest.$ac_ext >&5
10539
John Criswell47fdd832003-07-14 16:52:07 +000010540 # Broken: fails on valid input.
10541continue
10542fi
10543rm -f conftest.err conftest.$ac_ext
10544
10545 # OK, works on sane cases. Now check whether non-existent headers
10546 # can be detected and how.
10547 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010548/* confdefs.h. */
10549_ACEOF
10550cat confdefs.h >>conftest.$ac_ext
10551cat >>conftest.$ac_ext <<_ACEOF
10552/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010553#include <ac_nonexistent.h>
10554_ACEOF
10555if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10557 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010558 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010559 rm -f conftest.er1
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } >/dev/null; then
10563 if test -s conftest.err; then
10564 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010565 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010566 else
10567 ac_cpp_err=
10568 fi
10569else
10570 ac_cpp_err=yes
10571fi
10572if test -z "$ac_cpp_err"; then
10573 # Broken: success on invalid input.
10574continue
10575else
10576 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010577sed 's/^/| /' conftest.$ac_ext >&5
10578
John Criswell47fdd832003-07-14 16:52:07 +000010579 # Passes both tests.
10580ac_preproc_ok=:
10581break
10582fi
10583rm -f conftest.err conftest.$ac_ext
10584
10585done
10586# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10587rm -f conftest.err conftest.$ac_ext
10588if $ac_preproc_ok; then
10589 :
10590else
John Criswell0c38eaf2003-09-10 15:17:25 +000010591 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10592See \`config.log' for more details." >&5
10593echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10594See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010595 { (exit 1); exit 1; }; }
10596fi
10597
10598ac_ext=cc
10599ac_cpp='$CXXCPP $CPPFLAGS'
10600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10603
Reid Spencer2706f8c2004-09-19 23:53:36 +000010604fi
10605
John Criswell47fdd832003-07-14 16:52:07 +000010606
10607ac_ext=f
10608ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10609ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10610ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10611if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010612 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 +000010613 do
10614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10615set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10616echo "$as_me:$LINENO: checking for $ac_word" >&5
10617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10618if test "${ac_cv_prog_F77+set}" = set; then
10619 echo $ECHO_N "(cached) $ECHO_C" >&6
10620else
10621 if test -n "$F77"; then
10622 ac_cv_prog_F77="$F77" # Let the user override the test.
10623else
10624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625for as_dir in $PATH
10626do
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10631 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 break 2
10634 fi
10635done
10636done
10637
10638fi
10639fi
10640F77=$ac_cv_prog_F77
10641if test -n "$F77"; then
10642 echo "$as_me:$LINENO: result: $F77" >&5
10643echo "${ECHO_T}$F77" >&6
10644else
10645 echo "$as_me:$LINENO: result: no" >&5
10646echo "${ECHO_T}no" >&6
10647fi
10648
10649 test -n "$F77" && break
10650 done
10651fi
10652if test -z "$F77"; then
10653 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010654 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 +000010655do
10656 # Extract the first word of "$ac_prog", so it can be a program name with args.
10657set dummy $ac_prog; ac_word=$2
10658echo "$as_me:$LINENO: checking for $ac_word" >&5
10659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10660if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662else
10663 if test -n "$ac_ct_F77"; then
10664 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10665else
10666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10667for as_dir in $PATH
10668do
10669 IFS=$as_save_IFS
10670 test -z "$as_dir" && as_dir=.
10671 for ac_exec_ext in '' $ac_executable_extensions; do
10672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10673 ac_cv_prog_ac_ct_F77="$ac_prog"
10674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10675 break 2
10676 fi
10677done
10678done
10679
10680fi
10681fi
10682ac_ct_F77=$ac_cv_prog_ac_ct_F77
10683if test -n "$ac_ct_F77"; then
10684 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10685echo "${ECHO_T}$ac_ct_F77" >&6
10686else
10687 echo "$as_me:$LINENO: result: no" >&5
10688echo "${ECHO_T}no" >&6
10689fi
10690
10691 test -n "$ac_ct_F77" && break
10692done
10693
10694 F77=$ac_ct_F77
10695fi
10696
10697
10698# Provide some information about the compiler.
Reid Spencer59473af2004-12-25 07:31:29 +000010699echo "$as_me:10699:" \
John Criswell47fdd832003-07-14 16:52:07 +000010700 "checking for Fortran 77 compiler version" >&5
10701ac_compiler=`set X $ac_compile; echo $2`
10702{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10703 (eval $ac_compiler --version </dev/null >&5) 2>&5
10704 ac_status=$?
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }
10707{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10708 (eval $ac_compiler -v </dev/null >&5) 2>&5
10709 ac_status=$?
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }
10712{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10713 (eval $ac_compiler -V </dev/null >&5) 2>&5
10714 ac_status=$?
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010717rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010718
10719# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010720# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010721ac_save_ext=$ac_ext
10722ac_ext=F
10723echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10724echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10725if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728 cat >conftest.$ac_ext <<_ACEOF
10729 program main
10730#ifndef __GNUC__
10731 choke me
10732#endif
10733
10734 end
10735_ACEOF
10736rm -f conftest.$ac_objext
10737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010738 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010739 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010740 grep -v '^ *+' conftest.er1 >conftest.err
10741 rm -f conftest.er1
10742 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010745 { ac_try='test -z "$ac_f77_werror_flag"
10746 || test ! -s conftest.err'
10747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10748 (eval $ac_try) 2>&5
10749 ac_status=$?
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); }; } &&
10752 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10754 (eval $ac_try) 2>&5
10755 ac_status=$?
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); }; }; then
10758 ac_compiler_gnu=yes
10759else
10760 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010761sed 's/^/| /' conftest.$ac_ext >&5
10762
John Criswell47fdd832003-07-14 16:52:07 +000010763ac_compiler_gnu=no
10764fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010766ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10767
10768fi
10769echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10770echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10771ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010772ac_test_FFLAGS=${FFLAGS+set}
10773ac_save_FFLAGS=$FFLAGS
10774FFLAGS=
10775echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10776echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10777if test "${ac_cv_prog_f77_g+set}" = set; then
10778 echo $ECHO_N "(cached) $ECHO_C" >&6
10779else
10780 FFLAGS=-g
10781cat >conftest.$ac_ext <<_ACEOF
10782 program main
10783
10784 end
10785_ACEOF
10786rm -f conftest.$ac_objext
10787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010788 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010789 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010790 grep -v '^ *+' conftest.er1 >conftest.err
10791 rm -f conftest.er1
10792 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010795 { ac_try='test -z "$ac_f77_werror_flag"
10796 || test ! -s conftest.err'
10797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798 (eval $ac_try) 2>&5
10799 ac_status=$?
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; } &&
10802 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10805 ac_status=$?
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 ac_cv_prog_f77_g=yes
10809else
10810 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010811sed 's/^/| /' conftest.$ac_ext >&5
10812
John Criswell47fdd832003-07-14 16:52:07 +000010813ac_cv_prog_f77_g=no
10814fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010816
10817fi
10818echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10819echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10820if test "$ac_test_FFLAGS" = set; then
10821 FFLAGS=$ac_save_FFLAGS
10822elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010823 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010824 FFLAGS="-g -O2"
10825 else
10826 FFLAGS="-g"
10827 fi
10828else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010829 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010830 FFLAGS="-O2"
10831 else
10832 FFLAGS=
10833 fi
10834fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010835
10836G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010837ac_ext=c
10838ac_cpp='$CPP $CPPFLAGS'
10839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10841ac_compiler_gnu=$ac_cv_c_compiler_gnu
10842
10843
10844
10845# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10846
10847# find the maximum length of command line arguments
10848echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10849echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10850if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852else
10853 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010854 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010855
10856 case $build_os in
10857 msdosdjgpp*)
10858 # On DJGPP, this test can blow up pretty badly due to problems in libc
10859 # (any single argument exceeding 2000 bytes causes a buffer overrun
10860 # during glob expansion). Even if it were fixed, the result of this
10861 # check would be larger than it should be.
10862 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10863 ;;
10864
10865 gnu*)
10866 # Under GNU Hurd, this test is not required because there is
10867 # no limit to the length of command line arguments.
10868 # Libtool will interpret -1 as no limit whatsoever
10869 lt_cv_sys_max_cmd_len=-1;
10870 ;;
10871
10872 cygwin* | mingw*)
10873 # On Win9x/ME, this test blows up -- it succeeds, but takes
10874 # about 5 minutes as the teststring grows exponentially.
10875 # Worse, since 9x/ME are not pre-emptively multitasking,
10876 # you end up with a "frozen" computer, even though with patience
10877 # the test eventually succeeds (with a max line length of 256k).
10878 # Instead, let's just punt: use the minimum linelength reported by
10879 # all of the supported platforms: 8192 (on NT/2K/XP).
10880 lt_cv_sys_max_cmd_len=8192;
10881 ;;
10882
Reid Spencer2706f8c2004-09-19 23:53:36 +000010883 amigaos*)
10884 # On AmigaOS with pdksh, this test takes hours, literally.
10885 # So we just punt and use a minimum line length of 8192.
10886 lt_cv_sys_max_cmd_len=8192;
10887 ;;
10888
10889 netbsd* | freebsd* | openbsd* | darwin* )
10890 # This has been around since 386BSD, at least. Likely further.
10891 if test -x /sbin/sysctl; then
10892 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10893 elif test -x /usr/sbin/sysctl; then
10894 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10895 else
10896 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10897 fi
10898 # And add a safety zone
10899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10900 ;;
10901
John Criswell47fdd832003-07-14 16:52:07 +000010902 *)
10903 # If test is not a shell built-in, we'll probably end up computing a
10904 # maximum length that is only half of the actual maximum length, but
10905 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010906 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10907 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10908 = "XX$teststring") >/dev/null 2>&1 &&
10909 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010910 lt_cv_sys_max_cmd_len=$new_result &&
10911 test $i != 17 # 1/2 MB should be enough
10912 do
10913 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010914 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010915 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010916 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010917 # Add a significant safety factor because C++ compilers can tack on massive
10918 # amounts of additional arguments before passing them to the linker.
10919 # It appears as though 1/2 is a usable value.
10920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10921 ;;
10922 esac
10923
10924fi
10925
10926if test -n $lt_cv_sys_max_cmd_len ; then
10927 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10928echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10929else
10930 echo "$as_me:$LINENO: result: none" >&5
10931echo "${ECHO_T}none" >&6
10932fi
10933
10934
10935
10936
10937# Check for command to grab the raw symbol name followed by C symbol from nm.
10938echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10939echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10940if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10941 echo $ECHO_N "(cached) $ECHO_C" >&6
10942else
10943
10944# These are sane defaults that work on at least a few old systems.
10945# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10946
10947# Character class describing NM global symbol codes.
10948symcode='[BCDEGRST]'
10949
10950# Regexp to match symbols that can be accessed directly from C.
10951sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10952
10953# Transform the above into a raw symbol and a C symbol.
10954symxfrm='\1 \2\3 \3'
10955
10956# Transform an extracted symbol line into a proper C declaration
10957lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10958
10959# Transform an extracted symbol line into symbol name and symbol address
10960lt_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'"
10961
10962# Define system-specific variables.
10963case $host_os in
10964aix*)
10965 symcode='[BCDT]'
10966 ;;
10967cygwin* | mingw* | pw32*)
10968 symcode='[ABCDGISTW]'
10969 ;;
10970hpux*) # Its linker distinguishes data from code symbols
10971 if test "$host_cpu" = ia64; then
10972 symcode='[ABCDEGRST]'
10973 fi
10974 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10975 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'"
10976 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010977linux*)
10978 if test "$host_cpu" = ia64; then
10979 symcode='[ABCDGIRSTW]'
10980 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10981 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'"
10982 fi
10983 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010984irix* | nonstopux*)
10985 symcode='[BCDEGRST]'
10986 ;;
10987osf*)
10988 symcode='[BCDEGQRST]'
10989 ;;
10990solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010991 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000010992 ;;
10993sysv4)
10994 symcode='[DFNSTU]'
10995 ;;
10996esac
10997
10998# Handle CRLF in mingw tool chain
10999opt_cr=
11000case $build_os in
11001mingw*)
11002 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11003 ;;
11004esac
11005
11006# If we're using GNU nm, then use its standard symbol codes.
11007case `$NM -V 2>&1` in
11008*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011009 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011010esac
11011
11012# Try without a prefix undercore, then with it.
11013for ac_symprfx in "" "_"; do
11014
11015 # Write the raw and C identifiers.
11016 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11017
11018 # Check to see that the pipe works correctly.
11019 pipe_works=no
11020
11021 rm -f conftest*
11022 cat > conftest.$ac_ext <<EOF
11023#ifdef __cplusplus
11024extern "C" {
11025#endif
11026char nm_test_var;
11027void nm_test_func(){}
11028#ifdef __cplusplus
11029}
11030#endif
11031int main(){nm_test_var='a';nm_test_func();return(0);}
11032EOF
11033
11034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11035 (eval $ac_compile) 2>&5
11036 ac_status=$?
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; then
11039 # Now try to grab the symbols.
11040 nlist=conftest.nm
11041 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11042 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11043 ac_status=$?
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); } && test -s "$nlist"; then
11046 # Try sorting and uniquifying the output.
11047 if sort "$nlist" | uniq > "$nlist"T; then
11048 mv -f "$nlist"T "$nlist"
11049 else
11050 rm -f "$nlist"T
11051 fi
11052
11053 # Make sure that we snagged all the symbols we need.
11054 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11055 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11056 cat <<EOF > conftest.$ac_ext
11057#ifdef __cplusplus
11058extern "C" {
11059#endif
11060
11061EOF
11062 # Now generate the symbol file.
11063 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11064
11065 cat <<EOF >> conftest.$ac_ext
11066#if defined (__STDC__) && __STDC__
11067# define lt_ptr_t void *
11068#else
11069# define lt_ptr_t char *
11070# define const
11071#endif
11072
11073/* The mapping between symbol names and symbols. */
11074const struct {
11075 const char *name;
11076 lt_ptr_t address;
11077}
11078lt_preloaded_symbols[] =
11079{
11080EOF
11081 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11082 cat <<\EOF >> conftest.$ac_ext
11083 {0, (lt_ptr_t) 0}
11084};
11085
11086#ifdef __cplusplus
11087}
11088#endif
11089EOF
11090 # Now try linking the two files.
11091 mv conftest.$ac_objext conftstm.$ac_objext
11092 lt_save_LIBS="$LIBS"
11093 lt_save_CFLAGS="$CFLAGS"
11094 LIBS="conftstm.$ac_objext"
11095 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11097 (eval $ac_link) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11101 pipe_works=yes
11102 fi
11103 LIBS="$lt_save_LIBS"
11104 CFLAGS="$lt_save_CFLAGS"
11105 else
11106 echo "cannot find nm_test_func in $nlist" >&5
11107 fi
11108 else
11109 echo "cannot find nm_test_var in $nlist" >&5
11110 fi
11111 else
11112 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11113 fi
11114 else
11115 echo "$progname: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11117 fi
11118 rm -f conftest* conftst*
11119
11120 # Do not use the global_symbol_pipe unless it works.
11121 if test "$pipe_works" = yes; then
11122 break
11123 else
11124 lt_cv_sys_global_symbol_pipe=
11125 fi
11126done
11127
11128fi
11129
11130if test -z "$lt_cv_sys_global_symbol_pipe"; then
11131 lt_cv_sys_global_symbol_to_cdecl=
11132fi
11133if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11134 echo "$as_me:$LINENO: result: failed" >&5
11135echo "${ECHO_T}failed" >&6
11136else
11137 echo "$as_me:$LINENO: result: ok" >&5
11138echo "${ECHO_T}ok" >&6
11139fi
11140
11141echo "$as_me:$LINENO: checking for objdir" >&5
11142echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11143if test "${lt_cv_objdir+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11145else
11146 rm -f .libs 2>/dev/null
11147mkdir .libs 2>/dev/null
11148if test -d .libs; then
11149 lt_cv_objdir=.libs
11150else
11151 # MS-DOS does not allow filenames that begin with a dot.
11152 lt_cv_objdir=_libs
11153fi
11154rmdir .libs 2>/dev/null
11155fi
11156echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11157echo "${ECHO_T}$lt_cv_objdir" >&6
11158objdir=$lt_cv_objdir
11159
11160
11161
11162
11163
11164case $host_os in
11165aix3*)
11166 # AIX sometimes has problems with the GCC collect2 program. For some
11167 # reason, if we set the COLLECT_NAMES environment variable, the problems
11168 # vanish in a puff of smoke.
11169 if test "X${COLLECT_NAMES+set}" != Xset; then
11170 COLLECT_NAMES=
11171 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011172 fi
11173 ;;
11174esac
11175
John Criswell47fdd832003-07-14 16:52:07 +000011176# Sed substitution that helps us do robust quoting. It backslashifies
11177# metacharacters that are still active within double-quoted strings.
11178Xsed='sed -e s/^X//'
11179sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11180
11181# Same as above, but do not quote variable references.
11182double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11183
11184# Sed substitution to delay expansion of an escaped shell variable in a
11185# double_quote_subst'ed string.
11186delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11187
11188# Sed substitution to avoid accidental globbing in evaled expressions
11189no_glob_subst='s/\*/\\\*/g'
11190
11191# Constants:
11192rm="rm -f"
11193
11194# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011195default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011196can_build_shared=yes
11197
11198# All known linkers require a `.a' archive for static linking (except M$VC,
11199# which needs '.lib').
11200libext=a
11201ltmain="$ac_aux_dir/ltmain.sh"
11202ofile="$default_ofile"
11203with_gnu_ld="$lt_cv_prog_gnu_ld"
11204
11205if test -n "$ac_tool_prefix"; then
11206 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11207set dummy ${ac_tool_prefix}ar; ac_word=$2
11208echo "$as_me:$LINENO: checking for $ac_word" >&5
11209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11210if test "${ac_cv_prog_AR+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212else
11213 if test -n "$AR"; then
11214 ac_cv_prog_AR="$AR" # Let the user override the test.
11215else
11216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217for as_dir in $PATH
11218do
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223 ac_cv_prog_AR="${ac_tool_prefix}ar"
11224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11226 fi
11227done
11228done
11229
11230fi
11231fi
11232AR=$ac_cv_prog_AR
11233if test -n "$AR"; then
11234 echo "$as_me:$LINENO: result: $AR" >&5
11235echo "${ECHO_T}$AR" >&6
11236else
11237 echo "$as_me:$LINENO: result: no" >&5
11238echo "${ECHO_T}no" >&6
11239fi
11240
11241fi
11242if test -z "$ac_cv_prog_AR"; then
11243 ac_ct_AR=$AR
11244 # Extract the first word of "ar", so it can be a program name with args.
11245set dummy ar; ac_word=$2
11246echo "$as_me:$LINENO: checking for $ac_word" >&5
11247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11248if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11250else
11251 if test -n "$ac_ct_AR"; then
11252 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11253else
11254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255for as_dir in $PATH
11256do
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11261 ac_cv_prog_ac_ct_AR="ar"
11262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 break 2
11264 fi
11265done
11266done
11267
11268 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11269fi
11270fi
11271ac_ct_AR=$ac_cv_prog_ac_ct_AR
11272if test -n "$ac_ct_AR"; then
11273 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11274echo "${ECHO_T}$ac_ct_AR" >&6
11275else
11276 echo "$as_me:$LINENO: result: no" >&5
11277echo "${ECHO_T}no" >&6
11278fi
11279
11280 AR=$ac_ct_AR
11281else
11282 AR="$ac_cv_prog_AR"
11283fi
11284
John Criswell7a73b802003-06-30 21:59:07 +000011285if test -n "$ac_tool_prefix"; then
11286 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11287set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11288echo "$as_me:$LINENO: checking for $ac_word" >&5
11289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11290if test "${ac_cv_prog_RANLIB+set}" = set; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11292else
11293 if test -n "$RANLIB"; then
11294 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11295else
11296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297for as_dir in $PATH
11298do
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11303 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11305 break 2
11306 fi
11307done
11308done
11309
11310fi
11311fi
11312RANLIB=$ac_cv_prog_RANLIB
11313if test -n "$RANLIB"; then
11314 echo "$as_me:$LINENO: result: $RANLIB" >&5
11315echo "${ECHO_T}$RANLIB" >&6
11316else
11317 echo "$as_me:$LINENO: result: no" >&5
11318echo "${ECHO_T}no" >&6
11319fi
11320
11321fi
11322if test -z "$ac_cv_prog_RANLIB"; then
11323 ac_ct_RANLIB=$RANLIB
11324 # Extract the first word of "ranlib", so it can be a program name with args.
11325set dummy ranlib; ac_word=$2
11326echo "$as_me:$LINENO: checking for $ac_word" >&5
11327echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11328if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11329 echo $ECHO_N "(cached) $ECHO_C" >&6
11330else
11331 if test -n "$ac_ct_RANLIB"; then
11332 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11333else
11334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335for as_dir in $PATH
11336do
11337 IFS=$as_save_IFS
11338 test -z "$as_dir" && as_dir=.
11339 for ac_exec_ext in '' $ac_executable_extensions; do
11340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11341 ac_cv_prog_ac_ct_RANLIB="ranlib"
11342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11343 break 2
11344 fi
11345done
11346done
11347
11348 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11349fi
11350fi
11351ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11352if test -n "$ac_ct_RANLIB"; then
11353 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11354echo "${ECHO_T}$ac_ct_RANLIB" >&6
11355else
11356 echo "$as_me:$LINENO: result: no" >&5
11357echo "${ECHO_T}no" >&6
11358fi
11359
11360 RANLIB=$ac_ct_RANLIB
11361else
11362 RANLIB="$ac_cv_prog_RANLIB"
11363fi
11364
11365if test -n "$ac_tool_prefix"; then
11366 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11367set dummy ${ac_tool_prefix}strip; ac_word=$2
11368echo "$as_me:$LINENO: checking for $ac_word" >&5
11369echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11370if test "${ac_cv_prog_STRIP+set}" = set; then
11371 echo $ECHO_N "(cached) $ECHO_C" >&6
11372else
11373 if test -n "$STRIP"; then
11374 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11375else
11376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377for as_dir in $PATH
11378do
11379 IFS=$as_save_IFS
11380 test -z "$as_dir" && as_dir=.
11381 for ac_exec_ext in '' $ac_executable_extensions; do
11382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11383 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11385 break 2
11386 fi
11387done
11388done
11389
11390fi
11391fi
11392STRIP=$ac_cv_prog_STRIP
11393if test -n "$STRIP"; then
11394 echo "$as_me:$LINENO: result: $STRIP" >&5
11395echo "${ECHO_T}$STRIP" >&6
11396else
11397 echo "$as_me:$LINENO: result: no" >&5
11398echo "${ECHO_T}no" >&6
11399fi
11400
11401fi
11402if test -z "$ac_cv_prog_STRIP"; then
11403 ac_ct_STRIP=$STRIP
11404 # Extract the first word of "strip", so it can be a program name with args.
11405set dummy strip; ac_word=$2
11406echo "$as_me:$LINENO: checking for $ac_word" >&5
11407echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11408if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11410else
11411 if test -n "$ac_ct_STRIP"; then
11412 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11413else
11414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415for as_dir in $PATH
11416do
11417 IFS=$as_save_IFS
11418 test -z "$as_dir" && as_dir=.
11419 for ac_exec_ext in '' $ac_executable_extensions; do
11420 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11421 ac_cv_prog_ac_ct_STRIP="strip"
11422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11423 break 2
11424 fi
11425done
11426done
11427
11428 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11429fi
11430fi
11431ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11432if test -n "$ac_ct_STRIP"; then
11433 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11434echo "${ECHO_T}$ac_ct_STRIP" >&6
11435else
11436 echo "$as_me:$LINENO: result: no" >&5
11437echo "${ECHO_T}no" >&6
11438fi
11439
11440 STRIP=$ac_ct_STRIP
11441else
11442 STRIP="$ac_cv_prog_STRIP"
11443fi
11444
11445
John Criswell7a73b802003-06-30 21:59:07 +000011446old_CC="$CC"
11447old_CFLAGS="$CFLAGS"
11448
11449# Set sane defaults for various variables
11450test -z "$AR" && AR=ar
11451test -z "$AR_FLAGS" && AR_FLAGS=cru
11452test -z "$AS" && AS=as
11453test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011454test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011455test -z "$DLLTOOL" && DLLTOOL=dlltool
11456test -z "$LD" && LD=ld
11457test -z "$LN_S" && LN_S="ln -s"
11458test -z "$MAGIC_CMD" && MAGIC_CMD=file
11459test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011460test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011461test -z "$OBJDUMP" && OBJDUMP=objdump
11462test -z "$RANLIB" && RANLIB=:
11463test -z "$STRIP" && STRIP=:
11464test -z "$ac_objext" && ac_objext=o
11465
John Criswell7a73b802003-06-30 21:59:07 +000011466# Determine commands to create old-style static archives.
11467old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11468old_postinstall_cmds='chmod 644 $oldlib'
11469old_postuninstall_cmds=
11470
11471if test -n "$RANLIB"; then
11472 case $host_os in
11473 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011474 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011475 ;;
11476 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011477 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011478 ;;
11479 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011480 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011481fi
11482
Reid Spencer2706f8c2004-09-19 23:53:36 +000011483cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11484
John Criswell47fdd832003-07-14 16:52:07 +000011485# Only perform the check for file, if the check method requires it
11486case $deplibs_check_method in
11487file_magic*)
11488 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11489 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11490echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11491if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011493else
John Criswell47fdd832003-07-14 16:52:07 +000011494 case $MAGIC_CMD in
11495[\\/*] | ?:[\\/]*)
11496 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11497 ;;
11498*)
11499 lt_save_MAGIC_CMD="$MAGIC_CMD"
11500 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11501 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11502 for ac_dir in $ac_dummy; do
11503 IFS="$lt_save_ifs"
11504 test -z "$ac_dir" && ac_dir=.
11505 if test -f $ac_dir/${ac_tool_prefix}file; then
11506 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11507 if test -n "$file_magic_test_file"; then
11508 case $deplibs_check_method in
11509 "file_magic "*)
11510 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11512 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11513 $EGREP "$file_magic_regex" > /dev/null; then
11514 :
11515 else
11516 cat <<EOF 1>&2
11517
11518*** Warning: the command libtool uses to detect shared libraries,
11519*** $file_magic_cmd, produces output that libtool cannot recognize.
11520*** The result is that libtool may fail to recognize shared libraries
11521*** as such. This will affect the creation of libtool libraries that
11522*** depend on shared libraries, but programs linked with such libtool
11523*** libraries will work regardless of this problem. Nevertheless, you
11524*** may want to report the problem to your system manager and/or to
11525*** bug-libtool@gnu.org
11526
11527EOF
11528 fi ;;
11529 esac
11530 fi
11531 break
11532 fi
11533 done
11534 IFS="$lt_save_ifs"
11535 MAGIC_CMD="$lt_save_MAGIC_CMD"
11536 ;;
11537esac
John Criswell7a73b802003-06-30 21:59:07 +000011538fi
John Criswell7a73b802003-06-30 21:59:07 +000011539
John Criswell47fdd832003-07-14 16:52:07 +000011540MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11541if test -n "$MAGIC_CMD"; then
11542 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11543echo "${ECHO_T}$MAGIC_CMD" >&6
11544else
11545 echo "$as_me:$LINENO: result: no" >&5
11546echo "${ECHO_T}no" >&6
11547fi
John Criswell7a73b802003-06-30 21:59:07 +000011548
John Criswell47fdd832003-07-14 16:52:07 +000011549if test -z "$lt_cv_path_MAGIC_CMD"; then
11550 if test -n "$ac_tool_prefix"; then
11551 echo "$as_me:$LINENO: checking for file" >&5
11552echo $ECHO_N "checking for file... $ECHO_C" >&6
11553if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11555else
11556 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/file; then
11568 lt_cv_path_MAGIC_CMD="$ac_dir/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
11600fi
11601
11602MAGIC_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
11610
11611 else
11612 MAGIC_CMD=:
11613 fi
11614fi
11615
11616 fi
11617 ;;
11618esac
11619
Reid Spencer17795972004-11-18 09:47:37 +000011620enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011621enable_win32_dll=no
11622
11623# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11624if test "${enable_libtool_lock+set}" = set; then
11625 enableval="$enable_libtool_lock"
11626
11627fi;
11628test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11629
John Criswell7a73b802003-06-30 21:59:07 +000011630
11631# Check whether --with-pic or --without-pic was given.
11632if test "${with_pic+set}" = set; then
11633 withval="$with_pic"
11634 pic_mode="$withval"
11635else
11636 pic_mode=default
11637fi;
11638test -z "$pic_mode" && pic_mode=default
11639
John Criswell47fdd832003-07-14 16:52:07 +000011640# Use C for the default configuration in the libtool script
11641tagname=
11642lt_save_CC="$CC"
11643ac_ext=c
11644ac_cpp='$CPP $CPPFLAGS'
11645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11647ac_compiler_gnu=$ac_cv_c_compiler_gnu
11648
11649
11650# Source file extension for C test sources.
11651ac_ext=c
11652
11653# Object file extension for compiled C test sources.
11654objext=o
11655objext=$objext
11656
11657# Code to be used in simple compile tests
11658lt_simple_compile_test_code="int some_variable = 0;\n"
11659
11660# Code to be used in simple link tests
11661lt_simple_link_test_code='int main(){return(0);}\n'
11662
11663
11664# If no C compiler was specified, use CC.
11665LTCC=${LTCC-"$CC"}
11666
11667# Allow CC to be a program name with arguments.
11668compiler=$CC
11669
11670
11671#
11672# Check for any special shared library compilation flags.
11673#
11674lt_prog_cc_shlib=
11675if test "$GCC" = no; then
11676 case $host_os in
11677 sco3.2v5*)
11678 lt_prog_cc_shlib='-belf'
11679 ;;
11680 esac
11681fi
11682if test -n "$lt_prog_cc_shlib"; then
11683 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11684echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11685 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11686 else
11687 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11688echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11689 lt_cv_prog_cc_can_build_shared=no
11690 fi
11691fi
11692
11693
11694#
11695# Check to make sure the static flag actually works.
11696#
11697echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11698echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11699if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011700 echo $ECHO_N "(cached) $ECHO_C" >&6
11701else
John Criswell47fdd832003-07-14 16:52:07 +000011702 lt_prog_compiler_static_works=no
11703 save_LDFLAGS="$LDFLAGS"
11704 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11705 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11706 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11707 # The compiler can only warn and ignore the option if not recognized
11708 # So say no if there are warnings
11709 if test -s conftest.err; then
11710 # Append any errors to the config.log.
11711 cat conftest.err 1>&5
11712 else
11713 lt_prog_compiler_static_works=yes
11714 fi
11715 fi
11716 $rm conftest*
11717 LDFLAGS="$save_LDFLAGS"
11718
11719fi
11720echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11721echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11722
11723if test x"$lt_prog_compiler_static_works" = xyes; then
11724 :
11725else
11726 lt_prog_compiler_static=
11727fi
11728
11729
11730
John Criswell47fdd832003-07-14 16:52:07 +000011731
11732lt_prog_compiler_no_builtin_flag=
11733
11734if test "$GCC" = yes; then
11735 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11736
Reid Spencer2706f8c2004-09-19 23:53:36 +000011737
11738echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011739echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11740if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
11742else
11743 lt_cv_prog_compiler_rtti_exceptions=no
11744 ac_outfile=conftest.$ac_objext
11745 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11746 lt_compiler_flag="-fno-rtti -fno-exceptions"
11747 # Insert the option either (1) after the last *FLAGS variable, or
11748 # (2) before a word containing "conftest.", or (3) at the end.
11749 # Note that $ac_compile itself does not contain backslashes and begins
11750 # with a dollar sign (not a hyphen), so the echo should work correctly.
11751 # The option is referenced via a variable to avoid confusing sed.
11752 lt_compile=`echo "$ac_compile" | $SED \
11753 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11755 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59473af2004-12-25 07:31:29 +000011756 (eval echo "\"\$as_me:11756: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011757 (eval "$lt_compile" 2>conftest.err)
11758 ac_status=$?
11759 cat conftest.err >&5
Reid Spencer59473af2004-12-25 07:31:29 +000011760 echo "$as_me:11760: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011761 if (exit $ac_status) && test -s "$ac_outfile"; then
11762 # The compiler can only warn and ignore the option if not recognized
11763 # So say no if there are warnings
11764 if test ! -s conftest.err; then
11765 lt_cv_prog_compiler_rtti_exceptions=yes
11766 fi
11767 fi
11768 $rm conftest*
11769
11770fi
11771echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11772echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11773
11774if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11775 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11776else
11777 :
11778fi
11779
11780fi
11781
11782lt_prog_compiler_wl=
11783lt_prog_compiler_pic=
11784lt_prog_compiler_static=
11785
11786echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11787echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011788
11789 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011790 lt_prog_compiler_wl='-Wl,'
11791 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011792
11793 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011794 aix*)
11795 # All AIX code is PIC.
11796 if test "$host_cpu" = ia64; then
11797 # AIX 5 now supports IA64 processor
11798 lt_prog_compiler_static='-Bstatic'
11799 fi
John Criswell7a73b802003-06-30 21:59:07 +000011800 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011801
John Criswell7a73b802003-06-30 21:59:07 +000011802 amigaos*)
11803 # FIXME: we need at least 68020 code to build shared libraries, but
11804 # adding the `-m68020' flag to GCC prevents building anything better,
11805 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011806 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011807 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011808
11809 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011810 # PIC is the default for these OSes.
11811 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011812
11813 mingw* | pw32* | os2*)
11814 # This hack is so that the source file can tell whether it is being
11815 # built for inclusion in a dll (and should export symbols for example).
11816 lt_prog_compiler_pic='-DDLL_EXPORT'
11817 ;;
11818
John Criswell7a73b802003-06-30 21:59:07 +000011819 darwin* | rhapsody*)
11820 # PIC is the default on this platform
11821 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011822 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011823 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011824
11825 msdosdjgpp*)
11826 # Just because we use GCC doesn't mean we suddenly get shared libraries
11827 # on systems that don't support them.
11828 lt_prog_compiler_can_build_shared=no
11829 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011830 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011831
John Criswell7a73b802003-06-30 21:59:07 +000011832 sysv4*MP*)
11833 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011834 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011835 fi
11836 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011837
11838 hpux*)
11839 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11840 # not for PA HP-UX.
11841 case "$host_cpu" in
11842 hppa*64*|ia64*)
11843 # +Z the default
11844 ;;
11845 *)
11846 lt_prog_compiler_pic='-fPIC'
11847 ;;
11848 esac
11849 ;;
11850
John Criswell7a73b802003-06-30 21:59:07 +000011851 *)
John Criswell47fdd832003-07-14 16:52:07 +000011852 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011853 ;;
11854 esac
11855 else
John Criswell47fdd832003-07-14 16:52:07 +000011856 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011857 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011858 aix*)
11859 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011860 if test "$host_cpu" = ia64; then
11861 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011862 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011863 else
John Criswell47fdd832003-07-14 16:52:07 +000011864 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011865 fi
11866 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011867 darwin*)
11868 # PIC is the default on this platform
11869 # Common symbols not allowed in MH_DYLIB files
11870 case "$cc_basename" in
11871 xlc*)
11872 lt_prog_compiler_pic='-qnocommon'
11873 lt_prog_compiler_wl='-Wl,'
11874 ;;
11875 esac
11876 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011877
John Criswell47fdd832003-07-14 16:52:07 +000011878 mingw* | pw32* | os2*)
11879 # This hack is so that the source file can tell whether it is being
11880 # built for inclusion in a dll (and should export symbols for example).
11881 lt_prog_compiler_pic='-DDLL_EXPORT'
11882 ;;
11883
John Criswell7a73b802003-06-30 21:59:07 +000011884 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011885 lt_prog_compiler_wl='-Wl,'
11886 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11887 # not for PA HP-UX.
11888 case "$host_cpu" in
11889 hppa*64*|ia64*)
11890 # +Z the default
11891 ;;
11892 *)
11893 lt_prog_compiler_pic='+Z'
11894 ;;
11895 esac
11896 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11897 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011898 ;;
11899
John Criswell47fdd832003-07-14 16:52:07 +000011900 irix5* | irix6* | nonstopux*)
11901 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011902 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011903 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011904 ;;
11905
11906 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011907 lt_prog_compiler_pic='-KPIC'
11908 lt_prog_compiler_static='-Bstatic'
11909 ;;
11910
11911 linux*)
11912 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011913 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011914 lt_prog_compiler_wl='-Wl,'
11915 lt_prog_compiler_pic='-KPIC'
11916 lt_prog_compiler_static='-static'
11917 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011918 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011919 lt_prog_compiler_wl='-Wl,'
11920 # All Alpha code is PIC.
11921 lt_prog_compiler_static='-non_shared'
11922 ;;
11923 esac
John Criswell7a73b802003-06-30 21:59:07 +000011924 ;;
11925
11926 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011927 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011928 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011929 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011930 ;;
11931
11932 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011933 lt_prog_compiler_pic='-Kpic'
11934 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011935 ;;
11936
11937 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011938 lt_prog_compiler_wl='-Wl,'
11939 lt_prog_compiler_pic='-KPIC'
11940 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011941 ;;
11942
11943 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011944 lt_prog_compiler_wl='-Qoption ld '
11945 lt_prog_compiler_pic='-PIC'
11946 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011947 ;;
11948
11949 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011950 lt_prog_compiler_wl='-Wl,'
11951 lt_prog_compiler_pic='-KPIC'
11952 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011953 ;;
11954
11955 sysv4*MP*)
11956 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011957 lt_prog_compiler_pic='-Kconform_pic'
11958 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011959 fi
11960 ;;
11961
John Criswell47fdd832003-07-14 16:52:07 +000011962 uts4*)
11963 lt_prog_compiler_pic='-pic'
11964 lt_prog_compiler_static='-Bstatic'
11965 ;;
11966
John Criswell7a73b802003-06-30 21:59:07 +000011967 *)
John Criswell47fdd832003-07-14 16:52:07 +000011968 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011969 ;;
11970 esac
11971 fi
11972
John Criswell47fdd832003-07-14 16:52:07 +000011973echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11974echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011975
John Criswell47fdd832003-07-14 16:52:07 +000011976#
11977# Check to make sure the PIC flag actually works.
11978#
11979if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011980
11981echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011982echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11983if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985else
John Criswell47fdd832003-07-14 16:52:07 +000011986 lt_prog_compiler_pic_works=no
11987 ac_outfile=conftest.$ac_objext
11988 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11989 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11990 # Insert the option either (1) after the last *FLAGS variable, or
11991 # (2) before a word containing "conftest.", or (3) at the end.
11992 # Note that $ac_compile itself does not contain backslashes and begins
11993 # with a dollar sign (not a hyphen), so the echo should work correctly.
11994 # The option is referenced via a variable to avoid confusing sed.
11995 lt_compile=`echo "$ac_compile" | $SED \
11996 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11998 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59473af2004-12-25 07:31:29 +000011999 (eval echo "\"\$as_me:11999: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012000 (eval "$lt_compile" 2>conftest.err)
12001 ac_status=$?
12002 cat conftest.err >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012003 echo "$as_me:12003: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012004 if (exit $ac_status) && test -s "$ac_outfile"; then
12005 # The compiler can only warn and ignore the option if not recognized
12006 # So say no if there are warnings
12007 if test ! -s conftest.err; then
12008 lt_prog_compiler_pic_works=yes
12009 fi
12010 fi
12011 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012012
John Criswell47fdd832003-07-14 16:52:07 +000012013fi
12014echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12015echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012016
John Criswell47fdd832003-07-14 16:52:07 +000012017if test x"$lt_prog_compiler_pic_works" = xyes; then
12018 case $lt_prog_compiler_pic in
12019 "" | " "*) ;;
12020 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12021 esac
John Criswell7a73b802003-06-30 21:59:07 +000012022else
John Criswell47fdd832003-07-14 16:52:07 +000012023 lt_prog_compiler_pic=
12024 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012025fi
12026
John Criswell7a73b802003-06-30 21:59:07 +000012027fi
John Criswell47fdd832003-07-14 16:52:07 +000012028case "$host_os" in
12029 # For platforms which do not support PIC, -DPIC is meaningless:
12030 *djgpp*)
12031 lt_prog_compiler_pic=
12032 ;;
12033 *)
12034 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12035 ;;
12036esac
John Criswell7a73b802003-06-30 21:59:07 +000012037
John Criswell7a73b802003-06-30 21:59:07 +000012038echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12039echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012040if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012041 echo $ECHO_N "(cached) $ECHO_C" >&6
12042else
John Criswell47fdd832003-07-14 16:52:07 +000012043 lt_cv_prog_compiler_c_o=no
12044 $rm -r conftest 2>/dev/null
12045 mkdir conftest
12046 cd conftest
12047 mkdir out
12048 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012049
John Criswell47fdd832003-07-14 16:52:07 +000012050 lt_compiler_flag="-o out/conftest2.$ac_objext"
12051 # Insert the option either (1) after the last *FLAGS variable, or
12052 # (2) before a word containing "conftest.", or (3) at the end.
12053 # Note that $ac_compile itself does not contain backslashes and begins
12054 # with a dollar sign (not a hyphen), so the echo should work correctly.
12055 lt_compile=`echo "$ac_compile" | $SED \
12056 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12057 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12058 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59473af2004-12-25 07:31:29 +000012059 (eval echo "\"\$as_me:12059: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012060 (eval "$lt_compile" 2>out/conftest.err)
12061 ac_status=$?
12062 cat out/conftest.err >&5
Reid Spencer59473af2004-12-25 07:31:29 +000012063 echo "$as_me:12063: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012064 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12065 then
12066 # The compiler can only warn and ignore the option if not recognized
12067 # So say no if there are warnings
12068 if test ! -s out/conftest.err; then
12069 lt_cv_prog_compiler_c_o=yes
12070 fi
12071 fi
12072 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012073 $rm conftest*
12074 # SGI C++ compiler will create directory out/ii_files/ for
12075 # template instantiation
12076 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12077 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012078 cd ..
12079 rmdir conftest
12080 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012081
12082fi
John Criswell47fdd832003-07-14 16:52:07 +000012083echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12084echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012085
John Criswell7a73b802003-06-30 21:59:07 +000012086
John Criswell7a73b802003-06-30 21:59:07 +000012087hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012088if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012089 # do not overwrite the value of need_locks provided by the user
12090 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12091echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12092 hard_links=yes
12093 $rm conftest*
12094 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12095 touch conftest.a
12096 ln conftest.a conftest.b 2>&5 || hard_links=no
12097 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12098 echo "$as_me:$LINENO: result: $hard_links" >&5
12099echo "${ECHO_T}$hard_links" >&6
12100 if test "$hard_links" = no; then
12101 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12102echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12103 need_locks=warn
12104 fi
12105else
12106 need_locks=no
12107fi
John Criswell7a73b802003-06-30 21:59:07 +000012108
John Criswell47fdd832003-07-14 16:52:07 +000012109echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12110echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12111
12112 runpath_var=
12113 allow_undefined_flag=
12114 enable_shared_with_static_runtimes=no
12115 archive_cmds=
12116 archive_expsym_cmds=
12117 old_archive_From_new_cmds=
12118 old_archive_from_expsyms_cmds=
12119 export_dynamic_flag_spec=
12120 whole_archive_flag_spec=
12121 thread_safe_flag_spec=
12122 hardcode_libdir_flag_spec=
12123 hardcode_libdir_flag_spec_ld=
12124 hardcode_libdir_separator=
12125 hardcode_direct=no
12126 hardcode_minus_L=no
12127 hardcode_shlibpath_var=unsupported
12128 link_all_deplibs=unknown
12129 hardcode_automatic=no
12130 module_cmds=
12131 module_expsym_cmds=
12132 always_export_symbols=no
12133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12134 # include_expsyms should be a list of space-separated symbols to be *always*
12135 # included in the symbol list
12136 include_expsyms=
12137 # exclude_expsyms can be an extended regexp of symbols to exclude
12138 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12139 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12140 # as well as any symbol that contains `d'.
12141 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12142 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12143 # platforms (ab)use it in PIC code, but their linkers get confused if
12144 # the symbol is explicitly referenced. Since portable code cannot
12145 # rely on this symbol name, it's probably fine to never include it in
12146 # preloaded symbol tables.
12147 extract_expsyms_cmds=
12148
12149 case $host_os in
12150 cygwin* | mingw* | pw32*)
12151 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12152 # When not using gcc, we currently assume that we are using
12153 # Microsoft Visual C++.
12154 if test "$GCC" != yes; then
12155 with_gnu_ld=no
12156 fi
12157 ;;
12158 openbsd*)
12159 with_gnu_ld=no
12160 ;;
12161 esac
12162
12163 ld_shlibs=yes
12164 if test "$with_gnu_ld" = yes; then
12165 # If archive_cmds runs LD, not CC, wlarc should be empty
12166 wlarc='${wl}'
12167
12168 # See if GNU ld supports shared libraries.
12169 case $host_os in
12170 aix3* | aix4* | aix5*)
12171 # On AIX/PPC, the GNU linker is very broken
12172 if test "$host_cpu" != ia64; then
12173 ld_shlibs=no
12174 cat <<EOF 1>&2
12175
12176*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12177*** to be unable to reliably create shared libraries on AIX.
12178*** Therefore, libtool is disabling shared libraries support. If you
12179*** really care for shared libraries, you may want to modify your PATH
12180*** so that a non-GNU linker is found, and then restart.
12181
12182EOF
12183 fi
12184 ;;
12185
12186 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012187 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 +000012188 hardcode_libdir_flag_spec='-L$libdir'
12189 hardcode_minus_L=yes
12190
12191 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12192 # that the semantics of dynamic libraries on AmigaOS, at least up
12193 # to version 4, is to share data among multiple programs linked
12194 # with the same dynamic library. Since this doesn't match the
12195 # behavior of shared libraries on other platforms, we can't use
12196 # them.
12197 ld_shlibs=no
12198 ;;
12199
12200 beos*)
12201 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12202 allow_undefined_flag=unsupported
12203 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12204 # support --undefined. This deserves some investigation. FIXME
12205 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12206 else
12207 ld_shlibs=no
12208 fi
12209 ;;
12210
12211 cygwin* | mingw* | pw32*)
12212 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12213 # as there is no search path for DLLs.
12214 hardcode_libdir_flag_spec='-L$libdir'
12215 allow_undefined_flag=unsupported
12216 always_export_symbols=no
12217 enable_shared_with_static_runtimes=yes
12218 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12219
12220 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12222 # If the export-symbols file already is a .def file (1st line
12223 # is EXPORTS), use it as is; otherwise, prepend...
12224 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12225 cp $export_symbols $output_objdir/$soname.def;
12226 else
12227 echo EXPORTS > $output_objdir/$soname.def;
12228 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012229 fi~
12230 $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 +000012231 else
12232 ld_shlibs=no
12233 fi
12234 ;;
12235
12236 netbsd*)
12237 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12238 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12239 wlarc=
12240 else
12241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12242 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12243 fi
12244 ;;
12245
12246 solaris* | sysv5*)
12247 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12248 ld_shlibs=no
12249 cat <<EOF 1>&2
12250
12251*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12252*** create shared libraries on Solaris systems. Therefore, libtool
12253*** is disabling shared libraries support. We urge you to upgrade GNU
12254*** binutils to release 2.9.1 or newer. Another option is to modify
12255*** your PATH or compiler configuration so that the native linker is
12256*** used, and then restart.
12257
12258EOF
12259 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12262 else
12263 ld_shlibs=no
12264 fi
12265 ;;
12266
12267 sunos4*)
12268 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12269 wlarc=
12270 hardcode_direct=yes
12271 hardcode_shlibpath_var=no
12272 ;;
12273
Reid Spencer2706f8c2004-09-19 23:53:36 +000012274 linux*)
12275 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12276 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12277 archive_cmds="$tmp_archive_cmds"
12278 supports_anon_versioning=no
12279 case `$LD -v 2>/dev/null` in
12280 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12281 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12282 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12283 *\ 2.11.*) ;; # other 2.11 versions
12284 *) supports_anon_versioning=yes ;;
12285 esac
12286 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012287 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12288cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12289$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012290 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12291 else
12292 archive_expsym_cmds="$tmp_archive_cmds"
12293 fi
12294 else
12295 ld_shlibs=no
12296 fi
12297 ;;
12298
John Criswell47fdd832003-07-14 16:52:07 +000012299 *)
12300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12303 else
12304 ld_shlibs=no
12305 fi
12306 ;;
12307 esac
12308
12309 if test "$ld_shlibs" = yes; then
12310 runpath_var=LD_RUN_PATH
12311 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12312 export_dynamic_flag_spec='${wl}--export-dynamic'
12313 # ancient GNU ld didn't support --whole-archive et. al.
12314 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12315 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12316 else
12317 whole_archive_flag_spec=
12318 fi
12319 fi
12320 else
12321 # PORTME fill in a description of your system's linker (not GNU ld)
12322 case $host_os in
12323 aix3*)
12324 allow_undefined_flag=unsupported
12325 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012326 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 +000012327 # Note: this linker hardcodes the directories in LIBPATH if there
12328 # are no directories specified by -L.
12329 hardcode_minus_L=yes
12330 if test "$GCC" = yes && test -z "$link_static_flag"; then
12331 # Neither direct hardcoding nor static linking is supported with a
12332 # broken collect2.
12333 hardcode_direct=unsupported
12334 fi
12335 ;;
12336
12337 aix4* | aix5*)
12338 if test "$host_cpu" = ia64; then
12339 # On IA64, the linker does run time linking by default, so we don't
12340 # have to do anything special.
12341 aix_use_runtimelinking=no
12342 exp_sym_flag='-Bexport'
12343 no_entry_flag=""
12344 else
12345 # If we're using GNU nm, then we don't want the "-C" option.
12346 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12347 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12348 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'
12349 else
12350 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'
12351 fi
12352 aix_use_runtimelinking=no
12353
12354 # Test if we are trying to use run time linking or normal
12355 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12356 # need to do runtime linking.
12357 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12358 for ld_flag in $LDFLAGS; do
12359 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12360 aix_use_runtimelinking=yes
12361 break
12362 fi
12363 done
12364 esac
12365
12366 exp_sym_flag='-bexport'
12367 no_entry_flag='-bnoentry'
12368 fi
12369
12370 # When large executables or shared objects are built, AIX ld can
12371 # have problems creating the table of contents. If linking a library
12372 # or program results in "error TOC overflow" add -mminimal-toc to
12373 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12374 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12375
12376 archive_cmds=''
12377 hardcode_direct=yes
12378 hardcode_libdir_separator=':'
12379 link_all_deplibs=yes
12380
12381 if test "$GCC" = yes; then
12382 case $host_os in aix4.012|aix4.012.*)
12383 # We only want to do this on AIX 4.2 and lower, the check
12384 # below for broken collect2 doesn't work under 4.3+
12385 collect2name=`${CC} -print-prog-name=collect2`
12386 if test -f "$collect2name" && \
12387 strings "$collect2name" | grep resolve_lib_name >/dev/null
12388 then
12389 # We have reworked collect2
12390 hardcode_direct=yes
12391 else
12392 # We have old collect2
12393 hardcode_direct=unsupported
12394 # It fails to find uninstalled libraries when the uninstalled
12395 # path is not listed in the libpath. Setting hardcode_minus_L
12396 # to unsupported forces relinking
12397 hardcode_minus_L=yes
12398 hardcode_libdir_flag_spec='-L$libdir'
12399 hardcode_libdir_separator=
12400 fi
12401 esac
12402 shared_flag='-shared'
12403 else
12404 # not using gcc
12405 if test "$host_cpu" = ia64; then
12406 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12407 # chokes on -Wl,-G. The following line is correct:
12408 shared_flag='-G'
12409 else
12410 if test "$aix_use_runtimelinking" = yes; then
12411 shared_flag='${wl}-G'
12412 else
12413 shared_flag='${wl}-bM:SRE'
12414 fi
12415 fi
12416 fi
12417
12418 # It seems that -bexpall does not export symbols beginning with
12419 # underscore (_), so it is better to generate a list of symbols to export.
12420 always_export_symbols=yes
12421 if test "$aix_use_runtimelinking" = yes; then
12422 # Warning - without using the other runtime loading flags (-brtl),
12423 # -berok will link without error, but may produce a broken library.
12424 allow_undefined_flag='-berok'
12425 # Determine the default libpath from the value encoded in an empty executable.
12426 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012427/* confdefs.h. */
12428_ACEOF
12429cat confdefs.h >>conftest.$ac_ext
12430cat >>conftest.$ac_ext <<_ACEOF
12431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012432
John Criswell7a73b802003-06-30 21:59:07 +000012433int
12434main ()
12435{
John Criswell47fdd832003-07-14 16:52:07 +000012436
John Criswell7a73b802003-06-30 21:59:07 +000012437 ;
12438 return 0;
12439}
12440_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012441rm -f conftest.$ac_objext conftest$ac_exeext
12442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012443 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012444 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012445 grep -v '^ *+' conftest.er1 >conftest.err
12446 rm -f conftest.er1
12447 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012450 { ac_try='test -z "$ac_c_werror_flag"
12451 || test ! -s conftest.err'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12454 ac_status=$?
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; } &&
12457 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12460 ac_status=$?
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012463
John Criswell47fdd832003-07-14 16:52:07 +000012464aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12465}'`
12466# Check for a 64-bit object if we didn't find anything.
12467if 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; }
12468}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012469else
12470 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012471sed 's/^/| /' conftest.$ac_ext >&5
12472
John Criswell7a73b802003-06-30 21:59:07 +000012473fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012474rm -f conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012476if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012477
John Criswell47fdd832003-07-14 16:52:07 +000012478 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12479 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"
12480 else
12481 if test "$host_cpu" = ia64; then
12482 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12483 allow_undefined_flag="-z nodefs"
12484 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"
12485 else
12486 # Determine the default libpath from the value encoded in an empty executable.
12487 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012488/* confdefs.h. */
12489_ACEOF
12490cat confdefs.h >>conftest.$ac_ext
12491cat >>conftest.$ac_ext <<_ACEOF
12492/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012493
John Criswell47fdd832003-07-14 16:52:07 +000012494int
12495main ()
12496{
John Criswell7a73b802003-06-30 21:59:07 +000012497
John Criswell47fdd832003-07-14 16:52:07 +000012498 ;
12499 return 0;
12500}
12501_ACEOF
12502rm -f conftest.$ac_objext conftest$ac_exeext
12503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012504 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012505 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12515 ac_status=$?
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12521 ac_status=$?
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012524
John Criswell47fdd832003-07-14 16:52:07 +000012525aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12526}'`
12527# Check for a 64-bit object if we didn't find anything.
12528if 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; }
12529}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012530else
John Criswell47fdd832003-07-14 16:52:07 +000012531 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012532sed 's/^/| /' conftest.$ac_ext >&5
12533
John Criswell47fdd832003-07-14 16:52:07 +000012534fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012535rm -f conftest.err conftest.$ac_objext \
12536 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012537if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012538
John Criswell47fdd832003-07-14 16:52:07 +000012539 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12540 # Warning - without using the other run time loading flags,
12541 # -berok will link without error, but may produce a broken library.
12542 no_undefined_flag=' ${wl}-bernotok'
12543 allow_undefined_flag=' ${wl}-berok'
12544 # -bexpall does not export symbols beginning with underscore (_)
12545 always_export_symbols=yes
12546 # Exported symbols can be pulled into shared objects from archives
12547 whole_archive_flag_spec=' '
12548 archive_cmds_need_lc=yes
12549 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012550 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 +000012551 fi
12552 fi
John Criswell7a73b802003-06-30 21:59:07 +000012553 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012554
12555 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012556 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 +000012557 hardcode_libdir_flag_spec='-L$libdir'
12558 hardcode_minus_L=yes
12559 # see comment about different semantics on the GNU ld section
12560 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012561 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012562
Reid Spencer2706f8c2004-09-19 23:53:36 +000012563 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012564 export_dynamic_flag_spec=-rdynamic
12565 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012566
John Criswell47fdd832003-07-14 16:52:07 +000012567 cygwin* | mingw* | pw32*)
12568 # When not using gcc, we currently assume that we are using
12569 # Microsoft Visual C++.
12570 # hardcode_libdir_flag_spec is actually meaningless, as there is
12571 # no search path for DLLs.
12572 hardcode_libdir_flag_spec=' '
12573 allow_undefined_flag=unsupported
12574 # Tell ltmain to make .lib files, not .a files.
12575 libext=lib
12576 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012577 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012578 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012579 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012580 # The linker will automatically build a .lib file if we build a DLL.
12581 old_archive_From_new_cmds='true'
12582 # FIXME: Should let the user specify the lib program.
12583 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12584 fix_srcfile_path='`cygpath -w "$srcfile"`'
12585 enable_shared_with_static_runtimes=yes
12586 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012587
John Criswell47fdd832003-07-14 16:52:07 +000012588 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012589 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012590 rhapsody* | darwin1.[012])
12591 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12592 ;;
12593 *) # Darwin 1.3 on
12594 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12595 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12596 else
12597 case ${MACOSX_DEPLOYMENT_TARGET} in
12598 10.[012])
12599 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12600 ;;
12601 10.*)
12602 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12603 ;;
12604 esac
12605 fi
12606 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012607 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012608 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012609 hardcode_direct=no
12610 hardcode_automatic=yes
12611 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012612 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012613 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012614 if test "$GCC" = yes ; then
12615 output_verbose_link_cmd='echo'
12616 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12617 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12618 # 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 +000012619 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}'
12620 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 +000012621 else
12622 case "$cc_basename" in
12623 xlc*)
12624 output_verbose_link_cmd='echo'
12625 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12626 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12627 # 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 +000012628 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}'
12629 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 +000012630 ;;
12631 *)
12632 ld_shlibs=no
12633 ;;
12634 esac
John Criswell7a73b802003-06-30 21:59:07 +000012635 fi
John Criswell47fdd832003-07-14 16:52:07 +000012636 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012637
John Criswell47fdd832003-07-14 16:52:07 +000012638 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012639 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012640 hardcode_libdir_flag_spec='-L$libdir'
12641 hardcode_shlibpath_var=no
12642 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012643
John Criswell47fdd832003-07-14 16:52:07 +000012644 freebsd1*)
12645 ld_shlibs=no
12646 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012647
John Criswell47fdd832003-07-14 16:52:07 +000012648 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12649 # support. Future versions do this automatically, but an explicit c++rt0.o
12650 # does not break anything, and helps significantly (at the cost of a little
12651 # extra space).
12652 freebsd2.2*)
12653 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12654 hardcode_libdir_flag_spec='-R$libdir'
12655 hardcode_direct=yes
12656 hardcode_shlibpath_var=no
12657 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012658
John Criswell47fdd832003-07-14 16:52:07 +000012659 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12660 freebsd2*)
12661 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12662 hardcode_direct=yes
12663 hardcode_minus_L=yes
12664 hardcode_shlibpath_var=no
12665 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012666
John Criswell47fdd832003-07-14 16:52:07 +000012667 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012668 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012669 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12670 hardcode_libdir_flag_spec='-R$libdir'
12671 hardcode_direct=yes
12672 hardcode_shlibpath_var=no
12673 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012674
John Criswell47fdd832003-07-14 16:52:07 +000012675 hpux9*)
12676 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012677 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 +000012678 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012679 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 +000012680 fi
12681 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12682 hardcode_libdir_separator=:
12683 hardcode_direct=yes
12684
12685 # hardcode_minus_L: Not really in the search PATH,
12686 # but as the default location of the library.
12687 hardcode_minus_L=yes
12688 export_dynamic_flag_spec='${wl}-E'
12689 ;;
12690
12691 hpux10* | hpux11*)
12692 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12693 case "$host_cpu" in
12694 hppa*64*|ia64*)
12695 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12696 ;;
12697 *)
12698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12699 ;;
12700 esac
12701 else
12702 case "$host_cpu" in
12703 hppa*64*|ia64*)
12704 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12705 ;;
12706 *)
12707 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12708 ;;
12709 esac
12710 fi
12711 if test "$with_gnu_ld" = no; then
12712 case "$host_cpu" in
12713 hppa*64*)
12714 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12715 hardcode_libdir_flag_spec_ld='+b $libdir'
12716 hardcode_libdir_separator=:
12717 hardcode_direct=no
12718 hardcode_shlibpath_var=no
12719 ;;
12720 ia64*)
12721 hardcode_libdir_flag_spec='-L$libdir'
12722 hardcode_direct=no
12723 hardcode_shlibpath_var=no
12724
12725 # hardcode_minus_L: Not really in the search PATH,
12726 # but as the default location of the library.
12727 hardcode_minus_L=yes
12728 ;;
12729 *)
12730 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12731 hardcode_libdir_separator=:
12732 hardcode_direct=yes
12733 export_dynamic_flag_spec='${wl}-E'
12734
12735 # hardcode_minus_L: Not really in the search PATH,
12736 # but as the default location of the library.
12737 hardcode_minus_L=yes
12738 ;;
12739 esac
12740 fi
12741 ;;
12742
12743 irix5* | irix6* | nonstopux*)
12744 if test "$GCC" = yes; then
12745 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'
12746 else
12747 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'
12748 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12749 fi
12750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12751 hardcode_libdir_separator=:
12752 link_all_deplibs=yes
12753 ;;
12754
12755 netbsd*)
12756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12757 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12758 else
12759 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12760 fi
12761 hardcode_libdir_flag_spec='-R$libdir'
12762 hardcode_direct=yes
12763 hardcode_shlibpath_var=no
12764 ;;
12765
12766 newsos6)
12767 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12768 hardcode_direct=yes
12769 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12770 hardcode_libdir_separator=:
12771 hardcode_shlibpath_var=no
12772 ;;
12773
12774 openbsd*)
12775 hardcode_direct=yes
12776 hardcode_shlibpath_var=no
12777 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12778 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012779 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 +000012780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12781 export_dynamic_flag_spec='${wl}-E'
12782 else
12783 case $host_os in
12784 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12785 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12786 hardcode_libdir_flag_spec='-R$libdir'
12787 ;;
12788 *)
12789 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12790 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12791 ;;
12792 esac
12793 fi
12794 ;;
12795
12796 os2*)
12797 hardcode_libdir_flag_spec='-L$libdir'
12798 hardcode_minus_L=yes
12799 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012800 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 +000012801 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12802 ;;
12803
12804 osf3*)
12805 if test "$GCC" = yes; then
12806 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12807 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'
12808 else
12809 allow_undefined_flag=' -expect_unresolved \*'
12810 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'
12811 fi
12812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12813 hardcode_libdir_separator=:
12814 ;;
12815
12816 osf4* | osf5*) # as osf3* with the addition of -msym flag
12817 if test "$GCC" = yes; then
12818 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12819 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'
12820 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12821 else
12822 allow_undefined_flag=' -expect_unresolved \*'
12823 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 +000012824 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12825 $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'
12826
John Criswell47fdd832003-07-14 16:52:07 +000012827 # Both c and cxx compiler support -rpath directly
12828 hardcode_libdir_flag_spec='-rpath $libdir'
12829 fi
12830 hardcode_libdir_separator=:
12831 ;;
12832
12833 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012834 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12835 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012836 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012837 runpath_var=LD_RUN_PATH
12838 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012839 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012840
John Criswell47fdd832003-07-14 16:52:07 +000012841 solaris*)
12842 no_undefined_flag=' -z text'
12843 if test "$GCC" = yes; then
12844 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012845 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12846 $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 +000012847 else
12848 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012849 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12850 $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 +000012851 fi
12852 hardcode_libdir_flag_spec='-R$libdir'
12853 hardcode_shlibpath_var=no
12854 case $host_os in
12855 solaris2.[0-5] | solaris2.[0-5].*) ;;
12856 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12857 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12858 esac
12859 link_all_deplibs=yes
12860 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012861
John Criswell47fdd832003-07-14 16:52:07 +000012862 sunos4*)
12863 if test "x$host_vendor" = xsequent; then
12864 # Use $CC to link under sequent, because it throws in some extra .o
12865 # files that make .init and .fini sections work.
12866 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12867 else
12868 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12869 fi
12870 hardcode_libdir_flag_spec='-L$libdir'
12871 hardcode_direct=yes
12872 hardcode_minus_L=yes
12873 hardcode_shlibpath_var=no
12874 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012875
John Criswell47fdd832003-07-14 16:52:07 +000012876 sysv4)
12877 case $host_vendor in
12878 sni)
12879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12880 hardcode_direct=yes # is this really true???
12881 ;;
12882 siemens)
12883 ## LD is ld it makes a PLAMLIB
12884 ## CC just makes a GrossModule.
12885 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12886 reload_cmds='$CC -r -o $output$reload_objs'
12887 hardcode_direct=no
12888 ;;
12889 motorola)
12890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12891 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12892 ;;
12893 esac
12894 runpath_var='LD_RUN_PATH'
12895 hardcode_shlibpath_var=no
12896 ;;
12897
12898 sysv4.3*)
12899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12900 hardcode_shlibpath_var=no
12901 export_dynamic_flag_spec='-Bexport'
12902 ;;
12903
12904 sysv4*MP*)
12905 if test -d /usr/nec; then
12906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12907 hardcode_shlibpath_var=no
12908 runpath_var=LD_RUN_PATH
12909 hardcode_runpath_var=yes
12910 ld_shlibs=yes
12911 fi
12912 ;;
12913
12914 sysv4.2uw2*)
12915 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12916 hardcode_direct=yes
12917 hardcode_minus_L=no
12918 hardcode_shlibpath_var=no
12919 hardcode_runpath_var=yes
12920 runpath_var=LD_RUN_PATH
12921 ;;
12922
12923 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12924 no_undefined_flag='${wl}-z ${wl}text'
12925 if test "$GCC" = yes; then
12926 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12927 else
12928 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12929 fi
12930 runpath_var='LD_RUN_PATH'
12931 hardcode_shlibpath_var=no
12932 ;;
12933
12934 sysv5*)
12935 no_undefined_flag=' -z text'
12936 # $CC -shared without GNU ld will not create a library from C++
12937 # object files and a static libstdc++, better avoid it by now
12938 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012939 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12940 $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 +000012941 hardcode_libdir_flag_spec=
12942 hardcode_shlibpath_var=no
12943 runpath_var='LD_RUN_PATH'
12944 ;;
12945
12946 uts4*)
12947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12948 hardcode_libdir_flag_spec='-L$libdir'
12949 hardcode_shlibpath_var=no
12950 ;;
12951
12952 *)
12953 ld_shlibs=no
12954 ;;
12955 esac
12956 fi
12957
John Criswell7a73b802003-06-30 21:59:07 +000012958echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12959echo "${ECHO_T}$ld_shlibs" >&6
12960test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012961
John Criswell47fdd832003-07-14 16:52:07 +000012962variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12963if test "$GCC" = yes; then
12964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12965fi
12966
12967#
12968# Do we need to explicitly link libc?
12969#
12970case "x$archive_cmds_need_lc" in
12971x|xyes)
12972 # Assume -lc should be added
12973 archive_cmds_need_lc=yes
12974
12975 if test "$enable_shared" = yes && test "$GCC" = yes; then
12976 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012977 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012978 # FIXME: we may have to deal with multi-command sequences.
12979 ;;
12980 '$CC '*)
12981 # Test whether the compiler implicitly links with -lc since on some
12982 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12983 # to ld, don't add -lc before -lgcc.
12984 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12985echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12986 $rm conftest*
12987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12988
12989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12990 (eval $ac_compile) 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } 2>conftest.err; then
12994 soname=conftest
12995 lib=conftest
12996 libobjs=conftest.$ac_objext
12997 deplibs=
12998 wl=$lt_prog_compiler_wl
12999 compiler_flags=-v
13000 linker_flags=-v
13001 verstring=
13002 output_objdir=.
13003 libname=conftest
13004 lt_save_allow_undefined_flag=$allow_undefined_flag
13005 allow_undefined_flag=
13006 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13007 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); }
13011 then
13012 archive_cmds_need_lc=no
13013 else
13014 archive_cmds_need_lc=yes
13015 fi
13016 allow_undefined_flag=$lt_save_allow_undefined_flag
13017 else
13018 cat conftest.err 1>&5
13019 fi
13020 $rm conftest*
13021 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13022echo "${ECHO_T}$archive_cmds_need_lc" >&6
13023 ;;
13024 esac
13025 fi
13026 ;;
13027esac
13028
John Criswell7a73b802003-06-30 21:59:07 +000013029echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13030echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13031library_names_spec=
13032libname_spec='lib$name'
13033soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013034shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013035postinstall_cmds=
13036postuninstall_cmds=
13037finish_cmds=
13038finish_eval=
13039shlibpath_var=
13040shlibpath_overrides_runpath=unknown
13041version_type=none
13042dynamic_linker="$host_os ld.so"
13043sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013044if test "$GCC" = yes; then
13045 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13046 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13047 # if the path contains ";" then we assume it to be the separator
13048 # otherwise default to the standard path separator (i.e. ":") - it is
13049 # assumed that no part of a normal pathname contains ";" but that should
13050 # okay in the real world where ";" in dirpaths is itself problematic.
13051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13052 else
13053 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13054 fi
13055else
13056 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13057fi
13058need_lib_prefix=unknown
13059hardcode_into_libs=no
13060
13061# when you set need_version to no, make sure it does not cause -set_version
13062# flags to be left without arguments
13063need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013064
13065case $host_os in
13066aix3*)
13067 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013068 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013069 shlibpath_var=LIBPATH
13070
John Criswell47fdd832003-07-14 16:52:07 +000013071 # AIX 3 has no versioning support, so we append a major version to the name.
13072 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013073 ;;
13074
13075aix4* | aix5*)
13076 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013077 need_lib_prefix=no
13078 need_version=no
13079 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013080 if test "$host_cpu" = ia64; then
13081 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013082 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013083 shlibpath_var=LD_LIBRARY_PATH
13084 else
13085 # With GCC up to 2.95.x, collect2 would create an import file
13086 # for dependence libraries. The import file would start with
13087 # the line `#! .'. This would cause the generated library to
13088 # depend on `.', always an invalid library. This was fixed in
13089 # development snapshots of GCC prior to 3.0.
13090 case $host_os in
13091 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13093 echo ' yes '
13094 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13095 :
13096 else
13097 can_build_shared=no
13098 fi
13099 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013100 esac
John Criswell47fdd832003-07-14 16:52:07 +000013101 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13102 # soname into executable. Probably we can add versioning support to
13103 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013104 if test "$aix_use_runtimelinking" = yes; then
13105 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13106 # instead of lib<name>.a to let people know that these are not
13107 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013109 else
13110 # We preserve .a as extension for shared libraries through AIX4.2
13111 # and later when we are not doing run time linking.
13112 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013113 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013114 fi
13115 shlibpath_var=LIBPATH
13116 fi
13117 ;;
13118
13119amigaos*)
13120 library_names_spec='$libname.ixlibrary $libname.a'
13121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013122 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 +000013123 ;;
13124
13125beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013126 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013127 dynamic_linker="$host_os ld.so"
13128 shlibpath_var=LIBRARY_PATH
13129 ;;
13130
Reid Spencer2706f8c2004-09-19 23:53:36 +000013131bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013132 version_type=linux
13133 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13135 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013136 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13137 shlibpath_var=LD_LIBRARY_PATH
13138 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13139 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013140 # the default ld.so.conf also contains /usr/contrib/lib and
13141 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13142 # libtool to hard-code these into programs
13143 ;;
13144
13145cygwin* | mingw* | pw32*)
13146 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013147 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013148 need_version=no
13149 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013150
John Criswell7a73b802003-06-30 21:59:07 +000013151 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013152 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013153 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013154 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013155 postinstall_cmds='base_file=`basename \${file}`~
13156 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13157 dldir=$destdir/`dirname \$dlpath`~
13158 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013159 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013160 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13161 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013162 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013163 shlibpath_overrides_runpath=yes
13164
13165 case $host_os in
13166 cygwin*)
13167 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13168 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 +000013169 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013170 ;;
13171 mingw*)
13172 # MinGW DLLs use traditional 'lib' prefix
13173 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13175 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13176 # It is most probably a Windows format PATH printed by
13177 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13178 # path with ; separators, and with drive letters. We can handle the
13179 # drive letters (cygwin fileutils understands them), so leave them,
13180 # especially as we might pass files found there to a mingw objdump,
13181 # which wouldn't understand a cygwinified path. Ahh.
13182 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13183 else
13184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13185 fi
13186 ;;
13187 pw32*)
13188 # pw32 DLLs use 'pw' prefix rather than 'lib'
13189 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13190 ;;
13191 esac
John Criswell7a73b802003-06-30 21:59:07 +000013192 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013193
John Criswell7a73b802003-06-30 21:59:07 +000013194 *)
John Criswell47fdd832003-07-14 16:52:07 +000013195 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013196 ;;
13197 esac
13198 dynamic_linker='Win32 ld.exe'
13199 # FIXME: first we should search . and the directory the executable is in
13200 shlibpath_var=PATH
13201 ;;
13202
13203darwin* | rhapsody*)
13204 dynamic_linker="$host_os dyld"
13205 version_type=darwin
13206 need_lib_prefix=no
13207 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013208 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013209 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013210 shlibpath_overrides_runpath=yes
13211 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013212 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013213 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013214 if test "$GCC" = yes; then
13215 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"`
13216 else
13217 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013218 fi
13219 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13220 ;;
13221
13222dgux*)
13223 version_type=linux
13224 need_lib_prefix=no
13225 need_version=no
13226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13227 soname_spec='${libname}${release}${shared_ext}$major'
13228 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013229 ;;
13230
13231freebsd1*)
13232 dynamic_linker=no
13233 ;;
13234
Reid Spencer2706f8c2004-09-19 23:53:36 +000013235kfreebsd*-gnu)
13236 version_type=linux
13237 need_lib_prefix=no
13238 need_version=no
13239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13240 soname_spec='${libname}${release}${shared_ext}$major'
13241 shlibpath_var=LD_LIBRARY_PATH
13242 shlibpath_overrides_runpath=no
13243 hardcode_into_libs=yes
13244 dynamic_linker='GNU ld.so'
13245 ;;
13246
John Criswell7a73b802003-06-30 21:59:07 +000013247freebsd*)
13248 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13249 version_type=freebsd-$objformat
13250 case $version_type in
13251 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013253 need_version=no
13254 need_lib_prefix=no
13255 ;;
13256 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013257 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013258 need_version=yes
13259 ;;
13260 esac
13261 shlibpath_var=LD_LIBRARY_PATH
13262 case $host_os in
13263 freebsd2*)
13264 shlibpath_overrides_runpath=yes
13265 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013266 freebsd3.01* | freebsdelf3.01*)
13267 shlibpath_overrides_runpath=yes
13268 hardcode_into_libs=yes
13269 ;;
13270 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013271 shlibpath_overrides_runpath=no
13272 hardcode_into_libs=yes
13273 ;;
13274 esac
13275 ;;
13276
13277gnu*)
13278 version_type=linux
13279 need_lib_prefix=no
13280 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13282 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013283 shlibpath_var=LD_LIBRARY_PATH
13284 hardcode_into_libs=yes
13285 ;;
13286
13287hpux9* | hpux10* | hpux11*)
13288 # Give a soname corresponding to the major version so that dld.sl refuses to
13289 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013290 version_type=sunos
13291 need_lib_prefix=no
13292 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013293 case "$host_cpu" in
13294 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013295 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013296 hardcode_into_libs=yes
13297 dynamic_linker="$host_os dld.so"
13298 shlibpath_var=LD_LIBRARY_PATH
13299 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13301 soname_spec='${libname}${release}${shared_ext}$major'
13302 if test "X$HPUX_IA64_MODE" = X32; then
13303 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13304 else
13305 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13306 fi
13307 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13308 ;;
13309 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013310 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013311 hardcode_into_libs=yes
13312 dynamic_linker="$host_os dld.sl"
13313 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13314 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13316 soname_spec='${libname}${release}${shared_ext}$major'
13317 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13318 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13319 ;;
13320 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013321 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013322 dynamic_linker="$host_os dld.sl"
13323 shlibpath_var=SHLIB_PATH
13324 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13326 soname_spec='${libname}${release}${shared_ext}$major'
13327 ;;
13328 esac
John Criswell7a73b802003-06-30 21:59:07 +000013329 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13330 postinstall_cmds='chmod 555 $lib'
13331 ;;
13332
John Criswell47fdd832003-07-14 16:52:07 +000013333irix5* | irix6* | nonstopux*)
13334 case $host_os in
13335 nonstopux*) version_type=nonstopux ;;
13336 *)
13337 if test "$lt_cv_prog_gnu_ld" = yes; then
13338 version_type=linux
13339 else
13340 version_type=irix
13341 fi ;;
13342 esac
John Criswell7a73b802003-06-30 21:59:07 +000013343 need_lib_prefix=no
13344 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013345 soname_spec='${libname}${release}${shared_ext}$major'
13346 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 +000013347 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013348 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013349 libsuff= shlibsuff=
13350 ;;
13351 *)
13352 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013353 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13354 libsuff= shlibsuff= libmagic=32-bit;;
13355 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13356 libsuff=32 shlibsuff=N32 libmagic=N32;;
13357 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13358 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013359 *) libsuff= shlibsuff= libmagic=never-match;;
13360 esac
13361 ;;
13362 esac
13363 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13364 shlibpath_overrides_runpath=no
13365 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13366 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013367 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013368 ;;
13369
13370# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013371linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013372 dynamic_linker=no
13373 ;;
13374
13375# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013376linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013377 version_type=linux
13378 need_lib_prefix=no
13379 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13381 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13383 shlibpath_var=LD_LIBRARY_PATH
13384 shlibpath_overrides_runpath=no
13385 # This implies no fast_install, which is unacceptable.
13386 # Some rework will be needed to allow for fast_install
13387 # before this can be enabled.
13388 hardcode_into_libs=yes
13389
Reid Spencer2706f8c2004-09-19 23:53:36 +000013390 # Append ld.so.conf contents to the search path
13391 if test -f /etc/ld.so.conf; then
13392 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13393 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13394 fi
13395
John Criswell7a73b802003-06-30 21:59:07 +000013396 # We used to test for /lib/ld.so.1 and disable shared libraries on
13397 # powerpc, because MkLinux only supported shared libraries with the
13398 # GNU dynamic linker. Since this was broken with cross compilers,
13399 # most powerpc-linux boxes support dynamic linking these days and
13400 # people can always --disable-shared, the test was removed, and we
13401 # assume the GNU/Linux dynamic linker is in use.
13402 dynamic_linker='GNU/Linux ld.so'
13403 ;;
13404
Reid Spencer2706f8c2004-09-19 23:53:36 +000013405knetbsd*-gnu)
13406 version_type=linux
13407 need_lib_prefix=no
13408 need_version=no
13409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13410 soname_spec='${libname}${release}${shared_ext}$major'
13411 shlibpath_var=LD_LIBRARY_PATH
13412 shlibpath_overrides_runpath=no
13413 hardcode_into_libs=yes
13414 dynamic_linker='GNU ld.so'
13415 ;;
13416
John Criswell7a73b802003-06-30 21:59:07 +000013417netbsd*)
13418 version_type=sunos
13419 need_lib_prefix=no
13420 need_version=no
13421 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13424 dynamic_linker='NetBSD (a.out) ld.so'
13425 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013427 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013428 dynamic_linker='NetBSD ld.elf_so'
13429 fi
13430 shlibpath_var=LD_LIBRARY_PATH
13431 shlibpath_overrides_runpath=yes
13432 hardcode_into_libs=yes
13433 ;;
13434
13435newsos6)
13436 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13438 shlibpath_var=LD_LIBRARY_PATH
13439 shlibpath_overrides_runpath=yes
13440 ;;
13441
Reid Spencer2706f8c2004-09-19 23:53:36 +000013442nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013443 version_type=linux
13444 need_lib_prefix=no
13445 need_version=no
13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13447 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013448 shlibpath_var=LD_LIBRARY_PATH
13449 shlibpath_overrides_runpath=yes
13450 ;;
13451
13452openbsd*)
13453 version_type=sunos
13454 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013455 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13458 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013459 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 +000013460 case $host_os in
13461 openbsd2.[89] | openbsd2.[89].*)
13462 shlibpath_overrides_runpath=no
13463 ;;
13464 *)
13465 shlibpath_overrides_runpath=yes
13466 ;;
13467 esac
John Criswell7a73b802003-06-30 21:59:07 +000013468 else
13469 shlibpath_overrides_runpath=yes
13470 fi
John Criswell7a73b802003-06-30 21:59:07 +000013471 ;;
13472
13473os2*)
13474 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013475 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013476 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013477 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013478 dynamic_linker='OS/2 ld.exe'
13479 shlibpath_var=LIBPATH
13480 ;;
13481
13482osf3* | osf4* | osf5*)
13483 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013484 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013485 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013486 soname_spec='${libname}${release}${shared_ext}$major'
13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013488 shlibpath_var=LD_LIBRARY_PATH
13489 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13490 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13491 ;;
13492
13493sco3.2v5*)
13494 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013495 soname_spec='${libname}${release}${shared_ext}$major'
13496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013497 shlibpath_var=LD_LIBRARY_PATH
13498 ;;
13499
13500solaris*)
13501 version_type=linux
13502 need_lib_prefix=no
13503 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13505 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013506 shlibpath_var=LD_LIBRARY_PATH
13507 shlibpath_overrides_runpath=yes
13508 hardcode_into_libs=yes
13509 # ldd complains unless libraries are executable
13510 postinstall_cmds='chmod +x $lib'
13511 ;;
13512
13513sunos4*)
13514 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013516 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13517 shlibpath_var=LD_LIBRARY_PATH
13518 shlibpath_overrides_runpath=yes
13519 if test "$with_gnu_ld" = yes; then
13520 need_lib_prefix=no
13521 fi
13522 need_version=yes
13523 ;;
13524
13525sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13526 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013529 shlibpath_var=LD_LIBRARY_PATH
13530 case $host_vendor in
13531 sni)
13532 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013533 need_lib_prefix=no
13534 export_dynamic_flag_spec='${wl}-Blargedynsym'
13535 runpath_var=LD_RUN_PATH
13536 ;;
13537 siemens)
13538 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013539 ;;
13540 motorola)
13541 need_lib_prefix=no
13542 need_version=no
13543 shlibpath_overrides_runpath=no
13544 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13545 ;;
13546 esac
13547 ;;
13548
John Criswell7a73b802003-06-30 21:59:07 +000013549sysv4*MP*)
13550 if test -d /usr/nec ;then
13551 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013552 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13553 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013554 shlibpath_var=LD_LIBRARY_PATH
13555 fi
13556 ;;
13557
John Criswell47fdd832003-07-14 16:52:07 +000013558uts4*)
13559 version_type=linux
13560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13561 soname_spec='${libname}${release}${shared_ext}$major'
13562 shlibpath_var=LD_LIBRARY_PATH
13563 ;;
13564
John Criswell7a73b802003-06-30 21:59:07 +000013565*)
13566 dynamic_linker=no
13567 ;;
13568esac
13569echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13570echo "${ECHO_T}$dynamic_linker" >&6
13571test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013572
Reid Spencer2706f8c2004-09-19 23:53:36 +000013573echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13574echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13575hardcode_action=
13576if test -n "$hardcode_libdir_flag_spec" || \
13577 test -n "$runpath_var" || \
13578 test "X$hardcode_automatic" = "Xyes" ; then
13579
13580 # We can hardcode non-existant directories.
13581 if test "$hardcode_direct" != no &&
13582 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13583 # have to relink, otherwise we might link with an installed library
13584 # when we should be linking with a yet-to-be-installed one
13585 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13586 test "$hardcode_minus_L" != no; then
13587 # Linking always hardcodes the temporary library directory.
13588 hardcode_action=relink
13589 else
13590 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13591 hardcode_action=immediate
13592 fi
13593else
13594 # We cannot hardcode anything, or else we can only hardcode existing
13595 # directories.
13596 hardcode_action=unsupported
13597fi
13598echo "$as_me:$LINENO: result: $hardcode_action" >&5
13599echo "${ECHO_T}$hardcode_action" >&6
13600
13601if test "$hardcode_action" = relink; then
13602 # Fast installation is not supported
13603 enable_fast_install=no
13604elif test "$shlibpath_overrides_runpath" = yes ||
13605 test "$enable_shared" = no; then
13606 # Fast installation is not necessary
13607 enable_fast_install=needless
13608fi
13609
13610striplib=
13611old_striplib=
13612echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13613echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13614if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13615 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13616 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13617 echo "$as_me:$LINENO: result: yes" >&5
13618echo "${ECHO_T}yes" >&6
13619else
13620# FIXME - insert some real tests, host_os isn't really good enough
13621 case $host_os in
13622 darwin*)
13623 if test -n "$STRIP" ; then
13624 striplib="$STRIP -x"
13625 echo "$as_me:$LINENO: result: yes" >&5
13626echo "${ECHO_T}yes" >&6
13627 else
13628 echo "$as_me:$LINENO: result: no" >&5
13629echo "${ECHO_T}no" >&6
13630fi
13631 ;;
13632 *)
13633 echo "$as_me:$LINENO: result: no" >&5
13634echo "${ECHO_T}no" >&6
13635 ;;
13636 esac
13637fi
13638
John Criswell7a73b802003-06-30 21:59:07 +000013639if test "x$enable_dlopen" != xyes; then
13640 enable_dlopen=unknown
13641 enable_dlopen_self=unknown
13642 enable_dlopen_self_static=unknown
13643else
13644 lt_cv_dlopen=no
13645 lt_cv_dlopen_libs=
13646
13647 case $host_os in
13648 beos*)
13649 lt_cv_dlopen="load_add_on"
13650 lt_cv_dlopen_libs=
13651 lt_cv_dlopen_self=yes
13652 ;;
13653
John Criswell47fdd832003-07-14 16:52:07 +000013654 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013655 lt_cv_dlopen="LoadLibrary"
13656 lt_cv_dlopen_libs=
13657 ;;
13658
John Criswell47fdd832003-07-14 16:52:07 +000013659 cygwin*)
13660 lt_cv_dlopen="dlopen"
13661 lt_cv_dlopen_libs=
13662 ;;
13663
13664 darwin*)
13665 # if libdl is installed we need to link against it
13666 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13667echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13668if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13670else
13671 ac_check_lib_save_LIBS=$LIBS
13672LIBS="-ldl $LIBS"
13673cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013674/* confdefs.h. */
13675_ACEOF
13676cat confdefs.h >>conftest.$ac_ext
13677cat >>conftest.$ac_ext <<_ACEOF
13678/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013679
13680/* Override any gcc2 internal prototype to avoid an error. */
13681#ifdef __cplusplus
13682extern "C"
13683#endif
13684/* We use char because int might match the return type of a gcc2
13685 builtin and then its argument prototype would still apply. */
13686char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013687int
13688main ()
13689{
13690dlopen ();
13691 ;
13692 return 0;
13693}
13694_ACEOF
13695rm -f conftest.$ac_objext conftest$ac_exeext
13696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013697 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013699 grep -v '^ *+' conftest.er1 >conftest.err
13700 rm -f conftest.er1
13701 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013704 { ac_try='test -z "$ac_c_werror_flag"
13705 || test ! -s conftest.err'
13706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13707 (eval $ac_try) 2>&5
13708 ac_status=$?
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); }; } &&
13711 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717 ac_cv_lib_dl_dlopen=yes
13718else
13719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013720sed 's/^/| /' conftest.$ac_ext >&5
13721
John Criswell47fdd832003-07-14 16:52:07 +000013722ac_cv_lib_dl_dlopen=no
13723fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013724rm -f conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013726LIBS=$ac_check_lib_save_LIBS
13727fi
13728echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13729echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13730if test $ac_cv_lib_dl_dlopen = yes; then
13731 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13732else
13733
13734 lt_cv_dlopen="dyld"
13735 lt_cv_dlopen_libs=
13736 lt_cv_dlopen_self=yes
13737
13738fi
13739
13740 ;;
13741
John Criswell7a73b802003-06-30 21:59:07 +000013742 *)
13743 echo "$as_me:$LINENO: checking for shl_load" >&5
13744echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13745if test "${ac_cv_func_shl_load+set}" = set; then
13746 echo $ECHO_N "(cached) $ECHO_C" >&6
13747else
13748 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013749/* confdefs.h. */
13750_ACEOF
13751cat confdefs.h >>conftest.$ac_ext
13752cat >>conftest.$ac_ext <<_ACEOF
13753/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013754/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13756#define shl_load innocuous_shl_load
13757
John Criswell7a73b802003-06-30 21:59:07 +000013758/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013759 which can conflict with char shl_load (); below.
13760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13761 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013762
John Criswell0c38eaf2003-09-10 15:17:25 +000013763#ifdef __STDC__
13764# include <limits.h>
13765#else
13766# include <assert.h>
13767#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013768
13769#undef shl_load
13770
John Criswell7a73b802003-06-30 21:59:07 +000013771/* Override any gcc2 internal prototype to avoid an error. */
13772#ifdef __cplusplus
13773extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013774{
John Criswell7a73b802003-06-30 21:59:07 +000013775#endif
13776/* We use char because int might match the return type of a gcc2
13777 builtin and then its argument prototype would still apply. */
13778char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013779/* The GNU C library defines this for functions which it implements
13780 to always fail with ENOSYS. Some functions are actually named
13781 something starting with __ and the normal name is an alias. */
13782#if defined (__stub_shl_load) || defined (__stub___shl_load)
13783choke me
13784#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013785char (*f) () = shl_load;
13786#endif
13787#ifdef __cplusplus
13788}
John Criswell7a73b802003-06-30 21:59:07 +000013789#endif
13790
John Criswell0c38eaf2003-09-10 15:17:25 +000013791int
13792main ()
13793{
13794return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013795 ;
13796 return 0;
13797}
13798_ACEOF
13799rm -f conftest.$ac_objext conftest$ac_exeext
13800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013801 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013802 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013808 { ac_try='test -z "$ac_c_werror_flag"
13809 || test ! -s conftest.err'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; } &&
13815 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; }; then
13821 ac_cv_func_shl_load=yes
13822else
13823 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013824sed 's/^/| /' conftest.$ac_ext >&5
13825
John Criswell7a73b802003-06-30 21:59:07 +000013826ac_cv_func_shl_load=no
13827fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013828rm -f conftest.err conftest.$ac_objext \
13829 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013830fi
13831echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13832echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13833if test $ac_cv_func_shl_load = yes; then
13834 lt_cv_dlopen="shl_load"
13835else
13836 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13837echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13838if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13840else
13841 ac_check_lib_save_LIBS=$LIBS
13842LIBS="-ldld $LIBS"
13843cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013844/* confdefs.h. */
13845_ACEOF
13846cat confdefs.h >>conftest.$ac_ext
13847cat >>conftest.$ac_ext <<_ACEOF
13848/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013849
13850/* Override any gcc2 internal prototype to avoid an error. */
13851#ifdef __cplusplus
13852extern "C"
13853#endif
13854/* We use char because int might match the return type of a gcc2
13855 builtin and then its argument prototype would still apply. */
13856char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013857int
13858main ()
13859{
13860shl_load ();
13861 ;
13862 return 0;
13863}
13864_ACEOF
13865rm -f conftest.$ac_objext conftest$ac_exeext
13866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013867 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013868 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013869 grep -v '^ *+' conftest.er1 >conftest.err
13870 rm -f conftest.er1
13871 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013874 { ac_try='test -z "$ac_c_werror_flag"
13875 || test ! -s conftest.err'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13878 ac_status=$?
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; } &&
13881 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13884 ac_status=$?
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; }; then
13887 ac_cv_lib_dld_shl_load=yes
13888else
13889 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013890sed 's/^/| /' conftest.$ac_ext >&5
13891
John Criswell7a73b802003-06-30 21:59:07 +000013892ac_cv_lib_dld_shl_load=no
13893fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013894rm -f conftest.err conftest.$ac_objext \
13895 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013896LIBS=$ac_check_lib_save_LIBS
13897fi
13898echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13899echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13900if test $ac_cv_lib_dld_shl_load = yes; then
13901 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13902else
13903 echo "$as_me:$LINENO: checking for dlopen" >&5
13904echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13905if test "${ac_cv_func_dlopen+set}" = set; then
13906 echo $ECHO_N "(cached) $ECHO_C" >&6
13907else
13908 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013909/* confdefs.h. */
13910_ACEOF
13911cat confdefs.h >>conftest.$ac_ext
13912cat >>conftest.$ac_ext <<_ACEOF
13913/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013914/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13916#define dlopen innocuous_dlopen
13917
John Criswell7a73b802003-06-30 21:59:07 +000013918/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013919 which can conflict with char dlopen (); below.
13920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13921 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013922
John Criswell0c38eaf2003-09-10 15:17:25 +000013923#ifdef __STDC__
13924# include <limits.h>
13925#else
13926# include <assert.h>
13927#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013928
13929#undef dlopen
13930
John Criswell7a73b802003-06-30 21:59:07 +000013931/* Override any gcc2 internal prototype to avoid an error. */
13932#ifdef __cplusplus
13933extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013934{
John Criswell7a73b802003-06-30 21:59:07 +000013935#endif
13936/* We use char because int might match the return type of a gcc2
13937 builtin and then its argument prototype would still apply. */
13938char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013939/* The GNU C library defines this for functions which it implements
13940 to always fail with ENOSYS. Some functions are actually named
13941 something starting with __ and the normal name is an alias. */
13942#if defined (__stub_dlopen) || defined (__stub___dlopen)
13943choke me
13944#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013945char (*f) () = dlopen;
13946#endif
13947#ifdef __cplusplus
13948}
John Criswell7a73b802003-06-30 21:59:07 +000013949#endif
13950
John Criswell0c38eaf2003-09-10 15:17:25 +000013951int
13952main ()
13953{
13954return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013955 ;
13956 return 0;
13957}
13958_ACEOF
13959rm -f conftest.$ac_objext conftest$ac_exeext
13960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013961 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013962 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013968 { ac_try='test -z "$ac_c_werror_flag"
13969 || test ! -s conftest.err'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13978 ac_status=$?
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
13981 ac_cv_func_dlopen=yes
13982else
13983 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013984sed 's/^/| /' conftest.$ac_ext >&5
13985
John Criswell7a73b802003-06-30 21:59:07 +000013986ac_cv_func_dlopen=no
13987fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013988rm -f conftest.err conftest.$ac_objext \
13989 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013990fi
13991echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13992echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13993if test $ac_cv_func_dlopen = yes; then
13994 lt_cv_dlopen="dlopen"
13995else
13996 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13997echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13998if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14000else
14001 ac_check_lib_save_LIBS=$LIBS
14002LIBS="-ldl $LIBS"
14003cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014004/* confdefs.h. */
14005_ACEOF
14006cat confdefs.h >>conftest.$ac_ext
14007cat >>conftest.$ac_ext <<_ACEOF
14008/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014009
14010/* Override any gcc2 internal prototype to avoid an error. */
14011#ifdef __cplusplus
14012extern "C"
14013#endif
14014/* We use char because int might match the return type of a gcc2
14015 builtin and then its argument prototype would still apply. */
14016char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014017int
14018main ()
14019{
14020dlopen ();
14021 ;
14022 return 0;
14023}
14024_ACEOF
14025rm -f conftest.$ac_objext conftest$ac_exeext
14026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014027 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014028 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014029 grep -v '^ *+' conftest.er1 >conftest.err
14030 rm -f conftest.er1
14031 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014034 { ac_try='test -z "$ac_c_werror_flag"
14035 || test ! -s conftest.err'
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; } &&
14041 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14047 ac_cv_lib_dl_dlopen=yes
14048else
14049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014050sed 's/^/| /' conftest.$ac_ext >&5
14051
John Criswell7a73b802003-06-30 21:59:07 +000014052ac_cv_lib_dl_dlopen=no
14053fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014054rm -f conftest.err conftest.$ac_objext \
14055 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014056LIBS=$ac_check_lib_save_LIBS
14057fi
14058echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14059echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14060if test $ac_cv_lib_dl_dlopen = yes; then
14061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14062else
14063 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14064echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14065if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14066 echo $ECHO_N "(cached) $ECHO_C" >&6
14067else
14068 ac_check_lib_save_LIBS=$LIBS
14069LIBS="-lsvld $LIBS"
14070cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014071/* confdefs.h. */
14072_ACEOF
14073cat confdefs.h >>conftest.$ac_ext
14074cat >>conftest.$ac_ext <<_ACEOF
14075/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014076
14077/* Override any gcc2 internal prototype to avoid an error. */
14078#ifdef __cplusplus
14079extern "C"
14080#endif
14081/* We use char because int might match the return type of a gcc2
14082 builtin and then its argument prototype would still apply. */
14083char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014084int
14085main ()
14086{
14087dlopen ();
14088 ;
14089 return 0;
14090}
14091_ACEOF
14092rm -f conftest.$ac_objext conftest$ac_exeext
14093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014094 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014095 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014101 { ac_try='test -z "$ac_c_werror_flag"
14102 || test ! -s conftest.err'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
14114 ac_cv_lib_svld_dlopen=yes
14115else
14116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014117sed 's/^/| /' conftest.$ac_ext >&5
14118
John Criswell7a73b802003-06-30 21:59:07 +000014119ac_cv_lib_svld_dlopen=no
14120fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014121rm -f conftest.err conftest.$ac_objext \
14122 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014123LIBS=$ac_check_lib_save_LIBS
14124fi
14125echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14126echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14127if test $ac_cv_lib_svld_dlopen = yes; then
14128 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14129else
14130 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14131echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14132if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134else
14135 ac_check_lib_save_LIBS=$LIBS
14136LIBS="-ldld $LIBS"
14137cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014138/* confdefs.h. */
14139_ACEOF
14140cat confdefs.h >>conftest.$ac_ext
14141cat >>conftest.$ac_ext <<_ACEOF
14142/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014143
14144/* Override any gcc2 internal prototype to avoid an error. */
14145#ifdef __cplusplus
14146extern "C"
14147#endif
14148/* We use char because int might match the return type of a gcc2
14149 builtin and then its argument prototype would still apply. */
14150char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014151int
14152main ()
14153{
14154dld_link ();
14155 ;
14156 return 0;
14157}
14158_ACEOF
14159rm -f conftest.$ac_objext conftest$ac_exeext
14160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014161 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014162 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014168 { ac_try='test -z "$ac_c_werror_flag"
14169 || test ! -s conftest.err'
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; } &&
14175 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14177 (eval $ac_try) 2>&5
14178 ac_status=$?
14179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14180 (exit $ac_status); }; }; then
14181 ac_cv_lib_dld_dld_link=yes
14182else
14183 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014184sed 's/^/| /' conftest.$ac_ext >&5
14185
John Criswell7a73b802003-06-30 21:59:07 +000014186ac_cv_lib_dld_dld_link=no
14187fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014188rm -f conftest.err conftest.$ac_objext \
14189 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014190LIBS=$ac_check_lib_save_LIBS
14191fi
14192echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14193echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14194if test $ac_cv_lib_dld_dld_link = yes; then
14195 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14196fi
14197
14198
14199fi
14200
14201
14202fi
14203
14204
14205fi
14206
14207
14208fi
14209
14210
14211fi
14212
14213 ;;
14214 esac
14215
14216 if test "x$lt_cv_dlopen" != xno; then
14217 enable_dlopen=yes
14218 else
14219 enable_dlopen=no
14220 fi
14221
14222 case $lt_cv_dlopen in
14223 dlopen)
14224 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014225 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014226
14227 save_LDFLAGS="$LDFLAGS"
14228 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14229
14230 save_LIBS="$LIBS"
14231 LIBS="$lt_cv_dlopen_libs $LIBS"
14232
14233 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14234echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14235if test "${lt_cv_dlopen_self+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14237else
14238 if test "$cross_compiling" = yes; then :
14239 lt_cv_dlopen_self=cross
14240else
John Criswell47fdd832003-07-14 16:52:07 +000014241 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014242 lt_status=$lt_dlunknown
14243 cat > conftest.$ac_ext <<EOF
Reid Spencer59473af2004-12-25 07:31:29 +000014244#line 14244 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014245#include "confdefs.h"
14246
14247#if HAVE_DLFCN_H
14248#include <dlfcn.h>
14249#endif
14250
14251#include <stdio.h>
14252
14253#ifdef RTLD_GLOBAL
14254# define LT_DLGLOBAL RTLD_GLOBAL
14255#else
14256# ifdef DL_GLOBAL
14257# define LT_DLGLOBAL DL_GLOBAL
14258# else
14259# define LT_DLGLOBAL 0
14260# endif
14261#endif
14262
14263/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14264 find out it does not work in some platform. */
14265#ifndef LT_DLLAZY_OR_NOW
14266# ifdef RTLD_LAZY
14267# define LT_DLLAZY_OR_NOW RTLD_LAZY
14268# else
14269# ifdef DL_LAZY
14270# define LT_DLLAZY_OR_NOW DL_LAZY
14271# else
14272# ifdef RTLD_NOW
14273# define LT_DLLAZY_OR_NOW RTLD_NOW
14274# else
14275# ifdef DL_NOW
14276# define LT_DLLAZY_OR_NOW DL_NOW
14277# else
14278# define LT_DLLAZY_OR_NOW 0
14279# endif
14280# endif
14281# endif
14282# endif
14283#endif
14284
14285#ifdef __cplusplus
14286extern "C" void exit (int);
14287#endif
14288
14289void fnord() { int i=42;}
14290int main ()
14291{
14292 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14293 int status = $lt_dlunknown;
14294
14295 if (self)
14296 {
14297 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14298 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14299 /* dlclose (self); */
14300 }
14301
14302 exit (status);
14303}
14304EOF
14305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14306 (eval $ac_link) 2>&5
14307 ac_status=$?
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14310 (./conftest; exit; ) 2>/dev/null
14311 lt_status=$?
14312 case x$lt_status in
14313 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14314 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14315 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14316 esac
14317 else :
14318 # compilation failed
14319 lt_cv_dlopen_self=no
14320 fi
14321fi
14322rm -fr conftest*
14323
14324
14325fi
14326echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14327echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14328
14329 if test "x$lt_cv_dlopen_self" = xyes; then
14330 LDFLAGS="$LDFLAGS $link_static_flag"
14331 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14332echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14333if test "${lt_cv_dlopen_self_static+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14335else
14336 if test "$cross_compiling" = yes; then :
14337 lt_cv_dlopen_self_static=cross
14338else
John Criswell47fdd832003-07-14 16:52:07 +000014339 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014340 lt_status=$lt_dlunknown
14341 cat > conftest.$ac_ext <<EOF
Reid Spencer59473af2004-12-25 07:31:29 +000014342#line 14342 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014343#include "confdefs.h"
14344
14345#if HAVE_DLFCN_H
14346#include <dlfcn.h>
14347#endif
14348
14349#include <stdio.h>
14350
14351#ifdef RTLD_GLOBAL
14352# define LT_DLGLOBAL RTLD_GLOBAL
14353#else
14354# ifdef DL_GLOBAL
14355# define LT_DLGLOBAL DL_GLOBAL
14356# else
14357# define LT_DLGLOBAL 0
14358# endif
14359#endif
14360
14361/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14362 find out it does not work in some platform. */
14363#ifndef LT_DLLAZY_OR_NOW
14364# ifdef RTLD_LAZY
14365# define LT_DLLAZY_OR_NOW RTLD_LAZY
14366# else
14367# ifdef DL_LAZY
14368# define LT_DLLAZY_OR_NOW DL_LAZY
14369# else
14370# ifdef RTLD_NOW
14371# define LT_DLLAZY_OR_NOW RTLD_NOW
14372# else
14373# ifdef DL_NOW
14374# define LT_DLLAZY_OR_NOW DL_NOW
14375# else
14376# define LT_DLLAZY_OR_NOW 0
14377# endif
14378# endif
14379# endif
14380# endif
14381#endif
14382
14383#ifdef __cplusplus
14384extern "C" void exit (int);
14385#endif
14386
14387void fnord() { int i=42;}
14388int main ()
14389{
14390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14391 int status = $lt_dlunknown;
14392
14393 if (self)
14394 {
14395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14396 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14397 /* dlclose (self); */
14398 }
14399
14400 exit (status);
14401}
14402EOF
14403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14404 (eval $ac_link) 2>&5
14405 ac_status=$?
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14408 (./conftest; exit; ) 2>/dev/null
14409 lt_status=$?
14410 case x$lt_status in
14411 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14412 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14413 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14414 esac
14415 else :
14416 # compilation failed
14417 lt_cv_dlopen_self_static=no
14418 fi
14419fi
14420rm -fr conftest*
14421
14422
14423fi
14424echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14425echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14426 fi
14427
14428 CPPFLAGS="$save_CPPFLAGS"
14429 LDFLAGS="$save_LDFLAGS"
14430 LIBS="$save_LIBS"
14431 ;;
14432 esac
14433
14434 case $lt_cv_dlopen_self in
14435 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14436 *) enable_dlopen_self=unknown ;;
14437 esac
14438
14439 case $lt_cv_dlopen_self_static in
14440 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14441 *) enable_dlopen_self_static=unknown ;;
14442 esac
14443fi
14444
14445
John Criswell47fdd832003-07-14 16:52:07 +000014446# Report which librarie types wil actually be built
14447echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14448echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14449echo "$as_me:$LINENO: result: $can_build_shared" >&5
14450echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014451
John Criswell47fdd832003-07-14 16:52:07 +000014452echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14453echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14454test "$can_build_shared" = "no" && enable_shared=no
14455
14456# On AIX, shared libraries and static libraries use the same namespace, and
14457# are all built from PIC.
14458case "$host_os" in
14459aix3*)
14460 test "$enable_shared" = yes && enable_static=no
14461 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014462 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014463 postinstall_cmds='$RANLIB $lib'
14464 fi
14465 ;;
14466
Reid Spencer2706f8c2004-09-19 23:53:36 +000014467aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014468 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14469 test "$enable_shared" = yes && enable_static=no
14470 fi
John Criswell7a73b802003-06-30 21:59:07 +000014471 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014472esac
14473echo "$as_me:$LINENO: result: $enable_shared" >&5
14474echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014475
John Criswell47fdd832003-07-14 16:52:07 +000014476echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14477echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14478# Make sure either enable_shared or enable_static is yes.
14479test "$enable_shared" = yes || enable_static=yes
14480echo "$as_me:$LINENO: result: $enable_static" >&5
14481echo "${ECHO_T}$enable_static" >&6
14482
14483# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014484# libtool distribution, otherwise you forgot to ship ltmain.sh
14485# with your package, and you will get complaints that there are
14486# no rules to generate ltmain.sh.
14487if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014488 # See if we are running on zsh, and set the options which allow our commands through
14489 # without removal of \ escapes.
14490 if test -n "${ZSH_VERSION+set}" ; then
14491 setopt NO_GLOB_SUBST
14492 fi
John Criswell7a73b802003-06-30 21:59:07 +000014493 # Now quote all the things that may contain metacharacters while being
14494 # careful not to overquote the AC_SUBSTed values. We take copies of the
14495 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014496 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14497 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014498 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14499 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14500 deplibs_check_method reload_flag reload_cmds need_locks \
14501 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14502 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014503 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014504 old_postinstall_cmds old_postuninstall_cmds \
14505 compiler \
14506 CC \
14507 LD \
14508 lt_prog_compiler_wl \
14509 lt_prog_compiler_pic \
14510 lt_prog_compiler_static \
14511 lt_prog_compiler_no_builtin_flag \
14512 export_dynamic_flag_spec \
14513 thread_safe_flag_spec \
14514 whole_archive_flag_spec \
14515 enable_shared_with_static_runtimes \
14516 old_archive_cmds \
14517 old_archive_from_new_cmds \
14518 predep_objects \
14519 postdep_objects \
14520 predeps \
14521 postdeps \
14522 compiler_lib_search_path \
14523 archive_cmds \
14524 archive_expsym_cmds \
14525 postinstall_cmds \
14526 postuninstall_cmds \
14527 old_archive_from_expsyms_cmds \
14528 allow_undefined_flag \
14529 no_undefined_flag \
14530 export_symbols_cmds \
14531 hardcode_libdir_flag_spec \
14532 hardcode_libdir_flag_spec_ld \
14533 hardcode_libdir_separator \
14534 hardcode_automatic \
14535 module_cmds \
14536 module_expsym_cmds \
14537 lt_cv_prog_compiler_c_o \
14538 exclude_expsyms \
14539 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014540
14541 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014542 old_archive_cmds | \
14543 old_archive_from_new_cmds | \
14544 archive_cmds | \
14545 archive_expsym_cmds | \
14546 module_cmds | \
14547 module_expsym_cmds | \
14548 old_archive_from_expsyms_cmds | \
14549 export_symbols_cmds | \
14550 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014551 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014552 old_postinstall_cmds | old_postuninstall_cmds | \
14553 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014554 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014555 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 +000014556 ;;
14557 *)
14558 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14559 ;;
14560 esac
14561 done
14562
John Criswell47fdd832003-07-14 16:52:07 +000014563 case $lt_echo in
14564 *'\$0 --fallback-echo"')
14565 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14566 ;;
14567 esac
14568
14569cfgfile="${ofile}T"
14570 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14571 $rm -f "$cfgfile"
14572 { echo "$as_me:$LINENO: creating $ofile" >&5
14573echo "$as_me: creating $ofile" >&6;}
14574
14575 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014576#! $SHELL
14577
John Criswell47fdd832003-07-14 16:52:07 +000014578# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014579# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14580# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14581#
John Criswell47fdd832003-07-14 16:52:07 +000014582# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14583# Free Software Foundation, Inc.
14584#
14585# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014586# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14587#
14588# This program is free software; you can redistribute it and/or modify
14589# it under the terms of the GNU General Public License as published by
14590# the Free Software Foundation; either version 2 of the License, or
14591# (at your option) any later version.
14592#
14593# This program is distributed in the hope that it will be useful, but
14594# WITHOUT ANY WARRANTY; without even the implied warranty of
14595# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14596# General Public License for more details.
14597#
14598# You should have received a copy of the GNU General Public License
14599# along with this program; if not, write to the Free Software
14600# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14601#
14602# As a special exception to the GNU General Public License, if you
14603# distribute this file as part of a program that contains a
14604# configuration script generated by Autoconf, you may include it under
14605# the same distribution terms that you use for the rest of that program.
14606
John Criswell47fdd832003-07-14 16:52:07 +000014607# A sed program that does not truncate output.
14608SED=$lt_SED
14609
John Criswell7a73b802003-06-30 21:59:07 +000014610# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014611Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014612
14613# The HP-UX ksh and POSIX shell print the target directory to stdout
14614# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014615(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014616
John Criswell47fdd832003-07-14 16:52:07 +000014617# The names of the tagged configurations supported by this script.
14618available_tags=
14619
John Criswell7a73b802003-06-30 21:59:07 +000014620# ### BEGIN LIBTOOL CONFIG
14621
14622# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14623
14624# Shell to use when invoking shell scripts.
14625SHELL=$lt_SHELL
14626
14627# Whether or not to build shared libraries.
14628build_libtool_libs=$enable_shared
14629
14630# Whether or not to build static libraries.
14631build_old_libs=$enable_static
14632
14633# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014634build_libtool_need_lc=$archive_cmds_need_lc
14635
14636# Whether or not to disallow shared libs when runtime libs are static
14637allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014638
14639# Whether or not to optimize for fast installation.
14640fast_install=$enable_fast_install
14641
14642# The host system.
14643host_alias=$host_alias
14644host=$host
14645
14646# An echo program that does not interpret backslashes.
14647echo=$lt_echo
14648
14649# The archiver.
14650AR=$lt_AR
14651AR_FLAGS=$lt_AR_FLAGS
14652
John Criswell47fdd832003-07-14 16:52:07 +000014653# A C compiler.
14654LTCC=$lt_LTCC
14655
14656# A language-specific compiler.
14657CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014658
14659# Is the compiler the GNU C compiler?
14660with_gcc=$GCC
14661
John Criswell47fdd832003-07-14 16:52:07 +000014662# An ERE matcher.
14663EGREP=$lt_EGREP
14664
John Criswell7a73b802003-06-30 21:59:07 +000014665# The linker used to build libraries.
14666LD=$lt_LD
14667
14668# Whether we need hard or soft links.
14669LN_S=$lt_LN_S
14670
14671# A BSD-compatible nm program.
14672NM=$lt_NM
14673
14674# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014675STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014676
14677# Used to examine libraries when file_magic_cmd begins "file"
14678MAGIC_CMD=$MAGIC_CMD
14679
14680# Used on cygwin: DLL creation program.
14681DLLTOOL="$DLLTOOL"
14682
14683# Used on cygwin: object dumper.
14684OBJDUMP="$OBJDUMP"
14685
14686# Used on cygwin: assembler.
14687AS="$AS"
14688
14689# The name of the directory that contains temporary libtool files.
14690objdir=$objdir
14691
14692# How to create reloadable object files.
14693reload_flag=$lt_reload_flag
14694reload_cmds=$lt_reload_cmds
14695
14696# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014697wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014698
14699# Object file suffix (normally "o").
14700objext="$ac_objext"
14701
14702# Old archive suffix (normally "a").
14703libext="$libext"
14704
John Criswell47fdd832003-07-14 16:52:07 +000014705# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014706shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014707
John Criswell7a73b802003-06-30 21:59:07 +000014708# Executable file suffix (normally "").
14709exeext="$exeext"
14710
14711# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014712pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014713pic_mode=$pic_mode
14714
John Criswell47fdd832003-07-14 16:52:07 +000014715# What is the maximum length of a command?
14716max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014717
John Criswell47fdd832003-07-14 16:52:07 +000014718# Does compiler simultaneously support -c and -o options?
14719compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014720
14721# Must we lock files when doing compilation ?
14722need_locks=$lt_need_locks
14723
14724# Do we need the lib prefix for modules?
14725need_lib_prefix=$need_lib_prefix
14726
14727# Do we need a version for libraries?
14728need_version=$need_version
14729
14730# Whether dlopen is supported.
14731dlopen_support=$enable_dlopen
14732
14733# Whether dlopen of programs is supported.
14734dlopen_self=$enable_dlopen_self
14735
14736# Whether dlopen of statically linked programs is supported.
14737dlopen_self_static=$enable_dlopen_self_static
14738
14739# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014740link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014741
14742# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014743no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014744
14745# Compiler flag to allow reflexive dlopens.
14746export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14747
14748# Compiler flag to generate shared objects directly from archives.
14749whole_archive_flag_spec=$lt_whole_archive_flag_spec
14750
14751# Compiler flag to generate thread-safe objects.
14752thread_safe_flag_spec=$lt_thread_safe_flag_spec
14753
14754# Library versioning type.
14755version_type=$version_type
14756
14757# Format of library name prefix.
14758libname_spec=$lt_libname_spec
14759
14760# List of archive names. First name is the real one, the rest are links.
14761# The last name is the one that the linker finds with -lNAME.
14762library_names_spec=$lt_library_names_spec
14763
14764# The coded name of the library, if different from the real name.
14765soname_spec=$lt_soname_spec
14766
14767# Commands used to build and install an old-style archive.
14768RANLIB=$lt_RANLIB
14769old_archive_cmds=$lt_old_archive_cmds
14770old_postinstall_cmds=$lt_old_postinstall_cmds
14771old_postuninstall_cmds=$lt_old_postuninstall_cmds
14772
14773# Create an old-style archive from a shared archive.
14774old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14775
14776# Create a temporary old-style archive to link instead of a shared archive.
14777old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14778
14779# Commands used to build and install a shared archive.
14780archive_cmds=$lt_archive_cmds
14781archive_expsym_cmds=$lt_archive_expsym_cmds
14782postinstall_cmds=$lt_postinstall_cmds
14783postuninstall_cmds=$lt_postuninstall_cmds
14784
John Criswell47fdd832003-07-14 16:52:07 +000014785# Commands used to build a loadable module (assumed same as above if empty)
14786module_cmds=$lt_module_cmds
14787module_expsym_cmds=$lt_module_expsym_cmds
14788
John Criswell7a73b802003-06-30 21:59:07 +000014789# Commands to strip libraries.
14790old_striplib=$lt_old_striplib
14791striplib=$lt_striplib
14792
John Criswell47fdd832003-07-14 16:52:07 +000014793# Dependencies to place before the objects being linked to create a
14794# shared library.
14795predep_objects=$lt_predep_objects
14796
14797# Dependencies to place after the objects being linked to create a
14798# shared library.
14799postdep_objects=$lt_postdep_objects
14800
14801# Dependencies to place before the objects being linked to create a
14802# shared library.
14803predeps=$lt_predeps
14804
14805# Dependencies to place after the objects being linked to create a
14806# shared library.
14807postdeps=$lt_postdeps
14808
14809# The library search path used internally by the compiler when linking
14810# a shared library.
14811compiler_lib_search_path=$lt_compiler_lib_search_path
14812
John Criswell7a73b802003-06-30 21:59:07 +000014813# Method to check whether dependent libraries are shared objects.
14814deplibs_check_method=$lt_deplibs_check_method
14815
14816# Command to use when deplibs_check_method == file_magic.
14817file_magic_cmd=$lt_file_magic_cmd
14818
14819# Flag that allows shared libraries with undefined symbols to be built.
14820allow_undefined_flag=$lt_allow_undefined_flag
14821
14822# Flag that forces no undefined symbols.
14823no_undefined_flag=$lt_no_undefined_flag
14824
14825# Commands used to finish a libtool library installation in a directory.
14826finish_cmds=$lt_finish_cmds
14827
14828# Same as above, but a single script fragment to be evaled but not shown.
14829finish_eval=$lt_finish_eval
14830
14831# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014832global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014833
14834# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014835global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014836
14837# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014838global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014839
14840# This is the shared library runtime path variable.
14841runpath_var=$runpath_var
14842
14843# This is the shared library path variable.
14844shlibpath_var=$shlibpath_var
14845
14846# Is shlibpath searched before the hard-coded library search path?
14847shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14848
14849# How to hardcode a shared library path into an executable.
14850hardcode_action=$hardcode_action
14851
14852# Whether we should hardcode library paths into libraries.
14853hardcode_into_libs=$hardcode_into_libs
14854
14855# Flag to hardcode \$libdir into a binary during linking.
14856# This must work even if \$libdir does not exist.
14857hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14858
John Criswell47fdd832003-07-14 16:52:07 +000014859# If ld is used when linking, flag to hardcode \$libdir into
14860# a binary during linking. This must work even if \$libdir does
14861# not exist.
14862hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14863
John Criswell7a73b802003-06-30 21:59:07 +000014864# Whether we need a single -rpath flag with a separated argument.
14865hardcode_libdir_separator=$lt_hardcode_libdir_separator
14866
John Criswell47fdd832003-07-14 16:52:07 +000014867# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014868# resulting binary.
14869hardcode_direct=$hardcode_direct
14870
14871# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14872# resulting binary.
14873hardcode_minus_L=$hardcode_minus_L
14874
14875# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14876# the resulting binary.
14877hardcode_shlibpath_var=$hardcode_shlibpath_var
14878
John Criswell47fdd832003-07-14 16:52:07 +000014879# Set to yes if building a shared library automatically hardcodes DIR into the library
14880# and all subsequent libraries and executables linked against it.
14881hardcode_automatic=$hardcode_automatic
14882
John Criswell7a73b802003-06-30 21:59:07 +000014883# Variables whose values should be saved in libtool wrapper scripts and
14884# restored at relink time.
14885variables_saved_for_relink="$variables_saved_for_relink"
14886
14887# Whether libtool must link a program against all its dependency libraries.
14888link_all_deplibs=$link_all_deplibs
14889
14890# Compile-time system search path for libraries
14891sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14892
14893# Run-time system search path for libraries
14894sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14895
14896# Fix the shell variable \$srcfile for the compiler.
14897fix_srcfile_path="$fix_srcfile_path"
14898
14899# Set to yes if exported symbols are required.
14900always_export_symbols=$always_export_symbols
14901
14902# The commands to list exported symbols.
14903export_symbols_cmds=$lt_export_symbols_cmds
14904
14905# The commands to extract the exported symbol list from a shared archive.
14906extract_expsyms_cmds=$lt_extract_expsyms_cmds
14907
14908# Symbols that should not be listed in the preloaded symbols.
14909exclude_expsyms=$lt_exclude_expsyms
14910
14911# Symbols that must always be exported.
14912include_expsyms=$lt_include_expsyms
14913
14914# ### END LIBTOOL CONFIG
14915
14916__EOF__
14917
John Criswell47fdd832003-07-14 16:52:07 +000014918
John Criswell7a73b802003-06-30 21:59:07 +000014919 case $host_os in
14920 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014921 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014922
14923# AIX sometimes has problems with the GCC collect2 program. For some
14924# reason, if we set the COLLECT_NAMES environment variable, the problems
14925# vanish in a puff of smoke.
14926if test "X${COLLECT_NAMES+set}" != Xset; then
14927 COLLECT_NAMES=
14928 export COLLECT_NAMES
14929fi
14930EOF
14931 ;;
14932 esac
14933
John Criswell7a73b802003-06-30 21:59:07 +000014934 # We use sed instead of cat because bash on DJGPP gets confused if
14935 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14936 # text mode, it properly converts lines to CR/LF. This bash problem
14937 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014938 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014939
John Criswell47fdd832003-07-14 16:52:07 +000014940 mv -f "$cfgfile" "$ofile" || \
14941 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014942 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014943
14944else
14945 # If there is no Makefile yet, we rely on a make rule to execute
14946 # `config.status --recheck' to rerun these tests and create the
14947 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014948 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14949 if test -f "$ltmain_in"; then
14950 test -f Makefile && make "$ltmain"
14951 fi
John Criswell7a73b802003-06-30 21:59:07 +000014952fi
John Criswell7a73b802003-06-30 21:59:07 +000014953
14954
John Criswell47fdd832003-07-14 16:52:07 +000014955ac_ext=c
14956ac_cpp='$CPP $CPPFLAGS'
14957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14959ac_compiler_gnu=$ac_cv_c_compiler_gnu
14960
14961CC="$lt_save_CC"
14962
14963
14964# Check whether --with-tags or --without-tags was given.
14965if test "${with_tags+set}" = set; then
14966 withval="$with_tags"
14967 tagnames="$withval"
14968fi;
14969
14970if test -f "$ltmain" && test -n "$tagnames"; then
14971 if test ! -f "${ofile}"; then
14972 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14973echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14974 fi
14975
14976 if test -z "$LTCC"; then
14977 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14978 if test -z "$LTCC"; then
14979 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14980echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14981 else
14982 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14983echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14984 fi
14985 fi
14986
14987 # Extract list of available tagged configurations in $ofile.
14988 # Note that this assumes the entire list is on one line.
14989 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14990
14991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14992 for tagname in $tagnames; do
14993 IFS="$lt_save_ifs"
14994 # Check whether tagname contains only valid characters
14995 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14996 "") ;;
14997 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14998echo "$as_me: error: invalid tag name: $tagname" >&2;}
14999 { (exit 1); exit 1; }; }
15000 ;;
15001 esac
15002
15003 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15004 then
15005 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15006echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15007 { (exit 1); exit 1; }; }
15008 fi
15009
15010 # Update the list of available tags.
15011 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015012 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015013
15014 case $tagname in
15015 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015016 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15017 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15018 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015019 ac_ext=cc
15020ac_cpp='$CXXCPP $CPPFLAGS'
15021ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15022ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15023ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15024
15025
15026
15027
15028archive_cmds_need_lc_CXX=no
15029allow_undefined_flag_CXX=
15030always_export_symbols_CXX=no
15031archive_expsym_cmds_CXX=
15032export_dynamic_flag_spec_CXX=
15033hardcode_direct_CXX=no
15034hardcode_libdir_flag_spec_CXX=
15035hardcode_libdir_flag_spec_ld_CXX=
15036hardcode_libdir_separator_CXX=
15037hardcode_minus_L_CXX=no
15038hardcode_automatic_CXX=no
15039module_cmds_CXX=
15040module_expsym_cmds_CXX=
15041link_all_deplibs_CXX=unknown
15042old_archive_cmds_CXX=$old_archive_cmds
15043no_undefined_flag_CXX=
15044whole_archive_flag_spec_CXX=
15045enable_shared_with_static_runtimes_CXX=no
15046
15047# Dependencies to place before and after the object being linked:
15048predep_objects_CXX=
15049postdep_objects_CXX=
15050predeps_CXX=
15051postdeps_CXX=
15052compiler_lib_search_path_CXX=
15053
15054# Source file extension for C++ test sources.
15055ac_ext=cc
15056
15057# Object file extension for compiled C++ test sources.
15058objext=o
15059objext_CXX=$objext
15060
15061# Code to be used in simple compile tests
15062lt_simple_compile_test_code="int some_variable = 0;\n"
15063
15064# Code to be used in simple link tests
15065lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15066
15067# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15068
15069# If no C compiler was specified, use CC.
15070LTCC=${LTCC-"$CC"}
15071
15072# Allow CC to be a program name with arguments.
15073compiler=$CC
15074
15075
15076# Allow CC to be a program name with arguments.
15077lt_save_CC=$CC
15078lt_save_LD=$LD
15079lt_save_GCC=$GCC
15080GCC=$GXX
15081lt_save_with_gnu_ld=$with_gnu_ld
15082lt_save_path_LD=$lt_cv_path_LD
15083if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15084 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15085else
15086 unset lt_cv_prog_gnu_ld
15087fi
15088if test -n "${lt_cv_path_LDCXX+set}"; then
15089 lt_cv_path_LD=$lt_cv_path_LDCXX
15090else
15091 unset lt_cv_path_LD
15092fi
15093test -z "${LDCXX+set}" || LD=$LDCXX
15094CC=${CXX-"c++"}
15095compiler=$CC
15096compiler_CXX=$CC
15097cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15098
15099# We don't want -fno-exception wen compiling C++ code, so set the
15100# no_builtin_flag separately
15101if test "$GXX" = yes; then
15102 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15103else
15104 lt_prog_compiler_no_builtin_flag_CXX=
15105fi
15106
15107if test "$GXX" = yes; then
15108 # Set up default GNU C++ configuration
15109
15110
15111# Check whether --with-gnu-ld or --without-gnu-ld was given.
15112if test "${with_gnu_ld+set}" = set; then
15113 withval="$with_gnu_ld"
15114 test "$withval" = no || with_gnu_ld=yes
15115else
15116 with_gnu_ld=no
15117fi;
15118ac_prog=ld
15119if test "$GCC" = yes; then
15120 # Check if gcc -print-prog-name=ld gives a path.
15121 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15122echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15123 case $host in
15124 *-*-mingw*)
15125 # gcc leaves a trailing carriage return which upsets mingw
15126 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15127 *)
15128 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15129 esac
15130 case $ac_prog in
15131 # Accept absolute paths.
15132 [\\/]* | ?:[\\/]*)
15133 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015134 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015135 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15136 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15137 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15138 done
15139 test -z "$LD" && LD="$ac_prog"
15140 ;;
15141 "")
15142 # If it fails, then pretend we aren't using GCC.
15143 ac_prog=ld
15144 ;;
15145 *)
15146 # If it is relative, then search for the first ld in PATH.
15147 with_gnu_ld=unknown
15148 ;;
15149 esac
15150elif test "$with_gnu_ld" = yes; then
15151 echo "$as_me:$LINENO: checking for GNU ld" >&5
15152echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15153else
15154 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15155echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15156fi
15157if test "${lt_cv_path_LD+set}" = set; then
15158 echo $ECHO_N "(cached) $ECHO_C" >&6
15159else
15160 if test -z "$LD"; then
15161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15162 for ac_dir in $PATH; do
15163 IFS="$lt_save_ifs"
15164 test -z "$ac_dir" && ac_dir=.
15165 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15166 lt_cv_path_LD="$ac_dir/$ac_prog"
15167 # Check to see if the program is GNU ld. I'd rather use --version,
15168 # but apparently some GNU ld's only accept -v.
15169 # Break only if it was the GNU/non-GNU ld that we prefer.
15170 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15171 *GNU* | *'with BFD'*)
15172 test "$with_gnu_ld" != no && break
15173 ;;
15174 *)
15175 test "$with_gnu_ld" != yes && break
15176 ;;
15177 esac
15178 fi
15179 done
15180 IFS="$lt_save_ifs"
15181else
15182 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15183fi
15184fi
15185
15186LD="$lt_cv_path_LD"
15187if test -n "$LD"; then
15188 echo "$as_me:$LINENO: result: $LD" >&5
15189echo "${ECHO_T}$LD" >&6
15190else
15191 echo "$as_me:$LINENO: result: no" >&5
15192echo "${ECHO_T}no" >&6
15193fi
15194test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15195echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15196 { (exit 1); exit 1; }; }
15197echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15198echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15199if test "${lt_cv_prog_gnu_ld+set}" = set; then
15200 echo $ECHO_N "(cached) $ECHO_C" >&6
15201else
15202 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015203case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015204*GNU* | *'with BFD'*)
15205 lt_cv_prog_gnu_ld=yes
15206 ;;
15207*)
15208 lt_cv_prog_gnu_ld=no
15209 ;;
15210esac
15211fi
15212echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15213echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15214with_gnu_ld=$lt_cv_prog_gnu_ld
15215
15216
15217
15218 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15219 # archiving commands below assume that GNU ld is being used.
15220 if test "$with_gnu_ld" = yes; then
15221 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15222 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'
15223
15224 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15225 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15226
15227 # If archive_cmds runs LD, not CC, wlarc should be empty
15228 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15229 # investigate it a little bit more. (MM)
15230 wlarc='${wl}'
15231
15232 # ancient GNU ld didn't support --whole-archive et. al.
15233 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15234 grep 'no-whole-archive' > /dev/null; then
15235 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15236 else
15237 whole_archive_flag_spec_CXX=
15238 fi
15239 else
15240 with_gnu_ld=no
15241 wlarc=
15242
15243 # A generic and very simple default shared library creation
15244 # command for GNU C++ for the case where it uses the native
15245 # linker, instead of GNU ld. If possible, this setting should
15246 # overridden to take advantage of the native linker features on
15247 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015248 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015249 fi
15250
15251 # Commands to make compiler produce verbose output that lists
15252 # what "hidden" libraries, object files and flags are used when
15253 # linking a shared library.
15254 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15255
15256else
15257 GXX=no
15258 with_gnu_ld=no
15259 wlarc=
15260fi
15261
15262# PORTME: fill in a description of your system's C++ link characteristics
15263echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15264echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15265ld_shlibs_CXX=yes
15266case $host_os in
15267 aix3*)
15268 # FIXME: insert proper C++ library support
15269 ld_shlibs_CXX=no
15270 ;;
15271 aix4* | aix5*)
15272 if test "$host_cpu" = ia64; then
15273 # On IA64, the linker does run time linking by default, so we don't
15274 # have to do anything special.
15275 aix_use_runtimelinking=no
15276 exp_sym_flag='-Bexport'
15277 no_entry_flag=""
15278 else
15279 aix_use_runtimelinking=no
15280
15281 # Test if we are trying to use run time linking or normal
15282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15283 # need to do runtime linking.
15284 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15285 for ld_flag in $LDFLAGS; do
15286 case $ld_flag in
15287 *-brtl*)
15288 aix_use_runtimelinking=yes
15289 break
15290 ;;
15291 esac
15292 done
15293 esac
15294
15295 exp_sym_flag='-bexport'
15296 no_entry_flag='-bnoentry'
15297 fi
15298
15299 # When large executables or shared objects are built, AIX ld can
15300 # have problems creating the table of contents. If linking a library
15301 # or program results in "error TOC overflow" add -mminimal-toc to
15302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15304
15305 archive_cmds_CXX=''
15306 hardcode_direct_CXX=yes
15307 hardcode_libdir_separator_CXX=':'
15308 link_all_deplibs_CXX=yes
15309
15310 if test "$GXX" = yes; then
15311 case $host_os in aix4.012|aix4.012.*)
15312 # We only want to do this on AIX 4.2 and lower, the check
15313 # below for broken collect2 doesn't work under 4.3+
15314 collect2name=`${CC} -print-prog-name=collect2`
15315 if test -f "$collect2name" && \
15316 strings "$collect2name" | grep resolve_lib_name >/dev/null
15317 then
15318 # We have reworked collect2
15319 hardcode_direct_CXX=yes
15320 else
15321 # We have old collect2
15322 hardcode_direct_CXX=unsupported
15323 # It fails to find uninstalled libraries when the uninstalled
15324 # path is not listed in the libpath. Setting hardcode_minus_L
15325 # to unsupported forces relinking
15326 hardcode_minus_L_CXX=yes
15327 hardcode_libdir_flag_spec_CXX='-L$libdir'
15328 hardcode_libdir_separator_CXX=
15329 fi
15330 esac
15331 shared_flag='-shared'
15332 else
15333 # not using gcc
15334 if test "$host_cpu" = ia64; then
15335 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15336 # chokes on -Wl,-G. The following line is correct:
15337 shared_flag='-G'
15338 else
15339 if test "$aix_use_runtimelinking" = yes; then
15340 shared_flag='${wl}-G'
15341 else
15342 shared_flag='${wl}-bM:SRE'
15343 fi
15344 fi
15345 fi
15346
15347 # It seems that -bexpall does not export symbols beginning with
15348 # underscore (_), so it is better to generate a list of symbols to export.
15349 always_export_symbols_CXX=yes
15350 if test "$aix_use_runtimelinking" = yes; then
15351 # Warning - without using the other runtime loading flags (-brtl),
15352 # -berok will link without error, but may produce a broken library.
15353 allow_undefined_flag_CXX='-berok'
15354 # Determine the default libpath from the value encoded in an empty executable.
15355 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015356/* confdefs.h. */
15357_ACEOF
15358cat confdefs.h >>conftest.$ac_ext
15359cat >>conftest.$ac_ext <<_ACEOF
15360/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015361
John Criswell47fdd832003-07-14 16:52:07 +000015362int
15363main ()
15364{
15365
15366 ;
15367 return 0;
15368}
15369_ACEOF
15370rm -f conftest.$ac_objext conftest$ac_exeext
15371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015372 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015374 grep -v '^ *+' conftest.er1 >conftest.err
15375 rm -f conftest.er1
15376 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015379 { ac_try='test -z "$ac_cxx_werror_flag"
15380 || test ! -s conftest.err'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; } &&
15386 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392
15393aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15394}'`
15395# Check for a 64-bit object if we didn't find anything.
15396if 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; }
15397}'`; fi
15398else
15399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015400sed 's/^/| /' conftest.$ac_ext >&5
15401
John Criswell47fdd832003-07-14 16:52:07 +000015402fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015403rm -f conftest.err conftest.$ac_objext \
15404 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015405if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15406
15407 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15408
15409 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"
15410 else
15411 if test "$host_cpu" = ia64; then
15412 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15413 allow_undefined_flag_CXX="-z nodefs"
15414 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"
15415 else
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 # Warning - without using the other run time loading flags,
15471 # -berok will link without error, but may produce a broken library.
15472 no_undefined_flag_CXX=' ${wl}-bernotok'
15473 allow_undefined_flag_CXX=' ${wl}-berok'
15474 # -bexpall does not export symbols beginning with underscore (_)
15475 always_export_symbols_CXX=yes
15476 # Exported symbols can be pulled into shared objects from archives
15477 whole_archive_flag_spec_CXX=' '
15478 archive_cmds_need_lc_CXX=yes
15479 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015480 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 +000015481 fi
15482 fi
15483 ;;
15484 chorus*)
15485 case $cc_basename in
15486 *)
15487 # FIXME: insert proper C++ library support
15488 ld_shlibs_CXX=no
15489 ;;
15490 esac
15491 ;;
15492
Reid Spencer2706f8c2004-09-19 23:53:36 +000015493
John Criswell47fdd832003-07-14 16:52:07 +000015494 cygwin* | mingw* | pw32*)
15495 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15496 # as there is no search path for DLLs.
15497 hardcode_libdir_flag_spec_CXX='-L$libdir'
15498 allow_undefined_flag_CXX=unsupported
15499 always_export_symbols_CXX=no
15500 enable_shared_with_static_runtimes_CXX=yes
15501
15502 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15503 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'
15504 # If the export-symbols file already is a .def file (1st line
15505 # is EXPORTS), use it as is; otherwise, prepend...
15506 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15507 cp $export_symbols $output_objdir/$soname.def;
15508 else
15509 echo EXPORTS > $output_objdir/$soname.def;
15510 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015511 fi~
15512 $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 +000015513 else
15514 ld_shlibs_CXX=no
15515 fi
15516 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015517 darwin* | rhapsody*)
15518 case "$host_os" in
15519 rhapsody* | darwin1.[012])
15520 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15521 ;;
15522 *) # Darwin 1.3 on
15523 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15524 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15525 else
15526 case ${MACOSX_DEPLOYMENT_TARGET} in
15527 10.[012])
15528 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15529 ;;
15530 10.*)
15531 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15532 ;;
15533 esac
15534 fi
15535 ;;
15536 esac
15537 archive_cmds_need_lc_CXX=no
15538 hardcode_direct_CXX=no
15539 hardcode_automatic_CXX=yes
15540 hardcode_shlibpath_var_CXX=unsupported
15541 whole_archive_flag_spec_CXX=''
15542 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015543
Reid Spencer2706f8c2004-09-19 23:53:36 +000015544 if test "$GXX" = yes ; then
15545 lt_int_apple_cc_single_mod=no
15546 output_verbose_link_cmd='echo'
15547 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15548 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015549 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015550 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015551 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 +000015552 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015553 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 +000015554 fi
15555 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15556 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15557 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015558 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 +000015559 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015560 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 +000015561 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015562 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 +000015563 else
15564 case "$cc_basename" in
15565 xlc*)
15566 output_verbose_link_cmd='echo'
15567 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'
15568 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15569 # 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 +000015570 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}'
15571 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 +000015572 ;;
15573 *)
15574 ld_shlibs_CXX=no
15575 ;;
15576 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015577 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015578 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015579
15580 dgux*)
15581 case $cc_basename in
15582 ec++)
15583 # FIXME: insert proper C++ library support
15584 ld_shlibs_CXX=no
15585 ;;
15586 ghcx)
15587 # Green Hills C++ Compiler
15588 # FIXME: insert proper C++ library support
15589 ld_shlibs_CXX=no
15590 ;;
15591 *)
15592 # FIXME: insert proper C++ library support
15593 ld_shlibs_CXX=no
15594 ;;
15595 esac
15596 ;;
15597 freebsd12*)
15598 # C++ shared libraries reported to be fairly broken before switch to ELF
15599 ld_shlibs_CXX=no
15600 ;;
15601 freebsd-elf*)
15602 archive_cmds_need_lc_CXX=no
15603 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015604 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015605 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15606 # conventions
15607 ld_shlibs_CXX=yes
15608 ;;
15609 gnu*)
15610 ;;
15611 hpux9*)
15612 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15613 hardcode_libdir_separator_CXX=:
15614 export_dynamic_flag_spec_CXX='${wl}-E'
15615 hardcode_direct_CXX=yes
15616 hardcode_minus_L_CXX=yes # Not in the search PATH,
15617 # but as the default
15618 # location of the library.
15619
15620 case $cc_basename in
15621 CC)
15622 # FIXME: insert proper C++ library support
15623 ld_shlibs_CXX=no
15624 ;;
15625 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015626 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 +000015627 # Commands to make compiler produce verbose output that lists
15628 # what "hidden" libraries, object files and flags are used when
15629 # linking a shared library.
15630 #
15631 # There doesn't appear to be a way to prevent this compiler from
15632 # explicitly linking system object files so we need to strip them
15633 # from the output so that they don't get included in the library
15634 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015635 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 +000015636 ;;
15637 *)
15638 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015639 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 +000015640 else
15641 # FIXME: insert proper C++ library support
15642 ld_shlibs_CXX=no
15643 fi
15644 ;;
15645 esac
15646 ;;
15647 hpux10*|hpux11*)
15648 if test $with_gnu_ld = no; then
15649 case "$host_cpu" in
15650 hppa*64*)
15651 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15652 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15653 hardcode_libdir_separator_CXX=:
15654 ;;
15655 ia64*)
15656 hardcode_libdir_flag_spec_CXX='-L$libdir'
15657 ;;
15658 *)
15659 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15660 hardcode_libdir_separator_CXX=:
15661 export_dynamic_flag_spec_CXX='${wl}-E'
15662 ;;
15663 esac
15664 fi
15665 case "$host_cpu" in
15666 hppa*64*)
15667 hardcode_direct_CXX=no
15668 hardcode_shlibpath_var_CXX=no
15669 ;;
15670 ia64*)
15671 hardcode_direct_CXX=no
15672 hardcode_shlibpath_var_CXX=no
15673 hardcode_minus_L_CXX=yes # Not in the search PATH,
15674 # but as the default
15675 # location of the library.
15676 ;;
15677 *)
15678 hardcode_direct_CXX=yes
15679 hardcode_minus_L_CXX=yes # Not in the search PATH,
15680 # but as the default
15681 # location of the library.
15682 ;;
15683 esac
15684
15685 case $cc_basename in
15686 CC)
15687 # FIXME: insert proper C++ library support
15688 ld_shlibs_CXX=no
15689 ;;
15690 aCC)
15691 case "$host_cpu" in
15692 hppa*64*|ia64*)
15693 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15694 ;;
15695 *)
15696 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15697 ;;
15698 esac
15699 # Commands to make compiler produce verbose output that lists
15700 # what "hidden" libraries, object files and flags are used when
15701 # linking a shared library.
15702 #
15703 # There doesn't appear to be a way to prevent this compiler from
15704 # explicitly linking system object files so we need to strip them
15705 # from the output so that they don't get included in the library
15706 # dependencies.
15707 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'
15708 ;;
15709 *)
15710 if test "$GXX" = yes; then
15711 if test $with_gnu_ld = no; then
15712 case "$host_cpu" in
15713 ia64*|hppa*64*)
15714 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15715 ;;
15716 *)
15717 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'
15718 ;;
15719 esac
15720 fi
15721 else
15722 # FIXME: insert proper C++ library support
15723 ld_shlibs_CXX=no
15724 fi
15725 ;;
15726 esac
15727 ;;
15728 irix5* | irix6*)
15729 case $cc_basename in
15730 CC)
15731 # SGI C++
15732 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'
15733
15734 # Archives containing C++ object files must be created using
15735 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15736 # necessary to make sure instantiated templates are included
15737 # in the archive.
15738 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15739 ;;
15740 *)
15741 if test "$GXX" = yes; then
15742 if test "$with_gnu_ld" = no; then
15743 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'
15744 else
15745 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'
15746 fi
15747 fi
15748 link_all_deplibs_CXX=yes
15749 ;;
15750 esac
15751 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15752 hardcode_libdir_separator_CXX=:
15753 ;;
15754 linux*)
15755 case $cc_basename in
15756 KCC)
15757 # Kuck and Associates, Inc. (KAI) C++ Compiler
15758
15759 # KCC will only create a shared library if the output file
15760 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15761 # to its proper name (with version) after linking.
15762 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'
15763 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'
15764 # Commands to make compiler produce verbose output that lists
15765 # what "hidden" libraries, object files and flags are used when
15766 # linking a shared library.
15767 #
15768 # There doesn't appear to be a way to prevent this compiler from
15769 # explicitly linking system object files so we need to strip them
15770 # from the output so that they don't get included in the library
15771 # dependencies.
15772 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'
15773
15774 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15775 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15776
15777 # Archives containing C++ object files must be created using
15778 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15779 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15780 ;;
15781 icpc)
15782 # Intel C++
15783 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015784 # version 8.0 and above of icpc choke on multiply defined symbols
15785 # if we add $predep_objects and $postdep_objects, however 7.1 and
15786 # earlier do not add the objects themselves.
15787 case `$CC -V 2>&1` in
15788 *"Version 7."*)
15789 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15790 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'
15791 ;;
15792 *) # Version 8.0 or newer
15793 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15794 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15795 ;;
15796 esac
John Criswell47fdd832003-07-14 16:52:07 +000015797 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15799 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15800 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15801 ;;
15802 cxx)
15803 # Compaq C++
15804 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15805 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'
15806
15807 runpath_var=LD_RUN_PATH
15808 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15809 hardcode_libdir_separator_CXX=:
15810
15811 # Commands to make compiler produce verbose output that lists
15812 # what "hidden" libraries, object files and flags are used when
15813 # linking a shared library.
15814 #
15815 # There doesn't appear to be a way to prevent this compiler from
15816 # explicitly linking system object files so we need to strip them
15817 # from the output so that they don't get included in the library
15818 # dependencies.
15819 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'
15820 ;;
15821 esac
15822 ;;
15823 lynxos*)
15824 # FIXME: insert proper C++ library support
15825 ld_shlibs_CXX=no
15826 ;;
15827 m88k*)
15828 # FIXME: insert proper C++ library support
15829 ld_shlibs_CXX=no
15830 ;;
15831 mvs*)
15832 case $cc_basename in
15833 cxx)
15834 # FIXME: insert proper C++ library support
15835 ld_shlibs_CXX=no
15836 ;;
15837 *)
15838 # FIXME: insert proper C++ library support
15839 ld_shlibs_CXX=no
15840 ;;
15841 esac
15842 ;;
15843 netbsd*)
15844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15845 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15846 wlarc=
15847 hardcode_libdir_flag_spec_CXX='-R$libdir'
15848 hardcode_direct_CXX=yes
15849 hardcode_shlibpath_var_CXX=no
15850 fi
15851 # Workaround some broken pre-1.5 toolchains
15852 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15853 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015854 openbsd2*)
15855 # C++ shared libraries are fairly broken
15856 ld_shlibs_CXX=no
15857 ;;
15858 openbsd*)
15859 hardcode_direct_CXX=yes
15860 hardcode_shlibpath_var_CXX=no
15861 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15864 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15865 export_dynamic_flag_spec_CXX='${wl}-E'
15866 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15867 fi
15868 output_verbose_link_cmd='echo'
15869 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015870 osf3*)
15871 case $cc_basename in
15872 KCC)
15873 # Kuck and Associates, Inc. (KAI) C++ Compiler
15874
15875 # KCC will only create a shared library if the output file
15876 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15877 # to its proper name (with version) after linking.
15878 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'
15879
15880 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15881 hardcode_libdir_separator_CXX=:
15882
15883 # Archives containing C++ object files must be created using
15884 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15885 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15886
15887 ;;
15888 RCC)
15889 # Rational C++ 2.4.1
15890 # FIXME: insert proper C++ library support
15891 ld_shlibs_CXX=no
15892 ;;
15893 cxx)
15894 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15895 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'
15896
15897 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15898 hardcode_libdir_separator_CXX=:
15899
15900 # Commands to make compiler produce verbose output that lists
15901 # what "hidden" libraries, object files and flags are used when
15902 # linking a shared library.
15903 #
15904 # There doesn't appear to be a way to prevent this compiler from
15905 # explicitly linking system object files so we need to strip them
15906 # from the output so that they don't get included in the library
15907 # dependencies.
15908 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'
15909 ;;
15910 *)
15911 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15912 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15913 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'
15914
15915 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15916 hardcode_libdir_separator_CXX=:
15917
15918 # Commands to make compiler produce verbose output that lists
15919 # what "hidden" libraries, object files and flags are used when
15920 # linking a shared library.
15921 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15922
15923 else
15924 # FIXME: insert proper C++ library support
15925 ld_shlibs_CXX=no
15926 fi
15927 ;;
15928 esac
15929 ;;
15930 osf4* | osf5*)
15931 case $cc_basename in
15932 KCC)
15933 # Kuck and Associates, Inc. (KAI) C++ Compiler
15934
15935 # KCC will only create a shared library if the output file
15936 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15937 # to its proper name (with version) after linking.
15938 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'
15939
15940 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15941 hardcode_libdir_separator_CXX=:
15942
15943 # Archives containing C++ object files must be created using
15944 # the KAI C++ compiler.
15945 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15946 ;;
15947 RCC)
15948 # Rational C++ 2.4.1
15949 # FIXME: insert proper C++ library support
15950 ld_shlibs_CXX=no
15951 ;;
15952 cxx)
15953 allow_undefined_flag_CXX=' -expect_unresolved \*'
15954 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 +000015955 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15956 echo "-hidden">> $lib.exp~
15957 $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~
15958 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015959
15960 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15961 hardcode_libdir_separator_CXX=:
15962
15963 # Commands to make compiler produce verbose output that lists
15964 # what "hidden" libraries, object files and flags are used when
15965 # linking a shared library.
15966 #
15967 # There doesn't appear to be a way to prevent this compiler from
15968 # explicitly linking system object files so we need to strip them
15969 # from the output so that they don't get included in the library
15970 # dependencies.
15971 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'
15972 ;;
15973 *)
15974 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15975 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15976 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'
15977
15978 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15979 hardcode_libdir_separator_CXX=:
15980
15981 # Commands to make compiler produce verbose output that lists
15982 # what "hidden" libraries, object files and flags are used when
15983 # linking a shared library.
15984 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15985
15986 else
15987 # FIXME: insert proper C++ library support
15988 ld_shlibs_CXX=no
15989 fi
15990 ;;
15991 esac
15992 ;;
15993 psos*)
15994 # FIXME: insert proper C++ library support
15995 ld_shlibs_CXX=no
15996 ;;
15997 sco*)
15998 archive_cmds_need_lc_CXX=no
15999 case $cc_basename in
16000 CC)
16001 # FIXME: insert proper C++ library support
16002 ld_shlibs_CXX=no
16003 ;;
16004 *)
16005 # FIXME: insert proper C++ library support
16006 ld_shlibs_CXX=no
16007 ;;
16008 esac
16009 ;;
16010 sunos4*)
16011 case $cc_basename in
16012 CC)
16013 # Sun C++ 4.x
16014 # FIXME: insert proper C++ library support
16015 ld_shlibs_CXX=no
16016 ;;
16017 lcc)
16018 # Lucid
16019 # FIXME: insert proper C++ library support
16020 ld_shlibs_CXX=no
16021 ;;
16022 *)
16023 # FIXME: insert proper C++ library support
16024 ld_shlibs_CXX=no
16025 ;;
16026 esac
16027 ;;
16028 solaris*)
16029 case $cc_basename in
16030 CC)
16031 # Sun C++ 4.2, 5.x and Centerline C++
16032 no_undefined_flag_CXX=' -zdefs'
16033 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 +000016034 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16035 $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 +000016036
16037 hardcode_libdir_flag_spec_CXX='-R$libdir'
16038 hardcode_shlibpath_var_CXX=no
16039 case $host_os in
16040 solaris2.0-5 | solaris2.0-5.*) ;;
16041 *)
16042 # The C++ compiler is used as linker so we must use $wl
16043 # flag to pass the commands to the underlying system
16044 # linker.
16045 # Supported since Solaris 2.6 (maybe 2.5.1?)
16046 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16047 ;;
16048 esac
16049 link_all_deplibs_CXX=yes
16050
16051 # Commands to make compiler produce verbose output that lists
16052 # what "hidden" libraries, object files and flags are used when
16053 # linking a shared library.
16054 #
16055 # There doesn't appear to be a way to prevent this compiler from
16056 # explicitly linking system object files so we need to strip them
16057 # from the output so that they don't get included in the library
16058 # dependencies.
16059 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'
16060
16061 # Archives containing C++ object files must be created using
16062 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16063 # necessary to make sure instantiated templates are included
16064 # in the archive.
16065 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16066 ;;
16067 gcx)
16068 # Green Hills C++ Compiler
16069 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16070
16071 # The C++ compiler must be used to create the archive.
16072 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16073 ;;
16074 *)
16075 # GNU C++ compiler with Solaris linker
16076 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16077 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16078 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016079 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 +000016080 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16081 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16082
John Criswell47fdd832003-07-14 16:52:07 +000016083 # Commands to make compiler produce verbose output that lists
16084 # what "hidden" libraries, object files and flags are used when
16085 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016086 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016087 else
16088 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16089 # platform.
16090 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 +000016091 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16092 $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 +000016093
16094 # Commands to make compiler produce verbose output that lists
16095 # what "hidden" libraries, object files and flags are used when
16096 # linking a shared library.
16097 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16098 fi
16099
16100 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16101 fi
16102 ;;
16103 esac
16104 ;;
16105 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16106 archive_cmds_need_lc_CXX=no
16107 ;;
16108 tandem*)
16109 case $cc_basename in
16110 NCC)
16111 # NonStop-UX NCC 3.20
16112 # FIXME: insert proper C++ library support
16113 ld_shlibs_CXX=no
16114 ;;
16115 *)
16116 # FIXME: insert proper C++ library support
16117 ld_shlibs_CXX=no
16118 ;;
16119 esac
16120 ;;
16121 vxworks*)
16122 # FIXME: insert proper C++ library support
16123 ld_shlibs_CXX=no
16124 ;;
16125 *)
16126 # FIXME: insert proper C++ library support
16127 ld_shlibs_CXX=no
16128 ;;
16129esac
16130echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16131echo "${ECHO_T}$ld_shlibs_CXX" >&6
16132test "$ld_shlibs_CXX" = no && can_build_shared=no
16133
16134GCC_CXX="$GXX"
16135LD_CXX="$LD"
16136
John Criswell47fdd832003-07-14 16:52:07 +000016137
16138cat > conftest.$ac_ext <<EOF
16139class Foo
16140{
16141public:
16142 Foo (void) { a = 0; }
16143private:
16144 int a;
16145};
16146EOF
16147
16148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16149 (eval $ac_compile) 2>&5
16150 ac_status=$?
16151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); }; then
16153 # Parse the compiler output and extract the necessary
16154 # objects, libraries and library flags.
16155
16156 # Sentinel used to keep track of whether or not we are before
16157 # the conftest object file.
16158 pre_test_object_deps_done=no
16159
16160 # The `*' in the case matches for architectures that use `case' in
16161 # $output_verbose_cmd can trigger glob expansion during the loop
16162 # eval without this substitution.
16163 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16164
16165 for p in `eval $output_verbose_link_cmd`; do
16166 case $p in
16167
16168 -L* | -R* | -l*)
16169 # Some compilers place space between "-{L,R}" and the path.
16170 # Remove the space.
16171 if test $p = "-L" \
16172 || test $p = "-R"; then
16173 prev=$p
16174 continue
16175 else
16176 prev=
16177 fi
16178
16179 if test "$pre_test_object_deps_done" = no; then
16180 case $p in
16181 -L* | -R*)
16182 # Internal compiler library paths should come after those
16183 # provided the user. The postdeps already come after the
16184 # user supplied libs so there is no need to process them.
16185 if test -z "$compiler_lib_search_path_CXX"; then
16186 compiler_lib_search_path_CXX="${prev}${p}"
16187 else
16188 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16189 fi
16190 ;;
16191 # The "-l" case would never come before the object being
16192 # linked, so don't bother handling this case.
16193 esac
16194 else
16195 if test -z "$postdeps_CXX"; then
16196 postdeps_CXX="${prev}${p}"
16197 else
16198 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16199 fi
16200 fi
16201 ;;
16202
16203 *.$objext)
16204 # This assumes that the test object file only shows up
16205 # once in the compiler output.
16206 if test "$p" = "conftest.$objext"; then
16207 pre_test_object_deps_done=yes
16208 continue
16209 fi
16210
16211 if test "$pre_test_object_deps_done" = no; then
16212 if test -z "$predep_objects_CXX"; then
16213 predep_objects_CXX="$p"
16214 else
16215 predep_objects_CXX="$predep_objects_CXX $p"
16216 fi
16217 else
16218 if test -z "$postdep_objects_CXX"; then
16219 postdep_objects_CXX="$p"
16220 else
16221 postdep_objects_CXX="$postdep_objects_CXX $p"
16222 fi
16223 fi
16224 ;;
16225
16226 *) ;; # Ignore the rest.
16227
16228 esac
16229 done
16230
16231 # Clean up.
16232 rm -f a.out a.exe
16233else
16234 echo "libtool.m4: error: problem compiling CXX test program"
16235fi
16236
16237$rm -f confest.$objext
16238
16239case " $postdeps_CXX " in
16240*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16241esac
16242
16243lt_prog_compiler_wl_CXX=
16244lt_prog_compiler_pic_CXX=
16245lt_prog_compiler_static_CXX=
16246
16247echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16248echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16249
16250 # C++ specific cases for pic, static, wl, etc.
16251 if test "$GXX" = yes; then
16252 lt_prog_compiler_wl_CXX='-Wl,'
16253 lt_prog_compiler_static_CXX='-static'
16254
16255 case $host_os in
16256 aix*)
16257 # All AIX code is PIC.
16258 if test "$host_cpu" = ia64; then
16259 # AIX 5 now supports IA64 processor
16260 lt_prog_compiler_static_CXX='-Bstatic'
16261 fi
16262 ;;
16263 amigaos*)
16264 # FIXME: we need at least 68020 code to build shared libraries, but
16265 # adding the `-m68020' flag to GCC prevents building anything better,
16266 # like `-m68040'.
16267 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16268 ;;
16269 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16270 # PIC is the default for these OSes.
16271 ;;
16272 mingw* | os2* | pw32*)
16273 # This hack is so that the source file can tell whether it is being
16274 # built for inclusion in a dll (and should export symbols for example).
16275 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16276 ;;
16277 darwin* | rhapsody*)
16278 # PIC is the default on this platform
16279 # Common symbols not allowed in MH_DYLIB files
16280 lt_prog_compiler_pic_CXX='-fno-common'
16281 ;;
16282 *djgpp*)
16283 # DJGPP does not support shared libraries at all
16284 lt_prog_compiler_pic_CXX=
16285 ;;
16286 sysv4*MP*)
16287 if test -d /usr/nec; then
16288 lt_prog_compiler_pic_CXX=-Kconform_pic
16289 fi
16290 ;;
16291 hpux*)
16292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16293 # not for PA HP-UX.
16294 case "$host_cpu" in
16295 hppa*64*|ia64*)
16296 ;;
16297 *)
16298 lt_prog_compiler_pic_CXX='-fPIC'
16299 ;;
16300 esac
16301 ;;
16302 *)
16303 lt_prog_compiler_pic_CXX='-fPIC'
16304 ;;
16305 esac
16306 else
16307 case $host_os in
16308 aix4* | aix5*)
16309 # All AIX code is PIC.
16310 if test "$host_cpu" = ia64; then
16311 # AIX 5 now supports IA64 processor
16312 lt_prog_compiler_static_CXX='-Bstatic'
16313 else
16314 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16315 fi
16316 ;;
16317 chorus*)
16318 case $cc_basename in
16319 cxch68)
16320 # Green Hills C++ Compiler
16321 # _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"
16322 ;;
16323 esac
16324 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016325 darwin*)
16326 # PIC is the default on this platform
16327 # Common symbols not allowed in MH_DYLIB files
16328 case "$cc_basename" in
16329 xlc*)
16330 lt_prog_compiler_pic_CXX='-qnocommon'
16331 lt_prog_compiler_wl_CXX='-Wl,'
16332 ;;
16333 esac
16334 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016335 dgux*)
16336 case $cc_basename in
16337 ec++)
16338 lt_prog_compiler_pic_CXX='-KPIC'
16339 ;;
16340 ghcx)
16341 # Green Hills C++ Compiler
16342 lt_prog_compiler_pic_CXX='-pic'
16343 ;;
16344 *)
16345 ;;
16346 esac
16347 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016348 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016349 # FreeBSD uses GNU C++
16350 ;;
16351 hpux9* | hpux10* | hpux11*)
16352 case $cc_basename in
16353 CC)
16354 lt_prog_compiler_wl_CXX='-Wl,'
16355 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16356 if test "$host_cpu" != ia64; then
16357 lt_prog_compiler_pic_CXX='+Z'
16358 fi
16359 ;;
16360 aCC)
16361 lt_prog_compiler_wl_CXX='-Wl,'
16362 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16363 case "$host_cpu" in
16364 hppa*64*|ia64*)
16365 # +Z the default
16366 ;;
16367 *)
16368 lt_prog_compiler_pic_CXX='+Z'
16369 ;;
16370 esac
16371 ;;
16372 *)
16373 ;;
16374 esac
16375 ;;
16376 irix5* | irix6* | nonstopux*)
16377 case $cc_basename in
16378 CC)
16379 lt_prog_compiler_wl_CXX='-Wl,'
16380 lt_prog_compiler_static_CXX='-non_shared'
16381 # CC pic flag -KPIC is the default.
16382 ;;
16383 *)
16384 ;;
16385 esac
16386 ;;
16387 linux*)
16388 case $cc_basename in
16389 KCC)
16390 # KAI C++ Compiler
16391 lt_prog_compiler_wl_CXX='--backend -Wl,'
16392 lt_prog_compiler_pic_CXX='-fPIC'
16393 ;;
16394 icpc)
16395 # Intel C++
16396 lt_prog_compiler_wl_CXX='-Wl,'
16397 lt_prog_compiler_pic_CXX='-KPIC'
16398 lt_prog_compiler_static_CXX='-static'
16399 ;;
16400 cxx)
16401 # Compaq C++
16402 # Make sure the PIC flag is empty. It appears that all Alpha
16403 # Linux and Compaq Tru64 Unix objects are PIC.
16404 lt_prog_compiler_pic_CXX=
16405 lt_prog_compiler_static_CXX='-non_shared'
16406 ;;
16407 *)
16408 ;;
16409 esac
16410 ;;
16411 lynxos*)
16412 ;;
16413 m88k*)
16414 ;;
16415 mvs*)
16416 case $cc_basename in
16417 cxx)
16418 lt_prog_compiler_pic_CXX='-W c,exportall'
16419 ;;
16420 *)
16421 ;;
16422 esac
16423 ;;
16424 netbsd*)
16425 ;;
16426 osf3* | osf4* | osf5*)
16427 case $cc_basename in
16428 KCC)
16429 lt_prog_compiler_wl_CXX='--backend -Wl,'
16430 ;;
16431 RCC)
16432 # Rational C++ 2.4.1
16433 lt_prog_compiler_pic_CXX='-pic'
16434 ;;
16435 cxx)
16436 # Digital/Compaq C++
16437 lt_prog_compiler_wl_CXX='-Wl,'
16438 # Make sure the PIC flag is empty. It appears that all Alpha
16439 # Linux and Compaq Tru64 Unix objects are PIC.
16440 lt_prog_compiler_pic_CXX=
16441 lt_prog_compiler_static_CXX='-non_shared'
16442 ;;
16443 *)
16444 ;;
16445 esac
16446 ;;
16447 psos*)
16448 ;;
16449 sco*)
16450 case $cc_basename in
16451 CC)
16452 lt_prog_compiler_pic_CXX='-fPIC'
16453 ;;
16454 *)
16455 ;;
16456 esac
16457 ;;
16458 solaris*)
16459 case $cc_basename in
16460 CC)
16461 # Sun C++ 4.2, 5.x and Centerline C++
16462 lt_prog_compiler_pic_CXX='-KPIC'
16463 lt_prog_compiler_static_CXX='-Bstatic'
16464 lt_prog_compiler_wl_CXX='-Qoption ld '
16465 ;;
16466 gcx)
16467 # Green Hills C++ Compiler
16468 lt_prog_compiler_pic_CXX='-PIC'
16469 ;;
16470 *)
16471 ;;
16472 esac
16473 ;;
16474 sunos4*)
16475 case $cc_basename in
16476 CC)
16477 # Sun C++ 4.x
16478 lt_prog_compiler_pic_CXX='-pic'
16479 lt_prog_compiler_static_CXX='-Bstatic'
16480 ;;
16481 lcc)
16482 # Lucid
16483 lt_prog_compiler_pic_CXX='-pic'
16484 ;;
16485 *)
16486 ;;
16487 esac
16488 ;;
16489 tandem*)
16490 case $cc_basename in
16491 NCC)
16492 # NonStop-UX NCC 3.20
16493 lt_prog_compiler_pic_CXX='-KPIC'
16494 ;;
16495 *)
16496 ;;
16497 esac
16498 ;;
16499 unixware*)
16500 ;;
16501 vxworks*)
16502 ;;
16503 *)
16504 lt_prog_compiler_can_build_shared_CXX=no
16505 ;;
16506 esac
16507 fi
16508
16509echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16510echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16511
16512#
16513# Check to make sure the PIC flag actually works.
16514#
16515if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016516
16517echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016518echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16519if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16520 echo $ECHO_N "(cached) $ECHO_C" >&6
16521else
16522 lt_prog_compiler_pic_works_CXX=no
16523 ac_outfile=conftest.$ac_objext
16524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16525 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16526 # Insert the option either (1) after the last *FLAGS variable, or
16527 # (2) before a word containing "conftest.", or (3) at the end.
16528 # Note that $ac_compile itself does not contain backslashes and begins
16529 # with a dollar sign (not a hyphen), so the echo should work correctly.
16530 # The option is referenced via a variable to avoid confusing sed.
16531 lt_compile=`echo "$ac_compile" | $SED \
16532 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16534 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59473af2004-12-25 07:31:29 +000016535 (eval echo "\"\$as_me:16535: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016536 (eval "$lt_compile" 2>conftest.err)
16537 ac_status=$?
16538 cat conftest.err >&5
Reid Spencer59473af2004-12-25 07:31:29 +000016539 echo "$as_me:16539: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016540 if (exit $ac_status) && test -s "$ac_outfile"; then
16541 # The compiler can only warn and ignore the option if not recognized
16542 # So say no if there are warnings
16543 if test ! -s conftest.err; then
16544 lt_prog_compiler_pic_works_CXX=yes
16545 fi
16546 fi
16547 $rm conftest*
16548
16549fi
16550echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16551echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16552
16553if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16554 case $lt_prog_compiler_pic_CXX in
16555 "" | " "*) ;;
16556 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16557 esac
16558else
16559 lt_prog_compiler_pic_CXX=
16560 lt_prog_compiler_can_build_shared_CXX=no
16561fi
16562
16563fi
16564case "$host_os" in
16565 # For platforms which do not support PIC, -DPIC is meaningless:
16566 *djgpp*)
16567 lt_prog_compiler_pic_CXX=
16568 ;;
16569 *)
16570 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16571 ;;
16572esac
16573
16574echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16575echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16576if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16577 echo $ECHO_N "(cached) $ECHO_C" >&6
16578else
16579 lt_cv_prog_compiler_c_o_CXX=no
16580 $rm -r conftest 2>/dev/null
16581 mkdir conftest
16582 cd conftest
16583 mkdir out
16584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16585
John Criswell47fdd832003-07-14 16:52:07 +000016586 lt_compiler_flag="-o out/conftest2.$ac_objext"
16587 # Insert the option either (1) after the last *FLAGS variable, or
16588 # (2) before a word containing "conftest.", or (3) at the end.
16589 # Note that $ac_compile itself does not contain backslashes and begins
16590 # with a dollar sign (not a hyphen), so the echo should work correctly.
16591 lt_compile=`echo "$ac_compile" | $SED \
16592 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16594 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59473af2004-12-25 07:31:29 +000016595 (eval echo "\"\$as_me:16595: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016596 (eval "$lt_compile" 2>out/conftest.err)
16597 ac_status=$?
16598 cat out/conftest.err >&5
Reid Spencer59473af2004-12-25 07:31:29 +000016599 echo "$as_me:16599: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16601 then
16602 # The compiler can only warn and ignore the option if not recognized
16603 # So say no if there are warnings
16604 if test ! -s out/conftest.err; then
16605 lt_cv_prog_compiler_c_o_CXX=yes
16606 fi
16607 fi
16608 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016609 $rm conftest*
16610 # SGI C++ compiler will create directory out/ii_files/ for
16611 # template instantiation
16612 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16613 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016614 cd ..
16615 rmdir conftest
16616 $rm conftest*
16617
16618fi
16619echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16620echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16621
16622
16623hard_links="nottested"
16624if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16625 # do not overwrite the value of need_locks provided by the user
16626 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16627echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16628 hard_links=yes
16629 $rm conftest*
16630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16631 touch conftest.a
16632 ln conftest.a conftest.b 2>&5 || hard_links=no
16633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16634 echo "$as_me:$LINENO: result: $hard_links" >&5
16635echo "${ECHO_T}$hard_links" >&6
16636 if test "$hard_links" = no; then
16637 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16638echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16639 need_locks=warn
16640 fi
16641else
16642 need_locks=no
16643fi
16644
16645echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16646echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16647
16648 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16649 case $host_os in
16650 aix4* | aix5*)
16651 # If we're using GNU nm, then we don't want the "-C" option.
16652 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16653 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16654 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'
16655 else
16656 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'
16657 fi
16658 ;;
16659 pw32*)
16660 export_symbols_cmds_CXX="$ltdll_cmds"
16661 ;;
16662 cygwin* | mingw*)
16663 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16664 ;;
16665 *)
16666 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16667 ;;
16668 esac
16669
16670echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16671echo "${ECHO_T}$ld_shlibs_CXX" >&6
16672test "$ld_shlibs_CXX" = no && can_build_shared=no
16673
16674variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16675if test "$GCC" = yes; then
16676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16677fi
16678
16679#
16680# Do we need to explicitly link libc?
16681#
16682case "x$archive_cmds_need_lc_CXX" in
16683x|xyes)
16684 # Assume -lc should be added
16685 archive_cmds_need_lc_CXX=yes
16686
16687 if test "$enable_shared" = yes && test "$GCC" = yes; then
16688 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016689 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016690 # FIXME: we may have to deal with multi-command sequences.
16691 ;;
16692 '$CC '*)
16693 # Test whether the compiler implicitly links with -lc since on some
16694 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16695 # to ld, don't add -lc before -lgcc.
16696 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16697echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16698 $rm conftest*
16699 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16700
16701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16702 (eval $ac_compile) 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } 2>conftest.err; then
16706 soname=conftest
16707 lib=conftest
16708 libobjs=conftest.$ac_objext
16709 deplibs=
16710 wl=$lt_prog_compiler_wl_CXX
16711 compiler_flags=-v
16712 linker_flags=-v
16713 verstring=
16714 output_objdir=.
16715 libname=conftest
16716 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16717 allow_undefined_flag_CXX=
16718 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16719 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16720 ac_status=$?
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); }
16723 then
16724 archive_cmds_need_lc_CXX=no
16725 else
16726 archive_cmds_need_lc_CXX=yes
16727 fi
16728 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16729 else
16730 cat conftest.err 1>&5
16731 fi
16732 $rm conftest*
16733 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16734echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16735 ;;
16736 esac
16737 fi
16738 ;;
16739esac
16740
John Criswell47fdd832003-07-14 16:52:07 +000016741echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16742echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16743library_names_spec=
16744libname_spec='lib$name'
16745soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016746shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016747postinstall_cmds=
16748postuninstall_cmds=
16749finish_cmds=
16750finish_eval=
16751shlibpath_var=
16752shlibpath_overrides_runpath=unknown
16753version_type=none
16754dynamic_linker="$host_os ld.so"
16755sys_lib_dlsearch_path_spec="/lib /usr/lib"
16756if test "$GCC" = yes; then
16757 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16758 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16759 # if the path contains ";" then we assume it to be the separator
16760 # otherwise default to the standard path separator (i.e. ":") - it is
16761 # assumed that no part of a normal pathname contains ";" but that should
16762 # okay in the real world where ";" in dirpaths is itself problematic.
16763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16764 else
16765 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16766 fi
16767else
16768 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16769fi
16770need_lib_prefix=unknown
16771hardcode_into_libs=no
16772
16773# when you set need_version to no, make sure it does not cause -set_version
16774# flags to be left without arguments
16775need_version=unknown
16776
16777case $host_os in
16778aix3*)
16779 version_type=linux
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16781 shlibpath_var=LIBPATH
16782
16783 # AIX 3 has no versioning support, so we append a major version to the name.
16784 soname_spec='${libname}${release}${shared_ext}$major'
16785 ;;
16786
16787aix4* | aix5*)
16788 version_type=linux
16789 need_lib_prefix=no
16790 need_version=no
16791 hardcode_into_libs=yes
16792 if test "$host_cpu" = ia64; then
16793 # AIX 5 supports IA64
16794 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16795 shlibpath_var=LD_LIBRARY_PATH
16796 else
16797 # With GCC up to 2.95.x, collect2 would create an import file
16798 # for dependence libraries. The import file would start with
16799 # the line `#! .'. This would cause the generated library to
16800 # depend on `.', always an invalid library. This was fixed in
16801 # development snapshots of GCC prior to 3.0.
16802 case $host_os in
16803 aix4 | aix4.[01] | aix4.[01].*)
16804 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16805 echo ' yes '
16806 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16807 :
16808 else
16809 can_build_shared=no
16810 fi
16811 ;;
16812 esac
16813 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16814 # soname into executable. Probably we can add versioning support to
16815 # collect2, so additional links can be useful in future.
16816 if test "$aix_use_runtimelinking" = yes; then
16817 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16818 # instead of lib<name>.a to let people know that these are not
16819 # typical AIX shared libraries.
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16821 else
16822 # We preserve .a as extension for shared libraries through AIX4.2
16823 # and later when we are not doing run time linking.
16824 library_names_spec='${libname}${release}.a $libname.a'
16825 soname_spec='${libname}${release}${shared_ext}$major'
16826 fi
16827 shlibpath_var=LIBPATH
16828 fi
16829 ;;
16830
16831amigaos*)
16832 library_names_spec='$libname.ixlibrary $libname.a'
16833 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016834 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 +000016835 ;;
16836
16837beos*)
16838 library_names_spec='${libname}${shared_ext}'
16839 dynamic_linker="$host_os ld.so"
16840 shlibpath_var=LIBRARY_PATH
16841 ;;
16842
Reid Spencer2706f8c2004-09-19 23:53:36 +000016843bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016844 version_type=linux
16845 need_version=no
16846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16847 soname_spec='${libname}${release}${shared_ext}$major'
16848 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16849 shlibpath_var=LD_LIBRARY_PATH
16850 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16851 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16852 # the default ld.so.conf also contains /usr/contrib/lib and
16853 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16854 # libtool to hard-code these into programs
16855 ;;
16856
16857cygwin* | mingw* | pw32*)
16858 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016859 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016860 need_version=no
16861 need_lib_prefix=no
16862
16863 case $GCC,$host_os in
16864 yes,cygwin* | yes,mingw* | yes,pw32*)
16865 library_names_spec='$libname.dll.a'
16866 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016867 postinstall_cmds='base_file=`basename \${file}`~
16868 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16869 dldir=$destdir/`dirname \$dlpath`~
16870 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016871 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016872 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16873 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016874 $rm \$dlpath'
16875 shlibpath_overrides_runpath=yes
16876
16877 case $host_os in
16878 cygwin*)
16879 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16880 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 +000016881 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016882 ;;
16883 mingw*)
16884 # MinGW DLLs use traditional 'lib' prefix
16885 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16886 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16887 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16888 # It is most probably a Windows format PATH printed by
16889 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16890 # path with ; separators, and with drive letters. We can handle the
16891 # drive letters (cygwin fileutils understands them), so leave them,
16892 # especially as we might pass files found there to a mingw objdump,
16893 # which wouldn't understand a cygwinified path. Ahh.
16894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16895 else
16896 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16897 fi
16898 ;;
16899 pw32*)
16900 # pw32 DLLs use 'pw' prefix rather than 'lib'
16901 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16902 ;;
16903 esac
16904 ;;
16905
16906 *)
16907 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16908 ;;
16909 esac
16910 dynamic_linker='Win32 ld.exe'
16911 # FIXME: first we should search . and the directory the executable is in
16912 shlibpath_var=PATH
16913 ;;
16914
16915darwin* | rhapsody*)
16916 dynamic_linker="$host_os dyld"
16917 version_type=darwin
16918 need_lib_prefix=no
16919 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016920 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016921 soname_spec='${libname}${release}${major}$shared_ext'
16922 shlibpath_overrides_runpath=yes
16923 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016924 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016925 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016926 if test "$GCC" = yes; then
16927 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"`
16928 else
16929 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016930 fi
16931 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16932 ;;
16933
16934dgux*)
16935 version_type=linux
16936 need_lib_prefix=no
16937 need_version=no
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16939 soname_spec='${libname}${release}${shared_ext}$major'
16940 shlibpath_var=LD_LIBRARY_PATH
16941 ;;
16942
16943freebsd1*)
16944 dynamic_linker=no
16945 ;;
16946
Reid Spencer2706f8c2004-09-19 23:53:36 +000016947kfreebsd*-gnu)
16948 version_type=linux
16949 need_lib_prefix=no
16950 need_version=no
16951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16952 soname_spec='${libname}${release}${shared_ext}$major'
16953 shlibpath_var=LD_LIBRARY_PATH
16954 shlibpath_overrides_runpath=no
16955 hardcode_into_libs=yes
16956 dynamic_linker='GNU ld.so'
16957 ;;
16958
John Criswell47fdd832003-07-14 16:52:07 +000016959freebsd*)
16960 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16961 version_type=freebsd-$objformat
16962 case $version_type in
16963 freebsd-elf*)
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16965 need_version=no
16966 need_lib_prefix=no
16967 ;;
16968 freebsd-*)
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16970 need_version=yes
16971 ;;
16972 esac
16973 shlibpath_var=LD_LIBRARY_PATH
16974 case $host_os in
16975 freebsd2*)
16976 shlibpath_overrides_runpath=yes
16977 ;;
16978 freebsd3.01* | freebsdelf3.01*)
16979 shlibpath_overrides_runpath=yes
16980 hardcode_into_libs=yes
16981 ;;
16982 *) # from 3.2 on
16983 shlibpath_overrides_runpath=no
16984 hardcode_into_libs=yes
16985 ;;
16986 esac
16987 ;;
16988
16989gnu*)
16990 version_type=linux
16991 need_lib_prefix=no
16992 need_version=no
16993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16994 soname_spec='${libname}${release}${shared_ext}$major'
16995 shlibpath_var=LD_LIBRARY_PATH
16996 hardcode_into_libs=yes
16997 ;;
16998
16999hpux9* | hpux10* | hpux11*)
17000 # Give a soname corresponding to the major version so that dld.sl refuses to
17001 # link against other versions.
17002 version_type=sunos
17003 need_lib_prefix=no
17004 need_version=no
17005 case "$host_cpu" in
17006 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017007 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017008 hardcode_into_libs=yes
17009 dynamic_linker="$host_os dld.so"
17010 shlibpath_var=LD_LIBRARY_PATH
17011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013 soname_spec='${libname}${release}${shared_ext}$major'
17014 if test "X$HPUX_IA64_MODE" = X32; then
17015 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17016 else
17017 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17018 fi
17019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17020 ;;
17021 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017022 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017023 hardcode_into_libs=yes
17024 dynamic_linker="$host_os dld.sl"
17025 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17026 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17028 soname_spec='${libname}${release}${shared_ext}$major'
17029 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17030 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17031 ;;
17032 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017033 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017034 dynamic_linker="$host_os dld.sl"
17035 shlibpath_var=SHLIB_PATH
17036 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17038 soname_spec='${libname}${release}${shared_ext}$major'
17039 ;;
17040 esac
17041 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17042 postinstall_cmds='chmod 555 $lib'
17043 ;;
17044
17045irix5* | irix6* | nonstopux*)
17046 case $host_os in
17047 nonstopux*) version_type=nonstopux ;;
17048 *)
17049 if test "$lt_cv_prog_gnu_ld" = yes; then
17050 version_type=linux
17051 else
17052 version_type=irix
17053 fi ;;
17054 esac
17055 need_lib_prefix=no
17056 need_version=no
17057 soname_spec='${libname}${release}${shared_ext}$major'
17058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17059 case $host_os in
17060 irix5* | nonstopux*)
17061 libsuff= shlibsuff=
17062 ;;
17063 *)
17064 case $LD in # libtool.m4 will add one of these switches to LD
17065 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17066 libsuff= shlibsuff= libmagic=32-bit;;
17067 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17068 libsuff=32 shlibsuff=N32 libmagic=N32;;
17069 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17070 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17071 *) libsuff= shlibsuff= libmagic=never-match;;
17072 esac
17073 ;;
17074 esac
17075 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17076 shlibpath_overrides_runpath=no
17077 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17078 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17079 hardcode_into_libs=yes
17080 ;;
17081
17082# No shared lib support for Linux oldld, aout, or coff.
17083linux*oldld* | linux*aout* | linux*coff*)
17084 dynamic_linker=no
17085 ;;
17086
17087# This must be Linux ELF.
17088linux*)
17089 version_type=linux
17090 need_lib_prefix=no
17091 need_version=no
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17093 soname_spec='${libname}${release}${shared_ext}$major'
17094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17095 shlibpath_var=LD_LIBRARY_PATH
17096 shlibpath_overrides_runpath=no
17097 # This implies no fast_install, which is unacceptable.
17098 # Some rework will be needed to allow for fast_install
17099 # before this can be enabled.
17100 hardcode_into_libs=yes
17101
Reid Spencer2706f8c2004-09-19 23:53:36 +000017102 # Append ld.so.conf contents to the search path
17103 if test -f /etc/ld.so.conf; then
17104 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17105 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17106 fi
17107
John Criswell47fdd832003-07-14 16:52:07 +000017108 # We used to test for /lib/ld.so.1 and disable shared libraries on
17109 # powerpc, because MkLinux only supported shared libraries with the
17110 # GNU dynamic linker. Since this was broken with cross compilers,
17111 # most powerpc-linux boxes support dynamic linking these days and
17112 # people can always --disable-shared, the test was removed, and we
17113 # assume the GNU/Linux dynamic linker is in use.
17114 dynamic_linker='GNU/Linux ld.so'
17115 ;;
17116
Reid Spencer2706f8c2004-09-19 23:53:36 +000017117knetbsd*-gnu)
17118 version_type=linux
17119 need_lib_prefix=no
17120 need_version=no
17121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17122 soname_spec='${libname}${release}${shared_ext}$major'
17123 shlibpath_var=LD_LIBRARY_PATH
17124 shlibpath_overrides_runpath=no
17125 hardcode_into_libs=yes
17126 dynamic_linker='GNU ld.so'
17127 ;;
17128
John Criswell47fdd832003-07-14 16:52:07 +000017129netbsd*)
17130 version_type=sunos
17131 need_lib_prefix=no
17132 need_version=no
17133 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17136 dynamic_linker='NetBSD (a.out) ld.so'
17137 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017139 soname_spec='${libname}${release}${shared_ext}$major'
17140 dynamic_linker='NetBSD ld.elf_so'
17141 fi
17142 shlibpath_var=LD_LIBRARY_PATH
17143 shlibpath_overrides_runpath=yes
17144 hardcode_into_libs=yes
17145 ;;
17146
17147newsos6)
17148 version_type=linux
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17150 shlibpath_var=LD_LIBRARY_PATH
17151 shlibpath_overrides_runpath=yes
17152 ;;
17153
Reid Spencer2706f8c2004-09-19 23:53:36 +000017154nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017155 version_type=linux
17156 need_lib_prefix=no
17157 need_version=no
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159 soname_spec='${libname}${release}${shared_ext}$major'
17160 shlibpath_var=LD_LIBRARY_PATH
17161 shlibpath_overrides_runpath=yes
17162 ;;
17163
17164openbsd*)
17165 version_type=sunos
17166 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017167 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17169 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17170 shlibpath_var=LD_LIBRARY_PATH
17171 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17172 case $host_os in
17173 openbsd2.[89] | openbsd2.[89].*)
17174 shlibpath_overrides_runpath=no
17175 ;;
17176 *)
17177 shlibpath_overrides_runpath=yes
17178 ;;
17179 esac
17180 else
17181 shlibpath_overrides_runpath=yes
17182 fi
17183 ;;
17184
17185os2*)
17186 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017187 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017188 need_lib_prefix=no
17189 library_names_spec='$libname${shared_ext} $libname.a'
17190 dynamic_linker='OS/2 ld.exe'
17191 shlibpath_var=LIBPATH
17192 ;;
17193
17194osf3* | osf4* | osf5*)
17195 version_type=osf
17196 need_lib_prefix=no
17197 need_version=no
17198 soname_spec='${libname}${release}${shared_ext}$major'
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17200 shlibpath_var=LD_LIBRARY_PATH
17201 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17202 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17203 ;;
17204
17205sco3.2v5*)
17206 version_type=osf
17207 soname_spec='${libname}${release}${shared_ext}$major'
17208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17209 shlibpath_var=LD_LIBRARY_PATH
17210 ;;
17211
17212solaris*)
17213 version_type=linux
17214 need_lib_prefix=no
17215 need_version=no
17216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17217 soname_spec='${libname}${release}${shared_ext}$major'
17218 shlibpath_var=LD_LIBRARY_PATH
17219 shlibpath_overrides_runpath=yes
17220 hardcode_into_libs=yes
17221 # ldd complains unless libraries are executable
17222 postinstall_cmds='chmod +x $lib'
17223 ;;
17224
17225sunos4*)
17226 version_type=sunos
17227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17228 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17229 shlibpath_var=LD_LIBRARY_PATH
17230 shlibpath_overrides_runpath=yes
17231 if test "$with_gnu_ld" = yes; then
17232 need_lib_prefix=no
17233 fi
17234 need_version=yes
17235 ;;
17236
17237sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17238 version_type=linux
17239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17240 soname_spec='${libname}${release}${shared_ext}$major'
17241 shlibpath_var=LD_LIBRARY_PATH
17242 case $host_vendor in
17243 sni)
17244 shlibpath_overrides_runpath=no
17245 need_lib_prefix=no
17246 export_dynamic_flag_spec='${wl}-Blargedynsym'
17247 runpath_var=LD_RUN_PATH
17248 ;;
17249 siemens)
17250 need_lib_prefix=no
17251 ;;
17252 motorola)
17253 need_lib_prefix=no
17254 need_version=no
17255 shlibpath_overrides_runpath=no
17256 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17257 ;;
17258 esac
17259 ;;
17260
17261sysv4*MP*)
17262 if test -d /usr/nec ;then
17263 version_type=linux
17264 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17265 soname_spec='$libname${shared_ext}.$major'
17266 shlibpath_var=LD_LIBRARY_PATH
17267 fi
17268 ;;
17269
17270uts4*)
17271 version_type=linux
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 ;;
17276
17277*)
17278 dynamic_linker=no
17279 ;;
17280esac
17281echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17282echo "${ECHO_T}$dynamic_linker" >&6
17283test "$dynamic_linker" = no && can_build_shared=no
17284
Reid Spencer2706f8c2004-09-19 23:53:36 +000017285echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17286echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17287hardcode_action_CXX=
17288if test -n "$hardcode_libdir_flag_spec_CXX" || \
17289 test -n "$runpath_var_CXX" || \
17290 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17291
17292 # We can hardcode non-existant directories.
17293 if test "$hardcode_direct_CXX" != no &&
17294 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17295 # have to relink, otherwise we might link with an installed library
17296 # when we should be linking with a yet-to-be-installed one
17297 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17298 test "$hardcode_minus_L_CXX" != no; then
17299 # Linking always hardcodes the temporary library directory.
17300 hardcode_action_CXX=relink
17301 else
17302 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17303 hardcode_action_CXX=immediate
17304 fi
17305else
17306 # We cannot hardcode anything, or else we can only hardcode existing
17307 # directories.
17308 hardcode_action_CXX=unsupported
17309fi
17310echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17311echo "${ECHO_T}$hardcode_action_CXX" >&6
17312
17313if test "$hardcode_action_CXX" = relink; then
17314 # Fast installation is not supported
17315 enable_fast_install=no
17316elif test "$shlibpath_overrides_runpath" = yes ||
17317 test "$enable_shared" = no; then
17318 # Fast installation is not necessary
17319 enable_fast_install=needless
17320fi
17321
17322striplib=
17323old_striplib=
17324echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17325echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17326if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17327 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17328 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17329 echo "$as_me:$LINENO: result: yes" >&5
17330echo "${ECHO_T}yes" >&6
17331else
17332# FIXME - insert some real tests, host_os isn't really good enough
17333 case $host_os in
17334 darwin*)
17335 if test -n "$STRIP" ; then
17336 striplib="$STRIP -x"
17337 echo "$as_me:$LINENO: result: yes" >&5
17338echo "${ECHO_T}yes" >&6
17339 else
17340 echo "$as_me:$LINENO: result: no" >&5
17341echo "${ECHO_T}no" >&6
17342fi
17343 ;;
17344 *)
17345 echo "$as_me:$LINENO: result: no" >&5
17346echo "${ECHO_T}no" >&6
17347 ;;
17348 esac
17349fi
17350
John Criswell47fdd832003-07-14 16:52:07 +000017351if test "x$enable_dlopen" != xyes; then
17352 enable_dlopen=unknown
17353 enable_dlopen_self=unknown
17354 enable_dlopen_self_static=unknown
17355else
17356 lt_cv_dlopen=no
17357 lt_cv_dlopen_libs=
17358
17359 case $host_os in
17360 beos*)
17361 lt_cv_dlopen="load_add_on"
17362 lt_cv_dlopen_libs=
17363 lt_cv_dlopen_self=yes
17364 ;;
17365
17366 mingw* | pw32*)
17367 lt_cv_dlopen="LoadLibrary"
17368 lt_cv_dlopen_libs=
17369 ;;
17370
17371 cygwin*)
17372 lt_cv_dlopen="dlopen"
17373 lt_cv_dlopen_libs=
17374 ;;
17375
17376 darwin*)
17377 # if libdl is installed we need to link against it
17378 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17379echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17380if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17381 echo $ECHO_N "(cached) $ECHO_C" >&6
17382else
17383 ac_check_lib_save_LIBS=$LIBS
17384LIBS="-ldl $LIBS"
17385cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017386/* confdefs.h. */
17387_ACEOF
17388cat confdefs.h >>conftest.$ac_ext
17389cat >>conftest.$ac_ext <<_ACEOF
17390/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017391
17392/* Override any gcc2 internal prototype to avoid an error. */
17393#ifdef __cplusplus
17394extern "C"
17395#endif
17396/* We use char because int might match the return type of a gcc2
17397 builtin and then its argument prototype would still apply. */
17398char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017399int
17400main ()
17401{
17402dlopen ();
17403 ;
17404 return 0;
17405}
17406_ACEOF
17407rm -f conftest.$ac_objext conftest$ac_exeext
17408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017409 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017410 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017411 grep -v '^ *+' conftest.er1 >conftest.err
17412 rm -f conftest.er1
17413 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017416 { ac_try='test -z "$ac_cxx_werror_flag"
17417 || test ! -s conftest.err'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; } &&
17423 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17425 (eval $ac_try) 2>&5
17426 ac_status=$?
17427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17428 (exit $ac_status); }; }; then
17429 ac_cv_lib_dl_dlopen=yes
17430else
17431 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017432sed 's/^/| /' conftest.$ac_ext >&5
17433
John Criswell47fdd832003-07-14 16:52:07 +000017434ac_cv_lib_dl_dlopen=no
17435fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017436rm -f conftest.err conftest.$ac_objext \
17437 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017438LIBS=$ac_check_lib_save_LIBS
17439fi
17440echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17441echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17442if test $ac_cv_lib_dl_dlopen = yes; then
17443 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17444else
17445
17446 lt_cv_dlopen="dyld"
17447 lt_cv_dlopen_libs=
17448 lt_cv_dlopen_self=yes
17449
17450fi
17451
17452 ;;
17453
17454 *)
17455 echo "$as_me:$LINENO: checking for shl_load" >&5
17456echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17457if test "${ac_cv_func_shl_load+set}" = set; then
17458 echo $ECHO_N "(cached) $ECHO_C" >&6
17459else
17460 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017461/* confdefs.h. */
17462_ACEOF
17463cat confdefs.h >>conftest.$ac_ext
17464cat >>conftest.$ac_ext <<_ACEOF
17465/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017466/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17468#define shl_load innocuous_shl_load
17469
John Criswell47fdd832003-07-14 16:52:07 +000017470/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017471 which can conflict with char shl_load (); below.
17472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17473 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017474
John Criswell0c38eaf2003-09-10 15:17:25 +000017475#ifdef __STDC__
17476# include <limits.h>
17477#else
17478# include <assert.h>
17479#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017480
17481#undef shl_load
17482
John Criswell47fdd832003-07-14 16:52:07 +000017483/* Override any gcc2 internal prototype to avoid an error. */
17484#ifdef __cplusplus
17485extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017486{
John Criswell47fdd832003-07-14 16:52:07 +000017487#endif
17488/* We use char because int might match the return type of a gcc2
17489 builtin and then its argument prototype would still apply. */
17490char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017491/* The GNU C library defines this for functions which it implements
17492 to always fail with ENOSYS. Some functions are actually named
17493 something starting with __ and the normal name is an alias. */
17494#if defined (__stub_shl_load) || defined (__stub___shl_load)
17495choke me
17496#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017497char (*f) () = shl_load;
17498#endif
17499#ifdef __cplusplus
17500}
John Criswell47fdd832003-07-14 16:52:07 +000017501#endif
17502
John Criswell0c38eaf2003-09-10 15:17:25 +000017503int
17504main ()
17505{
17506return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017507 ;
17508 return 0;
17509}
17510_ACEOF
17511rm -f conftest.$ac_objext conftest$ac_exeext
17512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017513 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017514 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017515 grep -v '^ *+' conftest.er1 >conftest.err
17516 rm -f conftest.er1
17517 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017520 { ac_try='test -z "$ac_cxx_werror_flag"
17521 || test ! -s conftest.err'
17522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17523 (eval $ac_try) 2>&5
17524 ac_status=$?
17525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17526 (exit $ac_status); }; } &&
17527 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; }; then
17533 ac_cv_func_shl_load=yes
17534else
17535 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017536sed 's/^/| /' conftest.$ac_ext >&5
17537
John Criswell47fdd832003-07-14 16:52:07 +000017538ac_cv_func_shl_load=no
17539fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017540rm -f conftest.err conftest.$ac_objext \
17541 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017542fi
17543echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17544echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17545if test $ac_cv_func_shl_load = yes; then
17546 lt_cv_dlopen="shl_load"
17547else
17548 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17549echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17550if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17551 echo $ECHO_N "(cached) $ECHO_C" >&6
17552else
17553 ac_check_lib_save_LIBS=$LIBS
17554LIBS="-ldld $LIBS"
17555cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017556/* confdefs.h. */
17557_ACEOF
17558cat confdefs.h >>conftest.$ac_ext
17559cat >>conftest.$ac_ext <<_ACEOF
17560/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017561
17562/* Override any gcc2 internal prototype to avoid an error. */
17563#ifdef __cplusplus
17564extern "C"
17565#endif
17566/* We use char because int might match the return type of a gcc2
17567 builtin and then its argument prototype would still apply. */
17568char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017569int
17570main ()
17571{
17572shl_load ();
17573 ;
17574 return 0;
17575}
17576_ACEOF
17577rm -f conftest.$ac_objext conftest$ac_exeext
17578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017579 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017580 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017581 grep -v '^ *+' conftest.er1 >conftest.err
17582 rm -f conftest.er1
17583 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017586 { ac_try='test -z "$ac_cxx_werror_flag"
17587 || test ! -s conftest.err'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; } &&
17593 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 ac_cv_lib_dld_shl_load=yes
17600else
17601 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017602sed 's/^/| /' conftest.$ac_ext >&5
17603
John Criswell47fdd832003-07-14 16:52:07 +000017604ac_cv_lib_dld_shl_load=no
17605fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017606rm -f conftest.err conftest.$ac_objext \
17607 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017608LIBS=$ac_check_lib_save_LIBS
17609fi
17610echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17611echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17612if test $ac_cv_lib_dld_shl_load = yes; then
17613 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17614else
17615 echo "$as_me:$LINENO: checking for dlopen" >&5
17616echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17617if test "${ac_cv_func_dlopen+set}" = set; then
17618 echo $ECHO_N "(cached) $ECHO_C" >&6
17619else
17620 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017621/* confdefs.h. */
17622_ACEOF
17623cat confdefs.h >>conftest.$ac_ext
17624cat >>conftest.$ac_ext <<_ACEOF
17625/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017626/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17628#define dlopen innocuous_dlopen
17629
John Criswell47fdd832003-07-14 16:52:07 +000017630/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017631 which can conflict with char dlopen (); below.
17632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17633 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017634
John Criswell0c38eaf2003-09-10 15:17:25 +000017635#ifdef __STDC__
17636# include <limits.h>
17637#else
17638# include <assert.h>
17639#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017640
17641#undef dlopen
17642
John Criswell47fdd832003-07-14 16:52:07 +000017643/* Override any gcc2 internal prototype to avoid an error. */
17644#ifdef __cplusplus
17645extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017646{
John Criswell47fdd832003-07-14 16:52:07 +000017647#endif
17648/* We use char because int might match the return type of a gcc2
17649 builtin and then its argument prototype would still apply. */
17650char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017651/* The GNU C library defines this for functions which it implements
17652 to always fail with ENOSYS. Some functions are actually named
17653 something starting with __ and the normal name is an alias. */
17654#if defined (__stub_dlopen) || defined (__stub___dlopen)
17655choke me
17656#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017657char (*f) () = dlopen;
17658#endif
17659#ifdef __cplusplus
17660}
John Criswell47fdd832003-07-14 16:52:07 +000017661#endif
17662
John Criswell0c38eaf2003-09-10 15:17:25 +000017663int
17664main ()
17665{
17666return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017667 ;
17668 return 0;
17669}
17670_ACEOF
17671rm -f conftest.$ac_objext conftest$ac_exeext
17672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017673 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017674 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017675 grep -v '^ *+' conftest.er1 >conftest.err
17676 rm -f conftest.er1
17677 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017680 { ac_try='test -z "$ac_cxx_werror_flag"
17681 || test ! -s conftest.err'
17682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17683 (eval $ac_try) 2>&5
17684 ac_status=$?
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }; } &&
17687 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17690 ac_status=$?
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 ac_cv_func_dlopen=yes
17694else
17695 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017696sed 's/^/| /' conftest.$ac_ext >&5
17697
John Criswell47fdd832003-07-14 16:52:07 +000017698ac_cv_func_dlopen=no
17699fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017700rm -f conftest.err conftest.$ac_objext \
17701 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017702fi
17703echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17704echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17705if test $ac_cv_func_dlopen = yes; then
17706 lt_cv_dlopen="dlopen"
17707else
17708 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17709echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17710if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17711 echo $ECHO_N "(cached) $ECHO_C" >&6
17712else
17713 ac_check_lib_save_LIBS=$LIBS
17714LIBS="-ldl $LIBS"
17715cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017716/* confdefs.h. */
17717_ACEOF
17718cat confdefs.h >>conftest.$ac_ext
17719cat >>conftest.$ac_ext <<_ACEOF
17720/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017721
17722/* Override any gcc2 internal prototype to avoid an error. */
17723#ifdef __cplusplus
17724extern "C"
17725#endif
17726/* We use char because int might match the return type of a gcc2
17727 builtin and then its argument prototype would still apply. */
17728char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017729int
17730main ()
17731{
17732dlopen ();
17733 ;
17734 return 0;
17735}
17736_ACEOF
17737rm -f conftest.$ac_objext conftest$ac_exeext
17738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017739 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017741 grep -v '^ *+' conftest.er1 >conftest.err
17742 rm -f conftest.er1
17743 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017746 { ac_try='test -z "$ac_cxx_werror_flag"
17747 || test ! -s conftest.err'
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; } &&
17753 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 ac_cv_lib_dl_dlopen=yes
17760else
17761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017762sed 's/^/| /' conftest.$ac_ext >&5
17763
John Criswell47fdd832003-07-14 16:52:07 +000017764ac_cv_lib_dl_dlopen=no
17765fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017766rm -f conftest.err conftest.$ac_objext \
17767 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017768LIBS=$ac_check_lib_save_LIBS
17769fi
17770echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17771echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17772if test $ac_cv_lib_dl_dlopen = yes; then
17773 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17774else
17775 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17776echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17777if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17778 echo $ECHO_N "(cached) $ECHO_C" >&6
17779else
17780 ac_check_lib_save_LIBS=$LIBS
17781LIBS="-lsvld $LIBS"
17782cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017783/* confdefs.h. */
17784_ACEOF
17785cat confdefs.h >>conftest.$ac_ext
17786cat >>conftest.$ac_ext <<_ACEOF
17787/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017788
17789/* Override any gcc2 internal prototype to avoid an error. */
17790#ifdef __cplusplus
17791extern "C"
17792#endif
17793/* We use char because int might match the return type of a gcc2
17794 builtin and then its argument prototype would still apply. */
17795char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017796int
17797main ()
17798{
17799dlopen ();
17800 ;
17801 return 0;
17802}
17803_ACEOF
17804rm -f conftest.$ac_objext conftest$ac_exeext
17805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017806 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017807 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017808 grep -v '^ *+' conftest.er1 >conftest.err
17809 rm -f conftest.er1
17810 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17812 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017813 { ac_try='test -z "$ac_cxx_werror_flag"
17814 || test ! -s conftest.err'
17815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17816 (eval $ac_try) 2>&5
17817 ac_status=$?
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); }; } &&
17820 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822 (eval $ac_try) 2>&5
17823 ac_status=$?
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; }; then
17826 ac_cv_lib_svld_dlopen=yes
17827else
17828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017829sed 's/^/| /' conftest.$ac_ext >&5
17830
John Criswell47fdd832003-07-14 16:52:07 +000017831ac_cv_lib_svld_dlopen=no
17832fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017833rm -f conftest.err conftest.$ac_objext \
17834 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017835LIBS=$ac_check_lib_save_LIBS
17836fi
17837echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17838echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17839if test $ac_cv_lib_svld_dlopen = yes; then
17840 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17841else
17842 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17843echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17844if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17845 echo $ECHO_N "(cached) $ECHO_C" >&6
17846else
17847 ac_check_lib_save_LIBS=$LIBS
17848LIBS="-ldld $LIBS"
17849cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017850/* confdefs.h. */
17851_ACEOF
17852cat confdefs.h >>conftest.$ac_ext
17853cat >>conftest.$ac_ext <<_ACEOF
17854/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017855
17856/* Override any gcc2 internal prototype to avoid an error. */
17857#ifdef __cplusplus
17858extern "C"
17859#endif
17860/* We use char because int might match the return type of a gcc2
17861 builtin and then its argument prototype would still apply. */
17862char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017863int
17864main ()
17865{
17866dld_link ();
17867 ;
17868 return 0;
17869}
17870_ACEOF
17871rm -f conftest.$ac_objext conftest$ac_exeext
17872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017873 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017874 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017875 grep -v '^ *+' conftest.er1 >conftest.err
17876 rm -f conftest.er1
17877 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17879 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017880 { ac_try='test -z "$ac_cxx_werror_flag"
17881 || test ! -s conftest.err'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; } &&
17887 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 ac_cv_lib_dld_dld_link=yes
17894else
17895 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017896sed 's/^/| /' conftest.$ac_ext >&5
17897
John Criswell47fdd832003-07-14 16:52:07 +000017898ac_cv_lib_dld_dld_link=no
17899fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017900rm -f conftest.err conftest.$ac_objext \
17901 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017902LIBS=$ac_check_lib_save_LIBS
17903fi
17904echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17905echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17906if test $ac_cv_lib_dld_dld_link = yes; then
17907 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17908fi
17909
17910
17911fi
17912
17913
17914fi
17915
17916
17917fi
17918
17919
17920fi
17921
17922
17923fi
17924
17925 ;;
17926 esac
17927
17928 if test "x$lt_cv_dlopen" != xno; then
17929 enable_dlopen=yes
17930 else
17931 enable_dlopen=no
17932 fi
17933
17934 case $lt_cv_dlopen in
17935 dlopen)
17936 save_CPPFLAGS="$CPPFLAGS"
17937 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17938
17939 save_LDFLAGS="$LDFLAGS"
17940 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17941
17942 save_LIBS="$LIBS"
17943 LIBS="$lt_cv_dlopen_libs $LIBS"
17944
17945 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17946echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17947if test "${lt_cv_dlopen_self+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17949else
17950 if test "$cross_compiling" = yes; then :
17951 lt_cv_dlopen_self=cross
17952else
17953 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17954 lt_status=$lt_dlunknown
17955 cat > conftest.$ac_ext <<EOF
Reid Spencer59473af2004-12-25 07:31:29 +000017956#line 17956 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017957#include "confdefs.h"
17958
17959#if HAVE_DLFCN_H
17960#include <dlfcn.h>
17961#endif
17962
17963#include <stdio.h>
17964
17965#ifdef RTLD_GLOBAL
17966# define LT_DLGLOBAL RTLD_GLOBAL
17967#else
17968# ifdef DL_GLOBAL
17969# define LT_DLGLOBAL DL_GLOBAL
17970# else
17971# define LT_DLGLOBAL 0
17972# endif
17973#endif
17974
17975/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17976 find out it does not work in some platform. */
17977#ifndef LT_DLLAZY_OR_NOW
17978# ifdef RTLD_LAZY
17979# define LT_DLLAZY_OR_NOW RTLD_LAZY
17980# else
17981# ifdef DL_LAZY
17982# define LT_DLLAZY_OR_NOW DL_LAZY
17983# else
17984# ifdef RTLD_NOW
17985# define LT_DLLAZY_OR_NOW RTLD_NOW
17986# else
17987# ifdef DL_NOW
17988# define LT_DLLAZY_OR_NOW DL_NOW
17989# else
17990# define LT_DLLAZY_OR_NOW 0
17991# endif
17992# endif
17993# endif
17994# endif
17995#endif
17996
17997#ifdef __cplusplus
17998extern "C" void exit (int);
17999#endif
18000
18001void fnord() { int i=42;}
18002int main ()
18003{
18004 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18005 int status = $lt_dlunknown;
18006
18007 if (self)
18008 {
18009 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18010 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18011 /* dlclose (self); */
18012 }
18013
18014 exit (status);
18015}
18016EOF
18017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18018 (eval $ac_link) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18022 (./conftest; exit; ) 2>/dev/null
18023 lt_status=$?
18024 case x$lt_status in
18025 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18026 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18027 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18028 esac
18029 else :
18030 # compilation failed
18031 lt_cv_dlopen_self=no
18032 fi
18033fi
18034rm -fr conftest*
18035
18036
18037fi
18038echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18039echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18040
18041 if test "x$lt_cv_dlopen_self" = xyes; then
18042 LDFLAGS="$LDFLAGS $link_static_flag"
18043 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18044echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18045if test "${lt_cv_dlopen_self_static+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18047else
18048 if test "$cross_compiling" = yes; then :
18049 lt_cv_dlopen_self_static=cross
18050else
18051 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18052 lt_status=$lt_dlunknown
18053 cat > conftest.$ac_ext <<EOF
Reid Spencer59473af2004-12-25 07:31:29 +000018054#line 18054 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018055#include "confdefs.h"
18056
18057#if HAVE_DLFCN_H
18058#include <dlfcn.h>
18059#endif
18060
18061#include <stdio.h>
18062
18063#ifdef RTLD_GLOBAL
18064# define LT_DLGLOBAL RTLD_GLOBAL
18065#else
18066# ifdef DL_GLOBAL
18067# define LT_DLGLOBAL DL_GLOBAL
18068# else
18069# define LT_DLGLOBAL 0
18070# endif
18071#endif
18072
18073/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18074 find out it does not work in some platform. */
18075#ifndef LT_DLLAZY_OR_NOW
18076# ifdef RTLD_LAZY
18077# define LT_DLLAZY_OR_NOW RTLD_LAZY
18078# else
18079# ifdef DL_LAZY
18080# define LT_DLLAZY_OR_NOW DL_LAZY
18081# else
18082# ifdef RTLD_NOW
18083# define LT_DLLAZY_OR_NOW RTLD_NOW
18084# else
18085# ifdef DL_NOW
18086# define LT_DLLAZY_OR_NOW DL_NOW
18087# else
18088# define LT_DLLAZY_OR_NOW 0
18089# endif
18090# endif
18091# endif
18092# endif
18093#endif
18094
18095#ifdef __cplusplus
18096extern "C" void exit (int);
18097#endif
18098
18099void fnord() { int i=42;}
18100int main ()
18101{
18102 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18103 int status = $lt_dlunknown;
18104
18105 if (self)
18106 {
18107 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18108 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18109 /* dlclose (self); */
18110 }
18111
18112 exit (status);
18113}
18114EOF
18115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18116 (eval $ac_link) 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18120 (./conftest; exit; ) 2>/dev/null
18121 lt_status=$?
18122 case x$lt_status in
18123 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18124 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18125 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18126 esac
18127 else :
18128 # compilation failed
18129 lt_cv_dlopen_self_static=no
18130 fi
18131fi
18132rm -fr conftest*
18133
18134
18135fi
18136echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18137echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18138 fi
18139
18140 CPPFLAGS="$save_CPPFLAGS"
18141 LDFLAGS="$save_LDFLAGS"
18142 LIBS="$save_LIBS"
18143 ;;
18144 esac
18145
18146 case $lt_cv_dlopen_self in
18147 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18148 *) enable_dlopen_self=unknown ;;
18149 esac
18150
18151 case $lt_cv_dlopen_self_static in
18152 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18153 *) enable_dlopen_self_static=unknown ;;
18154 esac
18155fi
18156
18157
18158# The else clause should only fire when bootstrapping the
18159# libtool distribution, otherwise you forgot to ship ltmain.sh
18160# with your package, and you will get complaints that there are
18161# no rules to generate ltmain.sh.
18162if test -f "$ltmain"; then
18163 # See if we are running on zsh, and set the options which allow our commands through
18164 # without removal of \ escapes.
18165 if test -n "${ZSH_VERSION+set}" ; then
18166 setopt NO_GLOB_SUBST
18167 fi
18168 # Now quote all the things that may contain metacharacters while being
18169 # careful not to overquote the AC_SUBSTed values. We take copies of the
18170 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018171 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18172 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018173 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18174 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18175 deplibs_check_method reload_flag reload_cmds need_locks \
18176 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18177 lt_cv_sys_global_symbol_to_c_name_address \
18178 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18179 old_postinstall_cmds old_postuninstall_cmds \
18180 compiler_CXX \
18181 CC_CXX \
18182 LD_CXX \
18183 lt_prog_compiler_wl_CXX \
18184 lt_prog_compiler_pic_CXX \
18185 lt_prog_compiler_static_CXX \
18186 lt_prog_compiler_no_builtin_flag_CXX \
18187 export_dynamic_flag_spec_CXX \
18188 thread_safe_flag_spec_CXX \
18189 whole_archive_flag_spec_CXX \
18190 enable_shared_with_static_runtimes_CXX \
18191 old_archive_cmds_CXX \
18192 old_archive_from_new_cmds_CXX \
18193 predep_objects_CXX \
18194 postdep_objects_CXX \
18195 predeps_CXX \
18196 postdeps_CXX \
18197 compiler_lib_search_path_CXX \
18198 archive_cmds_CXX \
18199 archive_expsym_cmds_CXX \
18200 postinstall_cmds_CXX \
18201 postuninstall_cmds_CXX \
18202 old_archive_from_expsyms_cmds_CXX \
18203 allow_undefined_flag_CXX \
18204 no_undefined_flag_CXX \
18205 export_symbols_cmds_CXX \
18206 hardcode_libdir_flag_spec_CXX \
18207 hardcode_libdir_flag_spec_ld_CXX \
18208 hardcode_libdir_separator_CXX \
18209 hardcode_automatic_CXX \
18210 module_cmds_CXX \
18211 module_expsym_cmds_CXX \
18212 lt_cv_prog_compiler_c_o_CXX \
18213 exclude_expsyms_CXX \
18214 include_expsyms_CXX; do
18215
18216 case $var in
18217 old_archive_cmds_CXX | \
18218 old_archive_from_new_cmds_CXX | \
18219 archive_cmds_CXX | \
18220 archive_expsym_cmds_CXX | \
18221 module_cmds_CXX | \
18222 module_expsym_cmds_CXX | \
18223 old_archive_from_expsyms_cmds_CXX | \
18224 export_symbols_cmds_CXX | \
18225 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18226 postinstall_cmds | postuninstall_cmds | \
18227 old_postinstall_cmds | old_postuninstall_cmds | \
18228 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18229 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018230 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 +000018231 ;;
18232 *)
18233 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18234 ;;
18235 esac
18236 done
18237
18238 case $lt_echo in
18239 *'\$0 --fallback-echo"')
18240 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18241 ;;
18242 esac
18243
18244cfgfile="$ofile"
18245
18246 cat <<__EOF__ >> "$cfgfile"
18247# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18248
18249# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18250
18251# Shell to use when invoking shell scripts.
18252SHELL=$lt_SHELL
18253
18254# Whether or not to build shared libraries.
18255build_libtool_libs=$enable_shared
18256
18257# Whether or not to build static libraries.
18258build_old_libs=$enable_static
18259
18260# Whether or not to add -lc for building shared libraries.
18261build_libtool_need_lc=$archive_cmds_need_lc_CXX
18262
18263# Whether or not to disallow shared libs when runtime libs are static
18264allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18265
18266# Whether or not to optimize for fast installation.
18267fast_install=$enable_fast_install
18268
18269# The host system.
18270host_alias=$host_alias
18271host=$host
18272
18273# An echo program that does not interpret backslashes.
18274echo=$lt_echo
18275
18276# The archiver.
18277AR=$lt_AR
18278AR_FLAGS=$lt_AR_FLAGS
18279
18280# A C compiler.
18281LTCC=$lt_LTCC
18282
18283# A language-specific compiler.
18284CC=$lt_compiler_CXX
18285
18286# Is the compiler the GNU C compiler?
18287with_gcc=$GCC_CXX
18288
18289# An ERE matcher.
18290EGREP=$lt_EGREP
18291
18292# The linker used to build libraries.
18293LD=$lt_LD_CXX
18294
18295# Whether we need hard or soft links.
18296LN_S=$lt_LN_S
18297
18298# A BSD-compatible nm program.
18299NM=$lt_NM
18300
18301# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018302STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018303
18304# Used to examine libraries when file_magic_cmd begins "file"
18305MAGIC_CMD=$MAGIC_CMD
18306
18307# Used on cygwin: DLL creation program.
18308DLLTOOL="$DLLTOOL"
18309
18310# Used on cygwin: object dumper.
18311OBJDUMP="$OBJDUMP"
18312
18313# Used on cygwin: assembler.
18314AS="$AS"
18315
18316# The name of the directory that contains temporary libtool files.
18317objdir=$objdir
18318
18319# How to create reloadable object files.
18320reload_flag=$lt_reload_flag
18321reload_cmds=$lt_reload_cmds
18322
18323# How to pass a linker flag through the compiler.
18324wl=$lt_lt_prog_compiler_wl_CXX
18325
18326# Object file suffix (normally "o").
18327objext="$ac_objext"
18328
18329# Old archive suffix (normally "a").
18330libext="$libext"
18331
18332# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018333shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018334
18335# Executable file suffix (normally "").
18336exeext="$exeext"
18337
18338# Additional compiler flags for building library objects.
18339pic_flag=$lt_lt_prog_compiler_pic_CXX
18340pic_mode=$pic_mode
18341
18342# What is the maximum length of a command?
18343max_cmd_len=$lt_cv_sys_max_cmd_len
18344
18345# Does compiler simultaneously support -c and -o options?
18346compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18347
18348# Must we lock files when doing compilation ?
18349need_locks=$lt_need_locks
18350
18351# Do we need the lib prefix for modules?
18352need_lib_prefix=$need_lib_prefix
18353
18354# Do we need a version for libraries?
18355need_version=$need_version
18356
18357# Whether dlopen is supported.
18358dlopen_support=$enable_dlopen
18359
18360# Whether dlopen of programs is supported.
18361dlopen_self=$enable_dlopen_self
18362
18363# Whether dlopen of statically linked programs is supported.
18364dlopen_self_static=$enable_dlopen_self_static
18365
18366# Compiler flag to prevent dynamic linking.
18367link_static_flag=$lt_lt_prog_compiler_static_CXX
18368
18369# Compiler flag to turn off builtin functions.
18370no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18371
18372# Compiler flag to allow reflexive dlopens.
18373export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18374
18375# Compiler flag to generate shared objects directly from archives.
18376whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18377
18378# Compiler flag to generate thread-safe objects.
18379thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18380
18381# Library versioning type.
18382version_type=$version_type
18383
18384# Format of library name prefix.
18385libname_spec=$lt_libname_spec
18386
18387# List of archive names. First name is the real one, the rest are links.
18388# The last name is the one that the linker finds with -lNAME.
18389library_names_spec=$lt_library_names_spec
18390
18391# The coded name of the library, if different from the real name.
18392soname_spec=$lt_soname_spec
18393
18394# Commands used to build and install an old-style archive.
18395RANLIB=$lt_RANLIB
18396old_archive_cmds=$lt_old_archive_cmds_CXX
18397old_postinstall_cmds=$lt_old_postinstall_cmds
18398old_postuninstall_cmds=$lt_old_postuninstall_cmds
18399
18400# Create an old-style archive from a shared archive.
18401old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18402
18403# Create a temporary old-style archive to link instead of a shared archive.
18404old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18405
18406# Commands used to build and install a shared archive.
18407archive_cmds=$lt_archive_cmds_CXX
18408archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18409postinstall_cmds=$lt_postinstall_cmds
18410postuninstall_cmds=$lt_postuninstall_cmds
18411
18412# Commands used to build a loadable module (assumed same as above if empty)
18413module_cmds=$lt_module_cmds_CXX
18414module_expsym_cmds=$lt_module_expsym_cmds_CXX
18415
18416# Commands to strip libraries.
18417old_striplib=$lt_old_striplib
18418striplib=$lt_striplib
18419
18420# Dependencies to place before the objects being linked to create a
18421# shared library.
18422predep_objects=$lt_predep_objects_CXX
18423
18424# Dependencies to place after the objects being linked to create a
18425# shared library.
18426postdep_objects=$lt_postdep_objects_CXX
18427
18428# Dependencies to place before the objects being linked to create a
18429# shared library.
18430predeps=$lt_predeps_CXX
18431
18432# Dependencies to place after the objects being linked to create a
18433# shared library.
18434postdeps=$lt_postdeps_CXX
18435
18436# The library search path used internally by the compiler when linking
18437# a shared library.
18438compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18439
18440# Method to check whether dependent libraries are shared objects.
18441deplibs_check_method=$lt_deplibs_check_method
18442
18443# Command to use when deplibs_check_method == file_magic.
18444file_magic_cmd=$lt_file_magic_cmd
18445
18446# Flag that allows shared libraries with undefined symbols to be built.
18447allow_undefined_flag=$lt_allow_undefined_flag_CXX
18448
18449# Flag that forces no undefined symbols.
18450no_undefined_flag=$lt_no_undefined_flag_CXX
18451
18452# Commands used to finish a libtool library installation in a directory.
18453finish_cmds=$lt_finish_cmds
18454
18455# Same as above, but a single script fragment to be evaled but not shown.
18456finish_eval=$lt_finish_eval
18457
18458# Take the output of nm and produce a listing of raw symbols and C names.
18459global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18460
18461# Transform the output of nm in a proper C declaration
18462global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18463
18464# Transform the output of nm in a C name address pair
18465global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18466
18467# This is the shared library runtime path variable.
18468runpath_var=$runpath_var
18469
18470# This is the shared library path variable.
18471shlibpath_var=$shlibpath_var
18472
18473# Is shlibpath searched before the hard-coded library search path?
18474shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18475
18476# How to hardcode a shared library path into an executable.
18477hardcode_action=$hardcode_action_CXX
18478
18479# Whether we should hardcode library paths into libraries.
18480hardcode_into_libs=$hardcode_into_libs
18481
18482# Flag to hardcode \$libdir into a binary during linking.
18483# This must work even if \$libdir does not exist.
18484hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18485
18486# If ld is used when linking, flag to hardcode \$libdir into
18487# a binary during linking. This must work even if \$libdir does
18488# not exist.
18489hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18490
18491# Whether we need a single -rpath flag with a separated argument.
18492hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18493
18494# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18495# resulting binary.
18496hardcode_direct=$hardcode_direct_CXX
18497
18498# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18499# resulting binary.
18500hardcode_minus_L=$hardcode_minus_L_CXX
18501
18502# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18503# the resulting binary.
18504hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18505
18506# Set to yes if building a shared library automatically hardcodes DIR into the library
18507# and all subsequent libraries and executables linked against it.
18508hardcode_automatic=$hardcode_automatic_CXX
18509
18510# Variables whose values should be saved in libtool wrapper scripts and
18511# restored at relink time.
18512variables_saved_for_relink="$variables_saved_for_relink"
18513
18514# Whether libtool must link a program against all its dependency libraries.
18515link_all_deplibs=$link_all_deplibs_CXX
18516
18517# Compile-time system search path for libraries
18518sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18519
18520# Run-time system search path for libraries
18521sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18522
18523# Fix the shell variable \$srcfile for the compiler.
18524fix_srcfile_path="$fix_srcfile_path_CXX"
18525
18526# Set to yes if exported symbols are required.
18527always_export_symbols=$always_export_symbols_CXX
18528
18529# The commands to list exported symbols.
18530export_symbols_cmds=$lt_export_symbols_cmds_CXX
18531
18532# The commands to extract the exported symbol list from a shared archive.
18533extract_expsyms_cmds=$lt_extract_expsyms_cmds
18534
18535# Symbols that should not be listed in the preloaded symbols.
18536exclude_expsyms=$lt_exclude_expsyms_CXX
18537
18538# Symbols that must always be exported.
18539include_expsyms=$lt_include_expsyms_CXX
18540
18541# ### END LIBTOOL TAG CONFIG: $tagname
18542
18543__EOF__
18544
18545
18546else
18547 # If there is no Makefile yet, we rely on a make rule to execute
18548 # `config.status --recheck' to rerun these tests and create the
18549 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018550 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18551 if test -f "$ltmain_in"; then
18552 test -f Makefile && make "$ltmain"
18553 fi
John Criswell47fdd832003-07-14 16:52:07 +000018554fi
18555
18556
18557ac_ext=c
18558ac_cpp='$CPP $CPPFLAGS'
18559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18561ac_compiler_gnu=$ac_cv_c_compiler_gnu
18562
18563CC=$lt_save_CC
18564LDCXX=$LD
18565LD=$lt_save_LD
18566GCC=$lt_save_GCC
18567with_gnu_ldcxx=$with_gnu_ld
18568with_gnu_ld=$lt_save_with_gnu_ld
18569lt_cv_path_LDCXX=$lt_cv_path_LD
18570lt_cv_path_LD=$lt_save_path_LD
18571lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18572lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18573
18574 else
18575 tagname=""
18576 fi
18577 ;;
18578
18579 F77)
18580 if test -n "$F77" && test "X$F77" != "Xno"; then
18581
18582ac_ext=f
18583ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18584ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18585ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18586
18587
18588archive_cmds_need_lc_F77=no
18589allow_undefined_flag_F77=
18590always_export_symbols_F77=no
18591archive_expsym_cmds_F77=
18592export_dynamic_flag_spec_F77=
18593hardcode_direct_F77=no
18594hardcode_libdir_flag_spec_F77=
18595hardcode_libdir_flag_spec_ld_F77=
18596hardcode_libdir_separator_F77=
18597hardcode_minus_L_F77=no
18598hardcode_automatic_F77=no
18599module_cmds_F77=
18600module_expsym_cmds_F77=
18601link_all_deplibs_F77=unknown
18602old_archive_cmds_F77=$old_archive_cmds
18603no_undefined_flag_F77=
18604whole_archive_flag_spec_F77=
18605enable_shared_with_static_runtimes_F77=no
18606
18607# Source file extension for f77 test sources.
18608ac_ext=f
18609
18610# Object file extension for compiled f77 test sources.
18611objext=o
18612objext_F77=$objext
18613
18614# Code to be used in simple compile tests
18615lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18616
18617# Code to be used in simple link tests
18618lt_simple_link_test_code=" program t\n end\n"
18619
18620# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18621
18622# If no C compiler was specified, use CC.
18623LTCC=${LTCC-"$CC"}
18624
18625# Allow CC to be a program name with arguments.
18626compiler=$CC
18627
18628
18629# Allow CC to be a program name with arguments.
18630lt_save_CC="$CC"
18631CC=${F77-"f77"}
18632compiler=$CC
18633compiler_F77=$CC
18634cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18635
18636echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18637echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18638echo "$as_me:$LINENO: result: $can_build_shared" >&5
18639echo "${ECHO_T}$can_build_shared" >&6
18640
18641echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18642echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18643test "$can_build_shared" = "no" && enable_shared=no
18644
18645# On AIX, shared libraries and static libraries use the same namespace, and
18646# are all built from PIC.
18647case "$host_os" in
18648aix3*)
18649 test "$enable_shared" = yes && enable_static=no
18650 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018651 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018652 postinstall_cmds='$RANLIB $lib'
18653 fi
18654 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018655aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018656 test "$enable_shared" = yes && enable_static=no
18657 ;;
18658esac
18659echo "$as_me:$LINENO: result: $enable_shared" >&5
18660echo "${ECHO_T}$enable_shared" >&6
18661
18662echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18663echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18664# Make sure either enable_shared or enable_static is yes.
18665test "$enable_shared" = yes || enable_static=yes
18666echo "$as_me:$LINENO: result: $enable_static" >&5
18667echo "${ECHO_T}$enable_static" >&6
18668
18669test "$ld_shlibs_F77" = no && can_build_shared=no
18670
18671GCC_F77="$G77"
18672LD_F77="$LD"
18673
18674lt_prog_compiler_wl_F77=
18675lt_prog_compiler_pic_F77=
18676lt_prog_compiler_static_F77=
18677
18678echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18679echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18680
18681 if test "$GCC" = yes; then
18682 lt_prog_compiler_wl_F77='-Wl,'
18683 lt_prog_compiler_static_F77='-static'
18684
18685 case $host_os in
18686 aix*)
18687 # All AIX code is PIC.
18688 if test "$host_cpu" = ia64; then
18689 # AIX 5 now supports IA64 processor
18690 lt_prog_compiler_static_F77='-Bstatic'
18691 fi
18692 ;;
18693
18694 amigaos*)
18695 # FIXME: we need at least 68020 code to build shared libraries, but
18696 # adding the `-m68020' flag to GCC prevents building anything better,
18697 # like `-m68040'.
18698 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18699 ;;
18700
18701 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18702 # PIC is the default for these OSes.
18703 ;;
18704
18705 mingw* | pw32* | os2*)
18706 # This hack is so that the source file can tell whether it is being
18707 # built for inclusion in a dll (and should export symbols for example).
18708 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18709 ;;
18710
18711 darwin* | rhapsody*)
18712 # PIC is the default on this platform
18713 # Common symbols not allowed in MH_DYLIB files
18714 lt_prog_compiler_pic_F77='-fno-common'
18715 ;;
18716
18717 msdosdjgpp*)
18718 # Just because we use GCC doesn't mean we suddenly get shared libraries
18719 # on systems that don't support them.
18720 lt_prog_compiler_can_build_shared_F77=no
18721 enable_shared=no
18722 ;;
18723
18724 sysv4*MP*)
18725 if test -d /usr/nec; then
18726 lt_prog_compiler_pic_F77=-Kconform_pic
18727 fi
18728 ;;
18729
18730 hpux*)
18731 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18732 # not for PA HP-UX.
18733 case "$host_cpu" in
18734 hppa*64*|ia64*)
18735 # +Z the default
18736 ;;
18737 *)
18738 lt_prog_compiler_pic_F77='-fPIC'
18739 ;;
18740 esac
18741 ;;
18742
18743 *)
18744 lt_prog_compiler_pic_F77='-fPIC'
18745 ;;
18746 esac
18747 else
18748 # PORTME Check for flag to pass linker flags through the system compiler.
18749 case $host_os in
18750 aix*)
18751 lt_prog_compiler_wl_F77='-Wl,'
18752 if test "$host_cpu" = ia64; then
18753 # AIX 5 now supports IA64 processor
18754 lt_prog_compiler_static_F77='-Bstatic'
18755 else
18756 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18757 fi
18758 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018759 darwin*)
18760 # PIC is the default on this platform
18761 # Common symbols not allowed in MH_DYLIB files
18762 case "$cc_basename" in
18763 xlc*)
18764 lt_prog_compiler_pic_F77='-qnocommon'
18765 lt_prog_compiler_wl_F77='-Wl,'
18766 ;;
18767 esac
18768 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018769
18770 mingw* | pw32* | os2*)
18771 # This hack is so that the source file can tell whether it is being
18772 # built for inclusion in a dll (and should export symbols for example).
18773 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18774 ;;
18775
18776 hpux9* | hpux10* | hpux11*)
18777 lt_prog_compiler_wl_F77='-Wl,'
18778 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18779 # not for PA HP-UX.
18780 case "$host_cpu" in
18781 hppa*64*|ia64*)
18782 # +Z the default
18783 ;;
18784 *)
18785 lt_prog_compiler_pic_F77='+Z'
18786 ;;
18787 esac
18788 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18789 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18790 ;;
18791
18792 irix5* | irix6* | nonstopux*)
18793 lt_prog_compiler_wl_F77='-Wl,'
18794 # PIC (with -KPIC) is the default.
18795 lt_prog_compiler_static_F77='-non_shared'
18796 ;;
18797
18798 newsos6)
18799 lt_prog_compiler_pic_F77='-KPIC'
18800 lt_prog_compiler_static_F77='-Bstatic'
18801 ;;
18802
18803 linux*)
18804 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018805 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018806 lt_prog_compiler_wl_F77='-Wl,'
18807 lt_prog_compiler_pic_F77='-KPIC'
18808 lt_prog_compiler_static_F77='-static'
18809 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018810 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018811 lt_prog_compiler_wl_F77='-Wl,'
18812 # All Alpha code is PIC.
18813 lt_prog_compiler_static_F77='-non_shared'
18814 ;;
18815 esac
18816 ;;
18817
18818 osf3* | osf4* | osf5*)
18819 lt_prog_compiler_wl_F77='-Wl,'
18820 # All OSF/1 code is PIC.
18821 lt_prog_compiler_static_F77='-non_shared'
18822 ;;
18823
18824 sco3.2v5*)
18825 lt_prog_compiler_pic_F77='-Kpic'
18826 lt_prog_compiler_static_F77='-dn'
18827 ;;
18828
18829 solaris*)
18830 lt_prog_compiler_wl_F77='-Wl,'
18831 lt_prog_compiler_pic_F77='-KPIC'
18832 lt_prog_compiler_static_F77='-Bstatic'
18833 ;;
18834
18835 sunos4*)
18836 lt_prog_compiler_wl_F77='-Qoption ld '
18837 lt_prog_compiler_pic_F77='-PIC'
18838 lt_prog_compiler_static_F77='-Bstatic'
18839 ;;
18840
18841 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18842 lt_prog_compiler_wl_F77='-Wl,'
18843 lt_prog_compiler_pic_F77='-KPIC'
18844 lt_prog_compiler_static_F77='-Bstatic'
18845 ;;
18846
18847 sysv4*MP*)
18848 if test -d /usr/nec ;then
18849 lt_prog_compiler_pic_F77='-Kconform_pic'
18850 lt_prog_compiler_static_F77='-Bstatic'
18851 fi
18852 ;;
18853
18854 uts4*)
18855 lt_prog_compiler_pic_F77='-pic'
18856 lt_prog_compiler_static_F77='-Bstatic'
18857 ;;
18858
18859 *)
18860 lt_prog_compiler_can_build_shared_F77=no
18861 ;;
18862 esac
18863 fi
18864
18865echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18866echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18867
18868#
18869# Check to make sure the PIC flag actually works.
18870#
18871if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018872
18873echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018874echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18875if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877else
18878 lt_prog_compiler_pic_works_F77=no
18879 ac_outfile=conftest.$ac_objext
18880 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18881 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18882 # Insert the option either (1) after the last *FLAGS variable, or
18883 # (2) before a word containing "conftest.", or (3) at the end.
18884 # Note that $ac_compile itself does not contain backslashes and begins
18885 # with a dollar sign (not a hyphen), so the echo should work correctly.
18886 # The option is referenced via a variable to avoid confusing sed.
18887 lt_compile=`echo "$ac_compile" | $SED \
18888 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18889 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18890 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59473af2004-12-25 07:31:29 +000018891 (eval echo "\"\$as_me:18891: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018892 (eval "$lt_compile" 2>conftest.err)
18893 ac_status=$?
18894 cat conftest.err >&5
Reid Spencer59473af2004-12-25 07:31:29 +000018895 echo "$as_me:18895: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018896 if (exit $ac_status) && test -s "$ac_outfile"; then
18897 # The compiler can only warn and ignore the option if not recognized
18898 # So say no if there are warnings
18899 if test ! -s conftest.err; then
18900 lt_prog_compiler_pic_works_F77=yes
18901 fi
18902 fi
18903 $rm conftest*
18904
18905fi
18906echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18907echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18908
18909if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18910 case $lt_prog_compiler_pic_F77 in
18911 "" | " "*) ;;
18912 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18913 esac
18914else
18915 lt_prog_compiler_pic_F77=
18916 lt_prog_compiler_can_build_shared_F77=no
18917fi
18918
18919fi
18920case "$host_os" in
18921 # For platforms which do not support PIC, -DPIC is meaningless:
18922 *djgpp*)
18923 lt_prog_compiler_pic_F77=
18924 ;;
18925 *)
18926 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18927 ;;
18928esac
18929
18930echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18931echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18932if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18933 echo $ECHO_N "(cached) $ECHO_C" >&6
18934else
18935 lt_cv_prog_compiler_c_o_F77=no
18936 $rm -r conftest 2>/dev/null
18937 mkdir conftest
18938 cd conftest
18939 mkdir out
18940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18941
John Criswell47fdd832003-07-14 16:52:07 +000018942 lt_compiler_flag="-o out/conftest2.$ac_objext"
18943 # Insert the option either (1) after the last *FLAGS variable, or
18944 # (2) before a word containing "conftest.", or (3) at the end.
18945 # Note that $ac_compile itself does not contain backslashes and begins
18946 # with a dollar sign (not a hyphen), so the echo should work correctly.
18947 lt_compile=`echo "$ac_compile" | $SED \
18948 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18950 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59473af2004-12-25 07:31:29 +000018951 (eval echo "\"\$as_me:18951: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018952 (eval "$lt_compile" 2>out/conftest.err)
18953 ac_status=$?
18954 cat out/conftest.err >&5
Reid Spencer59473af2004-12-25 07:31:29 +000018955 echo "$as_me:18955: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018956 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18957 then
18958 # The compiler can only warn and ignore the option if not recognized
18959 # So say no if there are warnings
18960 if test ! -s out/conftest.err; then
18961 lt_cv_prog_compiler_c_o_F77=yes
18962 fi
18963 fi
18964 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018965 $rm conftest*
18966 # SGI C++ compiler will create directory out/ii_files/ for
18967 # template instantiation
18968 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18969 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018970 cd ..
18971 rmdir conftest
18972 $rm conftest*
18973
18974fi
18975echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18976echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18977
18978
18979hard_links="nottested"
18980if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18981 # do not overwrite the value of need_locks provided by the user
18982 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18983echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18984 hard_links=yes
18985 $rm conftest*
18986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18987 touch conftest.a
18988 ln conftest.a conftest.b 2>&5 || hard_links=no
18989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18990 echo "$as_me:$LINENO: result: $hard_links" >&5
18991echo "${ECHO_T}$hard_links" >&6
18992 if test "$hard_links" = no; then
18993 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18994echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18995 need_locks=warn
18996 fi
18997else
18998 need_locks=no
18999fi
19000
19001echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19002echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19003
19004 runpath_var=
19005 allow_undefined_flag_F77=
19006 enable_shared_with_static_runtimes_F77=no
19007 archive_cmds_F77=
19008 archive_expsym_cmds_F77=
19009 old_archive_From_new_cmds_F77=
19010 old_archive_from_expsyms_cmds_F77=
19011 export_dynamic_flag_spec_F77=
19012 whole_archive_flag_spec_F77=
19013 thread_safe_flag_spec_F77=
19014 hardcode_libdir_flag_spec_F77=
19015 hardcode_libdir_flag_spec_ld_F77=
19016 hardcode_libdir_separator_F77=
19017 hardcode_direct_F77=no
19018 hardcode_minus_L_F77=no
19019 hardcode_shlibpath_var_F77=unsupported
19020 link_all_deplibs_F77=unknown
19021 hardcode_automatic_F77=no
19022 module_cmds_F77=
19023 module_expsym_cmds_F77=
19024 always_export_symbols_F77=no
19025 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19026 # include_expsyms should be a list of space-separated symbols to be *always*
19027 # included in the symbol list
19028 include_expsyms_F77=
19029 # exclude_expsyms can be an extended regexp of symbols to exclude
19030 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19031 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19032 # as well as any symbol that contains `d'.
19033 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19034 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19035 # platforms (ab)use it in PIC code, but their linkers get confused if
19036 # the symbol is explicitly referenced. Since portable code cannot
19037 # rely on this symbol name, it's probably fine to never include it in
19038 # preloaded symbol tables.
19039 extract_expsyms_cmds=
19040
19041 case $host_os in
19042 cygwin* | mingw* | pw32*)
19043 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19044 # When not using gcc, we currently assume that we are using
19045 # Microsoft Visual C++.
19046 if test "$GCC" != yes; then
19047 with_gnu_ld=no
19048 fi
19049 ;;
19050 openbsd*)
19051 with_gnu_ld=no
19052 ;;
19053 esac
19054
19055 ld_shlibs_F77=yes
19056 if test "$with_gnu_ld" = yes; then
19057 # If archive_cmds runs LD, not CC, wlarc should be empty
19058 wlarc='${wl}'
19059
19060 # See if GNU ld supports shared libraries.
19061 case $host_os in
19062 aix3* | aix4* | aix5*)
19063 # On AIX/PPC, the GNU linker is very broken
19064 if test "$host_cpu" != ia64; then
19065 ld_shlibs_F77=no
19066 cat <<EOF 1>&2
19067
19068*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19069*** to be unable to reliably create shared libraries on AIX.
19070*** Therefore, libtool is disabling shared libraries support. If you
19071*** really care for shared libraries, you may want to modify your PATH
19072*** so that a non-GNU linker is found, and then restart.
19073
19074EOF
19075 fi
19076 ;;
19077
19078 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019079 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 +000019080 hardcode_libdir_flag_spec_F77='-L$libdir'
19081 hardcode_minus_L_F77=yes
19082
19083 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19084 # that the semantics of dynamic libraries on AmigaOS, at least up
19085 # to version 4, is to share data among multiple programs linked
19086 # with the same dynamic library. Since this doesn't match the
19087 # behavior of shared libraries on other platforms, we can't use
19088 # them.
19089 ld_shlibs_F77=no
19090 ;;
19091
19092 beos*)
19093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19094 allow_undefined_flag_F77=unsupported
19095 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19096 # support --undefined. This deserves some investigation. FIXME
19097 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19098 else
19099 ld_shlibs_F77=no
19100 fi
19101 ;;
19102
19103 cygwin* | mingw* | pw32*)
19104 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19105 # as there is no search path for DLLs.
19106 hardcode_libdir_flag_spec_F77='-L$libdir'
19107 allow_undefined_flag_F77=unsupported
19108 always_export_symbols_F77=no
19109 enable_shared_with_static_runtimes_F77=yes
19110 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19111
19112 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19113 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19114 # If the export-symbols file already is a .def file (1st line
19115 # is EXPORTS), use it as is; otherwise, prepend...
19116 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19117 cp $export_symbols $output_objdir/$soname.def;
19118 else
19119 echo EXPORTS > $output_objdir/$soname.def;
19120 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019121 fi~
19122 $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 +000019123 else
19124 ld_shlibs=no
19125 fi
19126 ;;
19127
19128 netbsd*)
19129 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19130 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19131 wlarc=
19132 else
19133 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19134 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19135 fi
19136 ;;
19137
19138 solaris* | sysv5*)
19139 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19140 ld_shlibs_F77=no
19141 cat <<EOF 1>&2
19142
19143*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19144*** create shared libraries on Solaris systems. Therefore, libtool
19145*** is disabling shared libraries support. We urge you to upgrade GNU
19146*** binutils to release 2.9.1 or newer. Another option is to modify
19147*** your PATH or compiler configuration so that the native linker is
19148*** used, and then restart.
19149
19150EOF
19151 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19152 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19153 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19154 else
19155 ld_shlibs_F77=no
19156 fi
19157 ;;
19158
19159 sunos4*)
19160 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19161 wlarc=
19162 hardcode_direct_F77=yes
19163 hardcode_shlibpath_var_F77=no
19164 ;;
19165
Reid Spencer2706f8c2004-09-19 23:53:36 +000019166 linux*)
19167 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19168 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19169 archive_cmds_F77="$tmp_archive_cmds"
19170 supports_anon_versioning=no
19171 case `$LD -v 2>/dev/null` in
19172 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19173 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19174 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19175 *\ 2.11.*) ;; # other 2.11 versions
19176 *) supports_anon_versioning=yes ;;
19177 esac
19178 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019179 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19180cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19181$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019182 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19183 else
19184 archive_expsym_cmds_F77="$tmp_archive_cmds"
19185 fi
19186 else
19187 ld_shlibs_F77=no
19188 fi
19189 ;;
19190
John Criswell47fdd832003-07-14 16:52:07 +000019191 *)
19192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19193 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19194 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19195 else
19196 ld_shlibs_F77=no
19197 fi
19198 ;;
19199 esac
19200
19201 if test "$ld_shlibs_F77" = yes; then
19202 runpath_var=LD_RUN_PATH
19203 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19204 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19205 # ancient GNU ld didn't support --whole-archive et. al.
19206 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19207 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19208 else
19209 whole_archive_flag_spec_F77=
19210 fi
19211 fi
19212 else
19213 # PORTME fill in a description of your system's linker (not GNU ld)
19214 case $host_os in
19215 aix3*)
19216 allow_undefined_flag_F77=unsupported
19217 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019218 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 +000019219 # Note: this linker hardcodes the directories in LIBPATH if there
19220 # are no directories specified by -L.
19221 hardcode_minus_L_F77=yes
19222 if test "$GCC" = yes && test -z "$link_static_flag"; then
19223 # Neither direct hardcoding nor static linking is supported with a
19224 # broken collect2.
19225 hardcode_direct_F77=unsupported
19226 fi
19227 ;;
19228
19229 aix4* | aix5*)
19230 if test "$host_cpu" = ia64; then
19231 # On IA64, the linker does run time linking by default, so we don't
19232 # have to do anything special.
19233 aix_use_runtimelinking=no
19234 exp_sym_flag='-Bexport'
19235 no_entry_flag=""
19236 else
19237 # If we're using GNU nm, then we don't want the "-C" option.
19238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19239 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19240 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'
19241 else
19242 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'
19243 fi
19244 aix_use_runtimelinking=no
19245
19246 # Test if we are trying to use run time linking or normal
19247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19248 # need to do runtime linking.
19249 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19250 for ld_flag in $LDFLAGS; do
19251 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19252 aix_use_runtimelinking=yes
19253 break
19254 fi
19255 done
19256 esac
19257
19258 exp_sym_flag='-bexport'
19259 no_entry_flag='-bnoentry'
19260 fi
19261
19262 # When large executables or shared objects are built, AIX ld can
19263 # have problems creating the table of contents. If linking a library
19264 # or program results in "error TOC overflow" add -mminimal-toc to
19265 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19266 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19267
19268 archive_cmds_F77=''
19269 hardcode_direct_F77=yes
19270 hardcode_libdir_separator_F77=':'
19271 link_all_deplibs_F77=yes
19272
19273 if test "$GCC" = yes; then
19274 case $host_os in aix4.012|aix4.012.*)
19275 # We only want to do this on AIX 4.2 and lower, the check
19276 # below for broken collect2 doesn't work under 4.3+
19277 collect2name=`${CC} -print-prog-name=collect2`
19278 if test -f "$collect2name" && \
19279 strings "$collect2name" | grep resolve_lib_name >/dev/null
19280 then
19281 # We have reworked collect2
19282 hardcode_direct_F77=yes
19283 else
19284 # We have old collect2
19285 hardcode_direct_F77=unsupported
19286 # It fails to find uninstalled libraries when the uninstalled
19287 # path is not listed in the libpath. Setting hardcode_minus_L
19288 # to unsupported forces relinking
19289 hardcode_minus_L_F77=yes
19290 hardcode_libdir_flag_spec_F77='-L$libdir'
19291 hardcode_libdir_separator_F77=
19292 fi
19293 esac
19294 shared_flag='-shared'
19295 else
19296 # not using gcc
19297 if test "$host_cpu" = ia64; then
19298 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19299 # chokes on -Wl,-G. The following line is correct:
19300 shared_flag='-G'
19301 else
19302 if test "$aix_use_runtimelinking" = yes; then
19303 shared_flag='${wl}-G'
19304 else
19305 shared_flag='${wl}-bM:SRE'
19306 fi
19307 fi
19308 fi
19309
19310 # It seems that -bexpall does not export symbols beginning with
19311 # underscore (_), so it is better to generate a list of symbols to export.
19312 always_export_symbols_F77=yes
19313 if test "$aix_use_runtimelinking" = yes; then
19314 # Warning - without using the other runtime loading flags (-brtl),
19315 # -berok will link without error, but may produce a broken library.
19316 allow_undefined_flag_F77='-berok'
19317 # Determine the default libpath from the value encoded in an empty executable.
19318 cat >conftest.$ac_ext <<_ACEOF
19319 program main
19320
19321 end
19322_ACEOF
19323rm -f conftest.$ac_objext conftest$ac_exeext
19324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019325 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019332 { ac_try='test -z "$ac_f77_werror_flag"
19333 || test ! -s conftest.err'
19334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19335 (eval $ac_try) 2>&5
19336 ac_status=$?
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19341 (eval $ac_try) 2>&5
19342 ac_status=$?
19343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19344 (exit $ac_status); }; }; then
19345
19346aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19347}'`
19348# Check for a 64-bit object if we didn't find anything.
19349if 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; }
19350}'`; fi
19351else
19352 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019353sed 's/^/| /' conftest.$ac_ext >&5
19354
John Criswell47fdd832003-07-14 16:52:07 +000019355fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019356rm -f conftest.err conftest.$ac_objext \
19357 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019358if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19359
19360 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19361 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"
19362 else
19363 if test "$host_cpu" = ia64; then
19364 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19365 allow_undefined_flag_F77="-z nodefs"
19366 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"
19367 else
19368 # Determine the default libpath from the value encoded in an empty executable.
19369 cat >conftest.$ac_ext <<_ACEOF
19370 program main
19371
19372 end
19373_ACEOF
19374rm -f conftest.$ac_objext conftest$ac_exeext
19375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019376 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019377 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019378 grep -v '^ *+' conftest.er1 >conftest.err
19379 rm -f conftest.er1
19380 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019383 { ac_try='test -z "$ac_f77_werror_flag"
19384 || test ! -s conftest.err'
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; } &&
19390 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; }; then
19396
19397aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19398}'`
19399# Check for a 64-bit object if we didn't find anything.
19400if 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; }
19401}'`; fi
19402else
19403 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019404sed 's/^/| /' conftest.$ac_ext >&5
19405
John Criswell47fdd832003-07-14 16:52:07 +000019406fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019407rm -f conftest.err conftest.$ac_objext \
19408 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019409if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19410
19411 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19412 # Warning - without using the other run time loading flags,
19413 # -berok will link without error, but may produce a broken library.
19414 no_undefined_flag_F77=' ${wl}-bernotok'
19415 allow_undefined_flag_F77=' ${wl}-berok'
19416 # -bexpall does not export symbols beginning with underscore (_)
19417 always_export_symbols_F77=yes
19418 # Exported symbols can be pulled into shared objects from archives
19419 whole_archive_flag_spec_F77=' '
19420 archive_cmds_need_lc_F77=yes
19421 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019422 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 +000019423 fi
19424 fi
19425 ;;
19426
19427 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019428 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 +000019429 hardcode_libdir_flag_spec_F77='-L$libdir'
19430 hardcode_minus_L_F77=yes
19431 # see comment about different semantics on the GNU ld section
19432 ld_shlibs_F77=no
19433 ;;
19434
Reid Spencer2706f8c2004-09-19 23:53:36 +000019435 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019436 export_dynamic_flag_spec_F77=-rdynamic
19437 ;;
19438
19439 cygwin* | mingw* | pw32*)
19440 # When not using gcc, we currently assume that we are using
19441 # Microsoft Visual C++.
19442 # hardcode_libdir_flag_spec is actually meaningless, as there is
19443 # no search path for DLLs.
19444 hardcode_libdir_flag_spec_F77=' '
19445 allow_undefined_flag_F77=unsupported
19446 # Tell ltmain to make .lib files, not .a files.
19447 libext=lib
19448 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019449 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019450 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019451 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 +000019452 # The linker will automatically build a .lib file if we build a DLL.
19453 old_archive_From_new_cmds_F77='true'
19454 # FIXME: Should let the user specify the lib program.
19455 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19456 fix_srcfile_path='`cygpath -w "$srcfile"`'
19457 enable_shared_with_static_runtimes_F77=yes
19458 ;;
19459
19460 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019461 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019462 rhapsody* | darwin1.[012])
19463 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19464 ;;
19465 *) # Darwin 1.3 on
19466 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19467 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19468 else
19469 case ${MACOSX_DEPLOYMENT_TARGET} in
19470 10.[012])
19471 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19472 ;;
19473 10.*)
19474 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19475 ;;
19476 esac
19477 fi
19478 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019479 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019480 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019481 hardcode_direct_F77=no
19482 hardcode_automatic_F77=yes
19483 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019484 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019485 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019486 if test "$GCC" = yes ; then
19487 output_verbose_link_cmd='echo'
19488 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19489 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19490 # 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 +000019491 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}'
19492 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 +000019493 else
19494 case "$cc_basename" in
19495 xlc*)
19496 output_verbose_link_cmd='echo'
19497 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19498 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19499 # 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 +000019500 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}'
19501 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 +000019502 ;;
19503 *)
19504 ld_shlibs_F77=no
19505 ;;
19506 esac
John Criswell47fdd832003-07-14 16:52:07 +000019507 fi
19508 ;;
19509
19510 dgux*)
19511 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19512 hardcode_libdir_flag_spec_F77='-L$libdir'
19513 hardcode_shlibpath_var_F77=no
19514 ;;
19515
19516 freebsd1*)
19517 ld_shlibs_F77=no
19518 ;;
19519
19520 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19521 # support. Future versions do this automatically, but an explicit c++rt0.o
19522 # does not break anything, and helps significantly (at the cost of a little
19523 # extra space).
19524 freebsd2.2*)
19525 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19526 hardcode_libdir_flag_spec_F77='-R$libdir'
19527 hardcode_direct_F77=yes
19528 hardcode_shlibpath_var_F77=no
19529 ;;
19530
19531 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19532 freebsd2*)
19533 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19534 hardcode_direct_F77=yes
19535 hardcode_minus_L_F77=yes
19536 hardcode_shlibpath_var_F77=no
19537 ;;
19538
19539 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019540 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019541 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19542 hardcode_libdir_flag_spec_F77='-R$libdir'
19543 hardcode_direct_F77=yes
19544 hardcode_shlibpath_var_F77=no
19545 ;;
19546
19547 hpux9*)
19548 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019549 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 +000019550 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019551 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 +000019552 fi
19553 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19554 hardcode_libdir_separator_F77=:
19555 hardcode_direct_F77=yes
19556
19557 # hardcode_minus_L: Not really in the search PATH,
19558 # but as the default location of the library.
19559 hardcode_minus_L_F77=yes
19560 export_dynamic_flag_spec_F77='${wl}-E'
19561 ;;
19562
19563 hpux10* | hpux11*)
19564 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19565 case "$host_cpu" in
19566 hppa*64*|ia64*)
19567 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19568 ;;
19569 *)
19570 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19571 ;;
19572 esac
19573 else
19574 case "$host_cpu" in
19575 hppa*64*|ia64*)
19576 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19577 ;;
19578 *)
19579 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19580 ;;
19581 esac
19582 fi
19583 if test "$with_gnu_ld" = no; then
19584 case "$host_cpu" in
19585 hppa*64*)
19586 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19587 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19588 hardcode_libdir_separator_F77=:
19589 hardcode_direct_F77=no
19590 hardcode_shlibpath_var_F77=no
19591 ;;
19592 ia64*)
19593 hardcode_libdir_flag_spec_F77='-L$libdir'
19594 hardcode_direct_F77=no
19595 hardcode_shlibpath_var_F77=no
19596
19597 # hardcode_minus_L: Not really in the search PATH,
19598 # but as the default location of the library.
19599 hardcode_minus_L_F77=yes
19600 ;;
19601 *)
19602 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19603 hardcode_libdir_separator_F77=:
19604 hardcode_direct_F77=yes
19605 export_dynamic_flag_spec_F77='${wl}-E'
19606
19607 # hardcode_minus_L: Not really in the search PATH,
19608 # but as the default location of the library.
19609 hardcode_minus_L_F77=yes
19610 ;;
19611 esac
19612 fi
19613 ;;
19614
19615 irix5* | irix6* | nonstopux*)
19616 if test "$GCC" = yes; then
19617 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'
19618 else
19619 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'
19620 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19621 fi
19622 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19623 hardcode_libdir_separator_F77=:
19624 link_all_deplibs_F77=yes
19625 ;;
19626
19627 netbsd*)
19628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19629 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19630 else
19631 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19632 fi
19633 hardcode_libdir_flag_spec_F77='-R$libdir'
19634 hardcode_direct_F77=yes
19635 hardcode_shlibpath_var_F77=no
19636 ;;
19637
19638 newsos6)
19639 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19640 hardcode_direct_F77=yes
19641 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19642 hardcode_libdir_separator_F77=:
19643 hardcode_shlibpath_var_F77=no
19644 ;;
19645
19646 openbsd*)
19647 hardcode_direct_F77=yes
19648 hardcode_shlibpath_var_F77=no
19649 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19650 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019651 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 +000019652 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19653 export_dynamic_flag_spec_F77='${wl}-E'
19654 else
19655 case $host_os in
19656 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19657 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19658 hardcode_libdir_flag_spec_F77='-R$libdir'
19659 ;;
19660 *)
19661 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19662 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19663 ;;
19664 esac
19665 fi
19666 ;;
19667
19668 os2*)
19669 hardcode_libdir_flag_spec_F77='-L$libdir'
19670 hardcode_minus_L_F77=yes
19671 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019672 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 +000019673 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19674 ;;
19675
19676 osf3*)
19677 if test "$GCC" = yes; then
19678 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19679 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'
19680 else
19681 allow_undefined_flag_F77=' -expect_unresolved \*'
19682 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'
19683 fi
19684 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19685 hardcode_libdir_separator_F77=:
19686 ;;
19687
19688 osf4* | osf5*) # as osf3* with the addition of -msym flag
19689 if test "$GCC" = yes; then
19690 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19691 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'
19692 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19693 else
19694 allow_undefined_flag_F77=' -expect_unresolved \*'
19695 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 +000019696 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~
19697 $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'
19698
John Criswell47fdd832003-07-14 16:52:07 +000019699 # Both c and cxx compiler support -rpath directly
19700 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19701 fi
19702 hardcode_libdir_separator_F77=:
19703 ;;
19704
19705 sco3.2v5*)
19706 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19707 hardcode_shlibpath_var_F77=no
19708 export_dynamic_flag_spec_F77='${wl}-Bexport'
19709 runpath_var=LD_RUN_PATH
19710 hardcode_runpath_var=yes
19711 ;;
19712
19713 solaris*)
19714 no_undefined_flag_F77=' -z text'
19715 if test "$GCC" = yes; then
19716 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019717 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19718 $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 +000019719 else
19720 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019721 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19722 $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 +000019723 fi
19724 hardcode_libdir_flag_spec_F77='-R$libdir'
19725 hardcode_shlibpath_var_F77=no
19726 case $host_os in
19727 solaris2.[0-5] | solaris2.[0-5].*) ;;
19728 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19729 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19730 esac
19731 link_all_deplibs_F77=yes
19732 ;;
19733
19734 sunos4*)
19735 if test "x$host_vendor" = xsequent; then
19736 # Use $CC to link under sequent, because it throws in some extra .o
19737 # files that make .init and .fini sections work.
19738 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19739 else
19740 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19741 fi
19742 hardcode_libdir_flag_spec_F77='-L$libdir'
19743 hardcode_direct_F77=yes
19744 hardcode_minus_L_F77=yes
19745 hardcode_shlibpath_var_F77=no
19746 ;;
19747
19748 sysv4)
19749 case $host_vendor in
19750 sni)
19751 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19752 hardcode_direct_F77=yes # is this really true???
19753 ;;
19754 siemens)
19755 ## LD is ld it makes a PLAMLIB
19756 ## CC just makes a GrossModule.
19757 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19758 reload_cmds_F77='$CC -r -o $output$reload_objs'
19759 hardcode_direct_F77=no
19760 ;;
19761 motorola)
19762 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19763 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19764 ;;
19765 esac
19766 runpath_var='LD_RUN_PATH'
19767 hardcode_shlibpath_var_F77=no
19768 ;;
19769
19770 sysv4.3*)
19771 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19772 hardcode_shlibpath_var_F77=no
19773 export_dynamic_flag_spec_F77='-Bexport'
19774 ;;
19775
19776 sysv4*MP*)
19777 if test -d /usr/nec; then
19778 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19779 hardcode_shlibpath_var_F77=no
19780 runpath_var=LD_RUN_PATH
19781 hardcode_runpath_var=yes
19782 ld_shlibs_F77=yes
19783 fi
19784 ;;
19785
19786 sysv4.2uw2*)
19787 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19788 hardcode_direct_F77=yes
19789 hardcode_minus_L_F77=no
19790 hardcode_shlibpath_var_F77=no
19791 hardcode_runpath_var=yes
19792 runpath_var=LD_RUN_PATH
19793 ;;
19794
19795 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19796 no_undefined_flag_F77='${wl}-z ${wl}text'
19797 if test "$GCC" = yes; then
19798 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19799 else
19800 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19801 fi
19802 runpath_var='LD_RUN_PATH'
19803 hardcode_shlibpath_var_F77=no
19804 ;;
19805
19806 sysv5*)
19807 no_undefined_flag_F77=' -z text'
19808 # $CC -shared without GNU ld will not create a library from C++
19809 # object files and a static libstdc++, better avoid it by now
19810 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019811 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19812 $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 +000019813 hardcode_libdir_flag_spec_F77=
19814 hardcode_shlibpath_var_F77=no
19815 runpath_var='LD_RUN_PATH'
19816 ;;
19817
19818 uts4*)
19819 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19820 hardcode_libdir_flag_spec_F77='-L$libdir'
19821 hardcode_shlibpath_var_F77=no
19822 ;;
19823
19824 *)
19825 ld_shlibs_F77=no
19826 ;;
19827 esac
19828 fi
19829
19830echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19831echo "${ECHO_T}$ld_shlibs_F77" >&6
19832test "$ld_shlibs_F77" = no && can_build_shared=no
19833
19834variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19835if test "$GCC" = yes; then
19836 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19837fi
19838
19839#
19840# Do we need to explicitly link libc?
19841#
19842case "x$archive_cmds_need_lc_F77" in
19843x|xyes)
19844 # Assume -lc should be added
19845 archive_cmds_need_lc_F77=yes
19846
19847 if test "$enable_shared" = yes && test "$GCC" = yes; then
19848 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019849 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019850 # FIXME: we may have to deal with multi-command sequences.
19851 ;;
19852 '$CC '*)
19853 # Test whether the compiler implicitly links with -lc since on some
19854 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19855 # to ld, don't add -lc before -lgcc.
19856 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19857echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19858 $rm conftest*
19859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19860
19861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19862 (eval $ac_compile) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } 2>conftest.err; then
19866 soname=conftest
19867 lib=conftest
19868 libobjs=conftest.$ac_objext
19869 deplibs=
19870 wl=$lt_prog_compiler_wl_F77
19871 compiler_flags=-v
19872 linker_flags=-v
19873 verstring=
19874 output_objdir=.
19875 libname=conftest
19876 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19877 allow_undefined_flag_F77=
19878 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19879 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }
19883 then
19884 archive_cmds_need_lc_F77=no
19885 else
19886 archive_cmds_need_lc_F77=yes
19887 fi
19888 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19889 else
19890 cat conftest.err 1>&5
19891 fi
19892 $rm conftest*
19893 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19894echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19895 ;;
19896 esac
19897 fi
19898 ;;
19899esac
19900
John Criswell47fdd832003-07-14 16:52:07 +000019901echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19902echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19903library_names_spec=
19904libname_spec='lib$name'
19905soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019906shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019907postinstall_cmds=
19908postuninstall_cmds=
19909finish_cmds=
19910finish_eval=
19911shlibpath_var=
19912shlibpath_overrides_runpath=unknown
19913version_type=none
19914dynamic_linker="$host_os ld.so"
19915sys_lib_dlsearch_path_spec="/lib /usr/lib"
19916if test "$GCC" = yes; then
19917 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19918 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19919 # if the path contains ";" then we assume it to be the separator
19920 # otherwise default to the standard path separator (i.e. ":") - it is
19921 # assumed that no part of a normal pathname contains ";" but that should
19922 # okay in the real world where ";" in dirpaths is itself problematic.
19923 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19924 else
19925 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19926 fi
19927else
19928 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19929fi
19930need_lib_prefix=unknown
19931hardcode_into_libs=no
19932
19933# when you set need_version to no, make sure it does not cause -set_version
19934# flags to be left without arguments
19935need_version=unknown
19936
19937case $host_os in
19938aix3*)
19939 version_type=linux
19940 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19941 shlibpath_var=LIBPATH
19942
19943 # AIX 3 has no versioning support, so we append a major version to the name.
19944 soname_spec='${libname}${release}${shared_ext}$major'
19945 ;;
19946
19947aix4* | aix5*)
19948 version_type=linux
19949 need_lib_prefix=no
19950 need_version=no
19951 hardcode_into_libs=yes
19952 if test "$host_cpu" = ia64; then
19953 # AIX 5 supports IA64
19954 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19955 shlibpath_var=LD_LIBRARY_PATH
19956 else
19957 # With GCC up to 2.95.x, collect2 would create an import file
19958 # for dependence libraries. The import file would start with
19959 # the line `#! .'. This would cause the generated library to
19960 # depend on `.', always an invalid library. This was fixed in
19961 # development snapshots of GCC prior to 3.0.
19962 case $host_os in
19963 aix4 | aix4.[01] | aix4.[01].*)
19964 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19965 echo ' yes '
19966 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19967 :
19968 else
19969 can_build_shared=no
19970 fi
19971 ;;
19972 esac
19973 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19974 # soname into executable. Probably we can add versioning support to
19975 # collect2, so additional links can be useful in future.
19976 if test "$aix_use_runtimelinking" = yes; then
19977 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19978 # instead of lib<name>.a to let people know that these are not
19979 # typical AIX shared libraries.
19980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19981 else
19982 # We preserve .a as extension for shared libraries through AIX4.2
19983 # and later when we are not doing run time linking.
19984 library_names_spec='${libname}${release}.a $libname.a'
19985 soname_spec='${libname}${release}${shared_ext}$major'
19986 fi
19987 shlibpath_var=LIBPATH
19988 fi
19989 ;;
19990
19991amigaos*)
19992 library_names_spec='$libname.ixlibrary $libname.a'
19993 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019994 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 +000019995 ;;
19996
19997beos*)
19998 library_names_spec='${libname}${shared_ext}'
19999 dynamic_linker="$host_os ld.so"
20000 shlibpath_var=LIBRARY_PATH
20001 ;;
20002
Reid Spencer2706f8c2004-09-19 23:53:36 +000020003bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020004 version_type=linux
20005 need_version=no
20006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20007 soname_spec='${libname}${release}${shared_ext}$major'
20008 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20009 shlibpath_var=LD_LIBRARY_PATH
20010 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20011 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20012 # the default ld.so.conf also contains /usr/contrib/lib and
20013 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20014 # libtool to hard-code these into programs
20015 ;;
20016
20017cygwin* | mingw* | pw32*)
20018 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020019 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020020 need_version=no
20021 need_lib_prefix=no
20022
20023 case $GCC,$host_os in
20024 yes,cygwin* | yes,mingw* | yes,pw32*)
20025 library_names_spec='$libname.dll.a'
20026 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020027 postinstall_cmds='base_file=`basename \${file}`~
20028 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20029 dldir=$destdir/`dirname \$dlpath`~
20030 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020031 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020032 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20033 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020034 $rm \$dlpath'
20035 shlibpath_overrides_runpath=yes
20036
20037 case $host_os in
20038 cygwin*)
20039 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20040 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 +000020041 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020042 ;;
20043 mingw*)
20044 # MinGW DLLs use traditional 'lib' prefix
20045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20046 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20047 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20048 # It is most probably a Windows format PATH printed by
20049 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20050 # path with ; separators, and with drive letters. We can handle the
20051 # drive letters (cygwin fileutils understands them), so leave them,
20052 # especially as we might pass files found there to a mingw objdump,
20053 # which wouldn't understand a cygwinified path. Ahh.
20054 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20055 else
20056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20057 fi
20058 ;;
20059 pw32*)
20060 # pw32 DLLs use 'pw' prefix rather than 'lib'
20061 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20062 ;;
20063 esac
20064 ;;
20065
20066 *)
20067 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20068 ;;
20069 esac
20070 dynamic_linker='Win32 ld.exe'
20071 # FIXME: first we should search . and the directory the executable is in
20072 shlibpath_var=PATH
20073 ;;
20074
20075darwin* | rhapsody*)
20076 dynamic_linker="$host_os dyld"
20077 version_type=darwin
20078 need_lib_prefix=no
20079 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020080 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020081 soname_spec='${libname}${release}${major}$shared_ext'
20082 shlibpath_overrides_runpath=yes
20083 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020084 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020085 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020086 if test "$GCC" = yes; then
20087 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"`
20088 else
20089 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020090 fi
20091 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20092 ;;
20093
20094dgux*)
20095 version_type=linux
20096 need_lib_prefix=no
20097 need_version=no
20098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20099 soname_spec='${libname}${release}${shared_ext}$major'
20100 shlibpath_var=LD_LIBRARY_PATH
20101 ;;
20102
20103freebsd1*)
20104 dynamic_linker=no
20105 ;;
20106
Reid Spencer2706f8c2004-09-19 23:53:36 +000020107kfreebsd*-gnu)
20108 version_type=linux
20109 need_lib_prefix=no
20110 need_version=no
20111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20112 soname_spec='${libname}${release}${shared_ext}$major'
20113 shlibpath_var=LD_LIBRARY_PATH
20114 shlibpath_overrides_runpath=no
20115 hardcode_into_libs=yes
20116 dynamic_linker='GNU ld.so'
20117 ;;
20118
John Criswell47fdd832003-07-14 16:52:07 +000020119freebsd*)
20120 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20121 version_type=freebsd-$objformat
20122 case $version_type in
20123 freebsd-elf*)
20124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20125 need_version=no
20126 need_lib_prefix=no
20127 ;;
20128 freebsd-*)
20129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20130 need_version=yes
20131 ;;
20132 esac
20133 shlibpath_var=LD_LIBRARY_PATH
20134 case $host_os in
20135 freebsd2*)
20136 shlibpath_overrides_runpath=yes
20137 ;;
20138 freebsd3.01* | freebsdelf3.01*)
20139 shlibpath_overrides_runpath=yes
20140 hardcode_into_libs=yes
20141 ;;
20142 *) # from 3.2 on
20143 shlibpath_overrides_runpath=no
20144 hardcode_into_libs=yes
20145 ;;
20146 esac
20147 ;;
20148
20149gnu*)
20150 version_type=linux
20151 need_lib_prefix=no
20152 need_version=no
20153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20154 soname_spec='${libname}${release}${shared_ext}$major'
20155 shlibpath_var=LD_LIBRARY_PATH
20156 hardcode_into_libs=yes
20157 ;;
20158
20159hpux9* | hpux10* | hpux11*)
20160 # Give a soname corresponding to the major version so that dld.sl refuses to
20161 # link against other versions.
20162 version_type=sunos
20163 need_lib_prefix=no
20164 need_version=no
20165 case "$host_cpu" in
20166 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020167 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020168 hardcode_into_libs=yes
20169 dynamic_linker="$host_os dld.so"
20170 shlibpath_var=LD_LIBRARY_PATH
20171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20173 soname_spec='${libname}${release}${shared_ext}$major'
20174 if test "X$HPUX_IA64_MODE" = X32; then
20175 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20176 else
20177 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20178 fi
20179 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20180 ;;
20181 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020182 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020183 hardcode_into_libs=yes
20184 dynamic_linker="$host_os dld.sl"
20185 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20186 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20188 soname_spec='${libname}${release}${shared_ext}$major'
20189 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20190 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20191 ;;
20192 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020193 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020194 dynamic_linker="$host_os dld.sl"
20195 shlibpath_var=SHLIB_PATH
20196 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20198 soname_spec='${libname}${release}${shared_ext}$major'
20199 ;;
20200 esac
20201 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20202 postinstall_cmds='chmod 555 $lib'
20203 ;;
20204
20205irix5* | irix6* | nonstopux*)
20206 case $host_os in
20207 nonstopux*) version_type=nonstopux ;;
20208 *)
20209 if test "$lt_cv_prog_gnu_ld" = yes; then
20210 version_type=linux
20211 else
20212 version_type=irix
20213 fi ;;
20214 esac
20215 need_lib_prefix=no
20216 need_version=no
20217 soname_spec='${libname}${release}${shared_ext}$major'
20218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20219 case $host_os in
20220 irix5* | nonstopux*)
20221 libsuff= shlibsuff=
20222 ;;
20223 *)
20224 case $LD in # libtool.m4 will add one of these switches to LD
20225 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20226 libsuff= shlibsuff= libmagic=32-bit;;
20227 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20228 libsuff=32 shlibsuff=N32 libmagic=N32;;
20229 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20230 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20231 *) libsuff= shlibsuff= libmagic=never-match;;
20232 esac
20233 ;;
20234 esac
20235 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20236 shlibpath_overrides_runpath=no
20237 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20238 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20239 hardcode_into_libs=yes
20240 ;;
20241
20242# No shared lib support for Linux oldld, aout, or coff.
20243linux*oldld* | linux*aout* | linux*coff*)
20244 dynamic_linker=no
20245 ;;
20246
20247# This must be Linux ELF.
20248linux*)
20249 version_type=linux
20250 need_lib_prefix=no
20251 need_version=no
20252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20253 soname_spec='${libname}${release}${shared_ext}$major'
20254 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20255 shlibpath_var=LD_LIBRARY_PATH
20256 shlibpath_overrides_runpath=no
20257 # This implies no fast_install, which is unacceptable.
20258 # Some rework will be needed to allow for fast_install
20259 # before this can be enabled.
20260 hardcode_into_libs=yes
20261
Reid Spencer2706f8c2004-09-19 23:53:36 +000020262 # Append ld.so.conf contents to the search path
20263 if test -f /etc/ld.so.conf; then
20264 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20265 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20266 fi
20267
John Criswell47fdd832003-07-14 16:52:07 +000020268 # We used to test for /lib/ld.so.1 and disable shared libraries on
20269 # powerpc, because MkLinux only supported shared libraries with the
20270 # GNU dynamic linker. Since this was broken with cross compilers,
20271 # most powerpc-linux boxes support dynamic linking these days and
20272 # people can always --disable-shared, the test was removed, and we
20273 # assume the GNU/Linux dynamic linker is in use.
20274 dynamic_linker='GNU/Linux ld.so'
20275 ;;
20276
Reid Spencer2706f8c2004-09-19 23:53:36 +000020277knetbsd*-gnu)
20278 version_type=linux
20279 need_lib_prefix=no
20280 need_version=no
20281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20282 soname_spec='${libname}${release}${shared_ext}$major'
20283 shlibpath_var=LD_LIBRARY_PATH
20284 shlibpath_overrides_runpath=no
20285 hardcode_into_libs=yes
20286 dynamic_linker='GNU ld.so'
20287 ;;
20288
John Criswell47fdd832003-07-14 16:52:07 +000020289netbsd*)
20290 version_type=sunos
20291 need_lib_prefix=no
20292 need_version=no
20293 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20296 dynamic_linker='NetBSD (a.out) ld.so'
20297 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020299 soname_spec='${libname}${release}${shared_ext}$major'
20300 dynamic_linker='NetBSD ld.elf_so'
20301 fi
20302 shlibpath_var=LD_LIBRARY_PATH
20303 shlibpath_overrides_runpath=yes
20304 hardcode_into_libs=yes
20305 ;;
20306
20307newsos6)
20308 version_type=linux
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20310 shlibpath_var=LD_LIBRARY_PATH
20311 shlibpath_overrides_runpath=yes
20312 ;;
20313
Reid Spencer2706f8c2004-09-19 23:53:36 +000020314nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020315 version_type=linux
20316 need_lib_prefix=no
20317 need_version=no
20318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20319 soname_spec='${libname}${release}${shared_ext}$major'
20320 shlibpath_var=LD_LIBRARY_PATH
20321 shlibpath_overrides_runpath=yes
20322 ;;
20323
20324openbsd*)
20325 version_type=sunos
20326 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020327 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20330 shlibpath_var=LD_LIBRARY_PATH
20331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20332 case $host_os in
20333 openbsd2.[89] | openbsd2.[89].*)
20334 shlibpath_overrides_runpath=no
20335 ;;
20336 *)
20337 shlibpath_overrides_runpath=yes
20338 ;;
20339 esac
20340 else
20341 shlibpath_overrides_runpath=yes
20342 fi
20343 ;;
20344
20345os2*)
20346 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020347 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020348 need_lib_prefix=no
20349 library_names_spec='$libname${shared_ext} $libname.a'
20350 dynamic_linker='OS/2 ld.exe'
20351 shlibpath_var=LIBPATH
20352 ;;
20353
20354osf3* | osf4* | osf5*)
20355 version_type=osf
20356 need_lib_prefix=no
20357 need_version=no
20358 soname_spec='${libname}${release}${shared_ext}$major'
20359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20360 shlibpath_var=LD_LIBRARY_PATH
20361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20363 ;;
20364
20365sco3.2v5*)
20366 version_type=osf
20367 soname_spec='${libname}${release}${shared_ext}$major'
20368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20369 shlibpath_var=LD_LIBRARY_PATH
20370 ;;
20371
20372solaris*)
20373 version_type=linux
20374 need_lib_prefix=no
20375 need_version=no
20376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20377 soname_spec='${libname}${release}${shared_ext}$major'
20378 shlibpath_var=LD_LIBRARY_PATH
20379 shlibpath_overrides_runpath=yes
20380 hardcode_into_libs=yes
20381 # ldd complains unless libraries are executable
20382 postinstall_cmds='chmod +x $lib'
20383 ;;
20384
20385sunos4*)
20386 version_type=sunos
20387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20388 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20389 shlibpath_var=LD_LIBRARY_PATH
20390 shlibpath_overrides_runpath=yes
20391 if test "$with_gnu_ld" = yes; then
20392 need_lib_prefix=no
20393 fi
20394 need_version=yes
20395 ;;
20396
20397sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20398 version_type=linux
20399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20400 soname_spec='${libname}${release}${shared_ext}$major'
20401 shlibpath_var=LD_LIBRARY_PATH
20402 case $host_vendor in
20403 sni)
20404 shlibpath_overrides_runpath=no
20405 need_lib_prefix=no
20406 export_dynamic_flag_spec='${wl}-Blargedynsym'
20407 runpath_var=LD_RUN_PATH
20408 ;;
20409 siemens)
20410 need_lib_prefix=no
20411 ;;
20412 motorola)
20413 need_lib_prefix=no
20414 need_version=no
20415 shlibpath_overrides_runpath=no
20416 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20417 ;;
20418 esac
20419 ;;
20420
20421sysv4*MP*)
20422 if test -d /usr/nec ;then
20423 version_type=linux
20424 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20425 soname_spec='$libname${shared_ext}.$major'
20426 shlibpath_var=LD_LIBRARY_PATH
20427 fi
20428 ;;
20429
20430uts4*)
20431 version_type=linux
20432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20433 soname_spec='${libname}${release}${shared_ext}$major'
20434 shlibpath_var=LD_LIBRARY_PATH
20435 ;;
20436
20437*)
20438 dynamic_linker=no
20439 ;;
20440esac
20441echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20442echo "${ECHO_T}$dynamic_linker" >&6
20443test "$dynamic_linker" = no && can_build_shared=no
20444
Reid Spencer2706f8c2004-09-19 23:53:36 +000020445echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20446echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20447hardcode_action_F77=
20448if test -n "$hardcode_libdir_flag_spec_F77" || \
20449 test -n "$runpath_var_F77" || \
20450 test "X$hardcode_automatic_F77" = "Xyes" ; then
20451
20452 # We can hardcode non-existant directories.
20453 if test "$hardcode_direct_F77" != no &&
20454 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20455 # have to relink, otherwise we might link with an installed library
20456 # when we should be linking with a yet-to-be-installed one
20457 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20458 test "$hardcode_minus_L_F77" != no; then
20459 # Linking always hardcodes the temporary library directory.
20460 hardcode_action_F77=relink
20461 else
20462 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20463 hardcode_action_F77=immediate
20464 fi
20465else
20466 # We cannot hardcode anything, or else we can only hardcode existing
20467 # directories.
20468 hardcode_action_F77=unsupported
20469fi
20470echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20471echo "${ECHO_T}$hardcode_action_F77" >&6
20472
20473if test "$hardcode_action_F77" = relink; then
20474 # Fast installation is not supported
20475 enable_fast_install=no
20476elif test "$shlibpath_overrides_runpath" = yes ||
20477 test "$enable_shared" = no; then
20478 # Fast installation is not necessary
20479 enable_fast_install=needless
20480fi
20481
20482striplib=
20483old_striplib=
20484echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20485echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20486if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20487 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20488 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20489 echo "$as_me:$LINENO: result: yes" >&5
20490echo "${ECHO_T}yes" >&6
20491else
20492# FIXME - insert some real tests, host_os isn't really good enough
20493 case $host_os in
20494 darwin*)
20495 if test -n "$STRIP" ; then
20496 striplib="$STRIP -x"
20497 echo "$as_me:$LINENO: result: yes" >&5
20498echo "${ECHO_T}yes" >&6
20499 else
20500 echo "$as_me:$LINENO: result: no" >&5
20501echo "${ECHO_T}no" >&6
20502fi
20503 ;;
20504 *)
20505 echo "$as_me:$LINENO: result: no" >&5
20506echo "${ECHO_T}no" >&6
20507 ;;
20508 esac
20509fi
20510
20511
John Criswell47fdd832003-07-14 16:52:07 +000020512
20513# The else clause should only fire when bootstrapping the
20514# libtool distribution, otherwise you forgot to ship ltmain.sh
20515# with your package, and you will get complaints that there are
20516# no rules to generate ltmain.sh.
20517if test -f "$ltmain"; then
20518 # See if we are running on zsh, and set the options which allow our commands through
20519 # without removal of \ escapes.
20520 if test -n "${ZSH_VERSION+set}" ; then
20521 setopt NO_GLOB_SUBST
20522 fi
20523 # Now quote all the things that may contain metacharacters while being
20524 # careful not to overquote the AC_SUBSTed values. We take copies of the
20525 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020526 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20527 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020528 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20529 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20530 deplibs_check_method reload_flag reload_cmds need_locks \
20531 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20532 lt_cv_sys_global_symbol_to_c_name_address \
20533 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20534 old_postinstall_cmds old_postuninstall_cmds \
20535 compiler_F77 \
20536 CC_F77 \
20537 LD_F77 \
20538 lt_prog_compiler_wl_F77 \
20539 lt_prog_compiler_pic_F77 \
20540 lt_prog_compiler_static_F77 \
20541 lt_prog_compiler_no_builtin_flag_F77 \
20542 export_dynamic_flag_spec_F77 \
20543 thread_safe_flag_spec_F77 \
20544 whole_archive_flag_spec_F77 \
20545 enable_shared_with_static_runtimes_F77 \
20546 old_archive_cmds_F77 \
20547 old_archive_from_new_cmds_F77 \
20548 predep_objects_F77 \
20549 postdep_objects_F77 \
20550 predeps_F77 \
20551 postdeps_F77 \
20552 compiler_lib_search_path_F77 \
20553 archive_cmds_F77 \
20554 archive_expsym_cmds_F77 \
20555 postinstall_cmds_F77 \
20556 postuninstall_cmds_F77 \
20557 old_archive_from_expsyms_cmds_F77 \
20558 allow_undefined_flag_F77 \
20559 no_undefined_flag_F77 \
20560 export_symbols_cmds_F77 \
20561 hardcode_libdir_flag_spec_F77 \
20562 hardcode_libdir_flag_spec_ld_F77 \
20563 hardcode_libdir_separator_F77 \
20564 hardcode_automatic_F77 \
20565 module_cmds_F77 \
20566 module_expsym_cmds_F77 \
20567 lt_cv_prog_compiler_c_o_F77 \
20568 exclude_expsyms_F77 \
20569 include_expsyms_F77; do
20570
20571 case $var in
20572 old_archive_cmds_F77 | \
20573 old_archive_from_new_cmds_F77 | \
20574 archive_cmds_F77 | \
20575 archive_expsym_cmds_F77 | \
20576 module_cmds_F77 | \
20577 module_expsym_cmds_F77 | \
20578 old_archive_from_expsyms_cmds_F77 | \
20579 export_symbols_cmds_F77 | \
20580 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20581 postinstall_cmds | postuninstall_cmds | \
20582 old_postinstall_cmds | old_postuninstall_cmds | \
20583 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20584 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020585 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 +000020586 ;;
20587 *)
20588 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20589 ;;
20590 esac
20591 done
20592
20593 case $lt_echo in
20594 *'\$0 --fallback-echo"')
20595 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20596 ;;
20597 esac
20598
20599cfgfile="$ofile"
20600
20601 cat <<__EOF__ >> "$cfgfile"
20602# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20603
20604# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20605
20606# Shell to use when invoking shell scripts.
20607SHELL=$lt_SHELL
20608
20609# Whether or not to build shared libraries.
20610build_libtool_libs=$enable_shared
20611
20612# Whether or not to build static libraries.
20613build_old_libs=$enable_static
20614
20615# Whether or not to add -lc for building shared libraries.
20616build_libtool_need_lc=$archive_cmds_need_lc_F77
20617
20618# Whether or not to disallow shared libs when runtime libs are static
20619allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20620
20621# Whether or not to optimize for fast installation.
20622fast_install=$enable_fast_install
20623
20624# The host system.
20625host_alias=$host_alias
20626host=$host
20627
20628# An echo program that does not interpret backslashes.
20629echo=$lt_echo
20630
20631# The archiver.
20632AR=$lt_AR
20633AR_FLAGS=$lt_AR_FLAGS
20634
20635# A C compiler.
20636LTCC=$lt_LTCC
20637
20638# A language-specific compiler.
20639CC=$lt_compiler_F77
20640
20641# Is the compiler the GNU C compiler?
20642with_gcc=$GCC_F77
20643
20644# An ERE matcher.
20645EGREP=$lt_EGREP
20646
20647# The linker used to build libraries.
20648LD=$lt_LD_F77
20649
20650# Whether we need hard or soft links.
20651LN_S=$lt_LN_S
20652
20653# A BSD-compatible nm program.
20654NM=$lt_NM
20655
20656# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020657STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020658
20659# Used to examine libraries when file_magic_cmd begins "file"
20660MAGIC_CMD=$MAGIC_CMD
20661
20662# Used on cygwin: DLL creation program.
20663DLLTOOL="$DLLTOOL"
20664
20665# Used on cygwin: object dumper.
20666OBJDUMP="$OBJDUMP"
20667
20668# Used on cygwin: assembler.
20669AS="$AS"
20670
20671# The name of the directory that contains temporary libtool files.
20672objdir=$objdir
20673
20674# How to create reloadable object files.
20675reload_flag=$lt_reload_flag
20676reload_cmds=$lt_reload_cmds
20677
20678# How to pass a linker flag through the compiler.
20679wl=$lt_lt_prog_compiler_wl_F77
20680
20681# Object file suffix (normally "o").
20682objext="$ac_objext"
20683
20684# Old archive suffix (normally "a").
20685libext="$libext"
20686
20687# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020688shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020689
20690# Executable file suffix (normally "").
20691exeext="$exeext"
20692
20693# Additional compiler flags for building library objects.
20694pic_flag=$lt_lt_prog_compiler_pic_F77
20695pic_mode=$pic_mode
20696
20697# What is the maximum length of a command?
20698max_cmd_len=$lt_cv_sys_max_cmd_len
20699
20700# Does compiler simultaneously support -c and -o options?
20701compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20702
20703# Must we lock files when doing compilation ?
20704need_locks=$lt_need_locks
20705
20706# Do we need the lib prefix for modules?
20707need_lib_prefix=$need_lib_prefix
20708
20709# Do we need a version for libraries?
20710need_version=$need_version
20711
20712# Whether dlopen is supported.
20713dlopen_support=$enable_dlopen
20714
20715# Whether dlopen of programs is supported.
20716dlopen_self=$enable_dlopen_self
20717
20718# Whether dlopen of statically linked programs is supported.
20719dlopen_self_static=$enable_dlopen_self_static
20720
20721# Compiler flag to prevent dynamic linking.
20722link_static_flag=$lt_lt_prog_compiler_static_F77
20723
20724# Compiler flag to turn off builtin functions.
20725no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20726
20727# Compiler flag to allow reflexive dlopens.
20728export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20729
20730# Compiler flag to generate shared objects directly from archives.
20731whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20732
20733# Compiler flag to generate thread-safe objects.
20734thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20735
20736# Library versioning type.
20737version_type=$version_type
20738
20739# Format of library name prefix.
20740libname_spec=$lt_libname_spec
20741
20742# List of archive names. First name is the real one, the rest are links.
20743# The last name is the one that the linker finds with -lNAME.
20744library_names_spec=$lt_library_names_spec
20745
20746# The coded name of the library, if different from the real name.
20747soname_spec=$lt_soname_spec
20748
20749# Commands used to build and install an old-style archive.
20750RANLIB=$lt_RANLIB
20751old_archive_cmds=$lt_old_archive_cmds_F77
20752old_postinstall_cmds=$lt_old_postinstall_cmds
20753old_postuninstall_cmds=$lt_old_postuninstall_cmds
20754
20755# Create an old-style archive from a shared archive.
20756old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20757
20758# Create a temporary old-style archive to link instead of a shared archive.
20759old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20760
20761# Commands used to build and install a shared archive.
20762archive_cmds=$lt_archive_cmds_F77
20763archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20764postinstall_cmds=$lt_postinstall_cmds
20765postuninstall_cmds=$lt_postuninstall_cmds
20766
20767# Commands used to build a loadable module (assumed same as above if empty)
20768module_cmds=$lt_module_cmds_F77
20769module_expsym_cmds=$lt_module_expsym_cmds_F77
20770
20771# Commands to strip libraries.
20772old_striplib=$lt_old_striplib
20773striplib=$lt_striplib
20774
20775# Dependencies to place before the objects being linked to create a
20776# shared library.
20777predep_objects=$lt_predep_objects_F77
20778
20779# Dependencies to place after the objects being linked to create a
20780# shared library.
20781postdep_objects=$lt_postdep_objects_F77
20782
20783# Dependencies to place before the objects being linked to create a
20784# shared library.
20785predeps=$lt_predeps_F77
20786
20787# Dependencies to place after the objects being linked to create a
20788# shared library.
20789postdeps=$lt_postdeps_F77
20790
20791# The library search path used internally by the compiler when linking
20792# a shared library.
20793compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20794
20795# Method to check whether dependent libraries are shared objects.
20796deplibs_check_method=$lt_deplibs_check_method
20797
20798# Command to use when deplibs_check_method == file_magic.
20799file_magic_cmd=$lt_file_magic_cmd
20800
20801# Flag that allows shared libraries with undefined symbols to be built.
20802allow_undefined_flag=$lt_allow_undefined_flag_F77
20803
20804# Flag that forces no undefined symbols.
20805no_undefined_flag=$lt_no_undefined_flag_F77
20806
20807# Commands used to finish a libtool library installation in a directory.
20808finish_cmds=$lt_finish_cmds
20809
20810# Same as above, but a single script fragment to be evaled but not shown.
20811finish_eval=$lt_finish_eval
20812
20813# Take the output of nm and produce a listing of raw symbols and C names.
20814global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20815
20816# Transform the output of nm in a proper C declaration
20817global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20818
20819# Transform the output of nm in a C name address pair
20820global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20821
20822# This is the shared library runtime path variable.
20823runpath_var=$runpath_var
20824
20825# This is the shared library path variable.
20826shlibpath_var=$shlibpath_var
20827
20828# Is shlibpath searched before the hard-coded library search path?
20829shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20830
20831# How to hardcode a shared library path into an executable.
20832hardcode_action=$hardcode_action_F77
20833
20834# Whether we should hardcode library paths into libraries.
20835hardcode_into_libs=$hardcode_into_libs
20836
20837# Flag to hardcode \$libdir into a binary during linking.
20838# This must work even if \$libdir does not exist.
20839hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20840
20841# If ld is used when linking, flag to hardcode \$libdir into
20842# a binary during linking. This must work even if \$libdir does
20843# not exist.
20844hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20845
20846# Whether we need a single -rpath flag with a separated argument.
20847hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20848
20849# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20850# resulting binary.
20851hardcode_direct=$hardcode_direct_F77
20852
20853# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20854# resulting binary.
20855hardcode_minus_L=$hardcode_minus_L_F77
20856
20857# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20858# the resulting binary.
20859hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20860
20861# Set to yes if building a shared library automatically hardcodes DIR into the library
20862# and all subsequent libraries and executables linked against it.
20863hardcode_automatic=$hardcode_automatic_F77
20864
20865# Variables whose values should be saved in libtool wrapper scripts and
20866# restored at relink time.
20867variables_saved_for_relink="$variables_saved_for_relink"
20868
20869# Whether libtool must link a program against all its dependency libraries.
20870link_all_deplibs=$link_all_deplibs_F77
20871
20872# Compile-time system search path for libraries
20873sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20874
20875# Run-time system search path for libraries
20876sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20877
20878# Fix the shell variable \$srcfile for the compiler.
20879fix_srcfile_path="$fix_srcfile_path_F77"
20880
20881# Set to yes if exported symbols are required.
20882always_export_symbols=$always_export_symbols_F77
20883
20884# The commands to list exported symbols.
20885export_symbols_cmds=$lt_export_symbols_cmds_F77
20886
20887# The commands to extract the exported symbol list from a shared archive.
20888extract_expsyms_cmds=$lt_extract_expsyms_cmds
20889
20890# Symbols that should not be listed in the preloaded symbols.
20891exclude_expsyms=$lt_exclude_expsyms_F77
20892
20893# Symbols that must always be exported.
20894include_expsyms=$lt_include_expsyms_F77
20895
20896# ### END LIBTOOL TAG CONFIG: $tagname
20897
20898__EOF__
20899
20900
20901else
20902 # If there is no Makefile yet, we rely on a make rule to execute
20903 # `config.status --recheck' to rerun these tests and create the
20904 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020905 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20906 if test -f "$ltmain_in"; then
20907 test -f Makefile && make "$ltmain"
20908 fi
John Criswell47fdd832003-07-14 16:52:07 +000020909fi
20910
20911
20912ac_ext=c
20913ac_cpp='$CPP $CPPFLAGS'
20914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20916ac_compiler_gnu=$ac_cv_c_compiler_gnu
20917
20918CC="$lt_save_CC"
20919
20920 else
20921 tagname=""
20922 fi
20923 ;;
20924
20925 GCJ)
20926 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020927 ac_ext=c
20928ac_cpp='$CPP $CPPFLAGS'
20929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20931ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020932
20933
20934# Source file extension for Java test sources.
20935ac_ext=java
20936
20937# Object file extension for compiled Java test sources.
20938objext=o
20939objext_GCJ=$objext
20940
20941# Code to be used in simple compile tests
20942lt_simple_compile_test_code="class foo {}\n"
20943
20944# Code to be used in simple link tests
20945lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20946
20947# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20948
20949# If no C compiler was specified, use CC.
20950LTCC=${LTCC-"$CC"}
20951
20952# Allow CC to be a program name with arguments.
20953compiler=$CC
20954
20955
20956# Allow CC to be a program name with arguments.
20957lt_save_CC="$CC"
20958CC=${GCJ-"gcj"}
20959compiler=$CC
20960compiler_GCJ=$CC
20961
20962# GCJ did not exist at the time GCC didn't implicitly link libc in.
20963archive_cmds_need_lc_GCJ=no
20964
John Criswell47fdd832003-07-14 16:52:07 +000020965
20966lt_prog_compiler_no_builtin_flag_GCJ=
20967
20968if test "$GCC" = yes; then
20969 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20970
Reid Spencer2706f8c2004-09-19 23:53:36 +000020971
20972echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020973echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20974if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20975 echo $ECHO_N "(cached) $ECHO_C" >&6
20976else
20977 lt_cv_prog_compiler_rtti_exceptions=no
20978 ac_outfile=conftest.$ac_objext
20979 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20980 lt_compiler_flag="-fno-rtti -fno-exceptions"
20981 # Insert the option either (1) after the last *FLAGS variable, or
20982 # (2) before a word containing "conftest.", or (3) at the end.
20983 # Note that $ac_compile itself does not contain backslashes and begins
20984 # with a dollar sign (not a hyphen), so the echo should work correctly.
20985 # The option is referenced via a variable to avoid confusing sed.
20986 lt_compile=`echo "$ac_compile" | $SED \
20987 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20989 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59473af2004-12-25 07:31:29 +000020990 (eval echo "\"\$as_me:20990: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020991 (eval "$lt_compile" 2>conftest.err)
20992 ac_status=$?
20993 cat conftest.err >&5
Reid Spencer59473af2004-12-25 07:31:29 +000020994 echo "$as_me:20994: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020995 if (exit $ac_status) && test -s "$ac_outfile"; then
20996 # The compiler can only warn and ignore the option if not recognized
20997 # So say no if there are warnings
20998 if test ! -s conftest.err; then
20999 lt_cv_prog_compiler_rtti_exceptions=yes
21000 fi
21001 fi
21002 $rm conftest*
21003
21004fi
21005echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21006echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21007
21008if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21009 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21010else
21011 :
21012fi
21013
21014fi
21015
21016lt_prog_compiler_wl_GCJ=
21017lt_prog_compiler_pic_GCJ=
21018lt_prog_compiler_static_GCJ=
21019
21020echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21021echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21022
21023 if test "$GCC" = yes; then
21024 lt_prog_compiler_wl_GCJ='-Wl,'
21025 lt_prog_compiler_static_GCJ='-static'
21026
21027 case $host_os in
21028 aix*)
21029 # All AIX code is PIC.
21030 if test "$host_cpu" = ia64; then
21031 # AIX 5 now supports IA64 processor
21032 lt_prog_compiler_static_GCJ='-Bstatic'
21033 fi
21034 ;;
21035
21036 amigaos*)
21037 # FIXME: we need at least 68020 code to build shared libraries, but
21038 # adding the `-m68020' flag to GCC prevents building anything better,
21039 # like `-m68040'.
21040 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21041 ;;
21042
21043 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21044 # PIC is the default for these OSes.
21045 ;;
21046
21047 mingw* | pw32* | os2*)
21048 # This hack is so that the source file can tell whether it is being
21049 # built for inclusion in a dll (and should export symbols for example).
21050 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21051 ;;
21052
21053 darwin* | rhapsody*)
21054 # PIC is the default on this platform
21055 # Common symbols not allowed in MH_DYLIB files
21056 lt_prog_compiler_pic_GCJ='-fno-common'
21057 ;;
21058
21059 msdosdjgpp*)
21060 # Just because we use GCC doesn't mean we suddenly get shared libraries
21061 # on systems that don't support them.
21062 lt_prog_compiler_can_build_shared_GCJ=no
21063 enable_shared=no
21064 ;;
21065
21066 sysv4*MP*)
21067 if test -d /usr/nec; then
21068 lt_prog_compiler_pic_GCJ=-Kconform_pic
21069 fi
21070 ;;
21071
21072 hpux*)
21073 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21074 # not for PA HP-UX.
21075 case "$host_cpu" in
21076 hppa*64*|ia64*)
21077 # +Z the default
21078 ;;
21079 *)
21080 lt_prog_compiler_pic_GCJ='-fPIC'
21081 ;;
21082 esac
21083 ;;
21084
21085 *)
21086 lt_prog_compiler_pic_GCJ='-fPIC'
21087 ;;
21088 esac
21089 else
21090 # PORTME Check for flag to pass linker flags through the system compiler.
21091 case $host_os in
21092 aix*)
21093 lt_prog_compiler_wl_GCJ='-Wl,'
21094 if test "$host_cpu" = ia64; then
21095 # AIX 5 now supports IA64 processor
21096 lt_prog_compiler_static_GCJ='-Bstatic'
21097 else
21098 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21099 fi
21100 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021101 darwin*)
21102 # PIC is the default on this platform
21103 # Common symbols not allowed in MH_DYLIB files
21104 case "$cc_basename" in
21105 xlc*)
21106 lt_prog_compiler_pic_GCJ='-qnocommon'
21107 lt_prog_compiler_wl_GCJ='-Wl,'
21108 ;;
21109 esac
21110 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021111
21112 mingw* | pw32* | os2*)
21113 # This hack is so that the source file can tell whether it is being
21114 # built for inclusion in a dll (and should export symbols for example).
21115 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21116 ;;
21117
21118 hpux9* | hpux10* | hpux11*)
21119 lt_prog_compiler_wl_GCJ='-Wl,'
21120 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21121 # not for PA HP-UX.
21122 case "$host_cpu" in
21123 hppa*64*|ia64*)
21124 # +Z the default
21125 ;;
21126 *)
21127 lt_prog_compiler_pic_GCJ='+Z'
21128 ;;
21129 esac
21130 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21131 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21132 ;;
21133
21134 irix5* | irix6* | nonstopux*)
21135 lt_prog_compiler_wl_GCJ='-Wl,'
21136 # PIC (with -KPIC) is the default.
21137 lt_prog_compiler_static_GCJ='-non_shared'
21138 ;;
21139
21140 newsos6)
21141 lt_prog_compiler_pic_GCJ='-KPIC'
21142 lt_prog_compiler_static_GCJ='-Bstatic'
21143 ;;
21144
21145 linux*)
21146 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021147 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021148 lt_prog_compiler_wl_GCJ='-Wl,'
21149 lt_prog_compiler_pic_GCJ='-KPIC'
21150 lt_prog_compiler_static_GCJ='-static'
21151 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021152 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021153 lt_prog_compiler_wl_GCJ='-Wl,'
21154 # All Alpha code is PIC.
21155 lt_prog_compiler_static_GCJ='-non_shared'
21156 ;;
21157 esac
21158 ;;
21159
21160 osf3* | osf4* | osf5*)
21161 lt_prog_compiler_wl_GCJ='-Wl,'
21162 # All OSF/1 code is PIC.
21163 lt_prog_compiler_static_GCJ='-non_shared'
21164 ;;
21165
21166 sco3.2v5*)
21167 lt_prog_compiler_pic_GCJ='-Kpic'
21168 lt_prog_compiler_static_GCJ='-dn'
21169 ;;
21170
21171 solaris*)
21172 lt_prog_compiler_wl_GCJ='-Wl,'
21173 lt_prog_compiler_pic_GCJ='-KPIC'
21174 lt_prog_compiler_static_GCJ='-Bstatic'
21175 ;;
21176
21177 sunos4*)
21178 lt_prog_compiler_wl_GCJ='-Qoption ld '
21179 lt_prog_compiler_pic_GCJ='-PIC'
21180 lt_prog_compiler_static_GCJ='-Bstatic'
21181 ;;
21182
21183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21184 lt_prog_compiler_wl_GCJ='-Wl,'
21185 lt_prog_compiler_pic_GCJ='-KPIC'
21186 lt_prog_compiler_static_GCJ='-Bstatic'
21187 ;;
21188
21189 sysv4*MP*)
21190 if test -d /usr/nec ;then
21191 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21192 lt_prog_compiler_static_GCJ='-Bstatic'
21193 fi
21194 ;;
21195
21196 uts4*)
21197 lt_prog_compiler_pic_GCJ='-pic'
21198 lt_prog_compiler_static_GCJ='-Bstatic'
21199 ;;
21200
21201 *)
21202 lt_prog_compiler_can_build_shared_GCJ=no
21203 ;;
21204 esac
21205 fi
21206
21207echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21208echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21209
21210#
21211# Check to make sure the PIC flag actually works.
21212#
21213if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021214
21215echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021216echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21217if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21219else
21220 lt_prog_compiler_pic_works_GCJ=no
21221 ac_outfile=conftest.$ac_objext
21222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21223 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21224 # Insert the option either (1) after the last *FLAGS variable, or
21225 # (2) before a word containing "conftest.", or (3) at the end.
21226 # Note that $ac_compile itself does not contain backslashes and begins
21227 # with a dollar sign (not a hyphen), so the echo should work correctly.
21228 # The option is referenced via a variable to avoid confusing sed.
21229 lt_compile=`echo "$ac_compile" | $SED \
21230 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21232 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59473af2004-12-25 07:31:29 +000021233 (eval echo "\"\$as_me:21233: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021234 (eval "$lt_compile" 2>conftest.err)
21235 ac_status=$?
21236 cat conftest.err >&5
Reid Spencer59473af2004-12-25 07:31:29 +000021237 echo "$as_me:21237: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021238 if (exit $ac_status) && test -s "$ac_outfile"; then
21239 # The compiler can only warn and ignore the option if not recognized
21240 # So say no if there are warnings
21241 if test ! -s conftest.err; then
21242 lt_prog_compiler_pic_works_GCJ=yes
21243 fi
21244 fi
21245 $rm conftest*
21246
21247fi
21248echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21249echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21250
21251if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21252 case $lt_prog_compiler_pic_GCJ in
21253 "" | " "*) ;;
21254 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21255 esac
21256else
21257 lt_prog_compiler_pic_GCJ=
21258 lt_prog_compiler_can_build_shared_GCJ=no
21259fi
21260
21261fi
21262case "$host_os" in
21263 # For platforms which do not support PIC, -DPIC is meaningless:
21264 *djgpp*)
21265 lt_prog_compiler_pic_GCJ=
21266 ;;
21267 *)
21268 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21269 ;;
21270esac
21271
21272echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21273echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21274if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21275 echo $ECHO_N "(cached) $ECHO_C" >&6
21276else
21277 lt_cv_prog_compiler_c_o_GCJ=no
21278 $rm -r conftest 2>/dev/null
21279 mkdir conftest
21280 cd conftest
21281 mkdir out
21282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21283
John Criswell47fdd832003-07-14 16:52:07 +000021284 lt_compiler_flag="-o out/conftest2.$ac_objext"
21285 # Insert the option either (1) after the last *FLAGS variable, or
21286 # (2) before a word containing "conftest.", or (3) at the end.
21287 # Note that $ac_compile itself does not contain backslashes and begins
21288 # with a dollar sign (not a hyphen), so the echo should work correctly.
21289 lt_compile=`echo "$ac_compile" | $SED \
21290 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21292 -e 's:$: $lt_compiler_flag:'`
Reid Spencer59473af2004-12-25 07:31:29 +000021293 (eval echo "\"\$as_me:21293: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021294 (eval "$lt_compile" 2>out/conftest.err)
21295 ac_status=$?
21296 cat out/conftest.err >&5
Reid Spencer59473af2004-12-25 07:31:29 +000021297 echo "$as_me:21297: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021298 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21299 then
21300 # The compiler can only warn and ignore the option if not recognized
21301 # So say no if there are warnings
21302 if test ! -s out/conftest.err; then
21303 lt_cv_prog_compiler_c_o_GCJ=yes
21304 fi
21305 fi
21306 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021307 $rm conftest*
21308 # SGI C++ compiler will create directory out/ii_files/ for
21309 # template instantiation
21310 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21311 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021312 cd ..
21313 rmdir conftest
21314 $rm conftest*
21315
21316fi
21317echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21318echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21319
21320
21321hard_links="nottested"
21322if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21323 # do not overwrite the value of need_locks provided by the user
21324 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21325echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21326 hard_links=yes
21327 $rm conftest*
21328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21329 touch conftest.a
21330 ln conftest.a conftest.b 2>&5 || hard_links=no
21331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21332 echo "$as_me:$LINENO: result: $hard_links" >&5
21333echo "${ECHO_T}$hard_links" >&6
21334 if test "$hard_links" = no; then
21335 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21336echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21337 need_locks=warn
21338 fi
21339else
21340 need_locks=no
21341fi
21342
21343echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21344echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21345
21346 runpath_var=
21347 allow_undefined_flag_GCJ=
21348 enable_shared_with_static_runtimes_GCJ=no
21349 archive_cmds_GCJ=
21350 archive_expsym_cmds_GCJ=
21351 old_archive_From_new_cmds_GCJ=
21352 old_archive_from_expsyms_cmds_GCJ=
21353 export_dynamic_flag_spec_GCJ=
21354 whole_archive_flag_spec_GCJ=
21355 thread_safe_flag_spec_GCJ=
21356 hardcode_libdir_flag_spec_GCJ=
21357 hardcode_libdir_flag_spec_ld_GCJ=
21358 hardcode_libdir_separator_GCJ=
21359 hardcode_direct_GCJ=no
21360 hardcode_minus_L_GCJ=no
21361 hardcode_shlibpath_var_GCJ=unsupported
21362 link_all_deplibs_GCJ=unknown
21363 hardcode_automatic_GCJ=no
21364 module_cmds_GCJ=
21365 module_expsym_cmds_GCJ=
21366 always_export_symbols_GCJ=no
21367 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21368 # include_expsyms should be a list of space-separated symbols to be *always*
21369 # included in the symbol list
21370 include_expsyms_GCJ=
21371 # exclude_expsyms can be an extended regexp of symbols to exclude
21372 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21374 # as well as any symbol that contains `d'.
21375 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21377 # platforms (ab)use it in PIC code, but their linkers get confused if
21378 # the symbol is explicitly referenced. Since portable code cannot
21379 # rely on this symbol name, it's probably fine to never include it in
21380 # preloaded symbol tables.
21381 extract_expsyms_cmds=
21382
21383 case $host_os in
21384 cygwin* | mingw* | pw32*)
21385 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21386 # When not using gcc, we currently assume that we are using
21387 # Microsoft Visual C++.
21388 if test "$GCC" != yes; then
21389 with_gnu_ld=no
21390 fi
21391 ;;
21392 openbsd*)
21393 with_gnu_ld=no
21394 ;;
21395 esac
21396
21397 ld_shlibs_GCJ=yes
21398 if test "$with_gnu_ld" = yes; then
21399 # If archive_cmds runs LD, not CC, wlarc should be empty
21400 wlarc='${wl}'
21401
21402 # See if GNU ld supports shared libraries.
21403 case $host_os in
21404 aix3* | aix4* | aix5*)
21405 # On AIX/PPC, the GNU linker is very broken
21406 if test "$host_cpu" != ia64; then
21407 ld_shlibs_GCJ=no
21408 cat <<EOF 1>&2
21409
21410*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21411*** to be unable to reliably create shared libraries on AIX.
21412*** Therefore, libtool is disabling shared libraries support. If you
21413*** really care for shared libraries, you may want to modify your PATH
21414*** so that a non-GNU linker is found, and then restart.
21415
21416EOF
21417 fi
21418 ;;
21419
21420 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021421 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 +000021422 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21423 hardcode_minus_L_GCJ=yes
21424
21425 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21426 # that the semantics of dynamic libraries on AmigaOS, at least up
21427 # to version 4, is to share data among multiple programs linked
21428 # with the same dynamic library. Since this doesn't match the
21429 # behavior of shared libraries on other platforms, we can't use
21430 # them.
21431 ld_shlibs_GCJ=no
21432 ;;
21433
21434 beos*)
21435 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21436 allow_undefined_flag_GCJ=unsupported
21437 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21438 # support --undefined. This deserves some investigation. FIXME
21439 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21440 else
21441 ld_shlibs_GCJ=no
21442 fi
21443 ;;
21444
21445 cygwin* | mingw* | pw32*)
21446 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21447 # as there is no search path for DLLs.
21448 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21449 allow_undefined_flag_GCJ=unsupported
21450 always_export_symbols_GCJ=no
21451 enable_shared_with_static_runtimes_GCJ=yes
21452 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21453
21454 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21455 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21456 # If the export-symbols file already is a .def file (1st line
21457 # is EXPORTS), use it as is; otherwise, prepend...
21458 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21459 cp $export_symbols $output_objdir/$soname.def;
21460 else
21461 echo EXPORTS > $output_objdir/$soname.def;
21462 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021463 fi~
21464 $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 +000021465 else
21466 ld_shlibs=no
21467 fi
21468 ;;
21469
21470 netbsd*)
21471 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21472 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21473 wlarc=
21474 else
21475 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21476 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21477 fi
21478 ;;
21479
21480 solaris* | sysv5*)
21481 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21482 ld_shlibs_GCJ=no
21483 cat <<EOF 1>&2
21484
21485*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21486*** create shared libraries on Solaris systems. Therefore, libtool
21487*** is disabling shared libraries support. We urge you to upgrade GNU
21488*** binutils to release 2.9.1 or newer. Another option is to modify
21489*** your PATH or compiler configuration so that the native linker is
21490*** used, and then restart.
21491
21492EOF
21493 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21494 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21495 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21496 else
21497 ld_shlibs_GCJ=no
21498 fi
21499 ;;
21500
21501 sunos4*)
21502 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21503 wlarc=
21504 hardcode_direct_GCJ=yes
21505 hardcode_shlibpath_var_GCJ=no
21506 ;;
21507
Reid Spencer2706f8c2004-09-19 23:53:36 +000021508 linux*)
21509 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21510 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21511 archive_cmds_GCJ="$tmp_archive_cmds"
21512 supports_anon_versioning=no
21513 case `$LD -v 2>/dev/null` in
21514 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21515 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21516 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21517 *\ 2.11.*) ;; # other 2.11 versions
21518 *) supports_anon_versioning=yes ;;
21519 esac
21520 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021521 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21522cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21523$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021524 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21525 else
21526 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21527 fi
21528 else
21529 ld_shlibs_GCJ=no
21530 fi
21531 ;;
21532
John Criswell47fdd832003-07-14 16:52:07 +000021533 *)
21534 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21535 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21536 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21537 else
21538 ld_shlibs_GCJ=no
21539 fi
21540 ;;
21541 esac
21542
21543 if test "$ld_shlibs_GCJ" = yes; then
21544 runpath_var=LD_RUN_PATH
21545 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21546 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21547 # ancient GNU ld didn't support --whole-archive et. al.
21548 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21549 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21550 else
21551 whole_archive_flag_spec_GCJ=
21552 fi
21553 fi
21554 else
21555 # PORTME fill in a description of your system's linker (not GNU ld)
21556 case $host_os in
21557 aix3*)
21558 allow_undefined_flag_GCJ=unsupported
21559 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021560 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 +000021561 # Note: this linker hardcodes the directories in LIBPATH if there
21562 # are no directories specified by -L.
21563 hardcode_minus_L_GCJ=yes
21564 if test "$GCC" = yes && test -z "$link_static_flag"; then
21565 # Neither direct hardcoding nor static linking is supported with a
21566 # broken collect2.
21567 hardcode_direct_GCJ=unsupported
21568 fi
21569 ;;
21570
21571 aix4* | aix5*)
21572 if test "$host_cpu" = ia64; then
21573 # On IA64, the linker does run time linking by default, so we don't
21574 # have to do anything special.
21575 aix_use_runtimelinking=no
21576 exp_sym_flag='-Bexport'
21577 no_entry_flag=""
21578 else
21579 # If we're using GNU nm, then we don't want the "-C" option.
21580 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21581 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21582 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'
21583 else
21584 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'
21585 fi
21586 aix_use_runtimelinking=no
21587
21588 # Test if we are trying to use run time linking or normal
21589 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21590 # need to do runtime linking.
21591 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21592 for ld_flag in $LDFLAGS; do
21593 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21594 aix_use_runtimelinking=yes
21595 break
21596 fi
21597 done
21598 esac
21599
21600 exp_sym_flag='-bexport'
21601 no_entry_flag='-bnoentry'
21602 fi
21603
21604 # When large executables or shared objects are built, AIX ld can
21605 # have problems creating the table of contents. If linking a library
21606 # or program results in "error TOC overflow" add -mminimal-toc to
21607 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21608 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21609
21610 archive_cmds_GCJ=''
21611 hardcode_direct_GCJ=yes
21612 hardcode_libdir_separator_GCJ=':'
21613 link_all_deplibs_GCJ=yes
21614
21615 if test "$GCC" = yes; then
21616 case $host_os in aix4.012|aix4.012.*)
21617 # We only want to do this on AIX 4.2 and lower, the check
21618 # below for broken collect2 doesn't work under 4.3+
21619 collect2name=`${CC} -print-prog-name=collect2`
21620 if test -f "$collect2name" && \
21621 strings "$collect2name" | grep resolve_lib_name >/dev/null
21622 then
21623 # We have reworked collect2
21624 hardcode_direct_GCJ=yes
21625 else
21626 # We have old collect2
21627 hardcode_direct_GCJ=unsupported
21628 # It fails to find uninstalled libraries when the uninstalled
21629 # path is not listed in the libpath. Setting hardcode_minus_L
21630 # to unsupported forces relinking
21631 hardcode_minus_L_GCJ=yes
21632 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21633 hardcode_libdir_separator_GCJ=
21634 fi
21635 esac
21636 shared_flag='-shared'
21637 else
21638 # not using gcc
21639 if test "$host_cpu" = ia64; then
21640 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21641 # chokes on -Wl,-G. The following line is correct:
21642 shared_flag='-G'
21643 else
21644 if test "$aix_use_runtimelinking" = yes; then
21645 shared_flag='${wl}-G'
21646 else
21647 shared_flag='${wl}-bM:SRE'
21648 fi
21649 fi
21650 fi
21651
21652 # It seems that -bexpall does not export symbols beginning with
21653 # underscore (_), so it is better to generate a list of symbols to export.
21654 always_export_symbols_GCJ=yes
21655 if test "$aix_use_runtimelinking" = yes; then
21656 # Warning - without using the other runtime loading flags (-brtl),
21657 # -berok will link without error, but may produce a broken library.
21658 allow_undefined_flag_GCJ='-berok'
21659 # Determine the default libpath from the value encoded in an empty executable.
21660 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021661/* confdefs.h. */
21662_ACEOF
21663cat confdefs.h >>conftest.$ac_ext
21664cat >>conftest.$ac_ext <<_ACEOF
21665/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021666
John Criswell47fdd832003-07-14 16:52:07 +000021667int
21668main ()
21669{
21670
21671 ;
21672 return 0;
21673}
21674_ACEOF
21675rm -f conftest.$ac_objext conftest$ac_exeext
21676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021677 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021678 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021679 grep -v '^ *+' conftest.er1 >conftest.err
21680 rm -f conftest.er1
21681 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021684 { ac_try='test -z "$ac_c_werror_flag"
21685 || test ! -s conftest.err'
21686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; } &&
21691 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21694 ac_status=$?
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; }; then
21697
21698aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21699}'`
21700# Check for a 64-bit object if we didn't find anything.
21701if 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; }
21702}'`; fi
21703else
21704 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021705sed 's/^/| /' conftest.$ac_ext >&5
21706
John Criswell47fdd832003-07-14 16:52:07 +000021707fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021708rm -f conftest.err conftest.$ac_objext \
21709 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021710if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21711
21712 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21713 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"
21714 else
21715 if test "$host_cpu" = ia64; then
21716 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21717 allow_undefined_flag_GCJ="-z nodefs"
21718 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"
21719 else
21720 # Determine the default libpath from the value encoded in an empty executable.
21721 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021722/* confdefs.h. */
21723_ACEOF
21724cat confdefs.h >>conftest.$ac_ext
21725cat >>conftest.$ac_ext <<_ACEOF
21726/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021727
John Criswell47fdd832003-07-14 16:52:07 +000021728int
21729main ()
21730{
21731
21732 ;
21733 return 0;
21734}
21735_ACEOF
21736rm -f conftest.$ac_objext conftest$ac_exeext
21737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021738 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021739 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021740 grep -v '^ *+' conftest.er1 >conftest.err
21741 rm -f conftest.er1
21742 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021745 { ac_try='test -z "$ac_c_werror_flag"
21746 || test ! -s conftest.err'
21747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21748 (eval $ac_try) 2>&5
21749 ac_status=$?
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); }; } &&
21752 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21754 (eval $ac_try) 2>&5
21755 ac_status=$?
21756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757 (exit $ac_status); }; }; then
21758
21759aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21760}'`
21761# Check for a 64-bit object if we didn't find anything.
21762if 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; }
21763}'`; fi
21764else
21765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021766sed 's/^/| /' conftest.$ac_ext >&5
21767
John Criswell47fdd832003-07-14 16:52:07 +000021768fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021769rm -f conftest.err conftest.$ac_objext \
21770 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021771if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21772
21773 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21774 # Warning - without using the other run time loading flags,
21775 # -berok will link without error, but may produce a broken library.
21776 no_undefined_flag_GCJ=' ${wl}-bernotok'
21777 allow_undefined_flag_GCJ=' ${wl}-berok'
21778 # -bexpall does not export symbols beginning with underscore (_)
21779 always_export_symbols_GCJ=yes
21780 # Exported symbols can be pulled into shared objects from archives
21781 whole_archive_flag_spec_GCJ=' '
21782 archive_cmds_need_lc_GCJ=yes
21783 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021784 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 +000021785 fi
21786 fi
21787 ;;
21788
21789 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021790 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 +000021791 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21792 hardcode_minus_L_GCJ=yes
21793 # see comment about different semantics on the GNU ld section
21794 ld_shlibs_GCJ=no
21795 ;;
21796
Reid Spencer2706f8c2004-09-19 23:53:36 +000021797 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021798 export_dynamic_flag_spec_GCJ=-rdynamic
21799 ;;
21800
21801 cygwin* | mingw* | pw32*)
21802 # When not using gcc, we currently assume that we are using
21803 # Microsoft Visual C++.
21804 # hardcode_libdir_flag_spec is actually meaningless, as there is
21805 # no search path for DLLs.
21806 hardcode_libdir_flag_spec_GCJ=' '
21807 allow_undefined_flag_GCJ=unsupported
21808 # Tell ltmain to make .lib files, not .a files.
21809 libext=lib
21810 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021811 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021812 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021813 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 +000021814 # The linker will automatically build a .lib file if we build a DLL.
21815 old_archive_From_new_cmds_GCJ='true'
21816 # FIXME: Should let the user specify the lib program.
21817 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21818 fix_srcfile_path='`cygpath -w "$srcfile"`'
21819 enable_shared_with_static_runtimes_GCJ=yes
21820 ;;
21821
21822 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021823 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021824 rhapsody* | darwin1.[012])
21825 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21826 ;;
21827 *) # Darwin 1.3 on
21828 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21829 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21830 else
21831 case ${MACOSX_DEPLOYMENT_TARGET} in
21832 10.[012])
21833 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21834 ;;
21835 10.*)
21836 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21837 ;;
21838 esac
21839 fi
21840 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021841 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021842 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021843 hardcode_direct_GCJ=no
21844 hardcode_automatic_GCJ=yes
21845 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021846 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021847 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021848 if test "$GCC" = yes ; then
21849 output_verbose_link_cmd='echo'
21850 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21851 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21852 # 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 +000021853 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}'
21854 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 +000021855 else
21856 case "$cc_basename" in
21857 xlc*)
21858 output_verbose_link_cmd='echo'
21859 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21860 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21861 # 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 +000021862 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}'
21863 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 +000021864 ;;
21865 *)
21866 ld_shlibs_GCJ=no
21867 ;;
21868 esac
John Criswell47fdd832003-07-14 16:52:07 +000021869 fi
21870 ;;
21871
21872 dgux*)
21873 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21874 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21875 hardcode_shlibpath_var_GCJ=no
21876 ;;
21877
21878 freebsd1*)
21879 ld_shlibs_GCJ=no
21880 ;;
21881
21882 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21883 # support. Future versions do this automatically, but an explicit c++rt0.o
21884 # does not break anything, and helps significantly (at the cost of a little
21885 # extra space).
21886 freebsd2.2*)
21887 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21888 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21889 hardcode_direct_GCJ=yes
21890 hardcode_shlibpath_var_GCJ=no
21891 ;;
21892
21893 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21894 freebsd2*)
21895 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21896 hardcode_direct_GCJ=yes
21897 hardcode_minus_L_GCJ=yes
21898 hardcode_shlibpath_var_GCJ=no
21899 ;;
21900
21901 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021902 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021903 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21904 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21905 hardcode_direct_GCJ=yes
21906 hardcode_shlibpath_var_GCJ=no
21907 ;;
21908
21909 hpux9*)
21910 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021911 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 +000021912 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021913 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 +000021914 fi
21915 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21916 hardcode_libdir_separator_GCJ=:
21917 hardcode_direct_GCJ=yes
21918
21919 # hardcode_minus_L: Not really in the search PATH,
21920 # but as the default location of the library.
21921 hardcode_minus_L_GCJ=yes
21922 export_dynamic_flag_spec_GCJ='${wl}-E'
21923 ;;
21924
21925 hpux10* | hpux11*)
21926 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21927 case "$host_cpu" in
21928 hppa*64*|ia64*)
21929 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21930 ;;
21931 *)
21932 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21933 ;;
21934 esac
21935 else
21936 case "$host_cpu" in
21937 hppa*64*|ia64*)
21938 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21939 ;;
21940 *)
21941 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21942 ;;
21943 esac
21944 fi
21945 if test "$with_gnu_ld" = no; then
21946 case "$host_cpu" in
21947 hppa*64*)
21948 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21949 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21950 hardcode_libdir_separator_GCJ=:
21951 hardcode_direct_GCJ=no
21952 hardcode_shlibpath_var_GCJ=no
21953 ;;
21954 ia64*)
21955 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21956 hardcode_direct_GCJ=no
21957 hardcode_shlibpath_var_GCJ=no
21958
21959 # hardcode_minus_L: Not really in the search PATH,
21960 # but as the default location of the library.
21961 hardcode_minus_L_GCJ=yes
21962 ;;
21963 *)
21964 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21965 hardcode_libdir_separator_GCJ=:
21966 hardcode_direct_GCJ=yes
21967 export_dynamic_flag_spec_GCJ='${wl}-E'
21968
21969 # hardcode_minus_L: Not really in the search PATH,
21970 # but as the default location of the library.
21971 hardcode_minus_L_GCJ=yes
21972 ;;
21973 esac
21974 fi
21975 ;;
21976
21977 irix5* | irix6* | nonstopux*)
21978 if test "$GCC" = yes; then
21979 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'
21980 else
21981 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'
21982 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21983 fi
21984 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21985 hardcode_libdir_separator_GCJ=:
21986 link_all_deplibs_GCJ=yes
21987 ;;
21988
21989 netbsd*)
21990 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21991 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21992 else
21993 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21994 fi
21995 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21996 hardcode_direct_GCJ=yes
21997 hardcode_shlibpath_var_GCJ=no
21998 ;;
21999
22000 newsos6)
22001 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22002 hardcode_direct_GCJ=yes
22003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22004 hardcode_libdir_separator_GCJ=:
22005 hardcode_shlibpath_var_GCJ=no
22006 ;;
22007
22008 openbsd*)
22009 hardcode_direct_GCJ=yes
22010 hardcode_shlibpath_var_GCJ=no
22011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22012 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022013 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 +000022014 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22015 export_dynamic_flag_spec_GCJ='${wl}-E'
22016 else
22017 case $host_os in
22018 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22019 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22020 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22021 ;;
22022 *)
22023 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22025 ;;
22026 esac
22027 fi
22028 ;;
22029
22030 os2*)
22031 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22032 hardcode_minus_L_GCJ=yes
22033 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022034 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 +000022035 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22036 ;;
22037
22038 osf3*)
22039 if test "$GCC" = yes; then
22040 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22041 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'
22042 else
22043 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22044 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'
22045 fi
22046 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22047 hardcode_libdir_separator_GCJ=:
22048 ;;
22049
22050 osf4* | osf5*) # as osf3* with the addition of -msym flag
22051 if test "$GCC" = yes; then
22052 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22053 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'
22054 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22055 else
22056 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22057 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 +000022058 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~
22059 $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'
22060
John Criswell47fdd832003-07-14 16:52:07 +000022061 # Both c and cxx compiler support -rpath directly
22062 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22063 fi
22064 hardcode_libdir_separator_GCJ=:
22065 ;;
22066
22067 sco3.2v5*)
22068 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22069 hardcode_shlibpath_var_GCJ=no
22070 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22071 runpath_var=LD_RUN_PATH
22072 hardcode_runpath_var=yes
22073 ;;
22074
22075 solaris*)
22076 no_undefined_flag_GCJ=' -z text'
22077 if test "$GCC" = yes; then
22078 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022079 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22080 $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 +000022081 else
22082 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022083 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22084 $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 +000022085 fi
22086 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22087 hardcode_shlibpath_var_GCJ=no
22088 case $host_os in
22089 solaris2.[0-5] | solaris2.[0-5].*) ;;
22090 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22091 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22092 esac
22093 link_all_deplibs_GCJ=yes
22094 ;;
22095
22096 sunos4*)
22097 if test "x$host_vendor" = xsequent; then
22098 # Use $CC to link under sequent, because it throws in some extra .o
22099 # files that make .init and .fini sections work.
22100 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22101 else
22102 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22103 fi
22104 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22105 hardcode_direct_GCJ=yes
22106 hardcode_minus_L_GCJ=yes
22107 hardcode_shlibpath_var_GCJ=no
22108 ;;
22109
22110 sysv4)
22111 case $host_vendor in
22112 sni)
22113 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22114 hardcode_direct_GCJ=yes # is this really true???
22115 ;;
22116 siemens)
22117 ## LD is ld it makes a PLAMLIB
22118 ## CC just makes a GrossModule.
22119 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22120 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22121 hardcode_direct_GCJ=no
22122 ;;
22123 motorola)
22124 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22125 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22126 ;;
22127 esac
22128 runpath_var='LD_RUN_PATH'
22129 hardcode_shlibpath_var_GCJ=no
22130 ;;
22131
22132 sysv4.3*)
22133 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22134 hardcode_shlibpath_var_GCJ=no
22135 export_dynamic_flag_spec_GCJ='-Bexport'
22136 ;;
22137
22138 sysv4*MP*)
22139 if test -d /usr/nec; then
22140 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22141 hardcode_shlibpath_var_GCJ=no
22142 runpath_var=LD_RUN_PATH
22143 hardcode_runpath_var=yes
22144 ld_shlibs_GCJ=yes
22145 fi
22146 ;;
22147
22148 sysv4.2uw2*)
22149 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22150 hardcode_direct_GCJ=yes
22151 hardcode_minus_L_GCJ=no
22152 hardcode_shlibpath_var_GCJ=no
22153 hardcode_runpath_var=yes
22154 runpath_var=LD_RUN_PATH
22155 ;;
22156
22157 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22158 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22159 if test "$GCC" = yes; then
22160 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22161 else
22162 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22163 fi
22164 runpath_var='LD_RUN_PATH'
22165 hardcode_shlibpath_var_GCJ=no
22166 ;;
22167
22168 sysv5*)
22169 no_undefined_flag_GCJ=' -z text'
22170 # $CC -shared without GNU ld will not create a library from C++
22171 # object files and a static libstdc++, better avoid it by now
22172 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022173 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22174 $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 +000022175 hardcode_libdir_flag_spec_GCJ=
22176 hardcode_shlibpath_var_GCJ=no
22177 runpath_var='LD_RUN_PATH'
22178 ;;
22179
22180 uts4*)
22181 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22182 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22183 hardcode_shlibpath_var_GCJ=no
22184 ;;
22185
22186 *)
22187 ld_shlibs_GCJ=no
22188 ;;
22189 esac
22190 fi
22191
22192echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22193echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22194test "$ld_shlibs_GCJ" = no && can_build_shared=no
22195
22196variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22197if test "$GCC" = yes; then
22198 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22199fi
22200
22201#
22202# Do we need to explicitly link libc?
22203#
22204case "x$archive_cmds_need_lc_GCJ" in
22205x|xyes)
22206 # Assume -lc should be added
22207 archive_cmds_need_lc_GCJ=yes
22208
22209 if test "$enable_shared" = yes && test "$GCC" = yes; then
22210 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022211 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022212 # FIXME: we may have to deal with multi-command sequences.
22213 ;;
22214 '$CC '*)
22215 # Test whether the compiler implicitly links with -lc since on some
22216 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22217 # to ld, don't add -lc before -lgcc.
22218 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22219echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22220 $rm conftest*
22221 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22222
22223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22224 (eval $ac_compile) 2>&5
22225 ac_status=$?
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } 2>conftest.err; then
22228 soname=conftest
22229 lib=conftest
22230 libobjs=conftest.$ac_objext
22231 deplibs=
22232 wl=$lt_prog_compiler_wl_GCJ
22233 compiler_flags=-v
22234 linker_flags=-v
22235 verstring=
22236 output_objdir=.
22237 libname=conftest
22238 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22239 allow_undefined_flag_GCJ=
22240 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22241 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22242 ac_status=$?
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); }
22245 then
22246 archive_cmds_need_lc_GCJ=no
22247 else
22248 archive_cmds_need_lc_GCJ=yes
22249 fi
22250 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22251 else
22252 cat conftest.err 1>&5
22253 fi
22254 $rm conftest*
22255 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22256echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22257 ;;
22258 esac
22259 fi
22260 ;;
22261esac
22262
John Criswell47fdd832003-07-14 16:52:07 +000022263echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22264echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22265library_names_spec=
22266libname_spec='lib$name'
22267soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022268shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022269postinstall_cmds=
22270postuninstall_cmds=
22271finish_cmds=
22272finish_eval=
22273shlibpath_var=
22274shlibpath_overrides_runpath=unknown
22275version_type=none
22276dynamic_linker="$host_os ld.so"
22277sys_lib_dlsearch_path_spec="/lib /usr/lib"
22278if test "$GCC" = yes; then
22279 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22280 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22281 # if the path contains ";" then we assume it to be the separator
22282 # otherwise default to the standard path separator (i.e. ":") - it is
22283 # assumed that no part of a normal pathname contains ";" but that should
22284 # okay in the real world where ";" in dirpaths is itself problematic.
22285 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22286 else
22287 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22288 fi
22289else
22290 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22291fi
22292need_lib_prefix=unknown
22293hardcode_into_libs=no
22294
22295# when you set need_version to no, make sure it does not cause -set_version
22296# flags to be left without arguments
22297need_version=unknown
22298
22299case $host_os in
22300aix3*)
22301 version_type=linux
22302 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22303 shlibpath_var=LIBPATH
22304
22305 # AIX 3 has no versioning support, so we append a major version to the name.
22306 soname_spec='${libname}${release}${shared_ext}$major'
22307 ;;
22308
22309aix4* | aix5*)
22310 version_type=linux
22311 need_lib_prefix=no
22312 need_version=no
22313 hardcode_into_libs=yes
22314 if test "$host_cpu" = ia64; then
22315 # AIX 5 supports IA64
22316 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22317 shlibpath_var=LD_LIBRARY_PATH
22318 else
22319 # With GCC up to 2.95.x, collect2 would create an import file
22320 # for dependence libraries. The import file would start with
22321 # the line `#! .'. This would cause the generated library to
22322 # depend on `.', always an invalid library. This was fixed in
22323 # development snapshots of GCC prior to 3.0.
22324 case $host_os in
22325 aix4 | aix4.[01] | aix4.[01].*)
22326 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22327 echo ' yes '
22328 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22329 :
22330 else
22331 can_build_shared=no
22332 fi
22333 ;;
22334 esac
22335 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22336 # soname into executable. Probably we can add versioning support to
22337 # collect2, so additional links can be useful in future.
22338 if test "$aix_use_runtimelinking" = yes; then
22339 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22340 # instead of lib<name>.a to let people know that these are not
22341 # typical AIX shared libraries.
22342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22343 else
22344 # We preserve .a as extension for shared libraries through AIX4.2
22345 # and later when we are not doing run time linking.
22346 library_names_spec='${libname}${release}.a $libname.a'
22347 soname_spec='${libname}${release}${shared_ext}$major'
22348 fi
22349 shlibpath_var=LIBPATH
22350 fi
22351 ;;
22352
22353amigaos*)
22354 library_names_spec='$libname.ixlibrary $libname.a'
22355 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022356 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 +000022357 ;;
22358
22359beos*)
22360 library_names_spec='${libname}${shared_ext}'
22361 dynamic_linker="$host_os ld.so"
22362 shlibpath_var=LIBRARY_PATH
22363 ;;
22364
Reid Spencer2706f8c2004-09-19 23:53:36 +000022365bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022366 version_type=linux
22367 need_version=no
22368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22369 soname_spec='${libname}${release}${shared_ext}$major'
22370 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22371 shlibpath_var=LD_LIBRARY_PATH
22372 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22373 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22374 # the default ld.so.conf also contains /usr/contrib/lib and
22375 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22376 # libtool to hard-code these into programs
22377 ;;
22378
22379cygwin* | mingw* | pw32*)
22380 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022381 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022382 need_version=no
22383 need_lib_prefix=no
22384
22385 case $GCC,$host_os in
22386 yes,cygwin* | yes,mingw* | yes,pw32*)
22387 library_names_spec='$libname.dll.a'
22388 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022389 postinstall_cmds='base_file=`basename \${file}`~
22390 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22391 dldir=$destdir/`dirname \$dlpath`~
22392 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022393 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022394 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22395 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022396 $rm \$dlpath'
22397 shlibpath_overrides_runpath=yes
22398
22399 case $host_os in
22400 cygwin*)
22401 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22402 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 +000022403 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022404 ;;
22405 mingw*)
22406 # MinGW DLLs use traditional 'lib' prefix
22407 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22408 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22409 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22410 # It is most probably a Windows format PATH printed by
22411 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22412 # path with ; separators, and with drive letters. We can handle the
22413 # drive letters (cygwin fileutils understands them), so leave them,
22414 # especially as we might pass files found there to a mingw objdump,
22415 # which wouldn't understand a cygwinified path. Ahh.
22416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22417 else
22418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22419 fi
22420 ;;
22421 pw32*)
22422 # pw32 DLLs use 'pw' prefix rather than 'lib'
22423 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22424 ;;
22425 esac
22426 ;;
22427
22428 *)
22429 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22430 ;;
22431 esac
22432 dynamic_linker='Win32 ld.exe'
22433 # FIXME: first we should search . and the directory the executable is in
22434 shlibpath_var=PATH
22435 ;;
22436
22437darwin* | rhapsody*)
22438 dynamic_linker="$host_os dyld"
22439 version_type=darwin
22440 need_lib_prefix=no
22441 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022442 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022443 soname_spec='${libname}${release}${major}$shared_ext'
22444 shlibpath_overrides_runpath=yes
22445 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022446 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022447 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022448 if test "$GCC" = yes; then
22449 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"`
22450 else
22451 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022452 fi
22453 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22454 ;;
22455
22456dgux*)
22457 version_type=linux
22458 need_lib_prefix=no
22459 need_version=no
22460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22461 soname_spec='${libname}${release}${shared_ext}$major'
22462 shlibpath_var=LD_LIBRARY_PATH
22463 ;;
22464
22465freebsd1*)
22466 dynamic_linker=no
22467 ;;
22468
Reid Spencer2706f8c2004-09-19 23:53:36 +000022469kfreebsd*-gnu)
22470 version_type=linux
22471 need_lib_prefix=no
22472 need_version=no
22473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22474 soname_spec='${libname}${release}${shared_ext}$major'
22475 shlibpath_var=LD_LIBRARY_PATH
22476 shlibpath_overrides_runpath=no
22477 hardcode_into_libs=yes
22478 dynamic_linker='GNU ld.so'
22479 ;;
22480
John Criswell47fdd832003-07-14 16:52:07 +000022481freebsd*)
22482 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22483 version_type=freebsd-$objformat
22484 case $version_type in
22485 freebsd-elf*)
22486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22487 need_version=no
22488 need_lib_prefix=no
22489 ;;
22490 freebsd-*)
22491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22492 need_version=yes
22493 ;;
22494 esac
22495 shlibpath_var=LD_LIBRARY_PATH
22496 case $host_os in
22497 freebsd2*)
22498 shlibpath_overrides_runpath=yes
22499 ;;
22500 freebsd3.01* | freebsdelf3.01*)
22501 shlibpath_overrides_runpath=yes
22502 hardcode_into_libs=yes
22503 ;;
22504 *) # from 3.2 on
22505 shlibpath_overrides_runpath=no
22506 hardcode_into_libs=yes
22507 ;;
22508 esac
22509 ;;
22510
22511gnu*)
22512 version_type=linux
22513 need_lib_prefix=no
22514 need_version=no
22515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22516 soname_spec='${libname}${release}${shared_ext}$major'
22517 shlibpath_var=LD_LIBRARY_PATH
22518 hardcode_into_libs=yes
22519 ;;
22520
22521hpux9* | hpux10* | hpux11*)
22522 # Give a soname corresponding to the major version so that dld.sl refuses to
22523 # link against other versions.
22524 version_type=sunos
22525 need_lib_prefix=no
22526 need_version=no
22527 case "$host_cpu" in
22528 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022529 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022530 hardcode_into_libs=yes
22531 dynamic_linker="$host_os dld.so"
22532 shlibpath_var=LD_LIBRARY_PATH
22533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22535 soname_spec='${libname}${release}${shared_ext}$major'
22536 if test "X$HPUX_IA64_MODE" = X32; then
22537 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22538 else
22539 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22540 fi
22541 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22542 ;;
22543 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022544 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022545 hardcode_into_libs=yes
22546 dynamic_linker="$host_os dld.sl"
22547 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22548 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22550 soname_spec='${libname}${release}${shared_ext}$major'
22551 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22552 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22553 ;;
22554 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022555 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022556 dynamic_linker="$host_os dld.sl"
22557 shlibpath_var=SHLIB_PATH
22558 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22560 soname_spec='${libname}${release}${shared_ext}$major'
22561 ;;
22562 esac
22563 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22564 postinstall_cmds='chmod 555 $lib'
22565 ;;
22566
22567irix5* | irix6* | nonstopux*)
22568 case $host_os in
22569 nonstopux*) version_type=nonstopux ;;
22570 *)
22571 if test "$lt_cv_prog_gnu_ld" = yes; then
22572 version_type=linux
22573 else
22574 version_type=irix
22575 fi ;;
22576 esac
22577 need_lib_prefix=no
22578 need_version=no
22579 soname_spec='${libname}${release}${shared_ext}$major'
22580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22581 case $host_os in
22582 irix5* | nonstopux*)
22583 libsuff= shlibsuff=
22584 ;;
22585 *)
22586 case $LD in # libtool.m4 will add one of these switches to LD
22587 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22588 libsuff= shlibsuff= libmagic=32-bit;;
22589 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22590 libsuff=32 shlibsuff=N32 libmagic=N32;;
22591 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22592 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22593 *) libsuff= shlibsuff= libmagic=never-match;;
22594 esac
22595 ;;
22596 esac
22597 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22598 shlibpath_overrides_runpath=no
22599 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22600 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22601 hardcode_into_libs=yes
22602 ;;
22603
22604# No shared lib support for Linux oldld, aout, or coff.
22605linux*oldld* | linux*aout* | linux*coff*)
22606 dynamic_linker=no
22607 ;;
22608
22609# This must be Linux ELF.
22610linux*)
22611 version_type=linux
22612 need_lib_prefix=no
22613 need_version=no
22614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22615 soname_spec='${libname}${release}${shared_ext}$major'
22616 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22617 shlibpath_var=LD_LIBRARY_PATH
22618 shlibpath_overrides_runpath=no
22619 # This implies no fast_install, which is unacceptable.
22620 # Some rework will be needed to allow for fast_install
22621 # before this can be enabled.
22622 hardcode_into_libs=yes
22623
Reid Spencer2706f8c2004-09-19 23:53:36 +000022624 # Append ld.so.conf contents to the search path
22625 if test -f /etc/ld.so.conf; then
22626 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22627 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22628 fi
22629
John Criswell47fdd832003-07-14 16:52:07 +000022630 # We used to test for /lib/ld.so.1 and disable shared libraries on
22631 # powerpc, because MkLinux only supported shared libraries with the
22632 # GNU dynamic linker. Since this was broken with cross compilers,
22633 # most powerpc-linux boxes support dynamic linking these days and
22634 # people can always --disable-shared, the test was removed, and we
22635 # assume the GNU/Linux dynamic linker is in use.
22636 dynamic_linker='GNU/Linux ld.so'
22637 ;;
22638
Reid Spencer2706f8c2004-09-19 23:53:36 +000022639knetbsd*-gnu)
22640 version_type=linux
22641 need_lib_prefix=no
22642 need_version=no
22643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22644 soname_spec='${libname}${release}${shared_ext}$major'
22645 shlibpath_var=LD_LIBRARY_PATH
22646 shlibpath_overrides_runpath=no
22647 hardcode_into_libs=yes
22648 dynamic_linker='GNU ld.so'
22649 ;;
22650
John Criswell47fdd832003-07-14 16:52:07 +000022651netbsd*)
22652 version_type=sunos
22653 need_lib_prefix=no
22654 need_version=no
22655 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22658 dynamic_linker='NetBSD (a.out) ld.so'
22659 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022661 soname_spec='${libname}${release}${shared_ext}$major'
22662 dynamic_linker='NetBSD ld.elf_so'
22663 fi
22664 shlibpath_var=LD_LIBRARY_PATH
22665 shlibpath_overrides_runpath=yes
22666 hardcode_into_libs=yes
22667 ;;
22668
22669newsos6)
22670 version_type=linux
22671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22672 shlibpath_var=LD_LIBRARY_PATH
22673 shlibpath_overrides_runpath=yes
22674 ;;
22675
Reid Spencer2706f8c2004-09-19 23:53:36 +000022676nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022677 version_type=linux
22678 need_lib_prefix=no
22679 need_version=no
22680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22681 soname_spec='${libname}${release}${shared_ext}$major'
22682 shlibpath_var=LD_LIBRARY_PATH
22683 shlibpath_overrides_runpath=yes
22684 ;;
22685
22686openbsd*)
22687 version_type=sunos
22688 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022689 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22692 shlibpath_var=LD_LIBRARY_PATH
22693 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22694 case $host_os in
22695 openbsd2.[89] | openbsd2.[89].*)
22696 shlibpath_overrides_runpath=no
22697 ;;
22698 *)
22699 shlibpath_overrides_runpath=yes
22700 ;;
22701 esac
22702 else
22703 shlibpath_overrides_runpath=yes
22704 fi
22705 ;;
22706
22707os2*)
22708 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022709 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022710 need_lib_prefix=no
22711 library_names_spec='$libname${shared_ext} $libname.a'
22712 dynamic_linker='OS/2 ld.exe'
22713 shlibpath_var=LIBPATH
22714 ;;
22715
22716osf3* | osf4* | osf5*)
22717 version_type=osf
22718 need_lib_prefix=no
22719 need_version=no
22720 soname_spec='${libname}${release}${shared_ext}$major'
22721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22722 shlibpath_var=LD_LIBRARY_PATH
22723 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22724 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22725 ;;
22726
22727sco3.2v5*)
22728 version_type=osf
22729 soname_spec='${libname}${release}${shared_ext}$major'
22730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22731 shlibpath_var=LD_LIBRARY_PATH
22732 ;;
22733
22734solaris*)
22735 version_type=linux
22736 need_lib_prefix=no
22737 need_version=no
22738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22739 soname_spec='${libname}${release}${shared_ext}$major'
22740 shlibpath_var=LD_LIBRARY_PATH
22741 shlibpath_overrides_runpath=yes
22742 hardcode_into_libs=yes
22743 # ldd complains unless libraries are executable
22744 postinstall_cmds='chmod +x $lib'
22745 ;;
22746
22747sunos4*)
22748 version_type=sunos
22749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22750 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22751 shlibpath_var=LD_LIBRARY_PATH
22752 shlibpath_overrides_runpath=yes
22753 if test "$with_gnu_ld" = yes; then
22754 need_lib_prefix=no
22755 fi
22756 need_version=yes
22757 ;;
22758
22759sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22760 version_type=linux
22761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22762 soname_spec='${libname}${release}${shared_ext}$major'
22763 shlibpath_var=LD_LIBRARY_PATH
22764 case $host_vendor in
22765 sni)
22766 shlibpath_overrides_runpath=no
22767 need_lib_prefix=no
22768 export_dynamic_flag_spec='${wl}-Blargedynsym'
22769 runpath_var=LD_RUN_PATH
22770 ;;
22771 siemens)
22772 need_lib_prefix=no
22773 ;;
22774 motorola)
22775 need_lib_prefix=no
22776 need_version=no
22777 shlibpath_overrides_runpath=no
22778 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22779 ;;
22780 esac
22781 ;;
22782
22783sysv4*MP*)
22784 if test -d /usr/nec ;then
22785 version_type=linux
22786 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22787 soname_spec='$libname${shared_ext}.$major'
22788 shlibpath_var=LD_LIBRARY_PATH
22789 fi
22790 ;;
22791
22792uts4*)
22793 version_type=linux
22794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22795 soname_spec='${libname}${release}${shared_ext}$major'
22796 shlibpath_var=LD_LIBRARY_PATH
22797 ;;
22798
22799*)
22800 dynamic_linker=no
22801 ;;
22802esac
22803echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22804echo "${ECHO_T}$dynamic_linker" >&6
22805test "$dynamic_linker" = no && can_build_shared=no
22806
Reid Spencer2706f8c2004-09-19 23:53:36 +000022807echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22808echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22809hardcode_action_GCJ=
22810if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22811 test -n "$runpath_var_GCJ" || \
22812 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22813
22814 # We can hardcode non-existant directories.
22815 if test "$hardcode_direct_GCJ" != no &&
22816 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22817 # have to relink, otherwise we might link with an installed library
22818 # when we should be linking with a yet-to-be-installed one
22819 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22820 test "$hardcode_minus_L_GCJ" != no; then
22821 # Linking always hardcodes the temporary library directory.
22822 hardcode_action_GCJ=relink
22823 else
22824 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22825 hardcode_action_GCJ=immediate
22826 fi
22827else
22828 # We cannot hardcode anything, or else we can only hardcode existing
22829 # directories.
22830 hardcode_action_GCJ=unsupported
22831fi
22832echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22833echo "${ECHO_T}$hardcode_action_GCJ" >&6
22834
22835if test "$hardcode_action_GCJ" = relink; then
22836 # Fast installation is not supported
22837 enable_fast_install=no
22838elif test "$shlibpath_overrides_runpath" = yes ||
22839 test "$enable_shared" = no; then
22840 # Fast installation is not necessary
22841 enable_fast_install=needless
22842fi
22843
22844striplib=
22845old_striplib=
22846echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22847echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22848if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22849 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22850 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22851 echo "$as_me:$LINENO: result: yes" >&5
22852echo "${ECHO_T}yes" >&6
22853else
22854# FIXME - insert some real tests, host_os isn't really good enough
22855 case $host_os in
22856 darwin*)
22857 if test -n "$STRIP" ; then
22858 striplib="$STRIP -x"
22859 echo "$as_me:$LINENO: result: yes" >&5
22860echo "${ECHO_T}yes" >&6
22861 else
22862 echo "$as_me:$LINENO: result: no" >&5
22863echo "${ECHO_T}no" >&6
22864fi
22865 ;;
22866 *)
22867 echo "$as_me:$LINENO: result: no" >&5
22868echo "${ECHO_T}no" >&6
22869 ;;
22870 esac
22871fi
22872
John Criswell47fdd832003-07-14 16:52:07 +000022873if test "x$enable_dlopen" != xyes; then
22874 enable_dlopen=unknown
22875 enable_dlopen_self=unknown
22876 enable_dlopen_self_static=unknown
22877else
22878 lt_cv_dlopen=no
22879 lt_cv_dlopen_libs=
22880
22881 case $host_os in
22882 beos*)
22883 lt_cv_dlopen="load_add_on"
22884 lt_cv_dlopen_libs=
22885 lt_cv_dlopen_self=yes
22886 ;;
22887
22888 mingw* | pw32*)
22889 lt_cv_dlopen="LoadLibrary"
22890 lt_cv_dlopen_libs=
22891 ;;
22892
22893 cygwin*)
22894 lt_cv_dlopen="dlopen"
22895 lt_cv_dlopen_libs=
22896 ;;
22897
22898 darwin*)
22899 # if libdl is installed we need to link against it
22900 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22901echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22902if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22903 echo $ECHO_N "(cached) $ECHO_C" >&6
22904else
22905 ac_check_lib_save_LIBS=$LIBS
22906LIBS="-ldl $LIBS"
22907cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022908/* confdefs.h. */
22909_ACEOF
22910cat confdefs.h >>conftest.$ac_ext
22911cat >>conftest.$ac_ext <<_ACEOF
22912/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022913
22914/* Override any gcc2 internal prototype to avoid an error. */
22915#ifdef __cplusplus
22916extern "C"
22917#endif
22918/* We use char because int might match the return type of a gcc2
22919 builtin and then its argument prototype would still apply. */
22920char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022921int
22922main ()
22923{
22924dlopen ();
22925 ;
22926 return 0;
22927}
22928_ACEOF
22929rm -f conftest.$ac_objext conftest$ac_exeext
22930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022931 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022932 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022933 grep -v '^ *+' conftest.er1 >conftest.err
22934 rm -f conftest.er1
22935 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022938 { ac_try='test -z "$ac_c_werror_flag"
22939 || test ! -s conftest.err'
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22942 ac_status=$?
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; } &&
22945 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947 (eval $ac_try) 2>&5
22948 ac_status=$?
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; }; then
22951 ac_cv_lib_dl_dlopen=yes
22952else
22953 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022954sed 's/^/| /' conftest.$ac_ext >&5
22955
John Criswell47fdd832003-07-14 16:52:07 +000022956ac_cv_lib_dl_dlopen=no
22957fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022958rm -f conftest.err conftest.$ac_objext \
22959 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022960LIBS=$ac_check_lib_save_LIBS
22961fi
22962echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22963echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22964if test $ac_cv_lib_dl_dlopen = yes; then
22965 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22966else
22967
22968 lt_cv_dlopen="dyld"
22969 lt_cv_dlopen_libs=
22970 lt_cv_dlopen_self=yes
22971
22972fi
22973
22974 ;;
22975
22976 *)
22977 echo "$as_me:$LINENO: checking for shl_load" >&5
22978echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22979if test "${ac_cv_func_shl_load+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22981else
22982 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022983/* confdefs.h. */
22984_ACEOF
22985cat confdefs.h >>conftest.$ac_ext
22986cat >>conftest.$ac_ext <<_ACEOF
22987/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022988/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22990#define shl_load innocuous_shl_load
22991
John Criswell47fdd832003-07-14 16:52:07 +000022992/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022993 which can conflict with char shl_load (); below.
22994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22995 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022996
John Criswell0c38eaf2003-09-10 15:17:25 +000022997#ifdef __STDC__
22998# include <limits.h>
22999#else
23000# include <assert.h>
23001#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023002
23003#undef shl_load
23004
John Criswell47fdd832003-07-14 16:52:07 +000023005/* Override any gcc2 internal prototype to avoid an error. */
23006#ifdef __cplusplus
23007extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023008{
John Criswell47fdd832003-07-14 16:52:07 +000023009#endif
23010/* We use char because int might match the return type of a gcc2
23011 builtin and then its argument prototype would still apply. */
23012char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023013/* The GNU C library defines this for functions which it implements
23014 to always fail with ENOSYS. Some functions are actually named
23015 something starting with __ and the normal name is an alias. */
23016#if defined (__stub_shl_load) || defined (__stub___shl_load)
23017choke me
23018#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023019char (*f) () = shl_load;
23020#endif
23021#ifdef __cplusplus
23022}
John Criswell47fdd832003-07-14 16:52:07 +000023023#endif
23024
John Criswell0c38eaf2003-09-10 15:17:25 +000023025int
23026main ()
23027{
23028return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023029 ;
23030 return 0;
23031}
23032_ACEOF
23033rm -f conftest.$ac_objext conftest$ac_exeext
23034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023035 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023036 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023037 grep -v '^ *+' conftest.er1 >conftest.err
23038 rm -f conftest.er1
23039 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023042 { ac_try='test -z "$ac_c_werror_flag"
23043 || test ! -s conftest.err'
23044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045 (eval $ac_try) 2>&5
23046 ac_status=$?
23047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048 (exit $ac_status); }; } &&
23049 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051 (eval $ac_try) 2>&5
23052 ac_status=$?
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); }; }; then
23055 ac_cv_func_shl_load=yes
23056else
23057 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023058sed 's/^/| /' conftest.$ac_ext >&5
23059
John Criswell47fdd832003-07-14 16:52:07 +000023060ac_cv_func_shl_load=no
23061fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023062rm -f conftest.err conftest.$ac_objext \
23063 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023064fi
23065echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23066echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23067if test $ac_cv_func_shl_load = yes; then
23068 lt_cv_dlopen="shl_load"
23069else
23070 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23071echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23072if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23073 echo $ECHO_N "(cached) $ECHO_C" >&6
23074else
23075 ac_check_lib_save_LIBS=$LIBS
23076LIBS="-ldld $LIBS"
23077cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023078/* confdefs.h. */
23079_ACEOF
23080cat confdefs.h >>conftest.$ac_ext
23081cat >>conftest.$ac_ext <<_ACEOF
23082/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023083
23084/* Override any gcc2 internal prototype to avoid an error. */
23085#ifdef __cplusplus
23086extern "C"
23087#endif
23088/* We use char because int might match the return type of a gcc2
23089 builtin and then its argument prototype would still apply. */
23090char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023091int
23092main ()
23093{
23094shl_load ();
23095 ;
23096 return 0;
23097}
23098_ACEOF
23099rm -f conftest.$ac_objext conftest$ac_exeext
23100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023101 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023102 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023103 grep -v '^ *+' conftest.er1 >conftest.err
23104 rm -f conftest.er1
23105 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023108 { ac_try='test -z "$ac_c_werror_flag"
23109 || test ! -s conftest.err'
23110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111 (eval $ac_try) 2>&5
23112 ac_status=$?
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); }; } &&
23115 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117 (eval $ac_try) 2>&5
23118 ac_status=$?
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); }; }; then
23121 ac_cv_lib_dld_shl_load=yes
23122else
23123 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023124sed 's/^/| /' conftest.$ac_ext >&5
23125
John Criswell47fdd832003-07-14 16:52:07 +000023126ac_cv_lib_dld_shl_load=no
23127fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023128rm -f conftest.err conftest.$ac_objext \
23129 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023130LIBS=$ac_check_lib_save_LIBS
23131fi
23132echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23133echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23134if test $ac_cv_lib_dld_shl_load = yes; then
23135 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23136else
23137 echo "$as_me:$LINENO: checking for dlopen" >&5
23138echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23139if test "${ac_cv_func_dlopen+set}" = set; then
23140 echo $ECHO_N "(cached) $ECHO_C" >&6
23141else
23142 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023143/* confdefs.h. */
23144_ACEOF
23145cat confdefs.h >>conftest.$ac_ext
23146cat >>conftest.$ac_ext <<_ACEOF
23147/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023148/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23150#define dlopen innocuous_dlopen
23151
John Criswell47fdd832003-07-14 16:52:07 +000023152/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023153 which can conflict with char dlopen (); below.
23154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23155 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023156
John Criswell0c38eaf2003-09-10 15:17:25 +000023157#ifdef __STDC__
23158# include <limits.h>
23159#else
23160# include <assert.h>
23161#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023162
23163#undef dlopen
23164
John Criswell47fdd832003-07-14 16:52:07 +000023165/* Override any gcc2 internal prototype to avoid an error. */
23166#ifdef __cplusplus
23167extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023168{
John Criswell47fdd832003-07-14 16:52:07 +000023169#endif
23170/* We use char because int might match the return type of a gcc2
23171 builtin and then its argument prototype would still apply. */
23172char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023173/* The GNU C library defines this for functions which it implements
23174 to always fail with ENOSYS. Some functions are actually named
23175 something starting with __ and the normal name is an alias. */
23176#if defined (__stub_dlopen) || defined (__stub___dlopen)
23177choke me
23178#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023179char (*f) () = dlopen;
23180#endif
23181#ifdef __cplusplus
23182}
John Criswell47fdd832003-07-14 16:52:07 +000023183#endif
23184
John Criswell0c38eaf2003-09-10 15:17:25 +000023185int
23186main ()
23187{
23188return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023189 ;
23190 return 0;
23191}
23192_ACEOF
23193rm -f conftest.$ac_objext conftest$ac_exeext
23194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023195 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023196 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023197 grep -v '^ *+' conftest.er1 >conftest.err
23198 rm -f conftest.er1
23199 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023202 { ac_try='test -z "$ac_c_werror_flag"
23203 || test ! -s conftest.err'
23204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205 (eval $ac_try) 2>&5
23206 ac_status=$?
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); }; } &&
23209 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23212 ac_status=$?
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; }; then
23215 ac_cv_func_dlopen=yes
23216else
23217 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023218sed 's/^/| /' conftest.$ac_ext >&5
23219
John Criswell47fdd832003-07-14 16:52:07 +000023220ac_cv_func_dlopen=no
23221fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023222rm -f conftest.err conftest.$ac_objext \
23223 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023224fi
23225echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23226echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23227if test $ac_cv_func_dlopen = yes; then
23228 lt_cv_dlopen="dlopen"
23229else
23230 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23231echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23232if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23234else
23235 ac_check_lib_save_LIBS=$LIBS
23236LIBS="-ldl $LIBS"
23237cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023238/* confdefs.h. */
23239_ACEOF
23240cat confdefs.h >>conftest.$ac_ext
23241cat >>conftest.$ac_ext <<_ACEOF
23242/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023243
23244/* Override any gcc2 internal prototype to avoid an error. */
23245#ifdef __cplusplus
23246extern "C"
23247#endif
23248/* We use char because int might match the return type of a gcc2
23249 builtin and then its argument prototype would still apply. */
23250char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023251int
23252main ()
23253{
23254dlopen ();
23255 ;
23256 return 0;
23257}
23258_ACEOF
23259rm -f conftest.$ac_objext conftest$ac_exeext
23260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023261 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023262 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023263 grep -v '^ *+' conftest.er1 >conftest.err
23264 rm -f conftest.er1
23265 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023268 { ac_try='test -z "$ac_c_werror_flag"
23269 || test ! -s conftest.err'
23270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271 (eval $ac_try) 2>&5
23272 ac_status=$?
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; } &&
23275 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23278 ac_status=$?
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; }; then
23281 ac_cv_lib_dl_dlopen=yes
23282else
23283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023284sed 's/^/| /' conftest.$ac_ext >&5
23285
John Criswell47fdd832003-07-14 16:52:07 +000023286ac_cv_lib_dl_dlopen=no
23287fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023288rm -f conftest.err conftest.$ac_objext \
23289 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023290LIBS=$ac_check_lib_save_LIBS
23291fi
23292echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23293echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23294if test $ac_cv_lib_dl_dlopen = yes; then
23295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23296else
23297 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23298echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23299if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23301else
23302 ac_check_lib_save_LIBS=$LIBS
23303LIBS="-lsvld $LIBS"
23304cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023305/* confdefs.h. */
23306_ACEOF
23307cat confdefs.h >>conftest.$ac_ext
23308cat >>conftest.$ac_ext <<_ACEOF
23309/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023310
23311/* Override any gcc2 internal prototype to avoid an error. */
23312#ifdef __cplusplus
23313extern "C"
23314#endif
23315/* We use char because int might match the return type of a gcc2
23316 builtin and then its argument prototype would still apply. */
23317char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023318int
23319main ()
23320{
23321dlopen ();
23322 ;
23323 return 0;
23324}
23325_ACEOF
23326rm -f conftest.$ac_objext conftest$ac_exeext
23327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023328 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023329 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023330 grep -v '^ *+' conftest.er1 >conftest.err
23331 rm -f conftest.er1
23332 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023335 { ac_try='test -z "$ac_c_werror_flag"
23336 || test ! -s conftest.err'
23337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338 (eval $ac_try) 2>&5
23339 ac_status=$?
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); }; } &&
23342 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344 (eval $ac_try) 2>&5
23345 ac_status=$?
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; }; then
23348 ac_cv_lib_svld_dlopen=yes
23349else
23350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023351sed 's/^/| /' conftest.$ac_ext >&5
23352
John Criswell47fdd832003-07-14 16:52:07 +000023353ac_cv_lib_svld_dlopen=no
23354fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023355rm -f conftest.err conftest.$ac_objext \
23356 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023357LIBS=$ac_check_lib_save_LIBS
23358fi
23359echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23360echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23361if test $ac_cv_lib_svld_dlopen = yes; then
23362 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23363else
23364 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23365echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23366if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23367 echo $ECHO_N "(cached) $ECHO_C" >&6
23368else
23369 ac_check_lib_save_LIBS=$LIBS
23370LIBS="-ldld $LIBS"
23371cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023372/* confdefs.h. */
23373_ACEOF
23374cat confdefs.h >>conftest.$ac_ext
23375cat >>conftest.$ac_ext <<_ACEOF
23376/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023377
23378/* Override any gcc2 internal prototype to avoid an error. */
23379#ifdef __cplusplus
23380extern "C"
23381#endif
23382/* We use char because int might match the return type of a gcc2
23383 builtin and then its argument prototype would still apply. */
23384char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023385int
23386main ()
23387{
23388dld_link ();
23389 ;
23390 return 0;
23391}
23392_ACEOF
23393rm -f conftest.$ac_objext conftest$ac_exeext
23394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023395 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023396 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023397 grep -v '^ *+' conftest.er1 >conftest.err
23398 rm -f conftest.er1
23399 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023402 { ac_try='test -z "$ac_c_werror_flag"
23403 || test ! -s conftest.err'
23404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405 (eval $ac_try) 2>&5
23406 ac_status=$?
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; } &&
23409 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411 (eval $ac_try) 2>&5
23412 ac_status=$?
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); }; }; then
23415 ac_cv_lib_dld_dld_link=yes
23416else
23417 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023418sed 's/^/| /' conftest.$ac_ext >&5
23419
John Criswell47fdd832003-07-14 16:52:07 +000023420ac_cv_lib_dld_dld_link=no
23421fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023422rm -f conftest.err conftest.$ac_objext \
23423 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023424LIBS=$ac_check_lib_save_LIBS
23425fi
23426echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23427echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23428if test $ac_cv_lib_dld_dld_link = yes; then
23429 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23430fi
23431
23432
23433fi
23434
23435
23436fi
23437
23438
23439fi
23440
23441
23442fi
23443
23444
23445fi
23446
23447 ;;
23448 esac
23449
23450 if test "x$lt_cv_dlopen" != xno; then
23451 enable_dlopen=yes
23452 else
23453 enable_dlopen=no
23454 fi
23455
23456 case $lt_cv_dlopen in
23457 dlopen)
23458 save_CPPFLAGS="$CPPFLAGS"
23459 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23460
23461 save_LDFLAGS="$LDFLAGS"
23462 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23463
23464 save_LIBS="$LIBS"
23465 LIBS="$lt_cv_dlopen_libs $LIBS"
23466
23467 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23468echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23469if test "${lt_cv_dlopen_self+set}" = set; then
23470 echo $ECHO_N "(cached) $ECHO_C" >&6
23471else
23472 if test "$cross_compiling" = yes; then :
23473 lt_cv_dlopen_self=cross
23474else
23475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23476 lt_status=$lt_dlunknown
23477 cat > conftest.$ac_ext <<EOF
Reid Spencer59473af2004-12-25 07:31:29 +000023478#line 23478 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023479#include "confdefs.h"
23480
23481#if HAVE_DLFCN_H
23482#include <dlfcn.h>
23483#endif
23484
23485#include <stdio.h>
23486
23487#ifdef RTLD_GLOBAL
23488# define LT_DLGLOBAL RTLD_GLOBAL
23489#else
23490# ifdef DL_GLOBAL
23491# define LT_DLGLOBAL DL_GLOBAL
23492# else
23493# define LT_DLGLOBAL 0
23494# endif
23495#endif
23496
23497/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23498 find out it does not work in some platform. */
23499#ifndef LT_DLLAZY_OR_NOW
23500# ifdef RTLD_LAZY
23501# define LT_DLLAZY_OR_NOW RTLD_LAZY
23502# else
23503# ifdef DL_LAZY
23504# define LT_DLLAZY_OR_NOW DL_LAZY
23505# else
23506# ifdef RTLD_NOW
23507# define LT_DLLAZY_OR_NOW RTLD_NOW
23508# else
23509# ifdef DL_NOW
23510# define LT_DLLAZY_OR_NOW DL_NOW
23511# else
23512# define LT_DLLAZY_OR_NOW 0
23513# endif
23514# endif
23515# endif
23516# endif
23517#endif
23518
23519#ifdef __cplusplus
23520extern "C" void exit (int);
23521#endif
23522
23523void fnord() { int i=42;}
23524int main ()
23525{
23526 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23527 int status = $lt_dlunknown;
23528
23529 if (self)
23530 {
23531 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23532 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23533 /* dlclose (self); */
23534 }
23535
23536 exit (status);
23537}
23538EOF
23539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23540 (eval $ac_link) 2>&5
23541 ac_status=$?
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23544 (./conftest; exit; ) 2>/dev/null
23545 lt_status=$?
23546 case x$lt_status in
23547 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23548 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23549 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23550 esac
23551 else :
23552 # compilation failed
23553 lt_cv_dlopen_self=no
23554 fi
23555fi
23556rm -fr conftest*
23557
23558
23559fi
23560echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23561echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23562
23563 if test "x$lt_cv_dlopen_self" = xyes; then
23564 LDFLAGS="$LDFLAGS $link_static_flag"
23565 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23566echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23567if test "${lt_cv_dlopen_self_static+set}" = set; then
23568 echo $ECHO_N "(cached) $ECHO_C" >&6
23569else
23570 if test "$cross_compiling" = yes; then :
23571 lt_cv_dlopen_self_static=cross
23572else
23573 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23574 lt_status=$lt_dlunknown
23575 cat > conftest.$ac_ext <<EOF
Reid Spencer59473af2004-12-25 07:31:29 +000023576#line 23576 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023577#include "confdefs.h"
23578
23579#if HAVE_DLFCN_H
23580#include <dlfcn.h>
23581#endif
23582
23583#include <stdio.h>
23584
23585#ifdef RTLD_GLOBAL
23586# define LT_DLGLOBAL RTLD_GLOBAL
23587#else
23588# ifdef DL_GLOBAL
23589# define LT_DLGLOBAL DL_GLOBAL
23590# else
23591# define LT_DLGLOBAL 0
23592# endif
23593#endif
23594
23595/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23596 find out it does not work in some platform. */
23597#ifndef LT_DLLAZY_OR_NOW
23598# ifdef RTLD_LAZY
23599# define LT_DLLAZY_OR_NOW RTLD_LAZY
23600# else
23601# ifdef DL_LAZY
23602# define LT_DLLAZY_OR_NOW DL_LAZY
23603# else
23604# ifdef RTLD_NOW
23605# define LT_DLLAZY_OR_NOW RTLD_NOW
23606# else
23607# ifdef DL_NOW
23608# define LT_DLLAZY_OR_NOW DL_NOW
23609# else
23610# define LT_DLLAZY_OR_NOW 0
23611# endif
23612# endif
23613# endif
23614# endif
23615#endif
23616
23617#ifdef __cplusplus
23618extern "C" void exit (int);
23619#endif
23620
23621void fnord() { int i=42;}
23622int main ()
23623{
23624 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23625 int status = $lt_dlunknown;
23626
23627 if (self)
23628 {
23629 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23630 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23631 /* dlclose (self); */
23632 }
23633
23634 exit (status);
23635}
23636EOF
23637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23638 (eval $ac_link) 2>&5
23639 ac_status=$?
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23642 (./conftest; exit; ) 2>/dev/null
23643 lt_status=$?
23644 case x$lt_status in
23645 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23646 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23647 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23648 esac
23649 else :
23650 # compilation failed
23651 lt_cv_dlopen_self_static=no
23652 fi
23653fi
23654rm -fr conftest*
23655
23656
23657fi
23658echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23659echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23660 fi
23661
23662 CPPFLAGS="$save_CPPFLAGS"
23663 LDFLAGS="$save_LDFLAGS"
23664 LIBS="$save_LIBS"
23665 ;;
23666 esac
23667
23668 case $lt_cv_dlopen_self in
23669 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23670 *) enable_dlopen_self=unknown ;;
23671 esac
23672
23673 case $lt_cv_dlopen_self_static in
23674 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23675 *) enable_dlopen_self_static=unknown ;;
23676 esac
23677fi
23678
23679
23680# The else clause should only fire when bootstrapping the
23681# libtool distribution, otherwise you forgot to ship ltmain.sh
23682# with your package, and you will get complaints that there are
23683# no rules to generate ltmain.sh.
23684if test -f "$ltmain"; then
23685 # See if we are running on zsh, and set the options which allow our commands through
23686 # without removal of \ escapes.
23687 if test -n "${ZSH_VERSION+set}" ; then
23688 setopt NO_GLOB_SUBST
23689 fi
23690 # Now quote all the things that may contain metacharacters while being
23691 # careful not to overquote the AC_SUBSTed values. We take copies of the
23692 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023693 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23694 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023695 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23696 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23697 deplibs_check_method reload_flag reload_cmds need_locks \
23698 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23699 lt_cv_sys_global_symbol_to_c_name_address \
23700 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23701 old_postinstall_cmds old_postuninstall_cmds \
23702 compiler_GCJ \
23703 CC_GCJ \
23704 LD_GCJ \
23705 lt_prog_compiler_wl_GCJ \
23706 lt_prog_compiler_pic_GCJ \
23707 lt_prog_compiler_static_GCJ \
23708 lt_prog_compiler_no_builtin_flag_GCJ \
23709 export_dynamic_flag_spec_GCJ \
23710 thread_safe_flag_spec_GCJ \
23711 whole_archive_flag_spec_GCJ \
23712 enable_shared_with_static_runtimes_GCJ \
23713 old_archive_cmds_GCJ \
23714 old_archive_from_new_cmds_GCJ \
23715 predep_objects_GCJ \
23716 postdep_objects_GCJ \
23717 predeps_GCJ \
23718 postdeps_GCJ \
23719 compiler_lib_search_path_GCJ \
23720 archive_cmds_GCJ \
23721 archive_expsym_cmds_GCJ \
23722 postinstall_cmds_GCJ \
23723 postuninstall_cmds_GCJ \
23724 old_archive_from_expsyms_cmds_GCJ \
23725 allow_undefined_flag_GCJ \
23726 no_undefined_flag_GCJ \
23727 export_symbols_cmds_GCJ \
23728 hardcode_libdir_flag_spec_GCJ \
23729 hardcode_libdir_flag_spec_ld_GCJ \
23730 hardcode_libdir_separator_GCJ \
23731 hardcode_automatic_GCJ \
23732 module_cmds_GCJ \
23733 module_expsym_cmds_GCJ \
23734 lt_cv_prog_compiler_c_o_GCJ \
23735 exclude_expsyms_GCJ \
23736 include_expsyms_GCJ; do
23737
23738 case $var in
23739 old_archive_cmds_GCJ | \
23740 old_archive_from_new_cmds_GCJ | \
23741 archive_cmds_GCJ | \
23742 archive_expsym_cmds_GCJ | \
23743 module_cmds_GCJ | \
23744 module_expsym_cmds_GCJ | \
23745 old_archive_from_expsyms_cmds_GCJ | \
23746 export_symbols_cmds_GCJ | \
23747 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23748 postinstall_cmds | postuninstall_cmds | \
23749 old_postinstall_cmds | old_postuninstall_cmds | \
23750 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23751 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023752 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 +000023753 ;;
23754 *)
23755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23756 ;;
23757 esac
23758 done
23759
23760 case $lt_echo in
23761 *'\$0 --fallback-echo"')
23762 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23763 ;;
23764 esac
23765
23766cfgfile="$ofile"
23767
23768 cat <<__EOF__ >> "$cfgfile"
23769# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23770
23771# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23772
23773# Shell to use when invoking shell scripts.
23774SHELL=$lt_SHELL
23775
23776# Whether or not to build shared libraries.
23777build_libtool_libs=$enable_shared
23778
23779# Whether or not to build static libraries.
23780build_old_libs=$enable_static
23781
23782# Whether or not to add -lc for building shared libraries.
23783build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23784
23785# Whether or not to disallow shared libs when runtime libs are static
23786allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23787
23788# Whether or not to optimize for fast installation.
23789fast_install=$enable_fast_install
23790
23791# The host system.
23792host_alias=$host_alias
23793host=$host
23794
23795# An echo program that does not interpret backslashes.
23796echo=$lt_echo
23797
23798# The archiver.
23799AR=$lt_AR
23800AR_FLAGS=$lt_AR_FLAGS
23801
23802# A C compiler.
23803LTCC=$lt_LTCC
23804
23805# A language-specific compiler.
23806CC=$lt_compiler_GCJ
23807
23808# Is the compiler the GNU C compiler?
23809with_gcc=$GCC_GCJ
23810
23811# An ERE matcher.
23812EGREP=$lt_EGREP
23813
23814# The linker used to build libraries.
23815LD=$lt_LD_GCJ
23816
23817# Whether we need hard or soft links.
23818LN_S=$lt_LN_S
23819
23820# A BSD-compatible nm program.
23821NM=$lt_NM
23822
23823# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023824STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023825
23826# Used to examine libraries when file_magic_cmd begins "file"
23827MAGIC_CMD=$MAGIC_CMD
23828
23829# Used on cygwin: DLL creation program.
23830DLLTOOL="$DLLTOOL"
23831
23832# Used on cygwin: object dumper.
23833OBJDUMP="$OBJDUMP"
23834
23835# Used on cygwin: assembler.
23836AS="$AS"
23837
23838# The name of the directory that contains temporary libtool files.
23839objdir=$objdir
23840
23841# How to create reloadable object files.
23842reload_flag=$lt_reload_flag
23843reload_cmds=$lt_reload_cmds
23844
23845# How to pass a linker flag through the compiler.
23846wl=$lt_lt_prog_compiler_wl_GCJ
23847
23848# Object file suffix (normally "o").
23849objext="$ac_objext"
23850
23851# Old archive suffix (normally "a").
23852libext="$libext"
23853
23854# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023855shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023856
23857# Executable file suffix (normally "").
23858exeext="$exeext"
23859
23860# Additional compiler flags for building library objects.
23861pic_flag=$lt_lt_prog_compiler_pic_GCJ
23862pic_mode=$pic_mode
23863
23864# What is the maximum length of a command?
23865max_cmd_len=$lt_cv_sys_max_cmd_len
23866
23867# Does compiler simultaneously support -c and -o options?
23868compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23869
23870# Must we lock files when doing compilation ?
23871need_locks=$lt_need_locks
23872
23873# Do we need the lib prefix for modules?
23874need_lib_prefix=$need_lib_prefix
23875
23876# Do we need a version for libraries?
23877need_version=$need_version
23878
23879# Whether dlopen is supported.
23880dlopen_support=$enable_dlopen
23881
23882# Whether dlopen of programs is supported.
23883dlopen_self=$enable_dlopen_self
23884
23885# Whether dlopen of statically linked programs is supported.
23886dlopen_self_static=$enable_dlopen_self_static
23887
23888# Compiler flag to prevent dynamic linking.
23889link_static_flag=$lt_lt_prog_compiler_static_GCJ
23890
23891# Compiler flag to turn off builtin functions.
23892no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23893
23894# Compiler flag to allow reflexive dlopens.
23895export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23896
23897# Compiler flag to generate shared objects directly from archives.
23898whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23899
23900# Compiler flag to generate thread-safe objects.
23901thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23902
23903# Library versioning type.
23904version_type=$version_type
23905
23906# Format of library name prefix.
23907libname_spec=$lt_libname_spec
23908
23909# List of archive names. First name is the real one, the rest are links.
23910# The last name is the one that the linker finds with -lNAME.
23911library_names_spec=$lt_library_names_spec
23912
23913# The coded name of the library, if different from the real name.
23914soname_spec=$lt_soname_spec
23915
23916# Commands used to build and install an old-style archive.
23917RANLIB=$lt_RANLIB
23918old_archive_cmds=$lt_old_archive_cmds_GCJ
23919old_postinstall_cmds=$lt_old_postinstall_cmds
23920old_postuninstall_cmds=$lt_old_postuninstall_cmds
23921
23922# Create an old-style archive from a shared archive.
23923old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23924
23925# Create a temporary old-style archive to link instead of a shared archive.
23926old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23927
23928# Commands used to build and install a shared archive.
23929archive_cmds=$lt_archive_cmds_GCJ
23930archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23931postinstall_cmds=$lt_postinstall_cmds
23932postuninstall_cmds=$lt_postuninstall_cmds
23933
23934# Commands used to build a loadable module (assumed same as above if empty)
23935module_cmds=$lt_module_cmds_GCJ
23936module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23937
23938# Commands to strip libraries.
23939old_striplib=$lt_old_striplib
23940striplib=$lt_striplib
23941
23942# Dependencies to place before the objects being linked to create a
23943# shared library.
23944predep_objects=$lt_predep_objects_GCJ
23945
23946# Dependencies to place after the objects being linked to create a
23947# shared library.
23948postdep_objects=$lt_postdep_objects_GCJ
23949
23950# Dependencies to place before the objects being linked to create a
23951# shared library.
23952predeps=$lt_predeps_GCJ
23953
23954# Dependencies to place after the objects being linked to create a
23955# shared library.
23956postdeps=$lt_postdeps_GCJ
23957
23958# The library search path used internally by the compiler when linking
23959# a shared library.
23960compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23961
23962# Method to check whether dependent libraries are shared objects.
23963deplibs_check_method=$lt_deplibs_check_method
23964
23965# Command to use when deplibs_check_method == file_magic.
23966file_magic_cmd=$lt_file_magic_cmd
23967
23968# Flag that allows shared libraries with undefined symbols to be built.
23969allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23970
23971# Flag that forces no undefined symbols.
23972no_undefined_flag=$lt_no_undefined_flag_GCJ
23973
23974# Commands used to finish a libtool library installation in a directory.
23975finish_cmds=$lt_finish_cmds
23976
23977# Same as above, but a single script fragment to be evaled but not shown.
23978finish_eval=$lt_finish_eval
23979
23980# Take the output of nm and produce a listing of raw symbols and C names.
23981global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23982
23983# Transform the output of nm in a proper C declaration
23984global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23985
23986# Transform the output of nm in a C name address pair
23987global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23988
23989# This is the shared library runtime path variable.
23990runpath_var=$runpath_var
23991
23992# This is the shared library path variable.
23993shlibpath_var=$shlibpath_var
23994
23995# Is shlibpath searched before the hard-coded library search path?
23996shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23997
23998# How to hardcode a shared library path into an executable.
23999hardcode_action=$hardcode_action_GCJ
24000
24001# Whether we should hardcode library paths into libraries.
24002hardcode_into_libs=$hardcode_into_libs
24003
24004# Flag to hardcode \$libdir into a binary during linking.
24005# This must work even if \$libdir does not exist.
24006hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24007
24008# If ld is used when linking, flag to hardcode \$libdir into
24009# a binary during linking. This must work even if \$libdir does
24010# not exist.
24011hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24012
24013# Whether we need a single -rpath flag with a separated argument.
24014hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24015
24016# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24017# resulting binary.
24018hardcode_direct=$hardcode_direct_GCJ
24019
24020# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24021# resulting binary.
24022hardcode_minus_L=$hardcode_minus_L_GCJ
24023
24024# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24025# the resulting binary.
24026hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24027
24028# Set to yes if building a shared library automatically hardcodes DIR into the library
24029# and all subsequent libraries and executables linked against it.
24030hardcode_automatic=$hardcode_automatic_GCJ
24031
24032# Variables whose values should be saved in libtool wrapper scripts and
24033# restored at relink time.
24034variables_saved_for_relink="$variables_saved_for_relink"
24035
24036# Whether libtool must link a program against all its dependency libraries.
24037link_all_deplibs=$link_all_deplibs_GCJ
24038
24039# Compile-time system search path for libraries
24040sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24041
24042# Run-time system search path for libraries
24043sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24044
24045# Fix the shell variable \$srcfile for the compiler.
24046fix_srcfile_path="$fix_srcfile_path_GCJ"
24047
24048# Set to yes if exported symbols are required.
24049always_export_symbols=$always_export_symbols_GCJ
24050
24051# The commands to list exported symbols.
24052export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24053
24054# The commands to extract the exported symbol list from a shared archive.
24055extract_expsyms_cmds=$lt_extract_expsyms_cmds
24056
24057# Symbols that should not be listed in the preloaded symbols.
24058exclude_expsyms=$lt_exclude_expsyms_GCJ
24059
24060# Symbols that must always be exported.
24061include_expsyms=$lt_include_expsyms_GCJ
24062
24063# ### END LIBTOOL TAG CONFIG: $tagname
24064
24065__EOF__
24066
24067
24068else
24069 # If there is no Makefile yet, we rely on a make rule to execute
24070 # `config.status --recheck' to rerun these tests and create the
24071 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024072 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24073 if test -f "$ltmain_in"; then
24074 test -f Makefile && make "$ltmain"
24075 fi
John Criswell47fdd832003-07-14 16:52:07 +000024076fi
24077
24078
24079ac_ext=c
24080ac_cpp='$CPP $CPPFLAGS'
24081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24083ac_compiler_gnu=$ac_cv_c_compiler_gnu
24084
24085CC="$lt_save_CC"
24086
24087 else
24088 tagname=""
24089 fi
24090 ;;
24091
24092 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024093 ac_ext=c
24094ac_cpp='$CPP $CPPFLAGS'
24095ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24096ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24097ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024098
24099
24100# Source file extension for RC test sources.
24101ac_ext=rc
24102
24103# Object file extension for compiled RC test sources.
24104objext=o
24105objext_RC=$objext
24106
24107# Code to be used in simple compile tests
24108lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24109
24110# Code to be used in simple link tests
24111lt_simple_link_test_code="$lt_simple_compile_test_code"
24112
24113# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24114
24115# If no C compiler was specified, use CC.
24116LTCC=${LTCC-"$CC"}
24117
24118# Allow CC to be a program name with arguments.
24119compiler=$CC
24120
24121
24122# Allow CC to be a program name with arguments.
24123lt_save_CC="$CC"
24124CC=${RC-"windres"}
24125compiler=$CC
24126compiler_RC=$CC
24127lt_cv_prog_compiler_c_o_RC=yes
24128
24129# The else clause should only fire when bootstrapping the
24130# libtool distribution, otherwise you forgot to ship ltmain.sh
24131# with your package, and you will get complaints that there are
24132# no rules to generate ltmain.sh.
24133if test -f "$ltmain"; then
24134 # See if we are running on zsh, and set the options which allow our commands through
24135 # without removal of \ escapes.
24136 if test -n "${ZSH_VERSION+set}" ; then
24137 setopt NO_GLOB_SUBST
24138 fi
24139 # Now quote all the things that may contain metacharacters while being
24140 # careful not to overquote the AC_SUBSTed values. We take copies of the
24141 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024142 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24143 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024144 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24145 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24146 deplibs_check_method reload_flag reload_cmds need_locks \
24147 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24148 lt_cv_sys_global_symbol_to_c_name_address \
24149 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24150 old_postinstall_cmds old_postuninstall_cmds \
24151 compiler_RC \
24152 CC_RC \
24153 LD_RC \
24154 lt_prog_compiler_wl_RC \
24155 lt_prog_compiler_pic_RC \
24156 lt_prog_compiler_static_RC \
24157 lt_prog_compiler_no_builtin_flag_RC \
24158 export_dynamic_flag_spec_RC \
24159 thread_safe_flag_spec_RC \
24160 whole_archive_flag_spec_RC \
24161 enable_shared_with_static_runtimes_RC \
24162 old_archive_cmds_RC \
24163 old_archive_from_new_cmds_RC \
24164 predep_objects_RC \
24165 postdep_objects_RC \
24166 predeps_RC \
24167 postdeps_RC \
24168 compiler_lib_search_path_RC \
24169 archive_cmds_RC \
24170 archive_expsym_cmds_RC \
24171 postinstall_cmds_RC \
24172 postuninstall_cmds_RC \
24173 old_archive_from_expsyms_cmds_RC \
24174 allow_undefined_flag_RC \
24175 no_undefined_flag_RC \
24176 export_symbols_cmds_RC \
24177 hardcode_libdir_flag_spec_RC \
24178 hardcode_libdir_flag_spec_ld_RC \
24179 hardcode_libdir_separator_RC \
24180 hardcode_automatic_RC \
24181 module_cmds_RC \
24182 module_expsym_cmds_RC \
24183 lt_cv_prog_compiler_c_o_RC \
24184 exclude_expsyms_RC \
24185 include_expsyms_RC; do
24186
24187 case $var in
24188 old_archive_cmds_RC | \
24189 old_archive_from_new_cmds_RC | \
24190 archive_cmds_RC | \
24191 archive_expsym_cmds_RC | \
24192 module_cmds_RC | \
24193 module_expsym_cmds_RC | \
24194 old_archive_from_expsyms_cmds_RC | \
24195 export_symbols_cmds_RC | \
24196 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24197 postinstall_cmds | postuninstall_cmds | \
24198 old_postinstall_cmds | old_postuninstall_cmds | \
24199 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24200 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024201 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 +000024202 ;;
24203 *)
24204 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24205 ;;
24206 esac
24207 done
24208
24209 case $lt_echo in
24210 *'\$0 --fallback-echo"')
24211 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24212 ;;
24213 esac
24214
24215cfgfile="$ofile"
24216
24217 cat <<__EOF__ >> "$cfgfile"
24218# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24219
24220# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24221
24222# Shell to use when invoking shell scripts.
24223SHELL=$lt_SHELL
24224
24225# Whether or not to build shared libraries.
24226build_libtool_libs=$enable_shared
24227
24228# Whether or not to build static libraries.
24229build_old_libs=$enable_static
24230
24231# Whether or not to add -lc for building shared libraries.
24232build_libtool_need_lc=$archive_cmds_need_lc_RC
24233
24234# Whether or not to disallow shared libs when runtime libs are static
24235allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24236
24237# Whether or not to optimize for fast installation.
24238fast_install=$enable_fast_install
24239
24240# The host system.
24241host_alias=$host_alias
24242host=$host
24243
24244# An echo program that does not interpret backslashes.
24245echo=$lt_echo
24246
24247# The archiver.
24248AR=$lt_AR
24249AR_FLAGS=$lt_AR_FLAGS
24250
24251# A C compiler.
24252LTCC=$lt_LTCC
24253
24254# A language-specific compiler.
24255CC=$lt_compiler_RC
24256
24257# Is the compiler the GNU C compiler?
24258with_gcc=$GCC_RC
24259
24260# An ERE matcher.
24261EGREP=$lt_EGREP
24262
24263# The linker used to build libraries.
24264LD=$lt_LD_RC
24265
24266# Whether we need hard or soft links.
24267LN_S=$lt_LN_S
24268
24269# A BSD-compatible nm program.
24270NM=$lt_NM
24271
24272# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024273STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024274
24275# Used to examine libraries when file_magic_cmd begins "file"
24276MAGIC_CMD=$MAGIC_CMD
24277
24278# Used on cygwin: DLL creation program.
24279DLLTOOL="$DLLTOOL"
24280
24281# Used on cygwin: object dumper.
24282OBJDUMP="$OBJDUMP"
24283
24284# Used on cygwin: assembler.
24285AS="$AS"
24286
24287# The name of the directory that contains temporary libtool files.
24288objdir=$objdir
24289
24290# How to create reloadable object files.
24291reload_flag=$lt_reload_flag
24292reload_cmds=$lt_reload_cmds
24293
24294# How to pass a linker flag through the compiler.
24295wl=$lt_lt_prog_compiler_wl_RC
24296
24297# Object file suffix (normally "o").
24298objext="$ac_objext"
24299
24300# Old archive suffix (normally "a").
24301libext="$libext"
24302
24303# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024304shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024305
24306# Executable file suffix (normally "").
24307exeext="$exeext"
24308
24309# Additional compiler flags for building library objects.
24310pic_flag=$lt_lt_prog_compiler_pic_RC
24311pic_mode=$pic_mode
24312
24313# What is the maximum length of a command?
24314max_cmd_len=$lt_cv_sys_max_cmd_len
24315
24316# Does compiler simultaneously support -c and -o options?
24317compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24318
24319# Must we lock files when doing compilation ?
24320need_locks=$lt_need_locks
24321
24322# Do we need the lib prefix for modules?
24323need_lib_prefix=$need_lib_prefix
24324
24325# Do we need a version for libraries?
24326need_version=$need_version
24327
24328# Whether dlopen is supported.
24329dlopen_support=$enable_dlopen
24330
24331# Whether dlopen of programs is supported.
24332dlopen_self=$enable_dlopen_self
24333
24334# Whether dlopen of statically linked programs is supported.
24335dlopen_self_static=$enable_dlopen_self_static
24336
24337# Compiler flag to prevent dynamic linking.
24338link_static_flag=$lt_lt_prog_compiler_static_RC
24339
24340# Compiler flag to turn off builtin functions.
24341no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24342
24343# Compiler flag to allow reflexive dlopens.
24344export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24345
24346# Compiler flag to generate shared objects directly from archives.
24347whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24348
24349# Compiler flag to generate thread-safe objects.
24350thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24351
24352# Library versioning type.
24353version_type=$version_type
24354
24355# Format of library name prefix.
24356libname_spec=$lt_libname_spec
24357
24358# List of archive names. First name is the real one, the rest are links.
24359# The last name is the one that the linker finds with -lNAME.
24360library_names_spec=$lt_library_names_spec
24361
24362# The coded name of the library, if different from the real name.
24363soname_spec=$lt_soname_spec
24364
24365# Commands used to build and install an old-style archive.
24366RANLIB=$lt_RANLIB
24367old_archive_cmds=$lt_old_archive_cmds_RC
24368old_postinstall_cmds=$lt_old_postinstall_cmds
24369old_postuninstall_cmds=$lt_old_postuninstall_cmds
24370
24371# Create an old-style archive from a shared archive.
24372old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24373
24374# Create a temporary old-style archive to link instead of a shared archive.
24375old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24376
24377# Commands used to build and install a shared archive.
24378archive_cmds=$lt_archive_cmds_RC
24379archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24380postinstall_cmds=$lt_postinstall_cmds
24381postuninstall_cmds=$lt_postuninstall_cmds
24382
24383# Commands used to build a loadable module (assumed same as above if empty)
24384module_cmds=$lt_module_cmds_RC
24385module_expsym_cmds=$lt_module_expsym_cmds_RC
24386
24387# Commands to strip libraries.
24388old_striplib=$lt_old_striplib
24389striplib=$lt_striplib
24390
24391# Dependencies to place before the objects being linked to create a
24392# shared library.
24393predep_objects=$lt_predep_objects_RC
24394
24395# Dependencies to place after the objects being linked to create a
24396# shared library.
24397postdep_objects=$lt_postdep_objects_RC
24398
24399# Dependencies to place before the objects being linked to create a
24400# shared library.
24401predeps=$lt_predeps_RC
24402
24403# Dependencies to place after the objects being linked to create a
24404# shared library.
24405postdeps=$lt_postdeps_RC
24406
24407# The library search path used internally by the compiler when linking
24408# a shared library.
24409compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24410
24411# Method to check whether dependent libraries are shared objects.
24412deplibs_check_method=$lt_deplibs_check_method
24413
24414# Command to use when deplibs_check_method == file_magic.
24415file_magic_cmd=$lt_file_magic_cmd
24416
24417# Flag that allows shared libraries with undefined symbols to be built.
24418allow_undefined_flag=$lt_allow_undefined_flag_RC
24419
24420# Flag that forces no undefined symbols.
24421no_undefined_flag=$lt_no_undefined_flag_RC
24422
24423# Commands used to finish a libtool library installation in a directory.
24424finish_cmds=$lt_finish_cmds
24425
24426# Same as above, but a single script fragment to be evaled but not shown.
24427finish_eval=$lt_finish_eval
24428
24429# Take the output of nm and produce a listing of raw symbols and C names.
24430global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24431
24432# Transform the output of nm in a proper C declaration
24433global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24434
24435# Transform the output of nm in a C name address pair
24436global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24437
24438# This is the shared library runtime path variable.
24439runpath_var=$runpath_var
24440
24441# This is the shared library path variable.
24442shlibpath_var=$shlibpath_var
24443
24444# Is shlibpath searched before the hard-coded library search path?
24445shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24446
24447# How to hardcode a shared library path into an executable.
24448hardcode_action=$hardcode_action_RC
24449
24450# Whether we should hardcode library paths into libraries.
24451hardcode_into_libs=$hardcode_into_libs
24452
24453# Flag to hardcode \$libdir into a binary during linking.
24454# This must work even if \$libdir does not exist.
24455hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24456
24457# If ld is used when linking, flag to hardcode \$libdir into
24458# a binary during linking. This must work even if \$libdir does
24459# not exist.
24460hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24461
24462# Whether we need a single -rpath flag with a separated argument.
24463hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24464
24465# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24466# resulting binary.
24467hardcode_direct=$hardcode_direct_RC
24468
24469# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24470# resulting binary.
24471hardcode_minus_L=$hardcode_minus_L_RC
24472
24473# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24474# the resulting binary.
24475hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24476
24477# Set to yes if building a shared library automatically hardcodes DIR into the library
24478# and all subsequent libraries and executables linked against it.
24479hardcode_automatic=$hardcode_automatic_RC
24480
24481# Variables whose values should be saved in libtool wrapper scripts and
24482# restored at relink time.
24483variables_saved_for_relink="$variables_saved_for_relink"
24484
24485# Whether libtool must link a program against all its dependency libraries.
24486link_all_deplibs=$link_all_deplibs_RC
24487
24488# Compile-time system search path for libraries
24489sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24490
24491# Run-time system search path for libraries
24492sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24493
24494# Fix the shell variable \$srcfile for the compiler.
24495fix_srcfile_path="$fix_srcfile_path_RC"
24496
24497# Set to yes if exported symbols are required.
24498always_export_symbols=$always_export_symbols_RC
24499
24500# The commands to list exported symbols.
24501export_symbols_cmds=$lt_export_symbols_cmds_RC
24502
24503# The commands to extract the exported symbol list from a shared archive.
24504extract_expsyms_cmds=$lt_extract_expsyms_cmds
24505
24506# Symbols that should not be listed in the preloaded symbols.
24507exclude_expsyms=$lt_exclude_expsyms_RC
24508
24509# Symbols that must always be exported.
24510include_expsyms=$lt_include_expsyms_RC
24511
24512# ### END LIBTOOL TAG CONFIG: $tagname
24513
24514__EOF__
24515
24516
24517else
24518 # If there is no Makefile yet, we rely on a make rule to execute
24519 # `config.status --recheck' to rerun these tests and create the
24520 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024521 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24522 if test -f "$ltmain_in"; then
24523 test -f Makefile && make "$ltmain"
24524 fi
John Criswell47fdd832003-07-14 16:52:07 +000024525fi
24526
24527
24528ac_ext=c
24529ac_cpp='$CPP $CPPFLAGS'
24530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24532ac_compiler_gnu=$ac_cv_c_compiler_gnu
24533
24534CC="$lt_save_CC"
24535
24536 ;;
24537
24538 *)
24539 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24540echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24541 { (exit 1); exit 1; }; }
24542 ;;
24543 esac
24544
24545 # Append the new tag name to the list of available tags.
24546 if test -n "$tagname" ; then
24547 available_tags="$available_tags $tagname"
24548 fi
24549 fi
24550 done
24551 IFS="$lt_save_ifs"
24552
24553 # Now substitute the updated list of available tags.
24554 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24555 mv "${ofile}T" "$ofile"
24556 chmod +x "$ofile"
24557 else
24558 rm -f "${ofile}T"
24559 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24560echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24561 { (exit 1); exit 1; }; }
24562 fi
24563fi
John Criswell7a73b802003-06-30 21:59:07 +000024564
24565
24566
24567# This can be used to rebuild libtool when needed
24568LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24569
24570# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024571LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024572
24573# Prevent multiple expansion
24574
24575
24576
John Criswell47fdd832003-07-14 16:52:07 +000024577
24578
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590
24591
24592
24593
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024594
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024595etags_version=`$ETAGS --version 2>&1`
24596case "$etags_version" in
24597 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24598 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24599 *) ETAGSFLAGS="" ;;
24600esac
24601ETAGSFLAGS=$ETAGSFLAGS
24602
24603
Reid Spencer59473af2004-12-25 07:31:29 +000024604if test "$WITH_LLVMGCCDIR" != "default" ; then
24605 # Extract the first word of "llvm-gcc", so it can be a program name with args.
24606set dummy llvm-gcc; ac_word=$2
24607echo "$as_me:$LINENO: checking for $ac_word" >&5
24608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24609if test "${ac_cv_path_LLVMGCC+set}" = set; then
24610 echo $ECHO_N "(cached) $ECHO_C" >&6
24611else
24612 case $LLVMGCC in
24613 [\\/]* | ?:[\\/]*)
24614 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24615 ;;
24616 *)
24617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24618for as_dir in $PATH
24619do
24620 IFS=$as_save_IFS
24621 test -z "$as_dir" && as_dir=.
24622 for ac_exec_ext in '' $ac_executable_extensions; do
24623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24624 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24626 break 2
24627 fi
24628done
24629done
24630
24631 test -z "$ac_cv_path_LLVMGCC" && ac_cv_path_LLVMGCC="llvm-gcc"
24632 ;;
24633esac
24634fi
24635LLVMGCC=$ac_cv_path_LLVMGCC
24636
24637if test -n "$LLVMGCC"; then
24638 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24639echo "${ECHO_T}$LLVMGCC" >&6
24640else
24641 echo "$as_me:$LINENO: result: no" >&5
24642echo "${ECHO_T}no" >&6
24643fi
24644
24645 # Extract the first word of "llvm-g++", so it can be a program name with args.
24646set dummy llvm-g++; ac_word=$2
24647echo "$as_me:$LINENO: checking for $ac_word" >&5
24648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24649if test "${ac_cv_path_LLVMGXX+set}" = set; then
24650 echo $ECHO_N "(cached) $ECHO_C" >&6
24651else
24652 case $LLVMGXX in
24653 [\\/]* | ?:[\\/]*)
24654 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24655 ;;
24656 *)
24657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24658for as_dir in $PATH
24659do
24660 IFS=$as_save_IFS
24661 test -z "$as_dir" && as_dir=.
24662 for ac_exec_ext in '' $ac_executable_extensions; do
24663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24664 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24666 break 2
24667 fi
24668done
24669done
24670
24671 test -z "$ac_cv_path_LLVMGXX" && ac_cv_path_LLVMGXX="llvm-g++"
24672 ;;
24673esac
24674fi
24675LLVMGXX=$ac_cv_path_LLVMGXX
24676
24677if test -n "$LLVMGXX"; then
24678 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24679echo "${ECHO_T}$LLVMGXX" >&6
24680else
24681 echo "$as_me:$LINENO: result: no" >&5
24682echo "${ECHO_T}no" >&6
24683fi
24684
24685else
24686 LLVMGCC=$WITH_LLVMGCCDIR/bin/llvm-gcc
24687 LLVMGXX=$WITH_LLVMGCCDIR/bin/llvm-g++
24688 LLVMGCC=$LLVMGCC
24689
24690 LLVMGXX=$LLVMGXX
24691
24692fi
24693
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024694echo "$as_me:$LINENO: checking tool compatibility" >&5
24695echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24696
Reid Spencer86901802004-12-08 23:07:27 +000024697ICC=no
24698IXX=no
24699case $CC in
24700 icc*|icpc*)
24701 ICC=yes
24702 IXX=yes
24703 ;;
24704 *)
24705 ;;
24706esac
24707
24708if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024709then
Reid Spencer86901802004-12-08 23:07:27 +000024710 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24711echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024712 { (exit 1); exit 1; }; }
24713fi
24714
Reid Spencer86901802004-12-08 23:07:27 +000024715if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024716then
Reid Spencer86901802004-12-08 23:07:27 +000024717 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24718echo "$as_me: error: g++|icc required but not found" >&2;}
24719 { (exit 1); exit 1; }; }
24720fi
24721
24722if test "$GCC" = "yes"
24723then
24724 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24725 if test "$gccmajor" -lt "3"
24726 then
24727 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024728echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24729 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024730 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024731fi
24732
24733if test -z "$llvm_cv_gnu_make_command"
24734then
24735 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24736echo "$as_me: error: GNU Make required but not found" >&2;}
24737 { (exit 1); exit 1; }; }
24738fi
24739
24740echo "$as_me:$LINENO: result: ok" >&5
24741echo "${ECHO_T}ok" >&6
24742
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024743
John Criswell7a73b802003-06-30 21:59:07 +000024744
John Criswell7a73b802003-06-30 21:59:07 +000024745echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24746echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24747if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24748 echo $ECHO_N "(cached) $ECHO_C" >&6
24749else
24750 ac_check_lib_save_LIBS=$LIBS
24751LIBS="-lelf $LIBS"
24752cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024753/* confdefs.h. */
24754_ACEOF
24755cat confdefs.h >>conftest.$ac_ext
24756cat >>conftest.$ac_ext <<_ACEOF
24757/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024758
24759/* Override any gcc2 internal prototype to avoid an error. */
24760#ifdef __cplusplus
24761extern "C"
24762#endif
24763/* We use char because int might match the return type of a gcc2
24764 builtin and then its argument prototype would still apply. */
24765char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024766int
24767main ()
24768{
24769elf_begin ();
24770 ;
24771 return 0;
24772}
24773_ACEOF
24774rm -f conftest.$ac_objext conftest$ac_exeext
24775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024776 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024777 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024778 grep -v '^ *+' conftest.er1 >conftest.err
24779 rm -f conftest.er1
24780 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024783 { ac_try='test -z "$ac_c_werror_flag"
24784 || test ! -s conftest.err'
24785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24786 (eval $ac_try) 2>&5
24787 ac_status=$?
24788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24789 (exit $ac_status); }; } &&
24790 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24792 (eval $ac_try) 2>&5
24793 ac_status=$?
24794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24795 (exit $ac_status); }; }; then
24796 ac_cv_lib_elf_elf_begin=yes
24797else
24798 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024799sed 's/^/| /' conftest.$ac_ext >&5
24800
John Criswell7a73b802003-06-30 21:59:07 +000024801ac_cv_lib_elf_elf_begin=no
24802fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024803rm -f conftest.err conftest.$ac_objext \
24804 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024805LIBS=$ac_check_lib_save_LIBS
24806fi
24807echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24808echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24809if test $ac_cv_lib_elf_elf_begin = yes; then
24810 cat >>confdefs.h <<_ACEOF
24811#define HAVE_LIBELF 1
24812_ACEOF
24813
24814 LIBS="-lelf $LIBS"
24815
24816fi
24817
24818
Reid Spencer17795972004-11-18 09:47:37 +000024819echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24820echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24821if test "${ac_cv_search_lt_dlopen+set}" = set; then
24822 echo $ECHO_N "(cached) $ECHO_C" >&6
24823else
24824 ac_func_search_save_LIBS=$LIBS
24825ac_cv_search_lt_dlopen=no
24826cat >conftest.$ac_ext <<_ACEOF
24827/* confdefs.h. */
24828_ACEOF
24829cat confdefs.h >>conftest.$ac_ext
24830cat >>conftest.$ac_ext <<_ACEOF
24831/* end confdefs.h. */
24832
24833/* Override any gcc2 internal prototype to avoid an error. */
24834#ifdef __cplusplus
24835extern "C"
24836#endif
24837/* We use char because int might match the return type of a gcc2
24838 builtin and then its argument prototype would still apply. */
24839char lt_dlopen ();
24840int
24841main ()
24842{
24843lt_dlopen ();
24844 ;
24845 return 0;
24846}
24847_ACEOF
24848rm -f conftest.$ac_objext conftest$ac_exeext
24849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24850 (eval $ac_link) 2>conftest.er1
24851 ac_status=$?
24852 grep -v '^ *+' conftest.er1 >conftest.err
24853 rm -f conftest.er1
24854 cat conftest.err >&5
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); } &&
24857 { ac_try='test -z "$ac_c_werror_flag"
24858 || test ! -s conftest.err'
24859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24860 (eval $ac_try) 2>&5
24861 ac_status=$?
24862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24863 (exit $ac_status); }; } &&
24864 { ac_try='test -s conftest$ac_exeext'
24865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24866 (eval $ac_try) 2>&5
24867 ac_status=$?
24868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869 (exit $ac_status); }; }; then
24870 ac_cv_search_lt_dlopen="none required"
24871else
24872 echo "$as_me: failed program was:" >&5
24873sed 's/^/| /' conftest.$ac_ext >&5
24874
24875fi
24876rm -f conftest.err conftest.$ac_objext \
24877 conftest$ac_exeext conftest.$ac_ext
24878if test "$ac_cv_search_lt_dlopen" = no; then
24879 for ac_lib in ltdl; do
24880 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24881 cat >conftest.$ac_ext <<_ACEOF
24882/* confdefs.h. */
24883_ACEOF
24884cat confdefs.h >>conftest.$ac_ext
24885cat >>conftest.$ac_ext <<_ACEOF
24886/* end confdefs.h. */
24887
24888/* Override any gcc2 internal prototype to avoid an error. */
24889#ifdef __cplusplus
24890extern "C"
24891#endif
24892/* We use char because int might match the return type of a gcc2
24893 builtin and then its argument prototype would still apply. */
24894char lt_dlopen ();
24895int
24896main ()
24897{
24898lt_dlopen ();
24899 ;
24900 return 0;
24901}
24902_ACEOF
24903rm -f conftest.$ac_objext conftest$ac_exeext
24904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24905 (eval $ac_link) 2>conftest.er1
24906 ac_status=$?
24907 grep -v '^ *+' conftest.er1 >conftest.err
24908 rm -f conftest.er1
24909 cat conftest.err >&5
24910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911 (exit $ac_status); } &&
24912 { ac_try='test -z "$ac_c_werror_flag"
24913 || test ! -s conftest.err'
24914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915 (eval $ac_try) 2>&5
24916 ac_status=$?
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); }; } &&
24919 { ac_try='test -s conftest$ac_exeext'
24920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24921 (eval $ac_try) 2>&5
24922 ac_status=$?
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); }; }; then
24925 ac_cv_search_lt_dlopen="-l$ac_lib"
24926break
24927else
24928 echo "$as_me: failed program was:" >&5
24929sed 's/^/| /' conftest.$ac_ext >&5
24930
24931fi
24932rm -f conftest.err conftest.$ac_objext \
24933 conftest$ac_exeext conftest.$ac_ext
24934 done
24935fi
24936LIBS=$ac_func_search_save_LIBS
24937fi
24938echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24939echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24940if test "$ac_cv_search_lt_dlopen" != no; then
24941 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24942
24943cat >>confdefs.h <<\_ACEOF
24944#define HAVE_LT_DLOPEN 1
24945_ACEOF
24946
24947else
24948 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24949 not be available" >&5
24950echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24951 not be available" >&2;}
24952fi
24953
24954
John Criswell7a73b802003-06-30 21:59:07 +000024955echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24956echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24957if test "${ac_cv_search_dlopen+set}" = set; then
24958 echo $ECHO_N "(cached) $ECHO_C" >&6
24959else
24960 ac_func_search_save_LIBS=$LIBS
24961ac_cv_search_dlopen=no
24962cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024963/* confdefs.h. */
24964_ACEOF
24965cat confdefs.h >>conftest.$ac_ext
24966cat >>conftest.$ac_ext <<_ACEOF
24967/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024968
24969/* Override any gcc2 internal prototype to avoid an error. */
24970#ifdef __cplusplus
24971extern "C"
24972#endif
24973/* We use char because int might match the return type of a gcc2
24974 builtin and then its argument prototype would still apply. */
24975char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024976int
24977main ()
24978{
24979dlopen ();
24980 ;
24981 return 0;
24982}
24983_ACEOF
24984rm -f conftest.$ac_objext conftest$ac_exeext
24985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024986 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024987 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024988 grep -v '^ *+' conftest.er1 >conftest.err
24989 rm -f conftest.er1
24990 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024993 { ac_try='test -z "$ac_c_werror_flag"
24994 || test ! -s conftest.err'
24995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996 (eval $ac_try) 2>&5
24997 ac_status=$?
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); }; } &&
25000 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002 (eval $ac_try) 2>&5
25003 ac_status=$?
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); }; }; then
25006 ac_cv_search_dlopen="none required"
25007else
25008 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025009sed 's/^/| /' conftest.$ac_ext >&5
25010
John Criswell7a73b802003-06-30 21:59:07 +000025011fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025012rm -f conftest.err conftest.$ac_objext \
25013 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025014if test "$ac_cv_search_dlopen" = no; then
25015 for ac_lib in dl; do
25016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25017 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025018/* confdefs.h. */
25019_ACEOF
25020cat confdefs.h >>conftest.$ac_ext
25021cat >>conftest.$ac_ext <<_ACEOF
25022/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025023
25024/* Override any gcc2 internal prototype to avoid an error. */
25025#ifdef __cplusplus
25026extern "C"
25027#endif
25028/* We use char because int might match the return type of a gcc2
25029 builtin and then its argument prototype would still apply. */
25030char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025031int
25032main ()
25033{
25034dlopen ();
25035 ;
25036 return 0;
25037}
25038_ACEOF
25039rm -f conftest.$ac_objext conftest$ac_exeext
25040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025041 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025042 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025043 grep -v '^ *+' conftest.er1 >conftest.err
25044 rm -f conftest.er1
25045 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025048 { ac_try='test -z "$ac_c_werror_flag"
25049 || test ! -s conftest.err'
25050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25051 (eval $ac_try) 2>&5
25052 ac_status=$?
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); }; } &&
25055 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25057 (eval $ac_try) 2>&5
25058 ac_status=$?
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); }; }; then
25061 ac_cv_search_dlopen="-l$ac_lib"
25062break
25063else
25064 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025065sed 's/^/| /' conftest.$ac_ext >&5
25066
John Criswell7a73b802003-06-30 21:59:07 +000025067fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025068rm -f conftest.err conftest.$ac_objext \
25069 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025070 done
25071fi
25072LIBS=$ac_func_search_save_LIBS
25073fi
25074echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25075echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25076if test "$ac_cv_search_dlopen" != no; then
25077 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025078
25079cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025080#define HAVE_DLOPEN 1
25081_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025082
25083else
Brian Gaekec45be042003-10-07 06:01:34 +000025084 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25085echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025086fi
25087
25088
25089echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25090echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25091if test "${ac_cv_search_mallinfo+set}" = set; then
25092 echo $ECHO_N "(cached) $ECHO_C" >&6
25093else
25094 ac_func_search_save_LIBS=$LIBS
25095ac_cv_search_mallinfo=no
25096cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025097/* confdefs.h. */
25098_ACEOF
25099cat confdefs.h >>conftest.$ac_ext
25100cat >>conftest.$ac_ext <<_ACEOF
25101/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025102
25103/* Override any gcc2 internal prototype to avoid an error. */
25104#ifdef __cplusplus
25105extern "C"
25106#endif
25107/* We use char because int might match the return type of a gcc2
25108 builtin and then its argument prototype would still apply. */
25109char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025110int
25111main ()
25112{
25113mallinfo ();
25114 ;
25115 return 0;
25116}
25117_ACEOF
25118rm -f conftest.$ac_objext conftest$ac_exeext
25119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025120 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025121 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025122 grep -v '^ *+' conftest.er1 >conftest.err
25123 rm -f conftest.er1
25124 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025127 { ac_try='test -z "$ac_c_werror_flag"
25128 || test ! -s conftest.err'
25129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130 (eval $ac_try) 2>&5
25131 ac_status=$?
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; } &&
25134 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136 (eval $ac_try) 2>&5
25137 ac_status=$?
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); }; }; then
25140 ac_cv_search_mallinfo="none required"
25141else
25142 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025143sed 's/^/| /' conftest.$ac_ext >&5
25144
John Criswell7a73b802003-06-30 21:59:07 +000025145fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025146rm -f conftest.err conftest.$ac_objext \
25147 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025148if test "$ac_cv_search_mallinfo" = no; then
25149 for ac_lib in malloc; do
25150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25151 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025152/* confdefs.h. */
25153_ACEOF
25154cat confdefs.h >>conftest.$ac_ext
25155cat >>conftest.$ac_ext <<_ACEOF
25156/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025157
25158/* Override any gcc2 internal prototype to avoid an error. */
25159#ifdef __cplusplus
25160extern "C"
25161#endif
25162/* We use char because int might match the return type of a gcc2
25163 builtin and then its argument prototype would still apply. */
25164char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025165int
25166main ()
25167{
25168mallinfo ();
25169 ;
25170 return 0;
25171}
25172_ACEOF
25173rm -f conftest.$ac_objext conftest$ac_exeext
25174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025175 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025176 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025177 grep -v '^ *+' conftest.er1 >conftest.err
25178 rm -f conftest.er1
25179 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025182 { ac_try='test -z "$ac_c_werror_flag"
25183 || test ! -s conftest.err'
25184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25185 (eval $ac_try) 2>&5
25186 ac_status=$?
25187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188 (exit $ac_status); }; } &&
25189 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25191 (eval $ac_try) 2>&5
25192 ac_status=$?
25193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); }; }; then
25195 ac_cv_search_mallinfo="-l$ac_lib"
25196break
25197else
25198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025199sed 's/^/| /' conftest.$ac_ext >&5
25200
John Criswell7a73b802003-06-30 21:59:07 +000025201fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025202rm -f conftest.err conftest.$ac_objext \
25203 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025204 done
25205fi
25206LIBS=$ac_func_search_save_LIBS
25207fi
25208echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25209echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25210if test "$ac_cv_search_mallinfo" != no; then
25211 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025212
25213cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025214#define HAVE_MALLINFO 1
25215_ACEOF
25216
25217fi
25218
25219
Brian Gaeke5f268f72003-12-05 19:29:01 +000025220echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25221echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25222if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25223 echo $ECHO_N "(cached) $ECHO_C" >&6
25224else
25225 ac_func_search_save_LIBS=$LIBS
25226ac_cv_search_pthread_mutex_lock=no
25227cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025228/* confdefs.h. */
25229_ACEOF
25230cat confdefs.h >>conftest.$ac_ext
25231cat >>conftest.$ac_ext <<_ACEOF
25232/* end confdefs.h. */
25233
25234/* Override any gcc2 internal prototype to avoid an error. */
25235#ifdef __cplusplus
25236extern "C"
25237#endif
25238/* We use char because int might match the return type of a gcc2
25239 builtin and then its argument prototype would still apply. */
25240char pthread_mutex_lock ();
25241int
25242main ()
25243{
25244pthread_mutex_lock ();
25245 ;
25246 return 0;
25247}
25248_ACEOF
25249rm -f conftest.$ac_objext conftest$ac_exeext
25250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025251 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025252 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025253 grep -v '^ *+' conftest.er1 >conftest.err
25254 rm -f conftest.er1
25255 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25257 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025258 { ac_try='test -z "$ac_c_werror_flag"
25259 || test ! -s conftest.err'
25260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25261 (eval $ac_try) 2>&5
25262 ac_status=$?
25263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25264 (exit $ac_status); }; } &&
25265 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267 (eval $ac_try) 2>&5
25268 ac_status=$?
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); }; }; then
25271 ac_cv_search_pthread_mutex_lock="none required"
25272else
25273 echo "$as_me: failed program was:" >&5
25274sed 's/^/| /' conftest.$ac_ext >&5
25275
25276fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025277rm -f conftest.err conftest.$ac_objext \
25278 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025279if test "$ac_cv_search_pthread_mutex_lock" = no; then
25280 for ac_lib in pthread; do
25281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25282 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025283/* confdefs.h. */
25284_ACEOF
25285cat confdefs.h >>conftest.$ac_ext
25286cat >>conftest.$ac_ext <<_ACEOF
25287/* end confdefs.h. */
25288
25289/* Override any gcc2 internal prototype to avoid an error. */
25290#ifdef __cplusplus
25291extern "C"
25292#endif
25293/* We use char because int might match the return type of a gcc2
25294 builtin and then its argument prototype would still apply. */
25295char pthread_mutex_lock ();
25296int
25297main ()
25298{
25299pthread_mutex_lock ();
25300 ;
25301 return 0;
25302}
25303_ACEOF
25304rm -f conftest.$ac_objext conftest$ac_exeext
25305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025306 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025307 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025308 grep -v '^ *+' conftest.er1 >conftest.err
25309 rm -f conftest.er1
25310 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025313 { ac_try='test -z "$ac_c_werror_flag"
25314 || test ! -s conftest.err'
25315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25316 (eval $ac_try) 2>&5
25317 ac_status=$?
25318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319 (exit $ac_status); }; } &&
25320 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25322 (eval $ac_try) 2>&5
25323 ac_status=$?
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); }; }; then
25326 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25327break
25328else
25329 echo "$as_me: failed program was:" >&5
25330sed 's/^/| /' conftest.$ac_ext >&5
25331
25332fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025333rm -f conftest.err conftest.$ac_objext \
25334 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025335 done
25336fi
25337LIBS=$ac_func_search_save_LIBS
25338fi
25339echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25340echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25341if test "$ac_cv_search_pthread_mutex_lock" != no; then
25342 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025343
John Criswell40468462004-09-24 21:19:06 +000025344cat >>confdefs.h <<\_ACEOF
25345#define HAVE_PTHREAD_MUTEX_LOCK 1
25346_ACEOF
25347
25348fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025349
Brian Gaekec9a410c2004-02-23 21:30:37 +000025350
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025351
Reid Spencer59473af2004-12-25 07:31:29 +000025352
25353
25354
25355
25356
25357ac_header_dirent=no
25358for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25359 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25360echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25361echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25362if eval "test \"\${$as_ac_Header+set}\" = set"; then
25363 echo $ECHO_N "(cached) $ECHO_C" >&6
25364else
25365 cat >conftest.$ac_ext <<_ACEOF
25366/* confdefs.h. */
25367_ACEOF
25368cat confdefs.h >>conftest.$ac_ext
25369cat >>conftest.$ac_ext <<_ACEOF
25370/* end confdefs.h. */
25371#include <sys/types.h>
25372#include <$ac_hdr>
25373
25374int
25375main ()
25376{
25377if ((DIR *) 0)
25378return 0;
25379 ;
25380 return 0;
25381}
25382_ACEOF
25383rm -f conftest.$ac_objext
25384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25385 (eval $ac_compile) 2>conftest.er1
25386 ac_status=$?
25387 grep -v '^ *+' conftest.er1 >conftest.err
25388 rm -f conftest.er1
25389 cat conftest.err >&5
25390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25391 (exit $ac_status); } &&
25392 { ac_try='test -z "$ac_c_werror_flag"
25393 || test ! -s conftest.err'
25394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25395 (eval $ac_try) 2>&5
25396 ac_status=$?
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); }; } &&
25399 { ac_try='test -s conftest.$ac_objext'
25400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401 (eval $ac_try) 2>&5
25402 ac_status=$?
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); }; }; then
25405 eval "$as_ac_Header=yes"
25406else
25407 echo "$as_me: failed program was:" >&5
25408sed 's/^/| /' conftest.$ac_ext >&5
25409
25410eval "$as_ac_Header=no"
25411fi
25412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25413fi
25414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25415echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25416if test `eval echo '${'$as_ac_Header'}'` = yes; then
25417 cat >>confdefs.h <<_ACEOF
25418#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25419_ACEOF
25420
25421ac_header_dirent=$ac_hdr; break
25422fi
25423
25424done
25425# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25426if test $ac_header_dirent = dirent.h; then
25427 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25428echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25429if test "${ac_cv_search_opendir+set}" = set; then
25430 echo $ECHO_N "(cached) $ECHO_C" >&6
25431else
25432 ac_func_search_save_LIBS=$LIBS
25433ac_cv_search_opendir=no
25434cat >conftest.$ac_ext <<_ACEOF
25435/* confdefs.h. */
25436_ACEOF
25437cat confdefs.h >>conftest.$ac_ext
25438cat >>conftest.$ac_ext <<_ACEOF
25439/* end confdefs.h. */
25440
25441/* Override any gcc2 internal prototype to avoid an error. */
25442#ifdef __cplusplus
25443extern "C"
25444#endif
25445/* We use char because int might match the return type of a gcc2
25446 builtin and then its argument prototype would still apply. */
25447char opendir ();
25448int
25449main ()
25450{
25451opendir ();
25452 ;
25453 return 0;
25454}
25455_ACEOF
25456rm -f conftest.$ac_objext conftest$ac_exeext
25457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25458 (eval $ac_link) 2>conftest.er1
25459 ac_status=$?
25460 grep -v '^ *+' conftest.er1 >conftest.err
25461 rm -f conftest.er1
25462 cat conftest.err >&5
25463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25464 (exit $ac_status); } &&
25465 { ac_try='test -z "$ac_c_werror_flag"
25466 || test ! -s conftest.err'
25467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25468 (eval $ac_try) 2>&5
25469 ac_status=$?
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); }; } &&
25472 { ac_try='test -s conftest$ac_exeext'
25473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474 (eval $ac_try) 2>&5
25475 ac_status=$?
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); }; }; then
25478 ac_cv_search_opendir="none required"
25479else
25480 echo "$as_me: failed program was:" >&5
25481sed 's/^/| /' conftest.$ac_ext >&5
25482
25483fi
25484rm -f conftest.err conftest.$ac_objext \
25485 conftest$ac_exeext conftest.$ac_ext
25486if test "$ac_cv_search_opendir" = no; then
25487 for ac_lib in dir; do
25488 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25489 cat >conftest.$ac_ext <<_ACEOF
25490/* confdefs.h. */
25491_ACEOF
25492cat confdefs.h >>conftest.$ac_ext
25493cat >>conftest.$ac_ext <<_ACEOF
25494/* end confdefs.h. */
25495
25496/* Override any gcc2 internal prototype to avoid an error. */
25497#ifdef __cplusplus
25498extern "C"
25499#endif
25500/* We use char because int might match the return type of a gcc2
25501 builtin and then its argument prototype would still apply. */
25502char opendir ();
25503int
25504main ()
25505{
25506opendir ();
25507 ;
25508 return 0;
25509}
25510_ACEOF
25511rm -f conftest.$ac_objext conftest$ac_exeext
25512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25513 (eval $ac_link) 2>conftest.er1
25514 ac_status=$?
25515 grep -v '^ *+' conftest.er1 >conftest.err
25516 rm -f conftest.er1
25517 cat conftest.err >&5
25518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519 (exit $ac_status); } &&
25520 { ac_try='test -z "$ac_c_werror_flag"
25521 || test ! -s conftest.err'
25522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25523 (eval $ac_try) 2>&5
25524 ac_status=$?
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); }; } &&
25527 { ac_try='test -s conftest$ac_exeext'
25528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529 (eval $ac_try) 2>&5
25530 ac_status=$?
25531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532 (exit $ac_status); }; }; then
25533 ac_cv_search_opendir="-l$ac_lib"
25534break
25535else
25536 echo "$as_me: failed program was:" >&5
25537sed 's/^/| /' conftest.$ac_ext >&5
25538
25539fi
25540rm -f conftest.err conftest.$ac_objext \
25541 conftest$ac_exeext conftest.$ac_ext
25542 done
25543fi
25544LIBS=$ac_func_search_save_LIBS
25545fi
25546echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25547echo "${ECHO_T}$ac_cv_search_opendir" >&6
25548if test "$ac_cv_search_opendir" != no; then
25549 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25550
25551fi
25552
25553else
25554 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25555echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25556if test "${ac_cv_search_opendir+set}" = set; then
25557 echo $ECHO_N "(cached) $ECHO_C" >&6
25558else
25559 ac_func_search_save_LIBS=$LIBS
25560ac_cv_search_opendir=no
25561cat >conftest.$ac_ext <<_ACEOF
25562/* confdefs.h. */
25563_ACEOF
25564cat confdefs.h >>conftest.$ac_ext
25565cat >>conftest.$ac_ext <<_ACEOF
25566/* end confdefs.h. */
25567
25568/* Override any gcc2 internal prototype to avoid an error. */
25569#ifdef __cplusplus
25570extern "C"
25571#endif
25572/* We use char because int might match the return type of a gcc2
25573 builtin and then its argument prototype would still apply. */
25574char opendir ();
25575int
25576main ()
25577{
25578opendir ();
25579 ;
25580 return 0;
25581}
25582_ACEOF
25583rm -f conftest.$ac_objext conftest$ac_exeext
25584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25585 (eval $ac_link) 2>conftest.er1
25586 ac_status=$?
25587 grep -v '^ *+' conftest.er1 >conftest.err
25588 rm -f conftest.er1
25589 cat conftest.err >&5
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); } &&
25592 { ac_try='test -z "$ac_c_werror_flag"
25593 || test ! -s conftest.err'
25594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25595 (eval $ac_try) 2>&5
25596 ac_status=$?
25597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25598 (exit $ac_status); }; } &&
25599 { ac_try='test -s conftest$ac_exeext'
25600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25601 (eval $ac_try) 2>&5
25602 ac_status=$?
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); }; }; then
25605 ac_cv_search_opendir="none required"
25606else
25607 echo "$as_me: failed program was:" >&5
25608sed 's/^/| /' conftest.$ac_ext >&5
25609
25610fi
25611rm -f conftest.err conftest.$ac_objext \
25612 conftest$ac_exeext conftest.$ac_ext
25613if test "$ac_cv_search_opendir" = no; then
25614 for ac_lib in x; do
25615 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25616 cat >conftest.$ac_ext <<_ACEOF
25617/* confdefs.h. */
25618_ACEOF
25619cat confdefs.h >>conftest.$ac_ext
25620cat >>conftest.$ac_ext <<_ACEOF
25621/* end confdefs.h. */
25622
25623/* Override any gcc2 internal prototype to avoid an error. */
25624#ifdef __cplusplus
25625extern "C"
25626#endif
25627/* We use char because int might match the return type of a gcc2
25628 builtin and then its argument prototype would still apply. */
25629char opendir ();
25630int
25631main ()
25632{
25633opendir ();
25634 ;
25635 return 0;
25636}
25637_ACEOF
25638rm -f conftest.$ac_objext conftest$ac_exeext
25639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25640 (eval $ac_link) 2>conftest.er1
25641 ac_status=$?
25642 grep -v '^ *+' conftest.er1 >conftest.err
25643 rm -f conftest.er1
25644 cat conftest.err >&5
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); } &&
25647 { ac_try='test -z "$ac_c_werror_flag"
25648 || test ! -s conftest.err'
25649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25650 (eval $ac_try) 2>&5
25651 ac_status=$?
25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653 (exit $ac_status); }; } &&
25654 { ac_try='test -s conftest$ac_exeext'
25655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25656 (eval $ac_try) 2>&5
25657 ac_status=$?
25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659 (exit $ac_status); }; }; then
25660 ac_cv_search_opendir="-l$ac_lib"
25661break
25662else
25663 echo "$as_me: failed program was:" >&5
25664sed 's/^/| /' conftest.$ac_ext >&5
25665
25666fi
25667rm -f conftest.err conftest.$ac_objext \
25668 conftest$ac_exeext conftest.$ac_ext
25669 done
25670fi
25671LIBS=$ac_func_search_save_LIBS
25672fi
25673echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25674echo "${ECHO_T}$ac_cv_search_opendir" >&6
25675if test "$ac_cv_search_opendir" != no; then
25676 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25677
25678fi
25679
25680fi
25681
25682echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25683echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25684if test "${ac_cv_header_mmap_anon+set}" = set; then
25685 echo $ECHO_N "(cached) $ECHO_C" >&6
25686else
25687 ac_ext=c
25688ac_cpp='$CPP $CPPFLAGS'
25689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25691ac_compiler_gnu=$ac_cv_c_compiler_gnu
25692
25693 cat >conftest.$ac_ext <<_ACEOF
25694/* confdefs.h. */
25695_ACEOF
25696cat confdefs.h >>conftest.$ac_ext
25697cat >>conftest.$ac_ext <<_ACEOF
25698/* end confdefs.h. */
25699#include <sys/mman.h>
25700#include <unistd.h>
25701#include <fcntl.h>
25702int
25703main ()
25704{
25705mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25706 ;
25707 return 0;
25708}
25709_ACEOF
25710rm -f conftest.$ac_objext
25711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25712 (eval $ac_compile) 2>conftest.er1
25713 ac_status=$?
25714 grep -v '^ *+' conftest.er1 >conftest.err
25715 rm -f conftest.er1
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } &&
25719 { ac_try='test -z "$ac_c_werror_flag"
25720 || test ! -s conftest.err'
25721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722 (eval $ac_try) 2>&5
25723 ac_status=$?
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); }; } &&
25726 { ac_try='test -s conftest.$ac_objext'
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25729 ac_status=$?
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }; then
25732 ac_cv_header_mmap_anon=yes
25733else
25734 echo "$as_me: failed program was:" >&5
25735sed 's/^/| /' conftest.$ac_ext >&5
25736
25737ac_cv_header_mmap_anon=no
25738fi
25739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25740 ac_ext=c
25741ac_cpp='$CPP $CPPFLAGS'
25742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25744ac_compiler_gnu=$ac_cv_c_compiler_gnu
25745
25746
25747fi
25748echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25749echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25750if test "$ac_cv_header_mmap_anon" = yes; then
25751
25752cat >>confdefs.h <<\_ACEOF
25753#define HAVE_MMAP_ANONYMOUS
25754_ACEOF
25755
25756fi
25757
25758echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25759echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
25760if test "${ac_cv_header_stat_broken+set}" = set; then
25761 echo $ECHO_N "(cached) $ECHO_C" >&6
25762else
25763 cat >conftest.$ac_ext <<_ACEOF
25764/* confdefs.h. */
25765_ACEOF
25766cat confdefs.h >>conftest.$ac_ext
25767cat >>conftest.$ac_ext <<_ACEOF
25768/* end confdefs.h. */
25769#include <sys/types.h>
25770#include <sys/stat.h>
25771
25772#if defined(S_ISBLK) && defined(S_IFDIR)
25773# if S_ISBLK (S_IFDIR)
25774You lose.
25775# endif
25776#endif
25777
25778#if defined(S_ISBLK) && defined(S_IFCHR)
25779# if S_ISBLK (S_IFCHR)
25780You lose.
25781# endif
25782#endif
25783
25784#if defined(S_ISLNK) && defined(S_IFREG)
25785# if S_ISLNK (S_IFREG)
25786You lose.
25787# endif
25788#endif
25789
25790#if defined(S_ISSOCK) && defined(S_IFREG)
25791# if S_ISSOCK (S_IFREG)
25792You lose.
25793# endif
25794#endif
25795
25796_ACEOF
25797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25798 $EGREP "You lose" >/dev/null 2>&1; then
25799 ac_cv_header_stat_broken=yes
25800else
25801 ac_cv_header_stat_broken=no
25802fi
25803rm -f conftest*
25804
25805fi
25806echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25807echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
25808if test $ac_cv_header_stat_broken = yes; then
25809
25810cat >>confdefs.h <<\_ACEOF
25811#define STAT_MACROS_BROKEN 1
25812_ACEOF
25813
25814fi
25815
John Criswell7a73b802003-06-30 21:59:07 +000025816echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25817echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25818if test "${ac_cv_header_stdc+set}" = set; then
25819 echo $ECHO_N "(cached) $ECHO_C" >&6
25820else
25821 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025822/* confdefs.h. */
25823_ACEOF
25824cat confdefs.h >>conftest.$ac_ext
25825cat >>conftest.$ac_ext <<_ACEOF
25826/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025827#include <stdlib.h>
25828#include <stdarg.h>
25829#include <string.h>
25830#include <float.h>
25831
John Criswell0c38eaf2003-09-10 15:17:25 +000025832int
25833main ()
25834{
25835
25836 ;
25837 return 0;
25838}
John Criswell7a73b802003-06-30 21:59:07 +000025839_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025840rm -f conftest.$ac_objext
25841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025842 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025843 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025844 grep -v '^ *+' conftest.er1 >conftest.err
25845 rm -f conftest.er1
25846 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025848 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025849 { ac_try='test -z "$ac_c_werror_flag"
25850 || test ! -s conftest.err'
25851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25852 (eval $ac_try) 2>&5
25853 ac_status=$?
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); }; } &&
25856 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25858 (eval $ac_try) 2>&5
25859 ac_status=$?
25860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25861 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025862 ac_cv_header_stdc=yes
25863else
25864 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025865sed 's/^/| /' conftest.$ac_ext >&5
25866
25867ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025868fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025870
25871if test $ac_cv_header_stdc = yes; then
25872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25873 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025874/* confdefs.h. */
25875_ACEOF
25876cat confdefs.h >>conftest.$ac_ext
25877cat >>conftest.$ac_ext <<_ACEOF
25878/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025879#include <string.h>
25880
25881_ACEOF
25882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025883 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025884 :
25885else
25886 ac_cv_header_stdc=no
25887fi
25888rm -f conftest*
25889
25890fi
25891
25892if test $ac_cv_header_stdc = yes; then
25893 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25894 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025895/* confdefs.h. */
25896_ACEOF
25897cat confdefs.h >>conftest.$ac_ext
25898cat >>conftest.$ac_ext <<_ACEOF
25899/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025900#include <stdlib.h>
25901
25902_ACEOF
25903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025904 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025905 :
25906else
25907 ac_cv_header_stdc=no
25908fi
25909rm -f conftest*
25910
25911fi
25912
25913if test $ac_cv_header_stdc = yes; then
25914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25915 if test "$cross_compiling" = yes; then
25916 :
25917else
25918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025919/* confdefs.h. */
25920_ACEOF
25921cat confdefs.h >>conftest.$ac_ext
25922cat >>conftest.$ac_ext <<_ACEOF
25923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025924#include <ctype.h>
25925#if ((' ' & 0x0FF) == 0x020)
25926# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25927# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25928#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025929# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025930 (('a' <= (c) && (c) <= 'i') \
25931 || ('j' <= (c) && (c) <= 'r') \
25932 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025933# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25934#endif
25935
25936#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25937int
25938main ()
25939{
25940 int i;
25941 for (i = 0; i < 256; i++)
25942 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025943 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025944 exit(2);
25945 exit (0);
25946}
25947_ACEOF
25948rm -f conftest$ac_exeext
25949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25950 (eval $ac_link) 2>&5
25951 ac_status=$?
25952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25955 (eval $ac_try) 2>&5
25956 ac_status=$?
25957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25958 (exit $ac_status); }; }; then
25959 :
25960else
25961 echo "$as_me: program exited with status $ac_status" >&5
25962echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025963sed 's/^/| /' conftest.$ac_ext >&5
25964
John Criswell7a73b802003-06-30 21:59:07 +000025965( exit $ac_status )
25966ac_cv_header_stdc=no
25967fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025968rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025969fi
25970fi
25971fi
25972echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25973echo "${ECHO_T}$ac_cv_header_stdc" >&6
25974if test $ac_cv_header_stdc = yes; then
25975
25976cat >>confdefs.h <<\_ACEOF
25977#define STDC_HEADERS 1
25978_ACEOF
25979
25980fi
25981
25982echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25983echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25984if test "${ac_cv_header_sys_wait_h+set}" = set; then
25985 echo $ECHO_N "(cached) $ECHO_C" >&6
25986else
25987 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025988/* confdefs.h. */
25989_ACEOF
25990cat confdefs.h >>conftest.$ac_ext
25991cat >>conftest.$ac_ext <<_ACEOF
25992/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025993#include <sys/types.h>
25994#include <sys/wait.h>
25995#ifndef WEXITSTATUS
25996# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25997#endif
25998#ifndef WIFEXITED
25999# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26000#endif
26001
John Criswell7a73b802003-06-30 21:59:07 +000026002int
26003main ()
26004{
26005 int s;
26006 wait (&s);
26007 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26008 ;
26009 return 0;
26010}
26011_ACEOF
26012rm -f conftest.$ac_objext
26013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026014 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026015 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026016 grep -v '^ *+' conftest.er1 >conftest.err
26017 rm -f conftest.er1
26018 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026021 { ac_try='test -z "$ac_c_werror_flag"
26022 || test ! -s conftest.err'
26023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26024 (eval $ac_try) 2>&5
26025 ac_status=$?
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); }; } &&
26028 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26030 (eval $ac_try) 2>&5
26031 ac_status=$?
26032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033 (exit $ac_status); }; }; then
26034 ac_cv_header_sys_wait_h=yes
26035else
26036 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026037sed 's/^/| /' conftest.$ac_ext >&5
26038
John Criswell7a73b802003-06-30 21:59:07 +000026039ac_cv_header_sys_wait_h=no
26040fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026042fi
26043echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26044echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26045if test $ac_cv_header_sys_wait_h = yes; then
26046
26047cat >>confdefs.h <<\_ACEOF
26048#define HAVE_SYS_WAIT_H 1
26049_ACEOF
26050
26051fi
26052
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026053echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26054echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26055if test "${ac_cv_header_time+set}" = set; then
26056 echo $ECHO_N "(cached) $ECHO_C" >&6
26057else
26058 cat >conftest.$ac_ext <<_ACEOF
26059/* confdefs.h. */
26060_ACEOF
26061cat confdefs.h >>conftest.$ac_ext
26062cat >>conftest.$ac_ext <<_ACEOF
26063/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026064#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026065#include <sys/time.h>
26066#include <time.h>
26067
26068int
26069main ()
26070{
26071if ((struct tm *) 0)
26072return 0;
26073 ;
26074 return 0;
26075}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026076_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026077rm -f conftest.$ac_objext
26078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26079 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026080 ac_status=$?
26081 grep -v '^ *+' conftest.er1 >conftest.err
26082 rm -f conftest.er1
26083 cat conftest.err >&5
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026085 (exit $ac_status); } &&
26086 { ac_try='test -z "$ac_c_werror_flag"
26087 || test ! -s conftest.err'
26088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26089 (eval $ac_try) 2>&5
26090 ac_status=$?
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); }; } &&
26093 { ac_try='test -s conftest.$ac_objext'
26094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26095 (eval $ac_try) 2>&5
26096 ac_status=$?
26097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); }; }; then
26099 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026100else
26101 echo "$as_me: failed program was:" >&5
26102sed 's/^/| /' conftest.$ac_ext >&5
26103
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026104ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026105fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26107fi
26108echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26109echo "${ECHO_T}$ac_cv_header_time" >&6
26110if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026111
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026112cat >>confdefs.h <<\_ACEOF
26113#define TIME_WITH_SYS_TIME 1
26114_ACEOF
26115
26116fi
26117
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026118
Reid Spencer59473af2004-12-25 07:31:29 +000026119
26120
26121
26122
26123
26124
26125for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26126do
26127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26128if eval "test \"\${$as_ac_Header+set}\" = set"; then
26129 echo "$as_me:$LINENO: checking for $ac_header" >&5
26130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26131if eval "test \"\${$as_ac_Header+set}\" = set"; then
26132 echo $ECHO_N "(cached) $ECHO_C" >&6
26133fi
26134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26136else
26137 # Is the header compilable?
26138echo "$as_me:$LINENO: checking $ac_header usability" >&5
26139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26140cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026141/* confdefs.h. */
26142_ACEOF
26143cat confdefs.h >>conftest.$ac_ext
26144cat >>conftest.$ac_ext <<_ACEOF
26145/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026146$ac_includes_default
26147#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026148_ACEOF
26149rm -f conftest.$ac_objext
26150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26151 (eval $ac_compile) 2>conftest.er1
26152 ac_status=$?
26153 grep -v '^ *+' conftest.er1 >conftest.err
26154 rm -f conftest.er1
26155 cat conftest.err >&5
26156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157 (exit $ac_status); } &&
26158 { ac_try='test -z "$ac_c_werror_flag"
26159 || test ! -s conftest.err'
26160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26161 (eval $ac_try) 2>&5
26162 ac_status=$?
26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); }; } &&
26165 { ac_try='test -s conftest.$ac_objext'
26166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26167 (eval $ac_try) 2>&5
26168 ac_status=$?
26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026171 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026172else
26173 echo "$as_me: failed program was:" >&5
26174sed 's/^/| /' conftest.$ac_ext >&5
26175
Reid Spencer59473af2004-12-25 07:31:29 +000026176ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026177fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026179echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26180echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026181
Reid Spencer59473af2004-12-25 07:31:29 +000026182# Is the header present?
26183echo "$as_me:$LINENO: checking $ac_header presence" >&5
26184echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26185cat >conftest.$ac_ext <<_ACEOF
26186/* confdefs.h. */
26187_ACEOF
26188cat confdefs.h >>conftest.$ac_ext
26189cat >>conftest.$ac_ext <<_ACEOF
26190/* end confdefs.h. */
26191#include <$ac_header>
26192_ACEOF
26193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26195 ac_status=$?
26196 grep -v '^ *+' conftest.er1 >conftest.err
26197 rm -f conftest.er1
26198 cat conftest.err >&5
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); } >/dev/null; then
26201 if test -s conftest.err; then
26202 ac_cpp_err=$ac_c_preproc_warn_flag
26203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26204 else
26205 ac_cpp_err=
26206 fi
26207else
26208 ac_cpp_err=yes
26209fi
26210if test -z "$ac_cpp_err"; then
26211 ac_header_preproc=yes
26212else
26213 echo "$as_me: failed program was:" >&5
26214sed 's/^/| /' conftest.$ac_ext >&5
26215
26216 ac_header_preproc=no
26217fi
26218rm -f conftest.err conftest.$ac_ext
26219echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26220echo "${ECHO_T}$ac_header_preproc" >&6
26221
26222# So? What about this header?
26223case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26224 yes:no: )
26225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26226echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26228echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26229 ac_header_preproc=yes
26230 ;;
26231 no:yes:* )
26232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26233echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26235echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26237echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26239echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26241echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26243echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26244 (
26245 cat <<\_ASBOX
26246## ----------------------------------- ##
26247## Report this to llvmbugs@cs.uiuc.edu ##
26248## ----------------------------------- ##
26249_ASBOX
26250 ) |
26251 sed "s/^/$as_me: WARNING: /" >&2
26252 ;;
26253esac
26254echo "$as_me:$LINENO: checking for $ac_header" >&5
26255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26256if eval "test \"\${$as_ac_Header+set}\" = set"; then
26257 echo $ECHO_N "(cached) $ECHO_C" >&6
26258else
26259 eval "$as_ac_Header=\$ac_header_preproc"
26260fi
26261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026263
26264fi
Reid Spencer59473af2004-12-25 07:31:29 +000026265if test `eval echo '${'$as_ac_Header'}'` = yes; then
26266 cat >>confdefs.h <<_ACEOF
26267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026268_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026269
26270fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026271
Reid Spencer59473af2004-12-25 07:31:29 +000026272done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026273
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026274
26275
Reid Spencer59473af2004-12-25 07:31:29 +000026276
26277
26278
26279
26280for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
26281do
26282as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26283if eval "test \"\${$as_ac_Header+set}\" = set"; then
26284 echo "$as_me:$LINENO: checking for $ac_header" >&5
26285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26286if eval "test \"\${$as_ac_Header+set}\" = set"; then
26287 echo $ECHO_N "(cached) $ECHO_C" >&6
26288fi
26289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26291else
26292 # Is the header compilable?
26293echo "$as_me:$LINENO: checking $ac_header usability" >&5
26294echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26295cat >conftest.$ac_ext <<_ACEOF
26296/* confdefs.h. */
26297_ACEOF
26298cat confdefs.h >>conftest.$ac_ext
26299cat >>conftest.$ac_ext <<_ACEOF
26300/* end confdefs.h. */
26301$ac_includes_default
26302#include <$ac_header>
26303_ACEOF
26304rm -f conftest.$ac_objext
26305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26306 (eval $ac_compile) 2>conftest.er1
26307 ac_status=$?
26308 grep -v '^ *+' conftest.er1 >conftest.err
26309 rm -f conftest.er1
26310 cat conftest.err >&5
26311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26312 (exit $ac_status); } &&
26313 { ac_try='test -z "$ac_c_werror_flag"
26314 || test ! -s conftest.err'
26315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26316 (eval $ac_try) 2>&5
26317 ac_status=$?
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); }; } &&
26320 { ac_try='test -s conftest.$ac_objext'
26321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26322 (eval $ac_try) 2>&5
26323 ac_status=$?
26324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26325 (exit $ac_status); }; }; then
26326 ac_header_compiler=yes
26327else
26328 echo "$as_me: failed program was:" >&5
26329sed 's/^/| /' conftest.$ac_ext >&5
26330
26331ac_header_compiler=no
26332fi
26333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26335echo "${ECHO_T}$ac_header_compiler" >&6
26336
26337# Is the header present?
26338echo "$as_me:$LINENO: checking $ac_header presence" >&5
26339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26340cat >conftest.$ac_ext <<_ACEOF
26341/* confdefs.h. */
26342_ACEOF
26343cat confdefs.h >>conftest.$ac_ext
26344cat >>conftest.$ac_ext <<_ACEOF
26345/* end confdefs.h. */
26346#include <$ac_header>
26347_ACEOF
26348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26350 ac_status=$?
26351 grep -v '^ *+' conftest.er1 >conftest.err
26352 rm -f conftest.er1
26353 cat conftest.err >&5
26354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); } >/dev/null; then
26356 if test -s conftest.err; then
26357 ac_cpp_err=$ac_c_preproc_warn_flag
26358 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26359 else
26360 ac_cpp_err=
26361 fi
26362else
26363 ac_cpp_err=yes
26364fi
26365if test -z "$ac_cpp_err"; then
26366 ac_header_preproc=yes
26367else
26368 echo "$as_me: failed program was:" >&5
26369sed 's/^/| /' conftest.$ac_ext >&5
26370
26371 ac_header_preproc=no
26372fi
26373rm -f conftest.err conftest.$ac_ext
26374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26375echo "${ECHO_T}$ac_header_preproc" >&6
26376
26377# So? What about this header?
26378case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26379 yes:no: )
26380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26384 ac_header_preproc=yes
26385 ;;
26386 no:yes:* )
26387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26399 (
26400 cat <<\_ASBOX
26401## ----------------------------------- ##
26402## Report this to llvmbugs@cs.uiuc.edu ##
26403## ----------------------------------- ##
26404_ASBOX
26405 ) |
26406 sed "s/^/$as_me: WARNING: /" >&2
26407 ;;
26408esac
26409echo "$as_me:$LINENO: checking for $ac_header" >&5
26410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26411if eval "test \"\${$as_ac_Header+set}\" = set"; then
26412 echo $ECHO_N "(cached) $ECHO_C" >&6
26413else
26414 eval "$as_ac_Header=\$ac_header_preproc"
26415fi
26416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26418
26419fi
26420if test `eval echo '${'$as_ac_Header'}'` = yes; then
26421 cat >>confdefs.h <<_ACEOF
26422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26423_ACEOF
26424
26425fi
26426
26427done
26428
26429
26430
26431
26432
26433
26434for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026435do
26436as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26437if eval "test \"\${$as_ac_Header+set}\" = set"; then
26438 echo "$as_me:$LINENO: checking for $ac_header" >&5
26439echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26440if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026441 echo $ECHO_N "(cached) $ECHO_C" >&6
26442fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026443echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26444echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026445else
26446 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026447echo "$as_me:$LINENO: checking $ac_header usability" >&5
26448echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026449cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026450/* confdefs.h. */
26451_ACEOF
26452cat confdefs.h >>conftest.$ac_ext
26453cat >>conftest.$ac_ext <<_ACEOF
26454/* end confdefs.h. */
26455$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026456#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026457_ACEOF
26458rm -f conftest.$ac_objext
26459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026460 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026461 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026462 grep -v '^ *+' conftest.er1 >conftest.err
26463 rm -f conftest.er1
26464 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026467 { ac_try='test -z "$ac_c_werror_flag"
26468 || test ! -s conftest.err'
26469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26470 (eval $ac_try) 2>&5
26471 ac_status=$?
26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); }; } &&
26474 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476 (eval $ac_try) 2>&5
26477 ac_status=$?
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; }; then
26480 ac_header_compiler=yes
26481else
26482 echo "$as_me: failed program was:" >&5
26483sed 's/^/| /' conftest.$ac_ext >&5
26484
26485ac_header_compiler=no
26486fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026488echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26489echo "${ECHO_T}$ac_header_compiler" >&6
26490
26491# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026492echo "$as_me:$LINENO: checking $ac_header presence" >&5
26493echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026494cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026495/* confdefs.h. */
26496_ACEOF
26497cat confdefs.h >>conftest.$ac_ext
26498cat >>conftest.$ac_ext <<_ACEOF
26499/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026500#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026501_ACEOF
26502if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26504 ac_status=$?
26505 grep -v '^ *+' conftest.er1 >conftest.err
26506 rm -f conftest.er1
26507 cat conftest.err >&5
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } >/dev/null; then
26510 if test -s conftest.err; then
26511 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026512 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026513 else
26514 ac_cpp_err=
26515 fi
26516else
26517 ac_cpp_err=yes
26518fi
26519if test -z "$ac_cpp_err"; then
26520 ac_header_preproc=yes
26521else
26522 echo "$as_me: failed program was:" >&5
26523sed 's/^/| /' conftest.$ac_ext >&5
26524
26525 ac_header_preproc=no
26526fi
26527rm -f conftest.err conftest.$ac_ext
26528echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26529echo "${ECHO_T}$ac_header_preproc" >&6
26530
26531# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026532case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26533 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026534 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26535echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26537echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026538 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026539 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026540 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26542echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26544echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26545 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26546echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26547 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26548echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26550echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26551 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26552echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026553 (
26554 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026555## ----------------------------------- ##
26556## Report this to llvmbugs@cs.uiuc.edu ##
26557## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026558_ASBOX
26559 ) |
26560 sed "s/^/$as_me: WARNING: /" >&2
26561 ;;
26562esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026563echo "$as_me:$LINENO: checking for $ac_header" >&5
26564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26565if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026566 echo $ECHO_N "(cached) $ECHO_C" >&6
26567else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026568 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026569fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26571echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026572
26573fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026574if test `eval echo '${'$as_ac_Header'}'` = yes; then
26575 cat >>confdefs.h <<_ACEOF
26576#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026577_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026578
26579fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026580
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026581done
26582
John Criswell7ed43ad2004-07-19 16:12:29 +000026583
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026584
John Criswell7a73b802003-06-30 21:59:07 +000026585echo "$as_me:$LINENO: checking for pid_t" >&5
26586echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26587if test "${ac_cv_type_pid_t+set}" = set; then
26588 echo $ECHO_N "(cached) $ECHO_C" >&6
26589else
26590 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026591/* confdefs.h. */
26592_ACEOF
26593cat confdefs.h >>conftest.$ac_ext
26594cat >>conftest.$ac_ext <<_ACEOF
26595/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026596$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026597int
26598main ()
26599{
26600if ((pid_t *) 0)
26601 return 0;
26602if (sizeof (pid_t))
26603 return 0;
26604 ;
26605 return 0;
26606}
26607_ACEOF
26608rm -f conftest.$ac_objext
26609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026610 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026611 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026612 grep -v '^ *+' conftest.er1 >conftest.err
26613 rm -f conftest.er1
26614 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26616 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026617 { ac_try='test -z "$ac_c_werror_flag"
26618 || test ! -s conftest.err'
26619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26620 (eval $ac_try) 2>&5
26621 ac_status=$?
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); }; } &&
26624 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26626 (eval $ac_try) 2>&5
26627 ac_status=$?
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); }; }; then
26630 ac_cv_type_pid_t=yes
26631else
26632 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026633sed 's/^/| /' conftest.$ac_ext >&5
26634
John Criswell7a73b802003-06-30 21:59:07 +000026635ac_cv_type_pid_t=no
26636fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026638fi
26639echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26640echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26641if test $ac_cv_type_pid_t = yes; then
26642 :
26643else
26644
26645cat >>confdefs.h <<_ACEOF
26646#define pid_t int
26647_ACEOF
26648
26649fi
26650
26651echo "$as_me:$LINENO: checking for size_t" >&5
26652echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26653if test "${ac_cv_type_size_t+set}" = set; then
26654 echo $ECHO_N "(cached) $ECHO_C" >&6
26655else
26656 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026657/* confdefs.h. */
26658_ACEOF
26659cat confdefs.h >>conftest.$ac_ext
26660cat >>conftest.$ac_ext <<_ACEOF
26661/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026662$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026663int
26664main ()
26665{
26666if ((size_t *) 0)
26667 return 0;
26668if (sizeof (size_t))
26669 return 0;
26670 ;
26671 return 0;
26672}
26673_ACEOF
26674rm -f conftest.$ac_objext
26675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026676 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026677 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026678 grep -v '^ *+' conftest.er1 >conftest.err
26679 rm -f conftest.er1
26680 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026683 { ac_try='test -z "$ac_c_werror_flag"
26684 || test ! -s conftest.err'
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26687 ac_status=$?
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; } &&
26690 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; }; then
26696 ac_cv_type_size_t=yes
26697else
26698 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026699sed 's/^/| /' conftest.$ac_ext >&5
26700
John Criswell7a73b802003-06-30 21:59:07 +000026701ac_cv_type_size_t=no
26702fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026704fi
26705echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26706echo "${ECHO_T}$ac_cv_type_size_t" >&6
26707if test $ac_cv_type_size_t = yes; then
26708 :
26709else
26710
26711cat >>confdefs.h <<_ACEOF
26712#define size_t unsigned
26713_ACEOF
26714
26715fi
26716
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026717echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26718echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26719if test "${ac_cv_type_signal+set}" = set; then
26720 echo $ECHO_N "(cached) $ECHO_C" >&6
26721else
26722 cat >conftest.$ac_ext <<_ACEOF
26723/* confdefs.h. */
26724_ACEOF
26725cat confdefs.h >>conftest.$ac_ext
26726cat >>conftest.$ac_ext <<_ACEOF
26727/* end confdefs.h. */
26728#include <sys/types.h>
26729#include <signal.h>
26730#ifdef signal
26731# undef signal
26732#endif
26733#ifdef __cplusplus
26734extern "C" void (*signal (int, void (*)(int)))(int);
26735#else
26736void (*signal ()) ();
26737#endif
26738
26739int
26740main ()
26741{
26742int i;
26743 ;
26744 return 0;
26745}
26746_ACEOF
26747rm -f conftest.$ac_objext
26748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26749 (eval $ac_compile) 2>conftest.er1
26750 ac_status=$?
26751 grep -v '^ *+' conftest.er1 >conftest.err
26752 rm -f conftest.er1
26753 cat conftest.err >&5
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); } &&
26756 { ac_try='test -z "$ac_c_werror_flag"
26757 || test ! -s conftest.err'
26758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759 (eval $ac_try) 2>&5
26760 ac_status=$?
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; } &&
26763 { ac_try='test -s conftest.$ac_objext'
26764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26765 (eval $ac_try) 2>&5
26766 ac_status=$?
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); }; }; then
26769 ac_cv_type_signal=void
26770else
26771 echo "$as_me: failed program was:" >&5
26772sed 's/^/| /' conftest.$ac_ext >&5
26773
26774ac_cv_type_signal=int
26775fi
26776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26777fi
26778echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26779echo "${ECHO_T}$ac_cv_type_signal" >&6
26780
26781cat >>confdefs.h <<_ACEOF
26782#define RETSIGTYPE $ac_cv_type_signal
26783_ACEOF
26784
26785
26786echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26787echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26788if test "${ac_cv_struct_tm+set}" = set; then
26789 echo $ECHO_N "(cached) $ECHO_C" >&6
26790else
26791 cat >conftest.$ac_ext <<_ACEOF
26792/* confdefs.h. */
26793_ACEOF
26794cat confdefs.h >>conftest.$ac_ext
26795cat >>conftest.$ac_ext <<_ACEOF
26796/* end confdefs.h. */
26797#include <sys/types.h>
26798#include <time.h>
26799
26800int
26801main ()
26802{
26803struct tm *tp; tp->tm_sec;
26804 ;
26805 return 0;
26806}
26807_ACEOF
26808rm -f conftest.$ac_objext
26809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26810 (eval $ac_compile) 2>conftest.er1
26811 ac_status=$?
26812 grep -v '^ *+' conftest.er1 >conftest.err
26813 rm -f conftest.er1
26814 cat conftest.err >&5
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); } &&
26817 { ac_try='test -z "$ac_c_werror_flag"
26818 || test ! -s conftest.err'
26819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820 (eval $ac_try) 2>&5
26821 ac_status=$?
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; } &&
26824 { ac_try='test -s conftest.$ac_objext'
26825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26826 (eval $ac_try) 2>&5
26827 ac_status=$?
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); }; }; then
26830 ac_cv_struct_tm=time.h
26831else
26832 echo "$as_me: failed program was:" >&5
26833sed 's/^/| /' conftest.$ac_ext >&5
26834
26835ac_cv_struct_tm=sys/time.h
26836fi
26837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26838fi
26839echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26840echo "${ECHO_T}$ac_cv_struct_tm" >&6
26841if test $ac_cv_struct_tm = sys/time.h; then
26842
26843cat >>confdefs.h <<\_ACEOF
26844#define TM_IN_SYS_TIME 1
26845_ACEOF
26846
26847fi
26848
John Criswell7a73b802003-06-30 21:59:07 +000026849echo "$as_me:$LINENO: checking for int64_t" >&5
26850echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26851if test "${ac_cv_type_int64_t+set}" = set; then
26852 echo $ECHO_N "(cached) $ECHO_C" >&6
26853else
26854 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026855/* confdefs.h. */
26856_ACEOF
26857cat confdefs.h >>conftest.$ac_ext
26858cat >>conftest.$ac_ext <<_ACEOF
26859/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026860$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026861int
26862main ()
26863{
26864if ((int64_t *) 0)
26865 return 0;
26866if (sizeof (int64_t))
26867 return 0;
26868 ;
26869 return 0;
26870}
26871_ACEOF
26872rm -f conftest.$ac_objext
26873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026874 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026875 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026876 grep -v '^ *+' conftest.er1 >conftest.err
26877 rm -f conftest.er1
26878 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026881 { ac_try='test -z "$ac_c_werror_flag"
26882 || test ! -s conftest.err'
26883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26884 (eval $ac_try) 2>&5
26885 ac_status=$?
26886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26887 (exit $ac_status); }; } &&
26888 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26890 (eval $ac_try) 2>&5
26891 ac_status=$?
26892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26893 (exit $ac_status); }; }; then
26894 ac_cv_type_int64_t=yes
26895else
26896 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026897sed 's/^/| /' conftest.$ac_ext >&5
26898
John Criswell7a73b802003-06-30 21:59:07 +000026899ac_cv_type_int64_t=no
26900fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026902fi
26903echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26904echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26905if test $ac_cv_type_int64_t = yes; then
26906
26907cat >>confdefs.h <<_ACEOF
26908#define HAVE_INT64_T 1
26909_ACEOF
26910
26911
26912else
26913 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26914echo "$as_me: error: Type int64_t required but not found" >&2;}
26915 { (exit 1); exit 1; }; }
26916fi
26917
26918echo "$as_me:$LINENO: checking for uint64_t" >&5
26919echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26920if test "${ac_cv_type_uint64_t+set}" = set; then
26921 echo $ECHO_N "(cached) $ECHO_C" >&6
26922else
26923 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026924/* confdefs.h. */
26925_ACEOF
26926cat confdefs.h >>conftest.$ac_ext
26927cat >>conftest.$ac_ext <<_ACEOF
26928/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026929$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026930int
26931main ()
26932{
26933if ((uint64_t *) 0)
26934 return 0;
26935if (sizeof (uint64_t))
26936 return 0;
26937 ;
26938 return 0;
26939}
26940_ACEOF
26941rm -f conftest.$ac_objext
26942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026943 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026944 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026945 grep -v '^ *+' conftest.er1 >conftest.err
26946 rm -f conftest.er1
26947 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026950 { ac_try='test -z "$ac_c_werror_flag"
26951 || test ! -s conftest.err'
26952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26953 (eval $ac_try) 2>&5
26954 ac_status=$?
26955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956 (exit $ac_status); }; } &&
26957 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26959 (eval $ac_try) 2>&5
26960 ac_status=$?
26961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26962 (exit $ac_status); }; }; then
26963 ac_cv_type_uint64_t=yes
26964else
26965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026966sed 's/^/| /' conftest.$ac_ext >&5
26967
John Criswell7a73b802003-06-30 21:59:07 +000026968ac_cv_type_uint64_t=no
26969fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026971fi
26972echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26973echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26974if test $ac_cv_type_uint64_t = yes; then
26975
26976cat >>confdefs.h <<_ACEOF
26977#define HAVE_UINT64_T 1
26978_ACEOF
26979
26980
26981else
Misha Brukmanceca9042004-09-02 23:02:30 +000026982 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000026983echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26984if test "${ac_cv_type_u_int64_t+set}" = set; then
26985 echo $ECHO_N "(cached) $ECHO_C" >&6
26986else
26987 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000026988/* confdefs.h. */
26989_ACEOF
26990cat confdefs.h >>conftest.$ac_ext
26991cat >>conftest.$ac_ext <<_ACEOF
26992/* end confdefs.h. */
26993$ac_includes_default
26994int
26995main ()
26996{
26997if ((u_int64_t *) 0)
26998 return 0;
26999if (sizeof (u_int64_t))
27000 return 0;
27001 ;
27002 return 0;
27003}
27004_ACEOF
27005rm -f conftest.$ac_objext
27006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027007 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027008 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027009 grep -v '^ *+' conftest.er1 >conftest.err
27010 rm -f conftest.er1
27011 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027014 { ac_try='test -z "$ac_c_werror_flag"
27015 || test ! -s conftest.err'
27016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27017 (eval $ac_try) 2>&5
27018 ac_status=$?
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); }; } &&
27021 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023 (eval $ac_try) 2>&5
27024 ac_status=$?
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); }; }; then
27027 ac_cv_type_u_int64_t=yes
27028else
27029 echo "$as_me: failed program was:" >&5
27030sed 's/^/| /' conftest.$ac_ext >&5
27031
27032ac_cv_type_u_int64_t=no
27033fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027035fi
27036echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27037echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27038if test $ac_cv_type_u_int64_t = yes; then
27039
27040cat >>confdefs.h <<_ACEOF
27041#define HAVE_U_INT64_T 1
27042_ACEOF
27043
27044
Misha Brukmanceca9042004-09-02 23:02:30 +000027045else
27046 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27047echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27048 { (exit 1); exit 1; }; }
27049fi
27050
John Criswell679ff312004-09-02 18:44:44 +000027051fi
27052
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027053
27054
27055
27056
27057
27058
27059
27060
Reid Spencerab5eaea2004-12-20 00:59:04 +000027061for ac_func in backtrace getcwd getpagesize getrusage gettimeofday isatty
27062do
27063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27064echo "$as_me:$LINENO: checking for $ac_func" >&5
27065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27066if eval "test \"\${$as_ac_var+set}\" = set"; then
27067 echo $ECHO_N "(cached) $ECHO_C" >&6
27068else
27069 cat >conftest.$ac_ext <<_ACEOF
27070/* confdefs.h. */
27071_ACEOF
27072cat confdefs.h >>conftest.$ac_ext
27073cat >>conftest.$ac_ext <<_ACEOF
27074/* end confdefs.h. */
27075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27077#define $ac_func innocuous_$ac_func
Reid Spencerf9960f72004-12-15 01:41:56 +000027078
Reid Spencerab5eaea2004-12-20 00:59:04 +000027079/* System header to define __stub macros and hopefully few prototypes,
27080 which can conflict with char $ac_func (); below.
27081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27082 <limits.h> exists even on freestanding compilers. */
27083
27084#ifdef __STDC__
27085# include <limits.h>
27086#else
27087# include <assert.h>
27088#endif
27089
27090#undef $ac_func
27091
27092/* Override any gcc2 internal prototype to avoid an error. */
27093#ifdef __cplusplus
27094extern "C"
27095{
27096#endif
27097/* We use char because int might match the return type of a gcc2
27098 builtin and then its argument prototype would still apply. */
27099char $ac_func ();
27100/* The GNU C library defines this for functions which it implements
27101 to always fail with ENOSYS. Some functions are actually named
27102 something starting with __ and the normal name is an alias. */
27103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27104choke me
27105#else
27106char (*f) () = $ac_func;
27107#endif
27108#ifdef __cplusplus
27109}
27110#endif
27111
27112int
27113main ()
27114{
27115return f != $ac_func;
27116 ;
27117 return 0;
27118}
27119_ACEOF
27120rm -f conftest.$ac_objext conftest$ac_exeext
27121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27122 (eval $ac_link) 2>conftest.er1
27123 ac_status=$?
27124 grep -v '^ *+' conftest.er1 >conftest.err
27125 rm -f conftest.er1
27126 cat conftest.err >&5
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); } &&
27129 { ac_try='test -z "$ac_c_werror_flag"
27130 || test ! -s conftest.err'
27131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132 (eval $ac_try) 2>&5
27133 ac_status=$?
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); }; } &&
27136 { ac_try='test -s conftest$ac_exeext'
27137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27138 (eval $ac_try) 2>&5
27139 ac_status=$?
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); }; }; then
27142 eval "$as_ac_var=yes"
27143else
27144 echo "$as_me: failed program was:" >&5
27145sed 's/^/| /' conftest.$ac_ext >&5
27146
27147eval "$as_ac_var=no"
27148fi
27149rm -f conftest.err conftest.$ac_objext \
27150 conftest$ac_exeext conftest.$ac_ext
27151fi
27152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27153echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27154if test `eval echo '${'$as_ac_var'}'` = yes; then
27155 cat >>confdefs.h <<_ACEOF
27156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27157_ACEOF
27158
27159fi
27160done
27161
27162
27163
27164
27165for ac_func in mkdtemp mkstemp mktemp
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027166do
27167as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27168echo "$as_me:$LINENO: checking for $ac_func" >&5
27169echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27170if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027171 echo $ECHO_N "(cached) $ECHO_C" >&6
27172else
27173 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027174/* confdefs.h. */
27175_ACEOF
27176cat confdefs.h >>conftest.$ac_ext
27177cat >>conftest.$ac_ext <<_ACEOF
27178/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027179/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27181#define $ac_func innocuous_$ac_func
27182
27183/* System header to define __stub macros and hopefully few prototypes,
27184 which can conflict with char $ac_func (); below.
27185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27186 <limits.h> exists even on freestanding compilers. */
27187
27188#ifdef __STDC__
27189# include <limits.h>
27190#else
27191# include <assert.h>
27192#endif
27193
27194#undef $ac_func
27195
27196/* Override any gcc2 internal prototype to avoid an error. */
27197#ifdef __cplusplus
27198extern "C"
27199{
27200#endif
27201/* We use char because int might match the return type of a gcc2
27202 builtin and then its argument prototype would still apply. */
27203char $ac_func ();
27204/* The GNU C library defines this for functions which it implements
27205 to always fail with ENOSYS. Some functions are actually named
27206 something starting with __ and the normal name is an alias. */
27207#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27208choke me
27209#else
27210char (*f) () = $ac_func;
27211#endif
27212#ifdef __cplusplus
27213}
27214#endif
John Criswell7a73b802003-06-30 21:59:07 +000027215
John Criswell7a73b802003-06-30 21:59:07 +000027216int
27217main ()
27218{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027219return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027220 ;
27221 return 0;
27222}
27223_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027224rm -f conftest.$ac_objext conftest$ac_exeext
27225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27226 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027228 grep -v '^ *+' conftest.er1 >conftest.err
27229 rm -f conftest.er1
27230 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027233 { ac_try='test -z "$ac_c_werror_flag"
27234 || test ! -s conftest.err'
27235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236 (eval $ac_try) 2>&5
27237 ac_status=$?
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027240 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242 (eval $ac_try) 2>&5
27243 ac_status=$?
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027246 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027247else
27248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027249sed 's/^/| /' conftest.$ac_ext >&5
27250
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027251eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027252fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027253rm -f conftest.err conftest.$ac_objext \
27254 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027255fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027256echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27257echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27258if test `eval echo '${'$as_ac_var'}'` = yes; then
27259 cat >>confdefs.h <<_ACEOF
27260#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027261_ACEOF
27262
27263fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027264done
John Criswell7a73b802003-06-30 21:59:07 +000027265
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027266
27267
27268
Reid Spencer6af3d262004-12-15 04:01:48 +000027269
27270
Reid Spencer59473af2004-12-25 07:31:29 +000027271
27272for ac_func in realpath setrlimit strdup strtoq strtoll sysconf
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027273do
27274as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27275echo "$as_me:$LINENO: checking for $ac_func" >&5
27276echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27277if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027278 echo $ECHO_N "(cached) $ECHO_C" >&6
27279else
27280 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027281/* confdefs.h. */
27282_ACEOF
27283cat confdefs.h >>conftest.$ac_ext
27284cat >>conftest.$ac_ext <<_ACEOF
27285/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027286/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27288#define $ac_func innocuous_$ac_func
27289
27290/* System header to define __stub macros and hopefully few prototypes,
27291 which can conflict with char $ac_func (); below.
27292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27293 <limits.h> exists even on freestanding compilers. */
27294
27295#ifdef __STDC__
27296# include <limits.h>
27297#else
27298# include <assert.h>
27299#endif
27300
27301#undef $ac_func
27302
27303/* Override any gcc2 internal prototype to avoid an error. */
27304#ifdef __cplusplus
27305extern "C"
27306{
27307#endif
27308/* We use char because int might match the return type of a gcc2
27309 builtin and then its argument prototype would still apply. */
27310char $ac_func ();
27311/* The GNU C library defines this for functions which it implements
27312 to always fail with ENOSYS. Some functions are actually named
27313 something starting with __ and the normal name is an alias. */
27314#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27315choke me
27316#else
27317char (*f) () = $ac_func;
27318#endif
27319#ifdef __cplusplus
27320}
27321#endif
John Criswell7a73b802003-06-30 21:59:07 +000027322
John Criswell7a73b802003-06-30 21:59:07 +000027323int
27324main ()
27325{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027326return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027327 ;
27328 return 0;
27329}
27330_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027331rm -f conftest.$ac_objext conftest$ac_exeext
27332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27333 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027334 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027335 grep -v '^ *+' conftest.er1 >conftest.err
27336 rm -f conftest.er1
27337 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27339 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027340 { ac_try='test -z "$ac_c_werror_flag"
27341 || test ! -s conftest.err'
27342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27343 (eval $ac_try) 2>&5
27344 ac_status=$?
27345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27346 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027347 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27349 (eval $ac_try) 2>&5
27350 ac_status=$?
27351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27352 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027353 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027354else
27355 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027356sed 's/^/| /' conftest.$ac_ext >&5
27357
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027358eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027359fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027360rm -f conftest.err conftest.$ac_objext \
27361 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027362fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27364echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27365if test `eval echo '${'$as_ac_var'}'` = yes; then
27366 cat >>confdefs.h <<_ACEOF
27367#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027368_ACEOF
27369
27370fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027371done
John Criswell7a73b802003-06-30 21:59:07 +000027372
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027373echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
27374echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000027375if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027376 echo $ECHO_N "(cached) $ECHO_C" >&6
27377else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027378 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027379ac_cpp='$CPP $CPPFLAGS'
27380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27382ac_compiler_gnu=$ac_cv_c_compiler_gnu
27383
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027384 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027385 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027386else
27387 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000027388
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027389 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000027390_ACEOF
27391cat confdefs.h >>conftest.$ac_ext
27392cat >>conftest.$ac_ext <<_ACEOF
27393/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000027394
John Criswella0137d32003-10-13 16:22:01 +000027395#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000027396#include <stdlib.h>
27397
John Criswella0137d32003-10-13 16:22:01 +000027398int
27399main ()
27400{
27401
Reid Spencer2706f8c2004-09-19 23:53:36 +000027402volatile double A, B;
27403char Buffer[100];
27404A = 1;
27405A /= 10.0;
27406sprintf(Buffer, "%a", A);
27407B = atof(Buffer);
27408if (A != B)
27409 return (1);
27410if (A != 0x1.999999999999ap-4)
27411 return (1);
27412return (0);
John Criswella0137d32003-10-13 16:22:01 +000027413 ;
27414 return 0;
27415}
27416_ACEOF
27417rm -f conftest$ac_exeext
27418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27419 (eval $ac_link) 2>&5
27420 ac_status=$?
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27424 (eval $ac_try) 2>&5
27425 ac_status=$?
27426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27427 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000027428 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000027429else
27430 echo "$as_me: program exited with status $ac_status" >&5
27431echo "$as_me: failed program was:" >&5
27432sed 's/^/| /' conftest.$ac_ext >&5
27433
27434( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000027435llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000027436fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027437rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000027438fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027439 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000027440ac_cpp='$CPP $CPPFLAGS'
27441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27443ac_compiler_gnu=$ac_cv_c_compiler_gnu
27444
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027445fi
Reid Spencer3be58f92004-11-27 22:01:43 +000027446echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
27447echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
27448 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000027449
27450cat >>confdefs.h <<\_ACEOF
27451#define HAVE_PRINTF_A 1
27452_ACEOF
27453
Reid Spencer2706f8c2004-09-19 23:53:36 +000027454 fi
John Criswella0137d32003-10-13 16:22:01 +000027455
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027456# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27457# for constant arguments. Useless!
27458echo "$as_me:$LINENO: checking for working alloca.h" >&5
27459echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27460if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000027461 echo $ECHO_N "(cached) $ECHO_C" >&6
27462else
John Criswell0021c312004-02-13 21:57:29 +000027463 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000027464/* confdefs.h. */
27465_ACEOF
27466cat confdefs.h >>conftest.$ac_ext
27467cat >>conftest.$ac_ext <<_ACEOF
27468/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027469#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000027470int
27471main ()
27472{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027473char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000027474 ;
27475 return 0;
27476}
27477_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027478rm -f conftest.$ac_objext conftest$ac_exeext
27479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27480 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000027481 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027482 grep -v '^ *+' conftest.er1 >conftest.err
27483 rm -f conftest.er1
27484 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000027485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27486 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027487 { ac_try='test -z "$ac_c_werror_flag"
27488 || test ! -s conftest.err'
27489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27490 (eval $ac_try) 2>&5
27491 ac_status=$?
27492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27493 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027494 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000027495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27496 (eval $ac_try) 2>&5
27497 ac_status=$?
27498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027500 ac_cv_working_alloca_h=yes
27501else
27502 echo "$as_me: failed program was:" >&5
27503sed 's/^/| /' conftest.$ac_ext >&5
27504
27505ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000027506fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027507rm -f conftest.err conftest.$ac_objext \
27508 conftest$ac_exeext conftest.$ac_ext
27509fi
27510echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27511echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27512if test $ac_cv_working_alloca_h = yes; then
27513
27514cat >>confdefs.h <<\_ACEOF
27515#define HAVE_ALLOCA_H 1
27516_ACEOF
27517
27518fi
27519
27520echo "$as_me:$LINENO: checking for alloca" >&5
27521echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27522if test "${ac_cv_func_alloca_works+set}" = set; then
27523 echo $ECHO_N "(cached) $ECHO_C" >&6
27524else
27525 cat >conftest.$ac_ext <<_ACEOF
27526/* confdefs.h. */
27527_ACEOF
27528cat confdefs.h >>conftest.$ac_ext
27529cat >>conftest.$ac_ext <<_ACEOF
27530/* end confdefs.h. */
27531#ifdef __GNUC__
27532# define alloca __builtin_alloca
27533#else
27534# ifdef _MSC_VER
27535# include <malloc.h>
27536# define alloca _alloca
27537# else
27538# if HAVE_ALLOCA_H
27539# include <alloca.h>
27540# else
27541# ifdef _AIX
27542 #pragma alloca
27543# else
27544# ifndef alloca /* predefined by HP cc +Olibcalls */
27545char *alloca ();
27546# endif
27547# endif
27548# endif
27549# endif
27550#endif
27551
27552int
27553main ()
27554{
27555char *p = (char *) alloca (1);
27556 ;
27557 return 0;
27558}
27559_ACEOF
27560rm -f conftest.$ac_objext conftest$ac_exeext
27561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27562 (eval $ac_link) 2>conftest.er1
27563 ac_status=$?
27564 grep -v '^ *+' conftest.er1 >conftest.err
27565 rm -f conftest.er1
27566 cat conftest.err >&5
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); } &&
27569 { ac_try='test -z "$ac_c_werror_flag"
27570 || test ! -s conftest.err'
27571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27572 (eval $ac_try) 2>&5
27573 ac_status=$?
27574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27575 (exit $ac_status); }; } &&
27576 { ac_try='test -s conftest$ac_exeext'
27577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27578 (eval $ac_try) 2>&5
27579 ac_status=$?
27580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581 (exit $ac_status); }; }; then
27582 ac_cv_func_alloca_works=yes
27583else
27584 echo "$as_me: failed program was:" >&5
27585sed 's/^/| /' conftest.$ac_ext >&5
27586
27587ac_cv_func_alloca_works=no
27588fi
27589rm -f conftest.err conftest.$ac_objext \
27590 conftest$ac_exeext conftest.$ac_ext
27591fi
27592echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27593echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27594
27595if test $ac_cv_func_alloca_works = yes; then
27596
27597cat >>confdefs.h <<\_ACEOF
27598#define HAVE_ALLOCA 1
27599_ACEOF
27600
27601else
27602 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27603# that cause trouble. Some versions do not even contain alloca or
27604# contain a buggy version. If you still want to use their alloca,
27605# use ar to extract alloca.o from them instead of compiling alloca.c.
27606
27607ALLOCA=alloca.$ac_objext
27608
27609cat >>confdefs.h <<\_ACEOF
27610#define C_ALLOCA 1
27611_ACEOF
27612
27613
27614echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27615echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27616if test "${ac_cv_os_cray+set}" = set; then
27617 echo $ECHO_N "(cached) $ECHO_C" >&6
27618else
27619 cat >conftest.$ac_ext <<_ACEOF
27620/* confdefs.h. */
27621_ACEOF
27622cat confdefs.h >>conftest.$ac_ext
27623cat >>conftest.$ac_ext <<_ACEOF
27624/* end confdefs.h. */
27625#if defined(CRAY) && ! defined(CRAY2)
27626webecray
27627#else
27628wenotbecray
27629#endif
27630
27631_ACEOF
27632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27633 $EGREP "webecray" >/dev/null 2>&1; then
27634 ac_cv_os_cray=yes
27635else
27636 ac_cv_os_cray=no
27637fi
27638rm -f conftest*
27639
27640fi
27641echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27642echo "${ECHO_T}$ac_cv_os_cray" >&6
27643if test $ac_cv_os_cray = yes; then
27644 for ac_func in _getb67 GETB67 getb67; do
27645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27646echo "$as_me:$LINENO: checking for $ac_func" >&5
27647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27648if eval "test \"\${$as_ac_var+set}\" = set"; then
27649 echo $ECHO_N "(cached) $ECHO_C" >&6
27650else
27651 cat >conftest.$ac_ext <<_ACEOF
27652/* confdefs.h. */
27653_ACEOF
27654cat confdefs.h >>conftest.$ac_ext
27655cat >>conftest.$ac_ext <<_ACEOF
27656/* end confdefs.h. */
27657/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27659#define $ac_func innocuous_$ac_func
27660
27661/* System header to define __stub macros and hopefully few prototypes,
27662 which can conflict with char $ac_func (); below.
27663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27664 <limits.h> exists even on freestanding compilers. */
27665
27666#ifdef __STDC__
27667# include <limits.h>
27668#else
27669# include <assert.h>
27670#endif
27671
27672#undef $ac_func
27673
27674/* Override any gcc2 internal prototype to avoid an error. */
27675#ifdef __cplusplus
27676extern "C"
27677{
27678#endif
27679/* We use char because int might match the return type of a gcc2
27680 builtin and then its argument prototype would still apply. */
27681char $ac_func ();
27682/* The GNU C library defines this for functions which it implements
27683 to always fail with ENOSYS. Some functions are actually named
27684 something starting with __ and the normal name is an alias. */
27685#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27686choke me
27687#else
27688char (*f) () = $ac_func;
27689#endif
27690#ifdef __cplusplus
27691}
27692#endif
27693
27694int
27695main ()
27696{
27697return f != $ac_func;
27698 ;
27699 return 0;
27700}
27701_ACEOF
27702rm -f conftest.$ac_objext conftest$ac_exeext
27703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27704 (eval $ac_link) 2>conftest.er1
27705 ac_status=$?
27706 grep -v '^ *+' conftest.er1 >conftest.err
27707 rm -f conftest.er1
27708 cat conftest.err >&5
27709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); } &&
27711 { ac_try='test -z "$ac_c_werror_flag"
27712 || test ! -s conftest.err'
27713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27714 (eval $ac_try) 2>&5
27715 ac_status=$?
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); }; } &&
27718 { ac_try='test -s conftest$ac_exeext'
27719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27721 ac_status=$?
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; }; then
27724 eval "$as_ac_var=yes"
27725else
27726 echo "$as_me: failed program was:" >&5
27727sed 's/^/| /' conftest.$ac_ext >&5
27728
27729eval "$as_ac_var=no"
27730fi
27731rm -f conftest.err conftest.$ac_objext \
27732 conftest$ac_exeext conftest.$ac_ext
27733fi
27734echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27735echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27736if test `eval echo '${'$as_ac_var'}'` = yes; then
27737
27738cat >>confdefs.h <<_ACEOF
27739#define CRAY_STACKSEG_END $ac_func
27740_ACEOF
27741
27742 break
27743fi
27744
27745 done
27746fi
27747
27748echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27749echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27750if test "${ac_cv_c_stack_direction+set}" = set; then
27751 echo $ECHO_N "(cached) $ECHO_C" >&6
27752else
27753 if test "$cross_compiling" = yes; then
27754 ac_cv_c_stack_direction=0
27755else
27756 cat >conftest.$ac_ext <<_ACEOF
27757/* confdefs.h. */
27758_ACEOF
27759cat confdefs.h >>conftest.$ac_ext
27760cat >>conftest.$ac_ext <<_ACEOF
27761/* end confdefs.h. */
27762int
27763find_stack_direction ()
27764{
27765 static char *addr = 0;
27766 auto char dummy;
27767 if (addr == 0)
27768 {
27769 addr = &dummy;
27770 return find_stack_direction ();
27771 }
John Criswell0021c312004-02-13 21:57:29 +000027772 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027773 return (&dummy > addr) ? 1 : -1;
27774}
John Criswell0021c312004-02-13 21:57:29 +000027775
John Criswell0021c312004-02-13 21:57:29 +000027776int
27777main ()
27778{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027779 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000027780}
27781_ACEOF
27782rm -f conftest$ac_exeext
27783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27784 (eval $ac_link) 2>&5
27785 ac_status=$?
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27789 (eval $ac_try) 2>&5
27790 ac_status=$?
27791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27792 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027793 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000027794else
27795 echo "$as_me: program exited with status $ac_status" >&5
27796echo "$as_me: failed program was:" >&5
27797sed 's/^/| /' conftest.$ac_ext >&5
27798
27799( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027800ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000027801fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027802rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000027803fi
27804fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027805echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27806echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27807
27808cat >>confdefs.h <<_ACEOF
27809#define STACK_DIRECTION $ac_cv_c_stack_direction
27810_ACEOF
27811
27812
John Criswell0021c312004-02-13 21:57:29 +000027813fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027814
27815
27816echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27817echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27818if test "${ac_cv_func_rand48+set}" = set; then
27819 echo $ECHO_N "(cached) $ECHO_C" >&6
27820else
27821 ac_ext=cc
27822ac_cpp='$CXXCPP $CPPFLAGS'
27823ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27824ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27825ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27826
27827 cat >conftest.$ac_ext <<_ACEOF
27828/* confdefs.h. */
27829_ACEOF
27830cat confdefs.h >>conftest.$ac_ext
27831cat >>conftest.$ac_ext <<_ACEOF
27832/* end confdefs.h. */
27833#include <stdlib.h>
27834int
27835main ()
27836{
27837srand48(0);lrand48();drand48();
27838 ;
27839 return 0;
27840}
27841_ACEOF
27842rm -f conftest.$ac_objext
27843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27844 (eval $ac_compile) 2>conftest.er1
27845 ac_status=$?
27846 grep -v '^ *+' conftest.er1 >conftest.err
27847 rm -f conftest.er1
27848 cat conftest.err >&5
27849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850 (exit $ac_status); } &&
27851 { ac_try='test -z "$ac_cxx_werror_flag"
27852 || test ! -s conftest.err'
27853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27854 (eval $ac_try) 2>&5
27855 ac_status=$?
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); }; } &&
27858 { ac_try='test -s conftest.$ac_objext'
27859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27860 (eval $ac_try) 2>&5
27861 ac_status=$?
27862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27863 (exit $ac_status); }; }; then
27864 ac_cv_func_rand48=yes
27865else
27866 echo "$as_me: failed program was:" >&5
27867sed 's/^/| /' conftest.$ac_ext >&5
27868
27869ac_cv_func_rand48=no
27870fi
27871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27872 ac_ext=c
27873ac_cpp='$CPP $CPPFLAGS'
27874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27876ac_compiler_gnu=$ac_cv_c_compiler_gnu
27877
27878fi
27879echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27880echo "${ECHO_T}$ac_cv_func_rand48" >&6
27881
27882if test "$ac_cv_func_rand48" = "yes" ; then
27883
27884cat >>confdefs.h <<\_ACEOF
27885#define HAVE_RAND48 1
27886_ACEOF
27887
27888fi
John Criswell0021c312004-02-13 21:57:29 +000027889
27890
John Criswell7a73b802003-06-30 21:59:07 +000027891echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27892echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27893if test "${ac_cv_cxx_namespaces+set}" = set; then
27894 echo $ECHO_N "(cached) $ECHO_C" >&6
27895else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027896 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000027897ac_cpp='$CXXCPP $CPPFLAGS'
27898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27901
27902 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027903/* confdefs.h. */
27904_ACEOF
27905cat confdefs.h >>conftest.$ac_ext
27906cat >>conftest.$ac_ext <<_ACEOF
27907/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027908namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000027909int
27910main ()
27911{
27912using namespace Outer::Inner; return i;
27913 ;
27914 return 0;
27915}
27916_ACEOF
27917rm -f conftest.$ac_objext
27918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027919 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027920 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027921 grep -v '^ *+' conftest.er1 >conftest.err
27922 rm -f conftest.er1
27923 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027926 { ac_try='test -z "$ac_cxx_werror_flag"
27927 || test ! -s conftest.err'
27928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27929 (eval $ac_try) 2>&5
27930 ac_status=$?
27931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27932 (exit $ac_status); }; } &&
27933 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27935 (eval $ac_try) 2>&5
27936 ac_status=$?
27937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27938 (exit $ac_status); }; }; then
27939 ac_cv_cxx_namespaces=yes
27940else
27941 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027942sed 's/^/| /' conftest.$ac_ext >&5
27943
John Criswell7a73b802003-06-30 21:59:07 +000027944ac_cv_cxx_namespaces=no
27945fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027947 ac_ext=c
27948ac_cpp='$CPP $CPPFLAGS'
27949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27951ac_compiler_gnu=$ac_cv_c_compiler_gnu
27952
27953
27954fi
27955echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27956echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27957if test "$ac_cv_cxx_namespaces" = yes; then
27958
27959cat >>confdefs.h <<\_ACEOF
27960#define HAVE_NAMESPACES
27961_ACEOF
27962
27963fi
27964
Brian Gaeke90583492003-11-10 03:06:28 +000027965echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27966echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27967if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027968 echo $ECHO_N "(cached) $ECHO_C" >&6
27969else
27970
John Criswell7a73b802003-06-30 21:59:07 +000027971 ac_ext=cc
27972ac_cpp='$CXXCPP $CPPFLAGS'
27973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27976
27977 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027978/* confdefs.h. */
27979_ACEOF
27980cat confdefs.h >>conftest.$ac_ext
27981cat >>conftest.$ac_ext <<_ACEOF
27982/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027983#include <ext/hash_map>
27984#ifdef HAVE_NAMESPACES
27985using namespace std;
27986#endif
John Criswell7a73b802003-06-30 21:59:07 +000027987int
27988main ()
27989{
Brian Gaeke90583492003-11-10 03:06:28 +000027990hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027991 ;
27992 return 0;
27993}
27994_ACEOF
27995rm -f conftest.$ac_objext
27996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027997 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027998 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027999 grep -v '^ *+' conftest.er1 >conftest.err
28000 rm -f conftest.er1
28001 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28003 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028004 { ac_try='test -z "$ac_cxx_werror_flag"
28005 || test ! -s conftest.err'
28006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28007 (eval $ac_try) 2>&5
28008 ac_status=$?
28009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010 (exit $ac_status); }; } &&
28011 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28013 (eval $ac_try) 2>&5
28014 ac_status=$?
28015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28016 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028017 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028018else
28019 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028020sed 's/^/| /' conftest.$ac_ext >&5
28021
Brian Gaeke90583492003-11-10 03:06:28 +000028022ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028023fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028025 ac_ext=c
28026ac_cpp='$CPP $CPPFLAGS'
28027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28029ac_compiler_gnu=$ac_cv_c_compiler_gnu
28030
John Criswell7a73b802003-06-30 21:59:07 +000028031fi
Brian Gaeke90583492003-11-10 03:06:28 +000028032echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28033echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028034 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28035 then
John Criswell9f011862004-09-24 18:28:00 +000028036
28037cat >>confdefs.h <<\_ACEOF
28038#define HAVE_STD_EXT_HASH_MAP 1
28039_ACEOF
28040
28041 else
28042
28043cat >>confdefs.h <<\_ACEOF
28044#define HAVE_STD_EXT_HASH_MAP 0
28045_ACEOF
28046
Brian Gaeke90583492003-11-10 03:06:28 +000028047 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028048
Brian Gaeke90583492003-11-10 03:06:28 +000028049 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28050echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28051if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28052 echo $ECHO_N "(cached) $ECHO_C" >&6
28053else
28054
Brian Gaeke90583492003-11-10 03:06:28 +000028055 ac_ext=cc
28056ac_cpp='$CXXCPP $CPPFLAGS'
28057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28060
28061 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028062/* confdefs.h. */
28063_ACEOF
28064cat confdefs.h >>conftest.$ac_ext
28065cat >>conftest.$ac_ext <<_ACEOF
28066/* end confdefs.h. */
28067#include <ext/hash_map>
28068#ifdef HAVE_NAMESPACES
28069using namespace __gnu_cxx;
28070#endif
28071int
28072main ()
28073{
28074hash_map<int,int> t;
28075 ;
28076 return 0;
28077}
28078_ACEOF
28079rm -f conftest.$ac_objext
28080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028081 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028082 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028083 grep -v '^ *+' conftest.er1 >conftest.err
28084 rm -f conftest.er1
28085 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028088 { ac_try='test -z "$ac_cxx_werror_flag"
28089 || test ! -s conftest.err'
28090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28091 (eval $ac_try) 2>&5
28092 ac_status=$?
28093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28094 (exit $ac_status); }; } &&
28095 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28097 (eval $ac_try) 2>&5
28098 ac_status=$?
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); }; }; then
28101 ac_cv_cxx_have_gnu_ext_hash_map=yes
28102else
28103 echo "$as_me: failed program was:" >&5
28104sed 's/^/| /' conftest.$ac_ext >&5
28105
28106ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028107fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028109 ac_ext=c
28110ac_cpp='$CPP $CPPFLAGS'
28111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28113ac_compiler_gnu=$ac_cv_c_compiler_gnu
28114
28115fi
28116echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28117echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028118 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28119 then
John Criswell9f011862004-09-24 18:28:00 +000028120
28121cat >>confdefs.h <<\_ACEOF
28122#define HAVE_GNU_EXT_HASH_MAP 1
28123_ACEOF
28124
28125 else
28126
28127cat >>confdefs.h <<\_ACEOF
28128#define HAVE_GNU_EXT_HASH_MAP 0
28129_ACEOF
28130
Brian Gaeke90583492003-11-10 03:06:28 +000028131 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028132
Brian Gaeke90583492003-11-10 03:06:28 +000028133 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28134echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28135if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28136 echo $ECHO_N "(cached) $ECHO_C" >&6
28137else
John Criswell7a73b802003-06-30 21:59:07 +000028138
Brian Gaeke90583492003-11-10 03:06:28 +000028139 ac_ext=cc
28140ac_cpp='$CXXCPP $CPPFLAGS'
28141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28144
28145 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028146/* confdefs.h. */
28147_ACEOF
28148cat confdefs.h >>conftest.$ac_ext
28149cat >>conftest.$ac_ext <<_ACEOF
28150/* end confdefs.h. */
28151#include <hash_map>
28152int
28153main ()
28154{
28155hash_map<int,int> t;
28156 ;
28157 return 0;
28158}
28159_ACEOF
28160rm -f conftest.$ac_objext
28161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028162 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028163 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028164 grep -v '^ *+' conftest.er1 >conftest.err
28165 rm -f conftest.er1
28166 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028169 { ac_try='test -z "$ac_cxx_werror_flag"
28170 || test ! -s conftest.err'
28171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28172 (eval $ac_try) 2>&5
28173 ac_status=$?
28174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28175 (exit $ac_status); }; } &&
28176 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28178 (eval $ac_try) 2>&5
28179 ac_status=$?
28180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181 (exit $ac_status); }; }; then
28182 ac_cv_cxx_have_global_hash_map=yes
28183else
28184 echo "$as_me: failed program was:" >&5
28185sed 's/^/| /' conftest.$ac_ext >&5
28186
28187ac_cv_cxx_have_global_hash_map=no
28188fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028190 ac_ext=c
28191ac_cpp='$CPP $CPPFLAGS'
28192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28194ac_compiler_gnu=$ac_cv_c_compiler_gnu
28195
28196fi
28197echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28198echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028199 if test "$ac_cv_cxx_have_global_hash_map" = yes
28200 then
John Criswell9f011862004-09-24 18:28:00 +000028201
28202cat >>confdefs.h <<\_ACEOF
28203#define HAVE_GLOBAL_HASH_MAP 1
28204_ACEOF
28205
28206 else
28207
28208cat >>confdefs.h <<\_ACEOF
28209#define HAVE_GLOBAL_HASH_MAP 0
28210_ACEOF
28211
Brian Gaeke90583492003-11-10 03:06:28 +000028212 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028213
Brian Gaeke90583492003-11-10 03:06:28 +000028214echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28215echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28216if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028217 echo $ECHO_N "(cached) $ECHO_C" >&6
28218else
28219
John Criswell7a73b802003-06-30 21:59:07 +000028220 ac_ext=cc
28221ac_cpp='$CXXCPP $CPPFLAGS'
28222ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28223ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28224ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28225
28226 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028227/* confdefs.h. */
28228_ACEOF
28229cat confdefs.h >>conftest.$ac_ext
28230cat >>conftest.$ac_ext <<_ACEOF
28231/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028232#include <ext/hash_set>
28233#ifdef HAVE_NAMESPACES
28234using namespace std;
28235#endif
John Criswell7a73b802003-06-30 21:59:07 +000028236int
28237main ()
28238{
Brian Gaeke90583492003-11-10 03:06:28 +000028239hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028240 ;
28241 return 0;
28242}
28243_ACEOF
28244rm -f conftest.$ac_objext
28245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028246 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028247 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028248 grep -v '^ *+' conftest.er1 >conftest.err
28249 rm -f conftest.er1
28250 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028253 { ac_try='test -z "$ac_cxx_werror_flag"
28254 || test ! -s conftest.err'
28255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28256 (eval $ac_try) 2>&5
28257 ac_status=$?
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); }; } &&
28260 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28262 (eval $ac_try) 2>&5
28263 ac_status=$?
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028266 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028267else
28268 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028269sed 's/^/| /' conftest.$ac_ext >&5
28270
Brian Gaeke90583492003-11-10 03:06:28 +000028271ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028272fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028274 ac_ext=c
28275ac_cpp='$CPP $CPPFLAGS'
28276ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28277ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28278ac_compiler_gnu=$ac_cv_c_compiler_gnu
28279
28280fi
28281echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
28282echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028283 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
28284 then
John Criswell9f011862004-09-24 18:28:00 +000028285
28286cat >>confdefs.h <<\_ACEOF
28287#define HAVE_STD_EXT_HASH_SET 1
28288_ACEOF
28289
28290 else
28291
28292cat >>confdefs.h <<\_ACEOF
28293#define HAVE_STD_EXT_HASH_SET 0
28294_ACEOF
28295
Brian Gaeke90583492003-11-10 03:06:28 +000028296 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028297
Brian Gaeke90583492003-11-10 03:06:28 +000028298 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
28299echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
28300if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
28301 echo $ECHO_N "(cached) $ECHO_C" >&6
28302else
28303
Brian Gaeke90583492003-11-10 03:06:28 +000028304 ac_ext=cc
28305ac_cpp='$CXXCPP $CPPFLAGS'
28306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28309
John Criswell7a73b802003-06-30 21:59:07 +000028310 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028311/* confdefs.h. */
28312_ACEOF
28313cat confdefs.h >>conftest.$ac_ext
28314cat >>conftest.$ac_ext <<_ACEOF
28315/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028316#include <ext/hash_set>
28317#ifdef HAVE_NAMESPACES
28318using namespace __gnu_cxx;
28319#endif
John Criswell7a73b802003-06-30 21:59:07 +000028320int
28321main ()
28322{
Brian Gaeke90583492003-11-10 03:06:28 +000028323hash_set<int> t;
28324 ;
28325 return 0;
28326}
28327_ACEOF
28328rm -f conftest.$ac_objext
28329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028330 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028331 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028332 grep -v '^ *+' conftest.er1 >conftest.err
28333 rm -f conftest.er1
28334 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028337 { ac_try='test -z "$ac_cxx_werror_flag"
28338 || test ! -s conftest.err'
28339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28340 (eval $ac_try) 2>&5
28341 ac_status=$?
28342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28343 (exit $ac_status); }; } &&
28344 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28346 (eval $ac_try) 2>&5
28347 ac_status=$?
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); }; }; then
28350 ac_cv_cxx_have_gnu_ext_hash_set=yes
28351else
28352 echo "$as_me: failed program was:" >&5
28353sed 's/^/| /' conftest.$ac_ext >&5
28354
28355ac_cv_cxx_have_gnu_ext_hash_set=no
28356fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028358 ac_ext=c
28359ac_cpp='$CPP $CPPFLAGS'
28360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28362ac_compiler_gnu=$ac_cv_c_compiler_gnu
28363
28364fi
28365echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
28366echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028367 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
28368 then
John Criswell9f011862004-09-24 18:28:00 +000028369
28370cat >>confdefs.h <<\_ACEOF
28371#define HAVE_GNU_EXT_HASH_SET 1
28372_ACEOF
28373
28374 else
28375
28376cat >>confdefs.h <<\_ACEOF
28377#define HAVE_GNU_EXT_HASH_SET 0
28378_ACEOF
28379
Brian Gaeke90583492003-11-10 03:06:28 +000028380 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028381
Brian Gaeke90583492003-11-10 03:06:28 +000028382 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
28383echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
28384if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
28385 echo $ECHO_N "(cached) $ECHO_C" >&6
28386else
28387
Brian Gaeke90583492003-11-10 03:06:28 +000028388 ac_ext=cc
28389ac_cpp='$CXXCPP $CPPFLAGS'
28390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28393
28394 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028395/* confdefs.h. */
28396_ACEOF
28397cat confdefs.h >>conftest.$ac_ext
28398cat >>conftest.$ac_ext <<_ACEOF
28399/* end confdefs.h. */
28400#include <hash_set>
28401int
28402main ()
28403{
John Criswell7a73b802003-06-30 21:59:07 +000028404hash_set<int> t; return 0;
28405 ;
28406 return 0;
28407}
28408_ACEOF
28409rm -f conftest.$ac_objext
28410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028411 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028412 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028413 grep -v '^ *+' conftest.er1 >conftest.err
28414 rm -f conftest.er1
28415 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28417 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028418 { ac_try='test -z "$ac_cxx_werror_flag"
28419 || test ! -s conftest.err'
28420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28421 (eval $ac_try) 2>&5
28422 ac_status=$?
28423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424 (exit $ac_status); }; } &&
28425 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28427 (eval $ac_try) 2>&5
28428 ac_status=$?
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028431 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028432else
28433 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028434sed 's/^/| /' conftest.$ac_ext >&5
28435
Brian Gaeke90583492003-11-10 03:06:28 +000028436ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028437fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028439 ac_ext=c
28440ac_cpp='$CPP $CPPFLAGS'
28441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28443ac_compiler_gnu=$ac_cv_c_compiler_gnu
28444
John Criswell7a73b802003-06-30 21:59:07 +000028445fi
Brian Gaeke90583492003-11-10 03:06:28 +000028446echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
28447echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028448 if test "$ac_cv_cxx_have_global_hash_set" = yes
28449 then
John Criswell9f011862004-09-24 18:28:00 +000028450
28451cat >>confdefs.h <<\_ACEOF
28452#define HAVE_GLOBAL_HASH_SET 1
28453_ACEOF
28454
28455 else
28456
28457cat >>confdefs.h <<\_ACEOF
28458#define HAVE_GLOBAL_HASH_SET 0
28459_ACEOF
28460
Brian Gaeke90583492003-11-10 03:06:28 +000028461 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028462
John Criswell7a73b802003-06-30 21:59:07 +000028463echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
28464echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
28465if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
28466 echo $ECHO_N "(cached) $ECHO_C" >&6
28467else
28468
John Criswell7a73b802003-06-30 21:59:07 +000028469 ac_ext=cc
28470ac_cpp='$CXXCPP $CPPFLAGS'
28471ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28472ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28473ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28474
28475 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028476/* confdefs.h. */
28477_ACEOF
28478cat confdefs.h >>conftest.$ac_ext
28479cat >>conftest.$ac_ext <<_ACEOF
28480/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028481#include <iterator>
28482#ifdef HAVE_NAMESPACES
28483using namespace std;
28484#endif
John Criswell7a73b802003-06-30 21:59:07 +000028485int
28486main ()
28487{
28488iterator<int,int,int> t; return 0;
28489 ;
28490 return 0;
28491}
28492_ACEOF
28493rm -f conftest.$ac_objext
28494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028495 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028496 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028497 grep -v '^ *+' conftest.er1 >conftest.err
28498 rm -f conftest.er1
28499 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28501 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028502 { ac_try='test -z "$ac_cxx_werror_flag"
28503 || test ! -s conftest.err'
28504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28505 (eval $ac_try) 2>&5
28506 ac_status=$?
28507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28508 (exit $ac_status); }; } &&
28509 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28511 (eval $ac_try) 2>&5
28512 ac_status=$?
28513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28514 (exit $ac_status); }; }; then
28515 ac_cv_cxx_have_std_iterator=yes
28516else
28517 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028518sed 's/^/| /' conftest.$ac_ext >&5
28519
John Criswell7a73b802003-06-30 21:59:07 +000028520ac_cv_cxx_have_std_iterator=no
28521fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028523 ac_ext=c
28524ac_cpp='$CPP $CPPFLAGS'
28525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28527ac_compiler_gnu=$ac_cv_c_compiler_gnu
28528
28529
28530fi
28531echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
28532echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028533if test "$ac_cv_cxx_have_std_iterator" = yes
28534then
John Criswell40468462004-09-24 21:19:06 +000028535
28536cat >>confdefs.h <<\_ACEOF
28537#define HAVE_STD_ITERATOR 1
28538_ACEOF
28539
28540else
28541
28542cat >>confdefs.h <<\_ACEOF
28543#define HAVE_STD_ITERATOR 0
28544_ACEOF
28545
John Criswell7a73b802003-06-30 21:59:07 +000028546fi
28547
28548echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28549echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28550if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28551 echo $ECHO_N "(cached) $ECHO_C" >&6
28552else
28553
John Criswell7a73b802003-06-30 21:59:07 +000028554 ac_ext=cc
28555ac_cpp='$CXXCPP $CPPFLAGS'
28556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28559
28560 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028561/* confdefs.h. */
28562_ACEOF
28563cat confdefs.h >>conftest.$ac_ext
28564cat >>conftest.$ac_ext <<_ACEOF
28565/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028566#include <iterator>
28567#ifdef HAVE_NAMESPACES
28568using namespace std;
28569#endif
John Criswell7a73b802003-06-30 21:59:07 +000028570int
28571main ()
28572{
John Criswellc78022e2003-07-29 19:11:58 +000028573bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028574 ;
28575 return 0;
28576}
28577_ACEOF
28578rm -f conftest.$ac_objext
28579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028580 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028581 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028582 grep -v '^ *+' conftest.er1 >conftest.err
28583 rm -f conftest.er1
28584 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28586 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028587 { ac_try='test -z "$ac_cxx_werror_flag"
28588 || test ! -s conftest.err'
28589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28590 (eval $ac_try) 2>&5
28591 ac_status=$?
28592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 (exit $ac_status); }; } &&
28594 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28596 (eval $ac_try) 2>&5
28597 ac_status=$?
28598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599 (exit $ac_status); }; }; then
28600 ac_cv_cxx_have_bi_iterator=yes
28601else
28602 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028603sed 's/^/| /' conftest.$ac_ext >&5
28604
John Criswell7a73b802003-06-30 21:59:07 +000028605ac_cv_cxx_have_bi_iterator=no
28606fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028608 ac_ext=c
28609ac_cpp='$CPP $CPPFLAGS'
28610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28612ac_compiler_gnu=$ac_cv_c_compiler_gnu
28613
28614
28615fi
28616echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28617echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028618if test "$ac_cv_cxx_have_bi_iterator" = yes
28619then
John Criswell40468462004-09-24 21:19:06 +000028620
28621cat >>confdefs.h <<\_ACEOF
28622#define HAVE_BI_ITERATOR 1
28623_ACEOF
28624
28625else
28626
28627cat >>confdefs.h <<\_ACEOF
28628#define HAVE_BI_ITERATOR 0
28629_ACEOF
28630
John Criswell7a73b802003-06-30 21:59:07 +000028631fi
28632
28633echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28634echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28635if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28636 echo $ECHO_N "(cached) $ECHO_C" >&6
28637else
28638
John Criswell7a73b802003-06-30 21:59:07 +000028639 ac_ext=cc
28640ac_cpp='$CXXCPP $CPPFLAGS'
28641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28644
28645 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028646/* confdefs.h. */
28647_ACEOF
28648cat confdefs.h >>conftest.$ac_ext
28649cat >>conftest.$ac_ext <<_ACEOF
28650/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028651#include <iterator>
28652#ifdef HAVE_NAMESPACES
28653using namespace std;
28654#endif
John Criswell7a73b802003-06-30 21:59:07 +000028655int
28656main ()
28657{
John Criswellc78022e2003-07-29 19:11:58 +000028658forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028659 ;
28660 return 0;
28661}
28662_ACEOF
28663rm -f conftest.$ac_objext
28664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028665 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028666 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028667 grep -v '^ *+' conftest.er1 >conftest.err
28668 rm -f conftest.er1
28669 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028672 { ac_try='test -z "$ac_cxx_werror_flag"
28673 || test ! -s conftest.err'
28674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28675 (eval $ac_try) 2>&5
28676 ac_status=$?
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); }; } &&
28679 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28681 (eval $ac_try) 2>&5
28682 ac_status=$?
28683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684 (exit $ac_status); }; }; then
28685 ac_cv_cxx_have_fwd_iterator=yes
28686else
28687 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028688sed 's/^/| /' conftest.$ac_ext >&5
28689
John Criswell7a73b802003-06-30 21:59:07 +000028690ac_cv_cxx_have_fwd_iterator=no
28691fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028693 ac_ext=c
28694ac_cpp='$CPP $CPPFLAGS'
28695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28697ac_compiler_gnu=$ac_cv_c_compiler_gnu
28698
28699
28700fi
28701echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28702echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028703if test "$ac_cv_cxx_have_fwd_iterator" = yes
28704then
John Criswell40468462004-09-24 21:19:06 +000028705
28706cat >>confdefs.h <<\_ACEOF
28707#define HAVE_FWD_ITERATOR 1
28708_ACEOF
28709
28710else
28711
28712cat >>confdefs.h <<\_ACEOF
28713#define HAVE_FWD_ITERATOR 0
28714_ACEOF
28715
John Criswell7a73b802003-06-30 21:59:07 +000028716fi
28717
28718
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028719echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28720echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28721if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28722 echo $ECHO_N "(cached) $ECHO_C" >&6
28723else
28724 ac_ext=cc
28725ac_cpp='$CXXCPP $CPPFLAGS'
28726ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28727ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28728ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28729
Reid Spencerabec8f92004-10-27 23:03:44 +000028730 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028731/* confdefs.h. */
28732_ACEOF
28733cat confdefs.h >>conftest.$ac_ext
28734cat >>conftest.$ac_ext <<_ACEOF
28735/* end confdefs.h. */
28736#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028737int
28738main ()
28739{
28740float f; isnan(f);
28741 ;
28742 return 0;
28743}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028744_ACEOF
28745rm -f conftest.$ac_objext
28746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028747 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028748 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028749 grep -v '^ *+' conftest.er1 >conftest.err
28750 rm -f conftest.er1
28751 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028754 { ac_try='test -z "$ac_cxx_werror_flag"
28755 || test ! -s conftest.err'
28756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28757 (eval $ac_try) 2>&5
28758 ac_status=$?
28759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28760 (exit $ac_status); }; } &&
28761 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28763 (eval $ac_try) 2>&5
28764 ac_status=$?
28765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28766 (exit $ac_status); }; }; then
28767 ac_cv_func_isnan_in_math_h=yes
28768else
28769 echo "$as_me: failed program was:" >&5
28770sed 's/^/| /' conftest.$ac_ext >&5
28771
28772ac_cv_func_isnan_in_math_h=no
28773fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028775 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028776ac_cpp='$CPP $CPPFLAGS'
28777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28779ac_compiler_gnu=$ac_cv_c_compiler_gnu
28780
28781fi
28782echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28783echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028784
28785
28786if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028787
28788cat >>confdefs.h <<\_ACEOF
28789#define HAVE_ISNAN_IN_MATH_H 1
28790_ACEOF
28791
Reid Spencerabec8f92004-10-27 23:03:44 +000028792fi
28793
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028794echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28795echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28796if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28797 echo $ECHO_N "(cached) $ECHO_C" >&6
28798else
28799 ac_ext=cc
28800ac_cpp='$CXXCPP $CPPFLAGS'
28801ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28802ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28803ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28804
Reid Spencerabec8f92004-10-27 23:03:44 +000028805 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028806/* confdefs.h. */
28807_ACEOF
28808cat confdefs.h >>conftest.$ac_ext
28809cat >>conftest.$ac_ext <<_ACEOF
28810/* end confdefs.h. */
28811#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028812int
28813main ()
28814{
28815float f; isnan(f);
28816 ;
28817 return 0;
28818}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028819_ACEOF
28820rm -f conftest.$ac_objext
28821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028822 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028823 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028824 grep -v '^ *+' conftest.er1 >conftest.err
28825 rm -f conftest.er1
28826 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028829 { ac_try='test -z "$ac_cxx_werror_flag"
28830 || test ! -s conftest.err'
28831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28832 (eval $ac_try) 2>&5
28833 ac_status=$?
28834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835 (exit $ac_status); }; } &&
28836 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28838 (eval $ac_try) 2>&5
28839 ac_status=$?
28840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841 (exit $ac_status); }; }; then
28842 ac_cv_func_isnan_in_cmath=yes
28843else
28844 echo "$as_me: failed program was:" >&5
28845sed 's/^/| /' conftest.$ac_ext >&5
28846
28847ac_cv_func_isnan_in_cmath=no
28848fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028850 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028851ac_cpp='$CPP $CPPFLAGS'
28852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28854ac_compiler_gnu=$ac_cv_c_compiler_gnu
28855
28856fi
28857echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28858echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028859
28860if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028861
28862cat >>confdefs.h <<\_ACEOF
28863#define HAVE_ISNAN_IN_CMATH 1
28864_ACEOF
28865
Reid Spencerabec8f92004-10-27 23:03:44 +000028866fi
28867
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028868echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28869echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28870if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28871 echo $ECHO_N "(cached) $ECHO_C" >&6
28872else
28873 ac_ext=cc
28874ac_cpp='$CXXCPP $CPPFLAGS'
28875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28878
Reid Spencerabec8f92004-10-27 23:03:44 +000028879 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028880/* confdefs.h. */
28881_ACEOF
28882cat confdefs.h >>conftest.$ac_ext
28883cat >>conftest.$ac_ext <<_ACEOF
28884/* end confdefs.h. */
28885#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028886int
28887main ()
28888{
28889float f; std::isnan(f);
28890 ;
28891 return 0;
28892}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028893_ACEOF
28894rm -f conftest.$ac_objext
28895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028896 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028897 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028898 grep -v '^ *+' conftest.er1 >conftest.err
28899 rm -f conftest.er1
28900 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028903 { ac_try='test -z "$ac_cxx_werror_flag"
28904 || test ! -s conftest.err'
28905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906 (eval $ac_try) 2>&5
28907 ac_status=$?
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); }; } &&
28910 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28912 (eval $ac_try) 2>&5
28913 ac_status=$?
28914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28915 (exit $ac_status); }; }; then
28916 ac_cv_func_std_isnan_in_cmath=yes
28917else
28918 echo "$as_me: failed program was:" >&5
28919sed 's/^/| /' conftest.$ac_ext >&5
28920
28921ac_cv_func_std_isnan_in_cmath=no
28922fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028924 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028925ac_cpp='$CPP $CPPFLAGS'
28926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28928ac_compiler_gnu=$ac_cv_c_compiler_gnu
28929
28930fi
28931echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28932echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028933
28934if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028935
28936cat >>confdefs.h <<\_ACEOF
28937#define HAVE_STD_ISNAN_IN_CMATH 1
28938_ACEOF
28939
Reid Spencerabec8f92004-10-27 23:03:44 +000028940fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028941
28942
Brian Gaeke52a551d2004-07-21 03:14:12 +000028943echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28944echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28945if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28946 echo $ECHO_N "(cached) $ECHO_C" >&6
28947else
28948 ac_ext=cc
28949ac_cpp='$CXXCPP $CPPFLAGS'
28950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28953
Reid Spencerabec8f92004-10-27 23:03:44 +000028954 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028955/* confdefs.h. */
28956_ACEOF
28957cat confdefs.h >>conftest.$ac_ext
28958cat >>conftest.$ac_ext <<_ACEOF
28959/* end confdefs.h. */
28960#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028961int
28962main ()
28963{
28964float f; isinf(f);
28965 ;
28966 return 0;
28967}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028968_ACEOF
28969rm -f conftest.$ac_objext
28970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028971 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028972 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028973 grep -v '^ *+' conftest.er1 >conftest.err
28974 rm -f conftest.er1
28975 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028978 { ac_try='test -z "$ac_cxx_werror_flag"
28979 || test ! -s conftest.err'
28980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28981 (eval $ac_try) 2>&5
28982 ac_status=$?
28983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984 (exit $ac_status); }; } &&
28985 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987 (eval $ac_try) 2>&5
28988 ac_status=$?
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); }; }; then
28991 ac_cv_func_isinf_in_math_h=yes
28992else
28993 echo "$as_me: failed program was:" >&5
28994sed 's/^/| /' conftest.$ac_ext >&5
28995
28996ac_cv_func_isinf_in_math_h=no
28997fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028999 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029000ac_cpp='$CPP $CPPFLAGS'
29001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29003ac_compiler_gnu=$ac_cv_c_compiler_gnu
29004
29005fi
29006echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29007echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029008
29009if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029010
29011cat >>confdefs.h <<\_ACEOF
29012#define HAVE_ISINF_IN_MATH_H 1
29013_ACEOF
29014
Reid Spencerabec8f92004-10-27 23:03:44 +000029015fi
29016
Brian Gaeke52a551d2004-07-21 03:14:12 +000029017echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29018echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29019if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29020 echo $ECHO_N "(cached) $ECHO_C" >&6
29021else
29022 ac_ext=cc
29023ac_cpp='$CXXCPP $CPPFLAGS'
29024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29027
Reid Spencerabec8f92004-10-27 23:03:44 +000029028 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029029/* confdefs.h. */
29030_ACEOF
29031cat confdefs.h >>conftest.$ac_ext
29032cat >>conftest.$ac_ext <<_ACEOF
29033/* end confdefs.h. */
29034#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029035int
29036main ()
29037{
29038float f; isinf(f);
29039 ;
29040 return 0;
29041}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029042_ACEOF
29043rm -f conftest.$ac_objext
29044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029045 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029046 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029047 grep -v '^ *+' conftest.er1 >conftest.err
29048 rm -f conftest.er1
29049 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029052 { ac_try='test -z "$ac_cxx_werror_flag"
29053 || test ! -s conftest.err'
29054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29055 (eval $ac_try) 2>&5
29056 ac_status=$?
29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); }; } &&
29059 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29061 (eval $ac_try) 2>&5
29062 ac_status=$?
29063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064 (exit $ac_status); }; }; then
29065 ac_cv_func_isinf_in_cmath=yes
29066else
29067 echo "$as_me: failed program was:" >&5
29068sed 's/^/| /' conftest.$ac_ext >&5
29069
29070ac_cv_func_isinf_in_cmath=no
29071fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029073 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029074ac_cpp='$CPP $CPPFLAGS'
29075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29077ac_compiler_gnu=$ac_cv_c_compiler_gnu
29078
29079fi
29080echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29081echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029082
29083if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029084
29085cat >>confdefs.h <<\_ACEOF
29086#define HAVE_ISINF_IN_CMATH 1
29087_ACEOF
29088
Reid Spencerabec8f92004-10-27 23:03:44 +000029089fi
29090
Brian Gaeke52a551d2004-07-21 03:14:12 +000029091echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29092echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29093if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29094 echo $ECHO_N "(cached) $ECHO_C" >&6
29095else
29096 ac_ext=cc
29097ac_cpp='$CXXCPP $CPPFLAGS'
29098ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29099ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29100ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29101
Reid Spencerabec8f92004-10-27 23:03:44 +000029102 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029103/* confdefs.h. */
29104_ACEOF
29105cat confdefs.h >>conftest.$ac_ext
29106cat >>conftest.$ac_ext <<_ACEOF
29107/* end confdefs.h. */
29108#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029109int
29110main ()
29111{
29112float f; std::isinf(f)}
29113 ;
29114 return 0;
29115}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029116_ACEOF
29117rm -f conftest.$ac_objext
29118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029119 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029120 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029121 grep -v '^ *+' conftest.er1 >conftest.err
29122 rm -f conftest.er1
29123 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029126 { ac_try='test -z "$ac_cxx_werror_flag"
29127 || test ! -s conftest.err'
29128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129 (eval $ac_try) 2>&5
29130 ac_status=$?
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; } &&
29133 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135 (eval $ac_try) 2>&5
29136 ac_status=$?
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; }; then
29139 ac_cv_func_std_isinf_in_cmath=yes
29140else
29141 echo "$as_me: failed program was:" >&5
29142sed 's/^/| /' conftest.$ac_ext >&5
29143
29144ac_cv_func_std_isinf_in_cmath=no
29145fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029147 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029148ac_cpp='$CPP $CPPFLAGS'
29149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29151ac_compiler_gnu=$ac_cv_c_compiler_gnu
29152
29153fi
29154echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29155echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029156
29157if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029158
29159cat >>confdefs.h <<\_ACEOF
29160#define HAVE_STD_ISINF_IN_CMATH 1
29161_ACEOF
29162
Reid Spencerabec8f92004-10-27 23:03:44 +000029163fi
29164
Brian Gaeked59a6472004-07-21 03:33:58 +000029165echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29166echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29167if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29168 echo $ECHO_N "(cached) $ECHO_C" >&6
29169else
29170 ac_ext=cc
29171ac_cpp='$CXXCPP $CPPFLAGS'
29172ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29173ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29174ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29175
Reid Spencerabec8f92004-10-27 23:03:44 +000029176 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029177/* confdefs.h. */
29178_ACEOF
29179cat confdefs.h >>conftest.$ac_ext
29180cat >>conftest.$ac_ext <<_ACEOF
29181/* end confdefs.h. */
29182#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029183int
29184main ()
29185{
29186float f; finite(f);
29187 ;
29188 return 0;
29189}
Brian Gaeked59a6472004-07-21 03:33:58 +000029190_ACEOF
29191rm -f conftest.$ac_objext
29192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029193 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029194 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029195 grep -v '^ *+' conftest.er1 >conftest.err
29196 rm -f conftest.er1
29197 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029200 { ac_try='test -z "$ac_cxx_werror_flag"
29201 || test ! -s conftest.err'
29202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29203 (eval $ac_try) 2>&5
29204 ac_status=$?
29205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); }; } &&
29207 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29209 (eval $ac_try) 2>&5
29210 ac_status=$?
29211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212 (exit $ac_status); }; }; then
29213 ac_cv_func_finite_in_ieeefp_h=yes
29214else
29215 echo "$as_me: failed program was:" >&5
29216sed 's/^/| /' conftest.$ac_ext >&5
29217
29218ac_cv_func_finite_in_ieeefp_h=no
29219fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029221 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029222ac_cpp='$CPP $CPPFLAGS'
29223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29225ac_compiler_gnu=$ac_cv_c_compiler_gnu
29226
29227fi
29228echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29229echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029230
Brian Gaeke6802b552004-10-28 05:06:45 +000029231if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029232
29233cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029234#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029235_ACEOF
29236
Reid Spencerabec8f92004-10-27 23:03:44 +000029237fi
29238
29239
29240
John Criswell7a73b802003-06-30 21:59:07 +000029241
29242
29243for ac_header in stdlib.h unistd.h
29244do
29245as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29246if eval "test \"\${$as_ac_Header+set}\" = set"; then
29247 echo "$as_me:$LINENO: checking for $ac_header" >&5
29248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29249if eval "test \"\${$as_ac_Header+set}\" = set"; then
29250 echo $ECHO_N "(cached) $ECHO_C" >&6
29251fi
29252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29254else
29255 # Is the header compilable?
29256echo "$as_me:$LINENO: checking $ac_header usability" >&5
29257echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29258cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029259/* confdefs.h. */
29260_ACEOF
29261cat confdefs.h >>conftest.$ac_ext
29262cat >>conftest.$ac_ext <<_ACEOF
29263/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029264$ac_includes_default
29265#include <$ac_header>
29266_ACEOF
29267rm -f conftest.$ac_objext
29268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029269 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029270 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029271 grep -v '^ *+' conftest.er1 >conftest.err
29272 rm -f conftest.er1
29273 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029276 { ac_try='test -z "$ac_c_werror_flag"
29277 || test ! -s conftest.err'
29278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29279 (eval $ac_try) 2>&5
29280 ac_status=$?
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); }; } &&
29283 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29285 (eval $ac_try) 2>&5
29286 ac_status=$?
29287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29288 (exit $ac_status); }; }; then
29289 ac_header_compiler=yes
29290else
29291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029292sed 's/^/| /' conftest.$ac_ext >&5
29293
John Criswell7a73b802003-06-30 21:59:07 +000029294ac_header_compiler=no
29295fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029297echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29298echo "${ECHO_T}$ac_header_compiler" >&6
29299
29300# Is the header present?
29301echo "$as_me:$LINENO: checking $ac_header presence" >&5
29302echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29303cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029304/* confdefs.h. */
29305_ACEOF
29306cat confdefs.h >>conftest.$ac_ext
29307cat >>conftest.$ac_ext <<_ACEOF
29308/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029309#include <$ac_header>
29310_ACEOF
29311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29313 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000029314 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000029315 rm -f conftest.er1
29316 cat conftest.err >&5
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); } >/dev/null; then
29319 if test -s conftest.err; then
29320 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000029321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000029322 else
29323 ac_cpp_err=
29324 fi
29325else
29326 ac_cpp_err=yes
29327fi
29328if test -z "$ac_cpp_err"; then
29329 ac_header_preproc=yes
29330else
29331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029332sed 's/^/| /' conftest.$ac_ext >&5
29333
John Criswell7a73b802003-06-30 21:59:07 +000029334 ac_header_preproc=no
29335fi
29336rm -f conftest.err conftest.$ac_ext
29337echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29338echo "${ECHO_T}$ac_header_preproc" >&6
29339
29340# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029341case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29342 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000029343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29344echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29346echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29347 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000029348 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029349 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000029350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29355echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29357echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29359echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000029360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29361echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000029362 (
29363 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000029364## ----------------------------------- ##
29365## Report this to llvmbugs@cs.uiuc.edu ##
29366## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000029367_ASBOX
29368 ) |
29369 sed "s/^/$as_me: WARNING: /" >&2
29370 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029371esac
29372echo "$as_me:$LINENO: checking for $ac_header" >&5
29373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29374if eval "test \"\${$as_ac_Header+set}\" = set"; then
29375 echo $ECHO_N "(cached) $ECHO_C" >&6
29376else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029377 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000029378fi
29379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29381
29382fi
29383if test `eval echo '${'$as_ac_Header'}'` = yes; then
29384 cat >>confdefs.h <<_ACEOF
29385#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29386_ACEOF
29387
29388fi
29389
29390done
29391
29392
29393for ac_func in getpagesize
29394do
29395as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29396echo "$as_me:$LINENO: checking for $ac_func" >&5
29397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29398if eval "test \"\${$as_ac_var+set}\" = set"; then
29399 echo $ECHO_N "(cached) $ECHO_C" >&6
29400else
29401 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029402/* confdefs.h. */
29403_ACEOF
29404cat confdefs.h >>conftest.$ac_ext
29405cat >>conftest.$ac_ext <<_ACEOF
29406/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29409#define $ac_func innocuous_$ac_func
29410
John Criswell7a73b802003-06-30 21:59:07 +000029411/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029412 which can conflict with char $ac_func (); below.
29413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29414 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029415
John Criswell0c38eaf2003-09-10 15:17:25 +000029416#ifdef __STDC__
29417# include <limits.h>
29418#else
29419# include <assert.h>
29420#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029421
29422#undef $ac_func
29423
John Criswell7a73b802003-06-30 21:59:07 +000029424/* Override any gcc2 internal prototype to avoid an error. */
29425#ifdef __cplusplus
29426extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029427{
John Criswell7a73b802003-06-30 21:59:07 +000029428#endif
29429/* We use char because int might match the return type of a gcc2
29430 builtin and then its argument prototype would still apply. */
29431char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000029432/* The GNU C library defines this for functions which it implements
29433 to always fail with ENOSYS. Some functions are actually named
29434 something starting with __ and the normal name is an alias. */
29435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29436choke me
29437#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029438char (*f) () = $ac_func;
29439#endif
29440#ifdef __cplusplus
29441}
John Criswell7a73b802003-06-30 21:59:07 +000029442#endif
29443
John Criswell0c38eaf2003-09-10 15:17:25 +000029444int
29445main ()
29446{
29447return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000029448 ;
29449 return 0;
29450}
29451_ACEOF
29452rm -f conftest.$ac_objext conftest$ac_exeext
29453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029454 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029455 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029456 grep -v '^ *+' conftest.er1 >conftest.err
29457 rm -f conftest.er1
29458 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029461 { ac_try='test -z "$ac_c_werror_flag"
29462 || test ! -s conftest.err'
29463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464 (eval $ac_try) 2>&5
29465 ac_status=$?
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); }; } &&
29468 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470 (eval $ac_try) 2>&5
29471 ac_status=$?
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); }; }; then
29474 eval "$as_ac_var=yes"
29475else
29476 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029477sed 's/^/| /' conftest.$ac_ext >&5
29478
John Criswell7a73b802003-06-30 21:59:07 +000029479eval "$as_ac_var=no"
29480fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029481rm -f conftest.err conftest.$ac_objext \
29482 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029483fi
29484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29485echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29486if test `eval echo '${'$as_ac_var'}'` = yes; then
29487 cat >>confdefs.h <<_ACEOF
29488#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29489_ACEOF
29490
29491fi
29492done
29493
29494echo "$as_me:$LINENO: checking for working mmap" >&5
29495echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
29496if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29497 echo $ECHO_N "(cached) $ECHO_C" >&6
29498else
29499 if test "$cross_compiling" = yes; then
29500 ac_cv_func_mmap_fixed_mapped=no
29501else
29502 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029503/* confdefs.h. */
29504_ACEOF
29505cat confdefs.h >>conftest.$ac_ext
29506cat >>conftest.$ac_ext <<_ACEOF
29507/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029508$ac_includes_default
29509/* malloc might have been renamed as rpl_malloc. */
29510#undef malloc
29511
29512/* Thanks to Mike Haertel and Jim Avera for this test.
29513 Here is a matrix of mmap possibilities:
29514 mmap private not fixed
29515 mmap private fixed at somewhere currently unmapped
29516 mmap private fixed at somewhere already mapped
29517 mmap shared not fixed
29518 mmap shared fixed at somewhere currently unmapped
29519 mmap shared fixed at somewhere already mapped
29520 For private mappings, we should verify that changes cannot be read()
29521 back from the file, nor mmap's back from the file at a different
29522 address. (There have been systems where private was not correctly
29523 implemented like the infamous i386 svr4.0, and systems where the
29524 VM page cache was not coherent with the file system buffer cache
29525 like early versions of FreeBSD and possibly contemporary NetBSD.)
29526 For shared mappings, we should conversely verify that changes get
29527 propagated back to all the places they're supposed to be.
29528
29529 Grep wants private fixed already mapped.
29530 The main things grep needs to know about mmap are:
29531 * does it exist and is it safe to write into the mmap'd area
29532 * how to use it (BSD variants) */
29533
29534#include <fcntl.h>
29535#include <sys/mman.h>
29536
29537#if !STDC_HEADERS && !HAVE_STDLIB_H
29538char *malloc ();
29539#endif
29540
29541/* This mess was copied from the GNU getpagesize.h. */
29542#if !HAVE_GETPAGESIZE
29543/* Assume that all systems that can run configure have sys/param.h. */
29544# if !HAVE_SYS_PARAM_H
29545# define HAVE_SYS_PARAM_H 1
29546# endif
29547
29548# ifdef _SC_PAGESIZE
29549# define getpagesize() sysconf(_SC_PAGESIZE)
29550# else /* no _SC_PAGESIZE */
29551# if HAVE_SYS_PARAM_H
29552# include <sys/param.h>
29553# ifdef EXEC_PAGESIZE
29554# define getpagesize() EXEC_PAGESIZE
29555# else /* no EXEC_PAGESIZE */
29556# ifdef NBPG
29557# define getpagesize() NBPG * CLSIZE
29558# ifndef CLSIZE
29559# define CLSIZE 1
29560# endif /* no CLSIZE */
29561# else /* no NBPG */
29562# ifdef NBPC
29563# define getpagesize() NBPC
29564# else /* no NBPC */
29565# ifdef PAGESIZE
29566# define getpagesize() PAGESIZE
29567# endif /* PAGESIZE */
29568# endif /* no NBPC */
29569# endif /* no NBPG */
29570# endif /* no EXEC_PAGESIZE */
29571# else /* no HAVE_SYS_PARAM_H */
29572# define getpagesize() 8192 /* punt totally */
29573# endif /* no HAVE_SYS_PARAM_H */
29574# endif /* no _SC_PAGESIZE */
29575
29576#endif /* no HAVE_GETPAGESIZE */
29577
29578int
29579main ()
29580{
29581 char *data, *data2, *data3;
29582 int i, pagesize;
29583 int fd;
29584
29585 pagesize = getpagesize ();
29586
29587 /* First, make a file with some known garbage in it. */
29588 data = (char *) malloc (pagesize);
29589 if (!data)
29590 exit (1);
29591 for (i = 0; i < pagesize; ++i)
29592 *(data + i) = rand ();
29593 umask (0);
29594 fd = creat ("conftest.mmap", 0600);
29595 if (fd < 0)
29596 exit (1);
29597 if (write (fd, data, pagesize) != pagesize)
29598 exit (1);
29599 close (fd);
29600
29601 /* Next, try to mmap the file at a fixed address which already has
29602 something else allocated at it. If we can, also make sure that
29603 we see the same garbage. */
29604 fd = open ("conftest.mmap", O_RDWR);
29605 if (fd < 0)
29606 exit (1);
29607 data2 = (char *) malloc (2 * pagesize);
29608 if (!data2)
29609 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029610 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029611 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029612 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029613 exit (1);
29614 for (i = 0; i < pagesize; ++i)
29615 if (*(data + i) != *(data2 + i))
29616 exit (1);
29617
29618 /* Finally, make sure that changes to the mapped area do not
29619 percolate back to the file as seen by read(). (This is a bug on
29620 some variants of i386 svr4.0.) */
29621 for (i = 0; i < pagesize; ++i)
29622 *(data2 + i) = *(data2 + i) + 1;
29623 data3 = (char *) malloc (pagesize);
29624 if (!data3)
29625 exit (1);
29626 if (read (fd, data3, pagesize) != pagesize)
29627 exit (1);
29628 for (i = 0; i < pagesize; ++i)
29629 if (*(data + i) != *(data3 + i))
29630 exit (1);
29631 close (fd);
29632 exit (0);
29633}
29634_ACEOF
29635rm -f conftest$ac_exeext
29636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29637 (eval $ac_link) 2>&5
29638 ac_status=$?
29639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29642 (eval $ac_try) 2>&5
29643 ac_status=$?
29644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); }; }; then
29646 ac_cv_func_mmap_fixed_mapped=yes
29647else
29648 echo "$as_me: program exited with status $ac_status" >&5
29649echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029650sed 's/^/| /' conftest.$ac_ext >&5
29651
John Criswell7a73b802003-06-30 21:59:07 +000029652( exit $ac_status )
29653ac_cv_func_mmap_fixed_mapped=no
29654fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029655rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029656fi
29657fi
29658echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29659echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29660if test $ac_cv_func_mmap_fixed_mapped = yes; then
29661
29662cat >>confdefs.h <<\_ACEOF
29663#define HAVE_MMAP 1
29664_ACEOF
29665
29666fi
29667rm -f conftest.mmap
29668
29669echo "$as_me:$LINENO: checking for mmap of files" >&5
29670echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29671if test "${ac_cv_func_mmap_file+set}" = set; then
29672 echo $ECHO_N "(cached) $ECHO_C" >&6
29673else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029674 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029675ac_cpp='$CPP $CPPFLAGS'
29676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29678ac_compiler_gnu=$ac_cv_c_compiler_gnu
29679
29680 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029681 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029682else
29683 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029684
Reid Spencer777ce172004-09-20 04:09:56 +000029685 /* confdefs.h. */
29686_ACEOF
29687cat confdefs.h >>conftest.$ac_ext
29688cat >>conftest.$ac_ext <<_ACEOF
29689/* end confdefs.h. */
29690
John Criswell7a73b802003-06-30 21:59:07 +000029691#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029692#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029693#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029694
29695int
29696main ()
29697{
John Criswell7a73b802003-06-30 21:59:07 +000029698
29699 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029700 fd = creat ("foo",0777);
29701 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29702 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029703 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029704 ;
29705 return 0;
29706}
John Criswell7a73b802003-06-30 21:59:07 +000029707_ACEOF
29708rm -f conftest$ac_exeext
29709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29710 (eval $ac_link) 2>&5
29711 ac_status=$?
29712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29713 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29715 (eval $ac_try) 2>&5
29716 ac_status=$?
29717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29718 (exit $ac_status); }; }; then
29719 ac_cv_func_mmap_file=yes
29720else
29721 echo "$as_me: program exited with status $ac_status" >&5
29722echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029723sed 's/^/| /' conftest.$ac_ext >&5
29724
John Criswell7a73b802003-06-30 21:59:07 +000029725( exit $ac_status )
29726ac_cv_func_mmap_file=no
29727fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029728rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029729fi
29730 ac_ext=c
29731ac_cpp='$CPP $CPPFLAGS'
29732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29734ac_compiler_gnu=$ac_cv_c_compiler_gnu
29735
29736
29737fi
29738echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29739echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29740if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029741
29742cat >>confdefs.h <<\_ACEOF
29743#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029744_ACEOF
29745
29746 MMAP_FILE=yes
29747
29748fi
29749
John Criswell7a73b802003-06-30 21:59:07 +000029750echo "$as_me:$LINENO: checking for mprotect" >&5
29751echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29752if test "${ac_cv_func_mprotect+set}" = set; then
29753 echo $ECHO_N "(cached) $ECHO_C" >&6
29754else
29755 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029756/* confdefs.h. */
29757_ACEOF
29758cat confdefs.h >>conftest.$ac_ext
29759cat >>conftest.$ac_ext <<_ACEOF
29760/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029761/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29763#define mprotect innocuous_mprotect
29764
John Criswell7a73b802003-06-30 21:59:07 +000029765/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029766 which can conflict with char mprotect (); below.
29767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29768 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029769
John Criswell0c38eaf2003-09-10 15:17:25 +000029770#ifdef __STDC__
29771# include <limits.h>
29772#else
29773# include <assert.h>
29774#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029775
29776#undef mprotect
29777
John Criswell7a73b802003-06-30 21:59:07 +000029778/* Override any gcc2 internal prototype to avoid an error. */
29779#ifdef __cplusplus
29780extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029781{
John Criswell7a73b802003-06-30 21:59:07 +000029782#endif
29783/* We use char because int might match the return type of a gcc2
29784 builtin and then its argument prototype would still apply. */
29785char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000029786/* The GNU C library defines this for functions which it implements
29787 to always fail with ENOSYS. Some functions are actually named
29788 something starting with __ and the normal name is an alias. */
29789#if defined (__stub_mprotect) || defined (__stub___mprotect)
29790choke me
29791#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029792char (*f) () = mprotect;
29793#endif
29794#ifdef __cplusplus
29795}
John Criswell7a73b802003-06-30 21:59:07 +000029796#endif
29797
John Criswell0c38eaf2003-09-10 15:17:25 +000029798int
29799main ()
29800{
29801return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000029802 ;
29803 return 0;
29804}
29805_ACEOF
29806rm -f conftest.$ac_objext conftest$ac_exeext
29807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029808 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029809 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029810 grep -v '^ *+' conftest.er1 >conftest.err
29811 rm -f conftest.er1
29812 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029815 { ac_try='test -z "$ac_c_werror_flag"
29816 || test ! -s conftest.err'
29817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818 (eval $ac_try) 2>&5
29819 ac_status=$?
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; } &&
29822 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29824 (eval $ac_try) 2>&5
29825 ac_status=$?
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; }; then
29828 ac_cv_func_mprotect=yes
29829else
29830 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029831sed 's/^/| /' conftest.$ac_ext >&5
29832
John Criswell7a73b802003-06-30 21:59:07 +000029833ac_cv_func_mprotect=no
29834fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029835rm -f conftest.err conftest.$ac_objext \
29836 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029837fi
29838echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29839echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29840if test $ac_cv_func_mprotect = yes; then
29841 :
29842else
29843 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29844echo "$as_me: error: Function mprotect() required but not found" >&2;}
29845 { (exit 1); exit 1; }; }
29846fi
29847
29848
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029849if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029850then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029851 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29852echo "$as_me: WARNING: mmap() required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029853fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029854if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029855then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029856 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29857echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029858fi
John Criswell7a73b802003-06-30 21:59:07 +000029859
29860
Brian Gaekef3b24102003-11-16 18:38:14 +000029861echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29862echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029863if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29864 echo $ECHO_N "(cached) $ECHO_C" >&6
29865else
29866 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000029867if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029868 cp /dev/null conftest.c
Reid Spencer502935f2004-12-22 05:56:56 +000029869 "$LLVMGCC" -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029870 if test $? -eq 0 ; then
29871 llvm_cv_llvmgcc_sanity="yes"
29872 fi
29873 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000029874fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029875fi
29876echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29877echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29878
29879if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000029880 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029881 LLVMCC1=$llvmcc1path
29882
Reid Spencer502935f2004-12-22 05:56:56 +000029883 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029884 LLVMCC1PLUS=$llvmcc1pluspath
29885
Reid Spencer502935f2004-12-22 05:56:56 +000029886 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
29887 LLVMGCCDIR=$llvmgccdir
29888
Brian Gaekef3b24102003-11-16 18:38:14 +000029889fi
29890
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029891SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000029892
29893
Reid Spencere9de0912004-08-20 09:03:57 +000029894# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029895# information into substitutions that will end up in Makefile.config.in
29896# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000029897eval LLVM_PREFIX="${prefix}";
29898eval LLVM_BINDIR="${prefix}/bin";
29899eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000029900eval LLVM_DATADIR="${prefix}/share/llvm";
29901eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29902eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000029903eval LLVM_INCLUDEDIR="${prefix}/include";
29904eval LLVM_INFODIR="${prefix}/info";
29905eval LLVM_MANDIR="${prefix}/man";
29906LLVM_CONFIGTIME=`date`
29907
29908
29909
29910
29911
29912
29913
29914
29915
29916
29917
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029918# Place the various directores into the config.h file as #defines so that we
29919# can know about the installation paths within LLVM.
29920
Reid Spencere9de0912004-08-20 09:03:57 +000029921cat >>confdefs.h <<_ACEOF
29922#define LLVM_PREFIX "$LLVM_PREFIX"
29923_ACEOF
29924
29925
29926cat >>confdefs.h <<_ACEOF
29927#define LLVM_BINDIR "$LLVM_BINDIR"
29928_ACEOF
29929
29930
29931cat >>confdefs.h <<_ACEOF
29932#define LLVM_LIBDIR "$LLVM_LIBDIR"
29933_ACEOF
29934
29935
29936cat >>confdefs.h <<_ACEOF
29937#define LLVM_DATADIR "$LLVM_DATADIR"
29938_ACEOF
29939
29940
29941cat >>confdefs.h <<_ACEOF
29942#define LLVM_DATADIR "$LLVM_DOCSDIR"
29943_ACEOF
29944
29945
29946cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000029947#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000029948_ACEOF
29949
29950
29951cat >>confdefs.h <<_ACEOF
29952#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29953_ACEOF
29954
29955
29956cat >>confdefs.h <<_ACEOF
29957#define LLVM_INFODIR "$LLVM_INFODIR"
29958_ACEOF
29959
29960
29961cat >>confdefs.h <<_ACEOF
29962#define LLVM_MANDIR "$LLVM_MANDIR"
29963_ACEOF
29964
29965
29966cat >>confdefs.h <<_ACEOF
29967#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29968_ACEOF
29969
29970
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029971
29972 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29973
29974
29975 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29976
29977 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29978
29979 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29980
29981 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29982
29983 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29984
29985
29986 ac_config_files="$ac_config_files Makefile.config"
29987
29988
29989 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29990
29991
Reid Spencer1f319422004-11-29 04:56:35 +000029992 ac_config_files="$ac_config_files docs/doxygen.cfg"
29993
29994
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029995 ac_config_commands="$ac_config_commands Makefile"
29996
29997
29998 ac_config_commands="$ac_config_commands Makefile.common"
29999
30000
30001 ac_config_commands="$ac_config_commands examples/Makefile"
30002
30003
30004 ac_config_commands="$ac_config_commands lib/Makefile"
30005
30006
30007 ac_config_commands="$ac_config_commands runtime/Makefile"
30008
30009
30010 ac_config_commands="$ac_config_commands test/Makefile"
30011
30012
30013 ac_config_commands="$ac_config_commands test/Makefile.tests"
30014
30015
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030016 ac_config_commands="$ac_config_commands tools/Makefile"
30017
30018
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030019 ac_config_commands="$ac_config_commands utils/Makefile"
30020
30021
30022 ac_config_commands="$ac_config_commands projects/Makefile"
30023
30024
30025
John Criswell7a73b802003-06-30 21:59:07 +000030026cat >confcache <<\_ACEOF
30027# This file is a shell script that caches the results of configure
30028# tests run on this system so they can be shared between configure
30029# scripts and configure runs, see configure's option --config-cache.
30030# It is not useful on other systems. If it contains results you don't
30031# want to keep, you may remove or edit it.
30032#
30033# config.status only pays attention to the cache file if you give it
30034# the --recheck option to rerun configure.
30035#
John Criswell0c38eaf2003-09-10 15:17:25 +000030036# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030037# loading this file, other *unset* `ac_cv_foo' will be assigned the
30038# following values.
30039
30040_ACEOF
30041
30042# The following way of writing the cache mishandles newlines in values,
30043# but we know of no workaround that is simple, portable, and efficient.
30044# So, don't put newlines in cache variables' values.
30045# Ultrix sh set writes to stderr and can't be redirected directly,
30046# and sets the high bit in the cache file unless we assign to the vars.
30047{
30048 (set) 2>&1 |
30049 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30050 *ac_space=\ *)
30051 # `set' does not quote correctly, so add quotes (double-quote
30052 # substitution turns \\\\ into \\, and sed turns \\ into \).
30053 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030054 "s/'/'\\\\''/g;
30055 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030056 ;;
30057 *)
30058 # `set' quotes correctly as required by POSIX, so do not add quotes.
30059 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030060 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030061 ;;
30062 esac;
30063} |
30064 sed '
30065 t clear
30066 : clear
30067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30068 t end
30069 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30070 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030071if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030072 if test -w $cache_file; then
30073 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30074 cat confcache >$cache_file
30075 else
30076 echo "not updating unwritable cache $cache_file"
30077 fi
30078fi
30079rm -f confcache
30080
30081test "x$prefix" = xNONE && prefix=$ac_default_prefix
30082# Let make expand exec_prefix.
30083test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30084
30085# VPATH may cause trouble with some makes, so we remove $(srcdir),
30086# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30087# trailing colons and then remove the whole line if VPATH becomes empty
30088# (actually we leave an empty line to preserve line numbers).
30089if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030090 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030091s/:*\$(srcdir):*/:/;
30092s/:*\${srcdir}:*/:/;
30093s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030094s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030095s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030096s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030097}'
30098fi
30099
30100DEFS=-DHAVE_CONFIG_H
30101
John Criswell0c38eaf2003-09-10 15:17:25 +000030102ac_libobjs=
30103ac_ltlibobjs=
30104for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30105 # 1. Remove the extension, and $U if already installed.
30106 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030107 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030108 # 2. Add them.
30109 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30110 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30111done
30112LIBOBJS=$ac_libobjs
30113
30114LTLIBOBJS=$ac_ltlibobjs
30115
30116
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030117if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30118 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30119Usually this means the macro was only invoked conditionally." >&5
30120echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30121Usually this means the macro was only invoked conditionally." >&2;}
30122 { (exit 1); exit 1; }; }
30123fi
30124if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30125 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30126Usually this means the macro was only invoked conditionally." >&5
30127echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30128Usually this means the macro was only invoked conditionally." >&2;}
30129 { (exit 1); exit 1; }; }
30130fi
John Criswell7a73b802003-06-30 21:59:07 +000030131
30132: ${CONFIG_STATUS=./config.status}
30133ac_clean_files_save=$ac_clean_files
30134ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30135{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30136echo "$as_me: creating $CONFIG_STATUS" >&6;}
30137cat >$CONFIG_STATUS <<_ACEOF
30138#! $SHELL
30139# Generated by $as_me.
30140# Run this file to recreate the current configuration.
30141# Compiler output produced by configure, useful for debugging
30142# configure, is in config.log if it exists.
30143
30144debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030145ac_cs_recheck=false
30146ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030147SHELL=\${CONFIG_SHELL-$SHELL}
30148_ACEOF
30149
30150cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030151## --------------------- ##
30152## M4sh Initialization. ##
30153## --------------------- ##
30154
30155# Be Bourne compatible
30156if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30157 emulate sh
30158 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030159 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30160 # is contrary to our usage. Disable this feature.
30161 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030162elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30163 set -o posix
30164fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030165DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030166
John Criswell7a73b802003-06-30 21:59:07 +000030167# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030168if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030169 as_unset=unset
30170else
30171 as_unset=false
30172fi
30173
John Criswell0c38eaf2003-09-10 15:17:25 +000030174
30175# Work around bugs in pre-3.0 UWIN ksh.
30176$as_unset ENV MAIL MAILPATH
30177PS1='$ '
30178PS2='> '
30179PS4='+ '
30180
30181# NLS nuisances.
30182for as_var in \
30183 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30184 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30185 LC_TELEPHONE LC_TIME
30186do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030187 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030188 eval $as_var=C; export $as_var
30189 else
30190 $as_unset $as_var
30191 fi
30192done
30193
30194# Required to use basename.
30195if expr a : '\(a\)' >/dev/null 2>&1; then
30196 as_expr=expr
30197else
30198 as_expr=false
30199fi
30200
30201if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30202 as_basename=basename
30203else
30204 as_basename=false
30205fi
John Criswell7a73b802003-06-30 21:59:07 +000030206
30207
30208# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030209as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030210$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30211 X"$0" : 'X\(//\)$' \| \
30212 X"$0" : 'X\(/\)$' \| \
30213 . : '\(.\)' 2>/dev/null ||
30214echo X/"$0" |
30215 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30216 /^X\/\(\/\/\)$/{ s//\1/; q; }
30217 /^X\/\(\/\).*/{ s//\1/; q; }
30218 s/.*/./; q'`
30219
John Criswell0c38eaf2003-09-10 15:17:25 +000030220
John Criswell7a73b802003-06-30 21:59:07 +000030221# PATH needs CR, and LINENO needs CR and PATH.
30222# Avoid depending upon Character Ranges.
30223as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30224as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30225as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30226as_cr_digits='0123456789'
30227as_cr_alnum=$as_cr_Letters$as_cr_digits
30228
30229# The user is always right.
30230if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030231 echo "#! /bin/sh" >conf$$.sh
30232 echo "exit 0" >>conf$$.sh
30233 chmod +x conf$$.sh
30234 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030235 PATH_SEPARATOR=';'
30236 else
30237 PATH_SEPARATOR=:
30238 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030239 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030240fi
30241
30242
30243 as_lineno_1=$LINENO
30244 as_lineno_2=$LINENO
30245 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30246 test "x$as_lineno_1" != "x$as_lineno_2" &&
30247 test "x$as_lineno_3" = "x$as_lineno_2" || {
30248 # Find who we are. Look in the path if we contain no path at all
30249 # relative or not.
30250 case $0 in
30251 *[\\/]* ) as_myself=$0 ;;
30252 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30253for as_dir in $PATH
30254do
30255 IFS=$as_save_IFS
30256 test -z "$as_dir" && as_dir=.
30257 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30258done
30259
30260 ;;
30261 esac
30262 # We did not find ourselves, most probably we were run as `sh COMMAND'
30263 # in which case we are not to be found in the path.
30264 if test "x$as_myself" = x; then
30265 as_myself=$0
30266 fi
30267 if test ! -f "$as_myself"; then
30268 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30269echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30270 { (exit 1); exit 1; }; }
30271 fi
30272 case $CONFIG_SHELL in
30273 '')
30274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30275for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30276do
30277 IFS=$as_save_IFS
30278 test -z "$as_dir" && as_dir=.
30279 for as_base in sh bash ksh sh5; do
30280 case $as_dir in
30281 /*)
30282 if ("$as_dir/$as_base" -c '
30283 as_lineno_1=$LINENO
30284 as_lineno_2=$LINENO
30285 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30286 test "x$as_lineno_1" != "x$as_lineno_2" &&
30287 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030288 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30289 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000030290 CONFIG_SHELL=$as_dir/$as_base
30291 export CONFIG_SHELL
30292 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30293 fi;;
30294 esac
30295 done
30296done
30297;;
30298 esac
30299
30300 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30301 # uniformly replaced by the line number. The first 'sed' inserts a
30302 # line-number line before each line; the second 'sed' does the real
30303 # work. The second script uses 'N' to pair each line-number line
30304 # with the numbered line, and appends trailing '-' during
30305 # substitution so that $LINENO is not a special case at line end.
30306 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30307 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30308 sed '=' <$as_myself |
30309 sed '
30310 N
30311 s,$,-,
30312 : loop
30313 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30314 t loop
30315 s,-$,,
30316 s,^['$as_cr_digits']*\n,,
30317 ' >$as_me.lineno &&
30318 chmod +x $as_me.lineno ||
30319 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30320echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30321 { (exit 1); exit 1; }; }
30322
30323 # Don't try to exec as it changes $[0], causing all sort of problems
30324 # (the dirname of $[0] is not the place where we might find the
30325 # original and so on. Autoconf is especially sensible to this).
30326 . ./$as_me.lineno
30327 # Exit status is that of the last command.
30328 exit
30329}
30330
30331
30332case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30333 *c*,-n*) ECHO_N= ECHO_C='
30334' ECHO_T=' ' ;;
30335 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30336 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30337esac
30338
30339if expr a : '\(a\)' >/dev/null 2>&1; then
30340 as_expr=expr
30341else
30342 as_expr=false
30343fi
30344
30345rm -f conf$$ conf$$.exe conf$$.file
30346echo >conf$$.file
30347if ln -s conf$$.file conf$$ 2>/dev/null; then
30348 # We could just check for DJGPP; but this test a) works b) is more generic
30349 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30350 if test -f conf$$.exe; then
30351 # Don't use ln at all; we don't have any links
30352 as_ln_s='cp -p'
30353 else
30354 as_ln_s='ln -s'
30355 fi
30356elif ln conf$$.file conf$$ 2>/dev/null; then
30357 as_ln_s=ln
30358else
30359 as_ln_s='cp -p'
30360fi
30361rm -f conf$$ conf$$.exe conf$$.file
30362
John Criswell0c38eaf2003-09-10 15:17:25 +000030363if mkdir -p . 2>/dev/null; then
30364 as_mkdir_p=:
30365else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030366 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000030367 as_mkdir_p=false
30368fi
30369
John Criswell7a73b802003-06-30 21:59:07 +000030370as_executable_p="test -f"
30371
30372# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030373as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030374
30375# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030376as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000030377
30378
30379# IFS
30380# We need space, tab and new line, in precisely that order.
30381as_nl='
30382'
30383IFS=" $as_nl"
30384
30385# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000030386$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000030387
30388exec 6>&1
30389
30390# Open the log real soon, to keep \$[0] and so on meaningful, and to
30391# report actual input values of CONFIG_FILES etc. instead of their
30392# values after options handling. Logging --version etc. is OK.
30393exec 5>>config.log
30394{
30395 echo
30396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30397## Running $as_me. ##
30398_ASBOX
30399} >&5
30400cat >&5 <<_CSEOF
30401
Reid Spencerabec8f92004-10-27 23:03:44 +000030402This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000030403generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000030404
30405 CONFIG_FILES = $CONFIG_FILES
30406 CONFIG_HEADERS = $CONFIG_HEADERS
30407 CONFIG_LINKS = $CONFIG_LINKS
30408 CONFIG_COMMANDS = $CONFIG_COMMANDS
30409 $ $0 $@
30410
30411_CSEOF
30412echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30413echo >&5
30414_ACEOF
30415
30416# Files that config.status was made for.
30417if test -n "$ac_config_files"; then
30418 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30419fi
30420
30421if test -n "$ac_config_headers"; then
30422 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30423fi
30424
30425if test -n "$ac_config_links"; then
30426 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30427fi
30428
30429if test -n "$ac_config_commands"; then
30430 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30431fi
30432
30433cat >>$CONFIG_STATUS <<\_ACEOF
30434
30435ac_cs_usage="\
30436\`$as_me' instantiates files from templates according to the
30437current configuration.
30438
30439Usage: $0 [OPTIONS] [FILE]...
30440
30441 -h, --help print this help, then exit
30442 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000030443 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000030444 -d, --debug don't remove temporary files
30445 --recheck update $as_me by reconfiguring in the same conditions
30446 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030447 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000030448 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000030449 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000030450
30451Configuration files:
30452$config_files
30453
30454Configuration headers:
30455$config_headers
30456
Reid Spencerde8c47f2004-08-29 19:35:28 +000030457Configuration links:
30458$config_links
30459
John Criswellc764fbc2003-09-06 15:17:13 +000030460Configuration commands:
30461$config_commands
30462
John Criswell7a73b802003-06-30 21:59:07 +000030463Report bugs to <bug-autoconf@gnu.org>."
30464_ACEOF
30465
30466cat >>$CONFIG_STATUS <<_ACEOF
30467ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000030468llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000030469configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000030470 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30471
Reid Spencer2706f8c2004-09-19 23:53:36 +000030472Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000030473This config.status script is free software; the Free Software Foundation
30474gives unlimited permission to copy, distribute and modify it."
30475srcdir=$srcdir
30476INSTALL="$INSTALL"
30477_ACEOF
30478
30479cat >>$CONFIG_STATUS <<\_ACEOF
30480# If no file are specified by the user, then we need to provide default
30481# value. By we need to know if files were specified by the user.
30482ac_need_defaults=:
30483while test $# != 0
30484do
30485 case $1 in
30486 --*=*)
30487 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30488 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030489 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000030490 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030491 -*)
30492 ac_option=$1
30493 ac_optarg=$2
30494 ac_shift=shift
30495 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030496 *) # This is not an option, so the user has probably given explicit
30497 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000030498 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000030499 ac_need_defaults=false;;
30500 esac
30501
John Criswell0c38eaf2003-09-10 15:17:25 +000030502 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000030503 # Handling of the options.
30504_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000030505cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030506 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30507 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030508 --version | --vers* | -V )
30509 echo "$ac_cs_version"; exit 0 ;;
30510 --he | --h)
30511 # Conflict between --help and --header
30512 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30513Try \`$0 --help' for more information." >&5
30514echo "$as_me: error: ambiguous option: $1
30515Try \`$0 --help' for more information." >&2;}
30516 { (exit 1); exit 1; }; };;
30517 --help | --hel | -h )
30518 echo "$ac_cs_usage"; exit 0 ;;
30519 --debug | --d* | -d )
30520 debug=: ;;
30521 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030522 $ac_shift
30523 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030524 ac_need_defaults=false;;
30525 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030526 $ac_shift
30527 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030528 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30530 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30531 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030532
30533 # This is an error.
30534 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30535Try \`$0 --help' for more information." >&5
30536echo "$as_me: error: unrecognized option: $1
30537Try \`$0 --help' for more information." >&2;}
30538 { (exit 1); exit 1; }; } ;;
30539
30540 *) ac_config_targets="$ac_config_targets $1" ;;
30541
30542 esac
30543 shift
30544done
30545
John Criswell0c38eaf2003-09-10 15:17:25 +000030546ac_configure_extra_args=
30547
30548if $ac_cs_silent; then
30549 exec 6>/dev/null
30550 ac_configure_extra_args="$ac_configure_extra_args --silent"
30551fi
30552
30553_ACEOF
30554cat >>$CONFIG_STATUS <<_ACEOF
30555if \$ac_cs_recheck; then
30556 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30557 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30558fi
30559
John Criswell7a73b802003-06-30 21:59:07 +000030560_ACEOF
30561
John Criswellc764fbc2003-09-06 15:17:13 +000030562cat >>$CONFIG_STATUS <<_ACEOF
30563#
30564# INIT-COMMANDS section.
30565#
John Criswell7a73b802003-06-30 21:59:07 +000030566
John Criswellc764fbc2003-09-06 15:17:13 +000030567${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30568${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000030569${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030570${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030571${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030572${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30573${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000030574${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000030575${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030576${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030577
30578_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030579
30580
30581
30582cat >>$CONFIG_STATUS <<\_ACEOF
30583for ac_config_target in $ac_config_targets
30584do
30585 case "$ac_config_target" in
30586 # Handling of arguments.
30587 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030588 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30589 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30590 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30591 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030592 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencer3bf69602004-12-24 06:49:16 +000030593 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_os_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030594 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30595 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030596 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030597 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030598 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030599 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30600 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030601 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030602 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030603 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030604 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030605 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030606 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30607 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030608 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30609 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030610 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30611echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30612 { (exit 1); exit 1; }; };;
30613 esac
30614done
30615
30616# If the user did not use the arguments to specify the items to instantiate,
30617# then the envvar interface is used. Set only those that are not.
30618# We use the long form for the default assignment because of an extremely
30619# bizarre bug on SunOS 4.1.3.
30620if $ac_need_defaults; then
30621 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30622 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000030623 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000030624 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030625fi
30626
John Criswell0c38eaf2003-09-10 15:17:25 +000030627# Have a temporary directory for convenience. Make it in the build tree
30628# simply because there is no reason to put it here, and in addition,
30629# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030630# Create a temporary directory, and hook for its removal unless debugging.
30631$debug ||
30632{
30633 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30634 trap '{ (exit 1); exit 1; }' 1 2 13 15
30635}
30636
30637# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030638
John Criswell7a73b802003-06-30 21:59:07 +000030639{
John Criswell0c38eaf2003-09-10 15:17:25 +000030640 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030641 test -n "$tmp" && test -d "$tmp"
30642} ||
30643{
John Criswell0c38eaf2003-09-10 15:17:25 +000030644 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030645 (umask 077 && mkdir $tmp)
30646} ||
30647{
John Criswell0c38eaf2003-09-10 15:17:25 +000030648 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030649 { (exit 1); exit 1; }
30650}
30651
30652_ACEOF
30653
30654cat >>$CONFIG_STATUS <<_ACEOF
30655
30656#
30657# CONFIG_FILES section.
30658#
30659
30660# No need to generate the scripts if there are no CONFIG_FILES.
30661# This happens for instance when ./config.status config.h
30662if test -n "\$CONFIG_FILES"; then
30663 # Protect against being on the right side of a sed subst in config.status.
30664 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30665 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30666s,@SHELL@,$SHELL,;t t
30667s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30668s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30669s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30670s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30671s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30672s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30673s,@exec_prefix@,$exec_prefix,;t t
30674s,@prefix@,$prefix,;t t
30675s,@program_transform_name@,$program_transform_name,;t t
30676s,@bindir@,$bindir,;t t
30677s,@sbindir@,$sbindir,;t t
30678s,@libexecdir@,$libexecdir,;t t
30679s,@datadir@,$datadir,;t t
30680s,@sysconfdir@,$sysconfdir,;t t
30681s,@sharedstatedir@,$sharedstatedir,;t t
30682s,@localstatedir@,$localstatedir,;t t
30683s,@libdir@,$libdir,;t t
30684s,@includedir@,$includedir,;t t
30685s,@oldincludedir@,$oldincludedir,;t t
30686s,@infodir@,$infodir,;t t
30687s,@mandir@,$mandir,;t t
30688s,@build_alias@,$build_alias,;t t
30689s,@host_alias@,$host_alias,;t t
30690s,@target_alias@,$target_alias,;t t
30691s,@DEFS@,$DEFS,;t t
30692s,@ECHO_C@,$ECHO_C,;t t
30693s,@ECHO_N@,$ECHO_N,;t t
30694s,@ECHO_T@,$ECHO_T,;t t
30695s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030696s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030697s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030698s,@build@,$build,;t t
30699s,@build_cpu@,$build_cpu,;t t
30700s,@build_vendor@,$build_vendor,;t t
30701s,@build_os@,$build_os,;t t
30702s,@host@,$host,;t t
30703s,@host_cpu@,$host_cpu,;t t
30704s,@host_vendor@,$host_vendor,;t t
30705s,@host_os@,$host_os,;t t
30706s,@target@,$target,;t t
30707s,@target_cpu@,$target_cpu,;t t
30708s,@target_vendor@,$target_vendor,;t t
30709s,@target_os@,$target_os,;t t
30710s,@OS@,$OS,;t t
John Criswell76595452003-07-01 22:07:39 +000030711s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030712s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030713s,@CC@,$CC,;t t
30714s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030715s,@LDFLAGS@,$LDFLAGS,;t t
30716s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030717s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030718s,@EXEEXT@,$EXEEXT,;t t
30719s,@OBJEXT@,$OBJEXT,;t t
30720s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30721s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030722s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030723s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030724s,@CXX@,$CXX,;t t
30725s,@CXXFLAGS@,$CXXFLAGS,;t t
30726s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030727s,@LEX@,$LEX,;t t
30728s,@LEXLIB@,$LEXLIB,;t t
30729s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030730s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030731s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030732s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030733s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030734s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000030735s,@CMP@,$CMP,;t t
30736s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030737s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030738s,@FIND@,$FIND,;t t
30739s,@GREP@,$GREP,;t t
30740s,@MKDIR@,$MKDIR,;t t
30741s,@MV@,$MV,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030742s,@PAX@,$PAX,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030743s,@RANLIB@,$RANLIB,;t t
30744s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030745s,@RM@,$RM,;t t
30746s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030747s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030748s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30749s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30750s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030751s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030752s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030753s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030754s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030755s,@GROFF@,$GROFF,;t t
30756s,@GZIP@,$GZIP,;t t
30757s,@POD2HTML@,$POD2HTML,;t t
30758s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000030759s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000030760s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030761s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030762s,@EGREP@,$EGREP,;t t
30763s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30764s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30765s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30766s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30767s,@LIBADD_DL@,$LIBADD_DL,;t t
30768s,@ECHO@,$ECHO,;t t
30769s,@AR@,$AR,;t t
30770s,@ac_ct_AR@,$ac_ct_AR,;t t
30771s,@STRIP@,$STRIP,;t t
30772s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30773s,@CXXCPP@,$CXXCPP,;t t
30774s,@F77@,$F77,;t t
30775s,@FFLAGS@,$FFLAGS,;t t
30776s,@ac_ct_F77@,$ac_ct_F77,;t t
30777s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030778s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000030779s,@LLVMGCC@,$LLVMGCC,;t t
30780s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030781s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030782s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000030783s,@LLVMCC1@,$LLVMCC1,;t t
30784s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000030785s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000030786s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000030787s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30788s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30789s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30790s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30791s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30792s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30793s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30794s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30795s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30796s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000030797s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000030798s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030799CEOF
30800
30801_ACEOF
30802
30803 cat >>$CONFIG_STATUS <<\_ACEOF
30804 # Split the substitutions into bite-sized pieces for seds with
30805 # small command number limits, like on Digital OSF/1 and HP-UX.
30806 ac_max_sed_lines=48
30807 ac_sed_frag=1 # Number of current file.
30808 ac_beg=1 # First line for current file.
30809 ac_end=$ac_max_sed_lines # Line after last line for current file.
30810 ac_more_lines=:
30811 ac_sed_cmds=
30812 while $ac_more_lines; do
30813 if test $ac_beg -gt 1; then
30814 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30815 else
30816 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30817 fi
30818 if test ! -s $tmp/subs.frag; then
30819 ac_more_lines=false
30820 else
30821 # The purpose of the label and of the branching condition is to
30822 # speed up the sed processing (if there are no `@' at all, there
30823 # is no need to browse any of the substitutions).
30824 # These are the two extra sed commands mentioned above.
30825 (echo ':t
30826 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30827 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030828 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030829 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030830 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030831 fi
30832 ac_sed_frag=`expr $ac_sed_frag + 1`
30833 ac_beg=$ac_end
30834 ac_end=`expr $ac_end + $ac_max_sed_lines`
30835 fi
30836 done
30837 if test -z "$ac_sed_cmds"; then
30838 ac_sed_cmds=cat
30839 fi
30840fi # test -n "$CONFIG_FILES"
30841
30842_ACEOF
30843cat >>$CONFIG_STATUS <<\_ACEOF
30844for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30845 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30846 case $ac_file in
30847 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030848 cat >$tmp/stdin
30849 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30850 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030851 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030852 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030853 * ) ac_file_in=$ac_file.in ;;
30854 esac
30855
30856 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30857 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30858$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030859 X"$ac_file" : 'X\(//\)[^/]' \| \
30860 X"$ac_file" : 'X\(//\)$' \| \
30861 X"$ac_file" : 'X\(/\)' \| \
30862 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030863echo X"$ac_file" |
30864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30865 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30866 /^X\(\/\/\)$/{ s//\1/; q; }
30867 /^X\(\/\).*/{ s//\1/; q; }
30868 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030869 { if $as_mkdir_p; then
30870 mkdir -p "$ac_dir"
30871 else
30872 as_dir="$ac_dir"
30873 as_dirs=
30874 while test ! -d "$as_dir"; do
30875 as_dirs="$as_dir $as_dirs"
30876 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30877$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030878 X"$as_dir" : 'X\(//\)[^/]' \| \
30879 X"$as_dir" : 'X\(//\)$' \| \
30880 X"$as_dir" : 'X\(/\)' \| \
30881 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030882echo X"$as_dir" |
30883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30885 /^X\(\/\/\)$/{ s//\1/; q; }
30886 /^X\(\/\).*/{ s//\1/; q; }
30887 s/.*/./; q'`
30888 done
30889 test ! -n "$as_dirs" || mkdir $as_dirs
30890 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30891echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30892 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030893
30894 ac_builddir=.
30895
30896if test "$ac_dir" != .; then
30897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30898 # A "../" for each directory in $ac_dir_suffix.
30899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30900else
30901 ac_dir_suffix= ac_top_builddir=
30902fi
30903
30904case $srcdir in
30905 .) # No --srcdir option. We are building in place.
30906 ac_srcdir=.
30907 if test -z "$ac_top_builddir"; then
30908 ac_top_srcdir=.
30909 else
30910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30911 fi ;;
30912 [\\/]* | ?:[\\/]* ) # Absolute path.
30913 ac_srcdir=$srcdir$ac_dir_suffix;
30914 ac_top_srcdir=$srcdir ;;
30915 *) # Relative path.
30916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30918esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030919
30920# Do not use `cd foo && pwd` to compute absolute paths, because
30921# the directories may not exist.
30922case `pwd` in
30923.) ac_abs_builddir="$ac_dir";;
30924*)
30925 case "$ac_dir" in
30926 .) ac_abs_builddir=`pwd`;;
30927 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30928 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30929 esac;;
30930esac
30931case $ac_abs_builddir in
30932.) ac_abs_top_builddir=${ac_top_builddir}.;;
30933*)
30934 case ${ac_top_builddir}. in
30935 .) ac_abs_top_builddir=$ac_abs_builddir;;
30936 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30937 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30938 esac;;
30939esac
30940case $ac_abs_builddir in
30941.) ac_abs_srcdir=$ac_srcdir;;
30942*)
30943 case $ac_srcdir in
30944 .) ac_abs_srcdir=$ac_abs_builddir;;
30945 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30946 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30947 esac;;
30948esac
30949case $ac_abs_builddir in
30950.) ac_abs_top_srcdir=$ac_top_srcdir;;
30951*)
30952 case $ac_top_srcdir in
30953 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30954 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30955 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30956 esac;;
30957esac
John Criswell7a73b802003-06-30 21:59:07 +000030958
30959
30960 case $INSTALL in
30961 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30962 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30963 esac
30964
30965 if test x"$ac_file" != x-; then
30966 { echo "$as_me:$LINENO: creating $ac_file" >&5
30967echo "$as_me: creating $ac_file" >&6;}
30968 rm -f "$ac_file"
30969 fi
30970 # Let's still pretend it is `configure' which instantiates (i.e., don't
30971 # use $as_me), people would be surprised to read:
30972 # /* config.h. Generated by config.status. */
30973 if test x"$ac_file" = x-; then
30974 configure_input=
30975 else
30976 configure_input="$ac_file. "
30977 fi
30978 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030979 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000030980
30981 # First look for the input files in the build tree, otherwise in the
30982 # src tree.
30983 ac_file_inputs=`IFS=:
30984 for f in $ac_file_in; do
30985 case $f in
30986 -) echo $tmp/stdin ;;
30987 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030988 # Absolute (can't be DOS-style, as IFS=:)
30989 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030990echo "$as_me: error: cannot find input file: $f" >&2;}
30991 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030992 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030993 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030994 if test -f "$f"; then
30995 # Build tree
30996 echo "$f"
30997 elif test -f "$srcdir/$f"; then
30998 # Source tree
30999 echo "$srcdir/$f"
31000 else
31001 # /dev/null tree
31002 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031003echo "$as_me: error: cannot find input file: $f" >&2;}
31004 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031005 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031006 esac
31007 done` || { (exit 1); exit 1; }
31008_ACEOF
31009cat >>$CONFIG_STATUS <<_ACEOF
31010 sed "$ac_vpsub
31011$extrasub
31012_ACEOF
31013cat >>$CONFIG_STATUS <<\_ACEOF
31014:t
31015/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31016s,@configure_input@,$configure_input,;t t
31017s,@srcdir@,$ac_srcdir,;t t
31018s,@abs_srcdir@,$ac_abs_srcdir,;t t
31019s,@top_srcdir@,$ac_top_srcdir,;t t
31020s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31021s,@builddir@,$ac_builddir,;t t
31022s,@abs_builddir@,$ac_abs_builddir,;t t
31023s,@top_builddir@,$ac_top_builddir,;t t
31024s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31025s,@INSTALL@,$ac_INSTALL,;t t
31026" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31027 rm -f $tmp/stdin
31028 if test x"$ac_file" != x-; then
31029 mv $tmp/out $ac_file
31030 else
31031 cat $tmp/out
31032 rm -f $tmp/out
31033 fi
31034
31035done
31036_ACEOF
31037cat >>$CONFIG_STATUS <<\_ACEOF
31038
31039#
31040# CONFIG_HEADER section.
31041#
31042
31043# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31044# NAME is the cpp macro being defined and VALUE is the value it is being given.
31045#
31046# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031047ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31048ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031049ac_dC=' '
31050ac_dD=',;t'
31051# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031052ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031053ac_uB='$,\1#\2define\3'
31054ac_uC=' '
31055ac_uD=',;t'
31056
31057for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31058 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31059 case $ac_file in
31060 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031061 cat >$tmp/stdin
31062 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31063 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031064 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031065 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031066 * ) ac_file_in=$ac_file.in ;;
31067 esac
31068
31069 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31070echo "$as_me: creating $ac_file" >&6;}
31071
31072 # First look for the input files in the build tree, otherwise in the
31073 # src tree.
31074 ac_file_inputs=`IFS=:
31075 for f in $ac_file_in; do
31076 case $f in
31077 -) echo $tmp/stdin ;;
31078 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031079 # Absolute (can't be DOS-style, as IFS=:)
31080 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031081echo "$as_me: error: cannot find input file: $f" >&2;}
31082 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031083 # Do quote $f, to prevent DOS paths from being IFS'd.
31084 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031085 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031086 if test -f "$f"; then
31087 # Build tree
31088 echo "$f"
31089 elif test -f "$srcdir/$f"; then
31090 # Source tree
31091 echo "$srcdir/$f"
31092 else
31093 # /dev/null tree
31094 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031095echo "$as_me: error: cannot find input file: $f" >&2;}
31096 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031097 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031098 esac
31099 done` || { (exit 1); exit 1; }
31100 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031101 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031102
31103_ACEOF
31104
31105# Transform confdefs.h into two sed scripts, `conftest.defines' and
31106# `conftest.undefs', that substitutes the proper values into
31107# config.h.in to produce config.h. The first handles `#define'
31108# templates, and the second `#undef' templates.
31109# And first: Protect against being on the right side of a sed subst in
31110# config.status. Protect against being in an unquoted here document
31111# in config.status.
31112rm -f conftest.defines conftest.undefs
31113# Using a here document instead of a string reduces the quoting nightmare.
31114# Putting comments in sed scripts is not portable.
31115#
31116# `end' is used to avoid that the second main sed command (meant for
31117# 0-ary CPP macros) applies to n-ary macro definitions.
31118# See the Autoconf documentation for `clear'.
31119cat >confdef2sed.sed <<\_ACEOF
31120s/[\\&,]/\\&/g
31121s,[\\$`],\\&,g
31122t clear
31123: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031124s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031125t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031126s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031127: end
31128_ACEOF
31129# If some macros were called several times there might be several times
31130# the same #defines, which is useless. Nevertheless, we may not want to
31131# sort them, since we want the *last* AC-DEFINE to be honored.
31132uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31133sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31134rm -f confdef2sed.sed
31135
31136# This sed command replaces #undef with comments. This is necessary, for
31137# example, in the case of _POSIX_SOURCE, which is predefined and required
31138# on some systems where configure will not decide to define it.
31139cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031140s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031141_ACEOF
31142
31143# Break up conftest.defines because some shells have a limit on the size
31144# of here documents, and old seds have small limits too (100 cmds).
31145echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031146echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031147echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31148echo ' :' >>$CONFIG_STATUS
31149rm -f conftest.tail
31150while grep . conftest.defines >/dev/null
31151do
31152 # Write a limited-size here document to $tmp/defines.sed.
31153 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31154 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031155 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031156 # Work around the forget-to-reset-the-flag bug.
31157 echo 't clr' >>$CONFIG_STATUS
31158 echo ': clr' >>$CONFIG_STATUS
31159 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31160 echo 'CEOF
31161 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31162 rm -f $tmp/in
31163 mv $tmp/out $tmp/in
31164' >>$CONFIG_STATUS
31165 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31166 rm -f conftest.defines
31167 mv conftest.tail conftest.defines
31168done
31169rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031170echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031171echo >>$CONFIG_STATUS
31172
31173# Break up conftest.undefs because some shells have a limit on the size
31174# of here documents, and old seds have small limits too (100 cmds).
31175echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31176rm -f conftest.tail
31177while grep . conftest.undefs >/dev/null
31178do
31179 # Write a limited-size here document to $tmp/undefs.sed.
31180 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31181 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031182 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031183 # Work around the forget-to-reset-the-flag bug.
31184 echo 't clr' >>$CONFIG_STATUS
31185 echo ': clr' >>$CONFIG_STATUS
31186 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31187 echo 'CEOF
31188 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31189 rm -f $tmp/in
31190 mv $tmp/out $tmp/in
31191' >>$CONFIG_STATUS
31192 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31193 rm -f conftest.undefs
31194 mv conftest.tail conftest.undefs
31195done
31196rm -f conftest.undefs
31197
31198cat >>$CONFIG_STATUS <<\_ACEOF
31199 # Let's still pretend it is `configure' which instantiates (i.e., don't
31200 # use $as_me), people would be surprised to read:
31201 # /* config.h. Generated by config.status. */
31202 if test x"$ac_file" = x-; then
31203 echo "/* Generated by configure. */" >$tmp/config.h
31204 else
31205 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31206 fi
31207 cat $tmp/in >>$tmp/config.h
31208 rm -f $tmp/in
31209 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031210 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031211 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31212echo "$as_me: $ac_file is unchanged" >&6;}
31213 else
31214 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31215$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031216 X"$ac_file" : 'X\(//\)[^/]' \| \
31217 X"$ac_file" : 'X\(//\)$' \| \
31218 X"$ac_file" : 'X\(/\)' \| \
31219 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031220echo X"$ac_file" |
31221 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31222 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31223 /^X\(\/\/\)$/{ s//\1/; q; }
31224 /^X\(\/\).*/{ s//\1/; q; }
31225 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031226 { if $as_mkdir_p; then
31227 mkdir -p "$ac_dir"
31228 else
31229 as_dir="$ac_dir"
31230 as_dirs=
31231 while test ! -d "$as_dir"; do
31232 as_dirs="$as_dir $as_dirs"
31233 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31234$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031235 X"$as_dir" : 'X\(//\)[^/]' \| \
31236 X"$as_dir" : 'X\(//\)$' \| \
31237 X"$as_dir" : 'X\(/\)' \| \
31238 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031239echo X"$as_dir" |
31240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31241 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31242 /^X\(\/\/\)$/{ s//\1/; q; }
31243 /^X\(\/\).*/{ s//\1/; q; }
31244 s/.*/./; q'`
31245 done
31246 test ! -n "$as_dirs" || mkdir $as_dirs
31247 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31248echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31249 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031250
31251 rm -f $ac_file
31252 mv $tmp/config.h $ac_file
31253 fi
31254 else
31255 cat $tmp/config.h
31256 rm -f $tmp/config.h
31257 fi
31258done
31259_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031260cat >>$CONFIG_STATUS <<\_ACEOF
31261
31262#
Reid Spencerde8c47f2004-08-29 19:35:28 +000031263# CONFIG_LINKS section.
31264#
31265
31266for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
31267 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31268 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31269
31270 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
31271echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
31272
31273 if test ! -r $srcdir/$ac_source; then
31274 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
31275echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
31276 { (exit 1); exit 1; }; }
31277 fi
31278 rm -f $ac_dest
31279
31280 # Make relative symlinks.
31281 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
31282$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031283 X"$ac_dest" : 'X\(//\)[^/]' \| \
31284 X"$ac_dest" : 'X\(//\)$' \| \
31285 X"$ac_dest" : 'X\(/\)' \| \
31286 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000031287echo X"$ac_dest" |
31288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31290 /^X\(\/\/\)$/{ s//\1/; q; }
31291 /^X\(\/\).*/{ s//\1/; q; }
31292 s/.*/./; q'`
31293 { if $as_mkdir_p; then
31294 mkdir -p "$ac_dest_dir"
31295 else
31296 as_dir="$ac_dest_dir"
31297 as_dirs=
31298 while test ! -d "$as_dir"; do
31299 as_dirs="$as_dir $as_dirs"
31300 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31301$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031302 X"$as_dir" : 'X\(//\)[^/]' \| \
31303 X"$as_dir" : 'X\(//\)$' \| \
31304 X"$as_dir" : 'X\(/\)' \| \
31305 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000031306echo X"$as_dir" |
31307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31308 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31309 /^X\(\/\/\)$/{ s//\1/; q; }
31310 /^X\(\/\).*/{ s//\1/; q; }
31311 s/.*/./; q'`
31312 done
31313 test ! -n "$as_dirs" || mkdir $as_dirs
31314 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
31315echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
31316 { (exit 1); exit 1; }; }; }
31317
31318 ac_builddir=.
31319
31320if test "$ac_dest_dir" != .; then
31321 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
31322 # A "../" for each directory in $ac_dir_suffix.
31323 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31324else
31325 ac_dir_suffix= ac_top_builddir=
31326fi
31327
31328case $srcdir in
31329 .) # No --srcdir option. We are building in place.
31330 ac_srcdir=.
31331 if test -z "$ac_top_builddir"; then
31332 ac_top_srcdir=.
31333 else
31334 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31335 fi ;;
31336 [\\/]* | ?:[\\/]* ) # Absolute path.
31337 ac_srcdir=$srcdir$ac_dir_suffix;
31338 ac_top_srcdir=$srcdir ;;
31339 *) # Relative path.
31340 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31341 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31342esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031343
31344# Do not use `cd foo && pwd` to compute absolute paths, because
31345# the directories may not exist.
31346case `pwd` in
31347.) ac_abs_builddir="$ac_dest_dir";;
31348*)
31349 case "$ac_dest_dir" in
31350 .) ac_abs_builddir=`pwd`;;
31351 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
31352 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
31353 esac;;
31354esac
31355case $ac_abs_builddir in
31356.) ac_abs_top_builddir=${ac_top_builddir}.;;
31357*)
31358 case ${ac_top_builddir}. in
31359 .) ac_abs_top_builddir=$ac_abs_builddir;;
31360 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31361 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31362 esac;;
31363esac
31364case $ac_abs_builddir in
31365.) ac_abs_srcdir=$ac_srcdir;;
31366*)
31367 case $ac_srcdir in
31368 .) ac_abs_srcdir=$ac_abs_builddir;;
31369 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31370 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31371 esac;;
31372esac
31373case $ac_abs_builddir in
31374.) ac_abs_top_srcdir=$ac_top_srcdir;;
31375*)
31376 case $ac_top_srcdir in
31377 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31378 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31379 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31380 esac;;
31381esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000031382
31383
31384 case $srcdir in
31385 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
31386 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
31387 esac
31388
31389 # Try a symlink, then a hard link, then a copy.
31390 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
31391 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
31392 cp -p $srcdir/$ac_source $ac_dest ||
31393 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
31394echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
31395 { (exit 1); exit 1; }; }
31396done
31397_ACEOF
31398cat >>$CONFIG_STATUS <<\_ACEOF
31399
31400#
John Criswellc764fbc2003-09-06 15:17:13 +000031401# CONFIG_COMMANDS section.
31402#
31403for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31404 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31405 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31406 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31407$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031408 X"$ac_dest" : 'X\(//\)[^/]' \| \
31409 X"$ac_dest" : 'X\(//\)$' \| \
31410 X"$ac_dest" : 'X\(/\)' \| \
31411 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000031412echo X"$ac_dest" |
31413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31415 /^X\(\/\/\)$/{ s//\1/; q; }
31416 /^X\(\/\).*/{ s//\1/; q; }
31417 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031418 { if $as_mkdir_p; then
31419 mkdir -p "$ac_dir"
31420 else
31421 as_dir="$ac_dir"
31422 as_dirs=
31423 while test ! -d "$as_dir"; do
31424 as_dirs="$as_dir $as_dirs"
31425 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31426$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31427 X"$as_dir" : 'X\(//\)[^/]' \| \
31428 X"$as_dir" : 'X\(//\)$' \| \
31429 X"$as_dir" : 'X\(/\)' \| \
31430 . : '\(.\)' 2>/dev/null ||
31431echo X"$as_dir" |
31432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31434 /^X\(\/\/\)$/{ s//\1/; q; }
31435 /^X\(\/\).*/{ s//\1/; q; }
31436 s/.*/./; q'`
31437 done
31438 test ! -n "$as_dirs" || mkdir $as_dirs
31439 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31440echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31441 { (exit 1); exit 1; }; }; }
31442
John Criswellc764fbc2003-09-06 15:17:13 +000031443 ac_builddir=.
31444
31445if test "$ac_dir" != .; then
31446 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31447 # A "../" for each directory in $ac_dir_suffix.
31448 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31449else
31450 ac_dir_suffix= ac_top_builddir=
31451fi
31452
31453case $srcdir in
31454 .) # No --srcdir option. We are building in place.
31455 ac_srcdir=.
31456 if test -z "$ac_top_builddir"; then
31457 ac_top_srcdir=.
31458 else
31459 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31460 fi ;;
31461 [\\/]* | ?:[\\/]* ) # Absolute path.
31462 ac_srcdir=$srcdir$ac_dir_suffix;
31463 ac_top_srcdir=$srcdir ;;
31464 *) # Relative path.
31465 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31466 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31467esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031468
31469# Do not use `cd foo && pwd` to compute absolute paths, because
31470# the directories may not exist.
31471case `pwd` in
31472.) ac_abs_builddir="$ac_dir";;
31473*)
31474 case "$ac_dir" in
31475 .) ac_abs_builddir=`pwd`;;
31476 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31477 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31478 esac;;
31479esac
31480case $ac_abs_builddir in
31481.) ac_abs_top_builddir=${ac_top_builddir}.;;
31482*)
31483 case ${ac_top_builddir}. in
31484 .) ac_abs_top_builddir=$ac_abs_builddir;;
31485 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31486 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31487 esac;;
31488esac
31489case $ac_abs_builddir in
31490.) ac_abs_srcdir=$ac_srcdir;;
31491*)
31492 case $ac_srcdir in
31493 .) ac_abs_srcdir=$ac_abs_builddir;;
31494 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31495 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31496 esac;;
31497esac
31498case $ac_abs_builddir in
31499.) ac_abs_top_srcdir=$ac_top_srcdir;;
31500*)
31501 case $ac_top_srcdir in
31502 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31503 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31504 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31505 esac;;
31506esac
John Criswellc764fbc2003-09-06 15:17:13 +000031507
31508
31509 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31510echo "$as_me: executing $ac_dest commands" >&6;}
31511 case $ac_dest in
31512 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
31513 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031514 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031515 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031516 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031517 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
31518 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031519 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031520 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031521 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031522 esac
31523done
31524_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031525
31526cat >>$CONFIG_STATUS <<\_ACEOF
31527
31528{ (exit 0); exit 0; }
31529_ACEOF
31530chmod +x $CONFIG_STATUS
31531ac_clean_files=$ac_clean_files_save
31532
31533
31534# configure is writing to config.log, and then calls config.status.
31535# config.status does its own redirection, appending to config.log.
31536# Unfortunately, on DOS this fails, as config.log is still kept open
31537# by configure, so config.status won't be able to write to it; its
31538# output is simply discarded. So we exec the FD to /dev/null,
31539# effectively closing config.log, so it can be properly (re)opened and
31540# appended to by config.status. When coming back to configure, we
31541# need to make the FD available again.
31542if test "$no_create" != yes; then
31543 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031544 ac_config_status_args=
31545 test "$silent" = yes &&
31546 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031547 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031548 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031549 exec 5>>config.log
31550 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31551 # would make configure fail if this is the last instruction.
31552 $ac_cs_success || { (exit 1); exit 1; }
31553fi
31554
John Criswell12399a12003-09-30 15:55:44 +000031555#
31556# CONFIG_SUBDIRS section.
31557#
31558if test "$no_recursion" != yes; then
31559
31560 # Remove --cache-file and --srcdir arguments so they do not pile up.
31561 ac_sub_configure_args=
31562 ac_prev=
31563 for ac_arg in $ac_configure_args; do
31564 if test -n "$ac_prev"; then
31565 ac_prev=
31566 continue
31567 fi
31568 case $ac_arg in
31569 -cache-file | --cache-file | --cache-fil | --cache-fi \
31570 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31571 ac_prev=cache_file ;;
31572 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31573 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31574 | --c=*)
31575 ;;
31576 --config-cache | -C)
31577 ;;
31578 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31579 ac_prev=srcdir ;;
31580 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31581 ;;
31582 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31583 ac_prev=prefix ;;
31584 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31585 ;;
31586 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31587 esac
31588 done
31589
31590 # Always prepend --prefix to ensure using the same prefix
31591 # in subdir configurations.
31592 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31593
31594 ac_popdir=`pwd`
31595 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31596
31597 # Do not complain, so a configure script can configure whichever
31598 # parts of a large source tree are present.
31599 test -d $srcdir/$ac_dir || continue
31600
31601 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31602echo "$as_me: configuring in $ac_dir" >&6;}
31603 { if $as_mkdir_p; then
31604 mkdir -p "$ac_dir"
31605 else
31606 as_dir="$ac_dir"
31607 as_dirs=
31608 while test ! -d "$as_dir"; do
31609 as_dirs="$as_dir $as_dirs"
31610 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31611$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031612 X"$as_dir" : 'X\(//\)[^/]' \| \
31613 X"$as_dir" : 'X\(//\)$' \| \
31614 X"$as_dir" : 'X\(/\)' \| \
31615 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031616echo X"$as_dir" |
31617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31618 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31619 /^X\(\/\/\)$/{ s//\1/; q; }
31620 /^X\(\/\).*/{ s//\1/; q; }
31621 s/.*/./; q'`
31622 done
31623 test ! -n "$as_dirs" || mkdir $as_dirs
31624 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31625echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31626 { (exit 1); exit 1; }; }; }
31627
31628 ac_builddir=.
31629
31630if test "$ac_dir" != .; then
31631 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31632 # A "../" for each directory in $ac_dir_suffix.
31633 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31634else
31635 ac_dir_suffix= ac_top_builddir=
31636fi
31637
31638case $srcdir in
31639 .) # No --srcdir option. We are building in place.
31640 ac_srcdir=.
31641 if test -z "$ac_top_builddir"; then
31642 ac_top_srcdir=.
31643 else
31644 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31645 fi ;;
31646 [\\/]* | ?:[\\/]* ) # Absolute path.
31647 ac_srcdir=$srcdir$ac_dir_suffix;
31648 ac_top_srcdir=$srcdir ;;
31649 *) # Relative path.
31650 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31651 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31652esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031653
31654# Do not use `cd foo && pwd` to compute absolute paths, because
31655# the directories may not exist.
31656case `pwd` in
31657.) ac_abs_builddir="$ac_dir";;
31658*)
31659 case "$ac_dir" in
31660 .) ac_abs_builddir=`pwd`;;
31661 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31662 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31663 esac;;
31664esac
31665case $ac_abs_builddir in
31666.) ac_abs_top_builddir=${ac_top_builddir}.;;
31667*)
31668 case ${ac_top_builddir}. in
31669 .) ac_abs_top_builddir=$ac_abs_builddir;;
31670 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31671 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31672 esac;;
31673esac
31674case $ac_abs_builddir in
31675.) ac_abs_srcdir=$ac_srcdir;;
31676*)
31677 case $ac_srcdir in
31678 .) ac_abs_srcdir=$ac_abs_builddir;;
31679 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31680 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31681 esac;;
31682esac
31683case $ac_abs_builddir in
31684.) ac_abs_top_srcdir=$ac_top_srcdir;;
31685*)
31686 case $ac_top_srcdir in
31687 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31688 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31689 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31690 esac;;
31691esac
John Criswell12399a12003-09-30 15:55:44 +000031692
31693
31694 cd $ac_dir
31695
31696 # Check for guested configure; otherwise get Cygnus style configure.
31697 if test -f $ac_srcdir/configure.gnu; then
31698 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31699 elif test -f $ac_srcdir/configure; then
31700 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31701 elif test -f $ac_srcdir/configure.in; then
31702 ac_sub_configure=$ac_configure
31703 else
31704 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31705echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31706 ac_sub_configure=
31707 fi
31708
31709 # The recursion is here.
31710 if test -n "$ac_sub_configure"; then
31711 # Make the cache file name correct relative to the subdirectory.
31712 case $cache_file in
31713 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31714 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031715 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031716 esac
31717
31718 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31719echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31720 # The eval makes quoting arguments work.
31721 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031722 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31723 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031724echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31725 { (exit 1); exit 1; }; }
31726 fi
31727
31728 cd $ac_popdir
31729 done
31730fi
31731
Brian Gaekef3b24102003-11-16 18:38:14 +000031732
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031733if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000031734 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
31735echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000031736 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
31737echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
31738 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
31739echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
31740 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
31741echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
31742 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
31743echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000031744fi