blob: 9292568a446f1d51d01f24848ead3eb1b26d2b4d [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 Spencer86901802004-12-08 23:07:27 +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 LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S 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 ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +0000968\`configure' configures llvm 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencerabec8f92004-10-27 23:03:44 +00001030 short | recursive ) echo "Configuration of llvm 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
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 Spencer5e1d9a52004-11-25 04:51:04 +00001052 --with-llvmgccdir Location of LLVM GCC front-end
Reid Spencer0fcb9412004-11-30 08:11:54 +00001053 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001054 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1055 --with-pic try to use only PIC/non-PIC objects [default=use
1056 both]
1057 --with-tags[=TAGS]
1058 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001059
1060Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001061 CC C compiler command
1062 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001067 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001073
1074Use these variables to override the choices made by `configure' or to help
1075it to find libraries and programs with nonstandard names/locations.
1076
1077Report bugs to <llvmbugs@cs.uiuc.edu>.
1078_ACEOF
1079fi
1080
1081if test "$ac_init_help" = "recursive"; then
1082 # If there are subdirs, report their specific --help.
1083 ac_popdir=`pwd`
1084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085 test -d $ac_dir || continue
1086 ac_builddir=.
1087
1088if test "$ac_dir" != .; then
1089 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090 # A "../" for each directory in $ac_dir_suffix.
1091 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092else
1093 ac_dir_suffix= ac_top_builddir=
1094fi
1095
1096case $srcdir in
1097 .) # No --srcdir option. We are building in place.
1098 ac_srcdir=.
1099 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=.
1101 else
1102 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 fi ;;
1104 [\\/]* | ?:[\\/]* ) # Absolute path.
1105 ac_srcdir=$srcdir$ac_dir_suffix;
1106 ac_top_srcdir=$srcdir ;;
1107 *) # Relative path.
1108 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001111
1112# Do not use `cd foo && pwd` to compute absolute paths, because
1113# the directories may not exist.
1114case `pwd` in
1115.) ac_abs_builddir="$ac_dir";;
1116*)
1117 case "$ac_dir" in
1118 .) ac_abs_builddir=`pwd`;;
1119 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121 esac;;
1122esac
1123case $ac_abs_builddir in
1124.) ac_abs_top_builddir=${ac_top_builddir}.;;
1125*)
1126 case ${ac_top_builddir}. in
1127 .) ac_abs_top_builddir=$ac_abs_builddir;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130 esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_srcdir=$ac_srcdir;;
1134*)
1135 case $ac_srcdir in
1136 .) ac_abs_srcdir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_srcdir=$ac_top_srcdir;;
1143*)
1144 case $ac_top_srcdir in
1145 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148 esac;;
1149esac
John Criswell7a73b802003-06-30 21:59:07 +00001150
1151 cd $ac_dir
1152 # Check for guested configure; otherwise get Cygnus style configure.
1153 if test -f $ac_srcdir/configure.gnu; then
1154 echo
1155 $SHELL $ac_srcdir/configure.gnu --help=recursive
1156 elif test -f $ac_srcdir/configure; then
1157 echo
1158 $SHELL $ac_srcdir/configure --help=recursive
1159 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001160 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001161 echo
1162 $ac_configure --help
1163 else
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 fi
1166 cd $ac_popdir
1167 done
1168fi
1169
1170test -n "$ac_init_help" && exit 0
1171if $ac_init_version; then
1172 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001173llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001174generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001175
Reid Spencer2706f8c2004-09-19 23:53:36 +00001176Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001177This configure script is free software; the Free Software Foundation
1178gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001179
1180$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001181_ACEOF
1182 exit 0
1183fi
1184exec 5>config.log
1185cat >&5 <<_ACEOF
1186This file contains any messages produced by compilers while
1187running configure, to aid debugging if configure makes a mistake.
1188
Reid Spencerabec8f92004-10-27 23:03:44 +00001189It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001190generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001191
1192 $ $0 $@
1193
1194_ACEOF
1195{
1196cat <<_ASUNAME
1197## --------- ##
1198## Platform. ##
1199## --------- ##
1200
1201hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1202uname -m = `(uname -m) 2>/dev/null || echo unknown`
1203uname -r = `(uname -r) 2>/dev/null || echo unknown`
1204uname -s = `(uname -s) 2>/dev/null || echo unknown`
1205uname -v = `(uname -v) 2>/dev/null || echo unknown`
1206
1207/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1208/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1209
1210/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1211/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1212/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1213hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1214/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1215/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1216/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1217
1218_ASUNAME
1219
1220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1221for as_dir in $PATH
1222do
1223 IFS=$as_save_IFS
1224 test -z "$as_dir" && as_dir=.
1225 echo "PATH: $as_dir"
1226done
1227
1228} >&5
1229
1230cat >&5 <<_ACEOF
1231
1232
1233## ----------- ##
1234## Core tests. ##
1235## ----------- ##
1236
1237_ACEOF
1238
1239
1240# Keep a trace of the command line.
1241# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001242# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001243# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001244# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001245ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001246ac_configure_args0=
1247ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001248ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001249ac_must_keep_next=false
1250for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001251do
John Criswell0c38eaf2003-09-10 15:17:25 +00001252 for ac_arg
1253 do
1254 case $ac_arg in
1255 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1256 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1257 | -silent | --silent | --silen | --sile | --sil)
1258 continue ;;
1259 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1261 esac
1262 case $ac_pass in
1263 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1264 2)
1265 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1266 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001267 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001268 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001269 case $ac_arg in
1270 *=* | --config-cache | -C | -disable-* | --disable-* \
1271 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1272 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1273 | -with-* | --with-* | -without-* | --without-* | --x)
1274 case "$ac_configure_args0 " in
1275 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1276 esac
1277 ;;
1278 -* ) ac_must_keep_next=true ;;
1279 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001280 fi
1281 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1282 # Get rid of the leading space.
1283 ac_sep=" "
1284 ;;
1285 esac
1286 done
John Criswell7a73b802003-06-30 21:59:07 +00001287done
John Criswell0c38eaf2003-09-10 15:17:25 +00001288$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1289$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 +00001290
1291# When interrupted or exit'd, cleanup temporary files, and complete
1292# config.log. We remove comments because anyway the quotes in there
1293# would cause problems or look ugly.
1294# WARNING: Be sure not to use single quotes in there, as some shells,
1295# such as our DU 5.0 friend, will then `close' the trap.
1296trap 'exit_status=$?
1297 # Save into config.log some information that might help in debugging.
1298 {
1299 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001300
John Criswell7a73b802003-06-30 21:59:07 +00001301 cat <<\_ASBOX
1302## ---------------- ##
1303## Cache variables. ##
1304## ---------------- ##
1305_ASBOX
1306 echo
1307 # The following way of writing the cache mishandles newlines in values,
1308{
1309 (set) 2>&1 |
1310 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1311 *ac_space=\ *)
1312 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001313 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001315 ;;
1316 *)
1317 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001318 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001319 ;;
1320 esac;
1321}
1322 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001323
1324 cat <<\_ASBOX
1325## ----------------- ##
1326## Output variables. ##
1327## ----------------- ##
1328_ASBOX
1329 echo
1330 for ac_var in $ac_subst_vars
1331 do
1332 eval ac_val=$`echo $ac_var`
1333 echo "$ac_var='"'"'$ac_val'"'"'"
1334 done | sort
1335 echo
1336
1337 if test -n "$ac_subst_files"; then
1338 cat <<\_ASBOX
1339## ------------- ##
1340## Output files. ##
1341## ------------- ##
1342_ASBOX
1343 echo
1344 for ac_var in $ac_subst_files
1345 do
1346 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001347 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001348 done | sort
1349 echo
1350 fi
1351
John Criswell7a73b802003-06-30 21:59:07 +00001352 if test -s confdefs.h; then
1353 cat <<\_ASBOX
1354## ----------- ##
1355## confdefs.h. ##
1356## ----------- ##
1357_ASBOX
1358 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001359 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001360 echo
1361 fi
1362 test "$ac_signal" != 0 &&
1363 echo "$as_me: caught signal $ac_signal"
1364 echo "$as_me: exit $exit_status"
1365 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001366 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001367 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1368 exit $exit_status
1369 ' 0
1370for ac_signal in 1 2 13 15; do
1371 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1372done
1373ac_signal=0
1374
1375# confdefs.h avoids OS command line length limits that DEFS can exceed.
1376rm -rf conftest* confdefs.h
1377# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1378echo >confdefs.h
1379
1380# Predefined preprocessor variables.
1381
1382cat >>confdefs.h <<_ACEOF
1383#define PACKAGE_NAME "$PACKAGE_NAME"
1384_ACEOF
1385
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_VERSION "$PACKAGE_VERSION"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_STRING "$PACKAGE_STRING"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1404_ACEOF
1405
1406
1407# Let the site file select an alternate cache file if it wants to.
1408# Prefer explicitly selected file to automatically selected ones.
1409if test -z "$CONFIG_SITE"; then
1410 if test "x$prefix" != xNONE; then
1411 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1412 else
1413 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1414 fi
1415fi
1416for ac_site_file in $CONFIG_SITE; do
1417 if test -r "$ac_site_file"; then
1418 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1419echo "$as_me: loading site script $ac_site_file" >&6;}
1420 sed 's/^/| /' "$ac_site_file" >&5
1421 . "$ac_site_file"
1422 fi
1423done
1424
1425if test -r "$cache_file"; then
1426 # Some versions of bash will fail to source /dev/null (special
1427 # files actually), so we avoid doing that.
1428 if test -f "$cache_file"; then
1429 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1430echo "$as_me: loading cache $cache_file" >&6;}
1431 case $cache_file in
1432 [\\/]* | ?:[\\/]* ) . $cache_file;;
1433 *) . ./$cache_file;;
1434 esac
1435 fi
1436else
1437 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1438echo "$as_me: creating cache $cache_file" >&6;}
1439 >$cache_file
1440fi
1441
1442# Check that the precious variables saved in the cache have kept the same
1443# value.
1444ac_cache_corrupted=false
1445for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001446 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1448 eval ac_new_set=\$ac_env_${ac_var}_set
1449 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1450 eval ac_new_val="\$ac_env_${ac_var}_value"
1451 case $ac_old_set,$ac_new_set in
1452 set,)
1453 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1454echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1455 ac_cache_corrupted=: ;;
1456 ,set)
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1458echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1460 ,);;
1461 *)
1462 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001463 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001464echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001465 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001466echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001467 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001468echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001469 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001470 fi;;
1471 esac
1472 # Pass precious variables to config.status.
1473 if test "$ac_new_set" = set; then
1474 case $ac_new_val in
1475 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1476 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1477 *) ac_arg=$ac_var=$ac_new_val ;;
1478 esac
1479 case " $ac_configure_args " in
1480 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1481 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1482 esac
1483 fi
1484done
1485if $ac_cache_corrupted; then
1486 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1487echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1488 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1489echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1490 { (exit 1); exit 1; }; }
1491fi
1492
1493ac_ext=c
1494ac_cpp='$CPP $CPPFLAGS'
1495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1497ac_compiler_gnu=$ac_cv_c_compiler_gnu
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
John Criswell0c38eaf2003-09-10 15:17:25 +00001525
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001526LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1527
1528
1529
1530
1531
1532
1533
John Criswell7a73b802003-06-30 21:59:07 +00001534ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001535for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001536 if test -f $ac_dir/install-sh; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/install-sh -c"
1539 break
1540 elif test -f $ac_dir/install.sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install.sh -c"
1543 break
1544 elif test -f $ac_dir/shtool; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 break
1548 fi
1549done
1550if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001551 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1552echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001553 { (exit 1); exit 1; }; }
1554fi
1555ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558
John Criswell392aaa32003-07-22 19:18:09 +00001559
Reid Spencer2706f8c2004-09-19 23:53:36 +00001560if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001561 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1562 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001563echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1564 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001565 fi
John Criswell93e1c722003-09-15 17:04:06 +00001566fi
1567
John Criswell33a911a2003-11-25 20:36:46 +00001568for i in `ls ${srcdir}/projects`
1569do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001570 if test -d ${srcdir}/projects/${i} ; then
1571 case ${i} in
1572 "CVS") ;;
1573 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001574
Reid Spencer4d68ba22004-09-07 16:35:45 +00001575subdirs="$subdirs projects/sample"
1576 ;;
1577 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001578
Reid Spencer4d68ba22004-09-07 16:35:45 +00001579subdirs="$subdirs projects/Stacker"
1580 ;;
1581 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001582
Reid Spencer4d68ba22004-09-07 16:35:45 +00001583subdirs="$subdirs projects/llvm-test"
1584 ;;
1585 "llvm-reopt")
1586
1587subdirs="$subdirs projects/llvm-reopt"
1588;;
1589 "llvm-gcc")
1590
1591subdirs="$subdirs projects/llvm-gcc"
1592 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001593 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001594
Reid Spencer641f7ef2004-09-20 22:14:56 +00001595subdirs="$subdirs projects/Java"
1596 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001597 "llvm-tv")
1598
1599subdirs="$subdirs projects/llvm-tv"
1600 ;;
1601 "llvm-fefw")
1602
1603subdirs="$subdirs projects/llvm-fefw"
1604 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001605 "poolalloc")
1606
1607subdirs="$subdirs projects/poolalloc"
1608 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001609 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001610 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1611echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001612 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001613 esac
John Criswell33a911a2003-11-25 20:36:46 +00001614 fi
1615done
John Criswell559a6c12003-09-30 16:31:48 +00001616
John Criswell7a73b802003-06-30 21:59:07 +00001617
1618# Make sure we can run config.sub.
1619$ac_config_sub sun4 >/dev/null 2>&1 ||
1620 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1621echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1622 { (exit 1); exit 1; }; }
1623
1624echo "$as_me:$LINENO: checking build system type" >&5
1625echo $ECHO_N "checking build system type... $ECHO_C" >&6
1626if test "${ac_cv_build+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1628else
1629 ac_cv_build_alias=$build_alias
1630test -z "$ac_cv_build_alias" &&
1631 ac_cv_build_alias=`$ac_config_guess`
1632test -z "$ac_cv_build_alias" &&
1633 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1634echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1635 { (exit 1); exit 1; }; }
1636ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1637 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1638echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1639 { (exit 1); exit 1; }; }
1640
1641fi
1642echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1643echo "${ECHO_T}$ac_cv_build" >&6
1644build=$ac_cv_build
1645build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648
1649
1650echo "$as_me:$LINENO: checking host system type" >&5
1651echo $ECHO_N "checking host system type... $ECHO_C" >&6
1652if test "${ac_cv_host+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1654else
1655 ac_cv_host_alias=$host_alias
1656test -z "$ac_cv_host_alias" &&
1657 ac_cv_host_alias=$ac_cv_build_alias
1658ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1659 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1660echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1661 { (exit 1); exit 1; }; }
1662
1663fi
1664echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1665echo "${ECHO_T}$ac_cv_host" >&6
1666host=$ac_cv_host
1667host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1668host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1669host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670
1671
1672echo "$as_me:$LINENO: checking target system type" >&5
1673echo $ECHO_N "checking target system type... $ECHO_C" >&6
1674if test "${ac_cv_target+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1676else
1677 ac_cv_target_alias=$target_alias
1678test "x$ac_cv_target_alias" = "x" &&
1679 ac_cv_target_alias=$ac_cv_host_alias
1680ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1681 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1682echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1683 { (exit 1); exit 1; }; }
1684
1685fi
1686echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1687echo "${ECHO_T}$ac_cv_target" >&6
1688target=$ac_cv_target
1689target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1690target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1691target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692
1693
1694# The aliases save the names the user supplied, while $host etc.
1695# will get canonicalized.
1696test -n "$target_alias" &&
1697 test "$program_prefix$program_suffix$program_transform_name" = \
1698 NONENONEs,x,x, &&
1699 program_prefix=${target_alias}-
1700
Reid Spencer73fb5482004-08-31 14:20:36 +00001701echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1702echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001703if test "${llvm_cv_platform_type+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 case $build in
1707 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1708 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1709 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1710 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1711 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1712 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1713 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1714 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1715 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1716 *) llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001717esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001718fi
1719echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1720echo "${ECHO_T}$llvm_cv_platform_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001721
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001722if test "$llvm_cv_platform_type" = "Unknown" ; then
1723 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1724echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001725 { (exit 1); exit 1; }; }
1726fi
1727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001728OS=$llvm_cv_platform_type
1729
1730
Reid Spenceredd01b92004-11-25 06:03:14 +00001731 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
Reid Spencerde8c47f2004-08-29 19:35:28 +00001732
1733
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001734case $target in
1735 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1736
1737 ;;
1738esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001739
1740echo "$as_me:$LINENO: checking target architecture" >&5
1741echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001742if test "${llvm_cv_target_arch+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745 case $target in
1746 i*86-*) llvm_cv_target_arch="x86" ;;
1747 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1748 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1749 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001750esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001751fi
1752echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1753echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001754
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001755if test "$llvm_cv_target_arch" = "Unknown" ; then
1756 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1757echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1758fi
John Criswell76595452003-07-01 22:07:39 +00001759
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001760ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001761
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001762
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001763ac_ext=c
1764ac_cpp='$CPP $CPPFLAGS'
1765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1767ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001768if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001769 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1770set dummy ${ac_tool_prefix}gcc; ac_word=$2
1771echo "$as_me:$LINENO: checking for $ac_word" >&5
1772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773if test "${ac_cv_prog_CC+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776 if test -n "$CC"; then
1777 ac_cv_prog_CC="$CC" # Let the user override the test.
1778else
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782 IFS=$as_save_IFS
1783 test -z "$as_dir" && as_dir=.
1784 for ac_exec_ext in '' $ac_executable_extensions; do
1785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788 break 2
1789 fi
1790done
1791done
1792
1793fi
1794fi
1795CC=$ac_cv_prog_CC
1796if test -n "$CC"; then
1797 echo "$as_me:$LINENO: result: $CC" >&5
1798echo "${ECHO_T}$CC" >&6
1799else
1800 echo "$as_me:$LINENO: result: no" >&5
1801echo "${ECHO_T}no" >&6
1802fi
1803
1804fi
1805if test -z "$ac_cv_prog_CC"; then
1806 ac_ct_CC=$CC
1807 # Extract the first word of "gcc", so it can be a program name with args.
1808set dummy gcc; ac_word=$2
1809echo "$as_me:$LINENO: checking for $ac_word" >&5
1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1812 echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814 if test -n "$ac_ct_CC"; then
1815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1816else
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
1822 for ac_exec_ext in '' $ac_executable_extensions; do
1823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824 ac_cv_prog_ac_ct_CC="gcc"
1825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826 break 2
1827 fi
1828done
1829done
1830
1831fi
1832fi
1833ac_ct_CC=$ac_cv_prog_ac_ct_CC
1834if test -n "$ac_ct_CC"; then
1835 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1836echo "${ECHO_T}$ac_ct_CC" >&6
1837else
1838 echo "$as_me:$LINENO: result: no" >&5
1839echo "${ECHO_T}no" >&6
1840fi
1841
1842 CC=$ac_ct_CC
1843else
1844 CC="$ac_cv_prog_CC"
1845fi
1846
1847if test -z "$CC"; then
1848 if test -n "$ac_tool_prefix"; then
1849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1850set dummy ${ac_tool_prefix}cc; ac_word=$2
1851echo "$as_me:$LINENO: checking for $ac_word" >&5
1852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1853if test "${ac_cv_prog_CC+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855else
1856 if test -n "$CC"; then
1857 ac_cv_prog_CC="$CC" # Let the user override the test.
1858else
1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860for as_dir in $PATH
1861do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 for ac_exec_ext in '' $ac_executable_extensions; do
1865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1866 ac_cv_prog_CC="${ac_tool_prefix}cc"
1867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868 break 2
1869 fi
1870done
1871done
1872
1873fi
1874fi
1875CC=$ac_cv_prog_CC
1876if test -n "$CC"; then
1877 echo "$as_me:$LINENO: result: $CC" >&5
1878echo "${ECHO_T}$CC" >&6
1879else
1880 echo "$as_me:$LINENO: result: no" >&5
1881echo "${ECHO_T}no" >&6
1882fi
1883
1884fi
1885if test -z "$ac_cv_prog_CC"; then
1886 ac_ct_CC=$CC
1887 # Extract the first word of "cc", so it can be a program name with args.
1888set dummy cc; ac_word=$2
1889echo "$as_me:$LINENO: checking for $ac_word" >&5
1890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1891if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893else
1894 if test -n "$ac_ct_CC"; then
1895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1896else
1897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898for as_dir in $PATH
1899do
1900 IFS=$as_save_IFS
1901 test -z "$as_dir" && as_dir=.
1902 for ac_exec_ext in '' $ac_executable_extensions; do
1903 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904 ac_cv_prog_ac_ct_CC="cc"
1905 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1906 break 2
1907 fi
1908done
1909done
1910
1911fi
1912fi
1913ac_ct_CC=$ac_cv_prog_ac_ct_CC
1914if test -n "$ac_ct_CC"; then
1915 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1916echo "${ECHO_T}$ac_ct_CC" >&6
1917else
1918 echo "$as_me:$LINENO: result: no" >&5
1919echo "${ECHO_T}no" >&6
1920fi
1921
1922 CC=$ac_ct_CC
1923else
1924 CC="$ac_cv_prog_CC"
1925fi
1926
1927fi
1928if test -z "$CC"; then
1929 # Extract the first word of "cc", so it can be a program name with args.
1930set dummy cc; ac_word=$2
1931echo "$as_me:$LINENO: checking for $ac_word" >&5
1932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1933if test "${ac_cv_prog_CC+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935else
1936 if test -n "$CC"; then
1937 ac_cv_prog_CC="$CC" # Let the user override the test.
1938else
1939 ac_prog_rejected=no
1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943 IFS=$as_save_IFS
1944 test -z "$as_dir" && as_dir=.
1945 for ac_exec_ext in '' $ac_executable_extensions; do
1946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1948 ac_prog_rejected=yes
1949 continue
1950 fi
1951 ac_cv_prog_CC="cc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1954 fi
1955done
1956done
1957
1958if test $ac_prog_rejected = yes; then
1959 # We found a bogon in the path, so make sure we never use it.
1960 set dummy $ac_cv_prog_CC
1961 shift
1962 if test $# != 0; then
1963 # We chose a different compiler from the bogus one.
1964 # However, it has the same basename, so the bogon will be chosen
1965 # first if we set CC to just the basename; use the full file name.
1966 shift
1967 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1968 fi
1969fi
1970fi
1971fi
1972CC=$ac_cv_prog_CC
1973if test -n "$CC"; then
1974 echo "$as_me:$LINENO: result: $CC" >&5
1975echo "${ECHO_T}$CC" >&6
1976else
1977 echo "$as_me:$LINENO: result: no" >&5
1978echo "${ECHO_T}no" >&6
1979fi
1980
1981fi
1982if test -z "$CC"; then
1983 if test -n "$ac_tool_prefix"; then
1984 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00001985 do
1986 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1987set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1988echo "$as_me:$LINENO: checking for $ac_word" >&5
1989echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001990if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00001991 echo $ECHO_N "(cached) $ECHO_C" >&6
1992else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001993 if test -n "$CC"; then
1994 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001995else
1996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997for as_dir in $PATH
1998do
1999 IFS=$as_save_IFS
2000 test -z "$as_dir" && as_dir=.
2001 for ac_exec_ext in '' $ac_executable_extensions; do
2002 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002003 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005 break 2
2006 fi
2007done
2008done
2009
2010fi
2011fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002012CC=$ac_cv_prog_CC
2013if test -n "$CC"; then
2014 echo "$as_me:$LINENO: result: $CC" >&5
2015echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002016else
2017 echo "$as_me:$LINENO: result: no" >&5
2018echo "${ECHO_T}no" >&6
2019fi
2020
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002021 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002022 done
2023fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002024if test -z "$CC"; then
2025 ac_ct_CC=$CC
2026 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002027do
2028 # Extract the first word of "$ac_prog", so it can be a program name with args.
2029set dummy $ac_prog; ac_word=$2
2030echo "$as_me:$LINENO: checking for $ac_word" >&5
2031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002032if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002033 echo $ECHO_N "(cached) $ECHO_C" >&6
2034else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002035 if test -n "$ac_ct_CC"; then
2036 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002037else
2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039for as_dir in $PATH
2040do
2041 IFS=$as_save_IFS
2042 test -z "$as_dir" && as_dir=.
2043 for ac_exec_ext in '' $ac_executable_extensions; do
2044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002045 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047 break 2
2048 fi
2049done
2050done
2051
2052fi
2053fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002054ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055if test -n "$ac_ct_CC"; then
2056 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002058else
2059 echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6
2061fi
2062
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002063 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002064done
John Criswell7a73b802003-06-30 21:59:07 +00002065
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002066 CC=$ac_ct_CC
2067fi
2068
John Criswell7a73b802003-06-30 21:59:07 +00002069fi
2070
2071
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002072test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2073See \`config.log' for more details." >&5
2074echo "$as_me: error: no acceptable C compiler found in \$PATH
2075See \`config.log' for more details." >&2;}
2076 { (exit 1); exit 1; }; }
2077
John Criswell7a73b802003-06-30 21:59:07 +00002078# Provide some information about the compiler.
2079echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002080 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002081ac_compiler=`set X $ac_compile; echo $2`
2082{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2083 (eval $ac_compiler --version </dev/null >&5) 2>&5
2084 ac_status=$?
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }
2087{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2088 (eval $ac_compiler -v </dev/null >&5) 2>&5
2089 ac_status=$?
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }
2092{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2093 (eval $ac_compiler -V </dev/null >&5) 2>&5
2094 ac_status=$?
2095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096 (exit $ac_status); }
2097
2098cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002099/* confdefs.h. */
2100_ACEOF
2101cat confdefs.h >>conftest.$ac_ext
2102cat >>conftest.$ac_ext <<_ACEOF
2103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002104
John Criswell7a73b802003-06-30 21:59:07 +00002105int
2106main ()
2107{
2108
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002114ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002115# Try to create an executable without -o first, disregard a.out.
2116# It will help us diagnose broken compilers, and finding out an intuition
2117# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002118echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2119echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002120ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2121if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2122 (eval $ac_link_default) 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }; then
2126 # Find the output, starting from the most likely. This scheme is
2127# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2128# resort.
2129
2130# Be careful to initialize this variable, since it used to be cached.
2131# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2132ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002133# b.out is created by i960 compilers.
2134for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2135do
2136 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002137 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002138 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002139 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002140 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002141 # This is the source file.
2142 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002143 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002144 # We found the default executable, but exeext='' is most
2145 # certainly right.
2146 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002147 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2149 # FIXME: I believe we export ac_cv_exeext for Libtool,
2150 # but it would be cool to find out if it's true. Does anybody
2151 # maintain Libtool? --akim.
2152 export ac_cv_exeext
2153 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002154 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002155 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002156 esac
2157done
2158else
2159 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002160sed 's/^/| /' conftest.$ac_ext >&5
2161
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002162{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002163See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002164echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002165See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002166 { (exit 77); exit 77; }; }
2167fi
2168
2169ac_exeext=$ac_cv_exeext
2170echo "$as_me:$LINENO: result: $ac_file" >&5
2171echo "${ECHO_T}$ac_file" >&6
2172
2173# Check the compiler produces executables we can run. If not, either
2174# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002175echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2176echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002177# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2178# If not cross compiling, check that we can run a simple program.
2179if test "$cross_compiling" != yes; then
2180 if { ac_try='./$ac_file'
2181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182 (eval $ac_try) 2>&5
2183 ac_status=$?
2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185 (exit $ac_status); }; }; then
2186 cross_compiling=no
2187 else
2188 if test "$cross_compiling" = maybe; then
2189 cross_compiling=yes
2190 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002191 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002192If you meant to cross compile, use \`--host'.
2193See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002194echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002195If you meant to cross compile, use \`--host'.
2196See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002197 { (exit 1); exit 1; }; }
2198 fi
2199 fi
2200fi
2201echo "$as_me:$LINENO: result: yes" >&5
2202echo "${ECHO_T}yes" >&6
2203
John Criswell0c38eaf2003-09-10 15:17:25 +00002204rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002205ac_clean_files=$ac_clean_files_save
2206# Check the compiler produces executables we can run. If not, either
2207# the compiler is broken, or we cross compile.
2208echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2209echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2210echo "$as_me:$LINENO: result: $cross_compiling" >&5
2211echo "${ECHO_T}$cross_compiling" >&6
2212
2213echo "$as_me:$LINENO: checking for suffix of executables" >&5
2214echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2216 (eval $ac_link) 2>&5
2217 ac_status=$?
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; then
2220 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2221# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2222# work properly (i.e., refer to `conftest.exe'), while it won't with
2223# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002224for ac_file in conftest.exe conftest conftest.*; do
2225 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002226 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002228 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002229 export ac_cv_exeext
2230 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002231 * ) break;;
2232 esac
2233done
2234else
John Criswell0c38eaf2003-09-10 15:17:25 +00002235 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2238See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002239 { (exit 1); exit 1; }; }
2240fi
2241
2242rm -f conftest$ac_cv_exeext
2243echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2244echo "${ECHO_T}$ac_cv_exeext" >&6
2245
2246rm -f conftest.$ac_ext
2247EXEEXT=$ac_cv_exeext
2248ac_exeext=$EXEEXT
2249echo "$as_me:$LINENO: checking for suffix of object files" >&5
2250echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2251if test "${ac_cv_objext+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002255/* confdefs.h. */
2256_ACEOF
2257cat confdefs.h >>conftest.$ac_ext
2258cat >>conftest.$ac_ext <<_ACEOF
2259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002260
John Criswell7a73b802003-06-30 21:59:07 +00002261int
2262main ()
2263{
2264
2265 ;
2266 return 0;
2267}
2268_ACEOF
2269rm -f conftest.o conftest.obj
2270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271 (eval $ac_compile) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; then
2275 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2276 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002278 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2279 break;;
2280 esac
2281done
2282else
2283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2287See \`config.log' for more details." >&5
2288echo "$as_me: error: cannot compute suffix of object files: cannot compile
2289See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002290 { (exit 1); exit 1; }; }
2291fi
2292
2293rm -f conftest.$ac_cv_objext conftest.$ac_ext
2294fi
2295echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2296echo "${ECHO_T}$ac_cv_objext" >&6
2297OBJEXT=$ac_cv_objext
2298ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002299echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2300echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2301if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002302 echo $ECHO_N "(cached) $ECHO_C" >&6
2303else
2304 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002305/* confdefs.h. */
2306_ACEOF
2307cat confdefs.h >>conftest.$ac_ext
2308cat >>conftest.$ac_ext <<_ACEOF
2309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002310
John Criswell7a73b802003-06-30 21:59:07 +00002311int
2312main ()
2313{
2314#ifndef __GNUC__
2315 choke me
2316#endif
2317
2318 ;
2319 return 0;
2320}
2321_ACEOF
2322rm -f conftest.$ac_objext
2323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002324 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002325 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002326 grep -v '^ *+' conftest.er1 >conftest.err
2327 rm -f conftest.er1
2328 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002331 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002332 || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 ac_compiler_gnu=yes
2345else
2346 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002347sed 's/^/| /' conftest.$ac_ext >&5
2348
John Criswell7a73b802003-06-30 21:59:07 +00002349ac_compiler_gnu=no
2350fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002352ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002353
2354fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002355echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2356echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2357GCC=`test $ac_compiler_gnu = yes && echo yes`
2358ac_test_CFLAGS=${CFLAGS+set}
2359ac_save_CFLAGS=$CFLAGS
2360CFLAGS="-g"
2361echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2362echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2363if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002364 echo $ECHO_N "(cached) $ECHO_C" >&6
2365else
2366 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002372
John Criswell7a73b802003-06-30 21:59:07 +00002373int
2374main ()
2375{
2376
2377 ;
2378 return 0;
2379}
2380_ACEOF
2381rm -f conftest.$ac_objext
2382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002383 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002384 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002390 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002391 || test ! -s conftest.err'
2392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2393 (eval $ac_try) 2>&5
2394 ac_status=$?
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 (eval $ac_try) 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002403 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002404else
2405 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002406sed 's/^/| /' conftest.$ac_ext >&5
2407
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002408ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002409fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002411fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002412echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2413echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2414if test "$ac_test_CFLAGS" = set; then
2415 CFLAGS=$ac_save_CFLAGS
2416elif test $ac_cv_prog_cc_g = yes; then
2417 if test "$GCC" = yes; then
2418 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002419 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002420 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002421 fi
2422else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002423 if test "$GCC" = yes; then
2424 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002425 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002426 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002427 fi
2428fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002429echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2430echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2431if test "${ac_cv_prog_cc_stdc+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2433else
2434 ac_cv_prog_cc_stdc=no
2435ac_save_CC=$CC
2436cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h. */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h. */
2442#include <stdarg.h>
2443#include <stdio.h>
2444#include <sys/types.h>
2445#include <sys/stat.h>
2446/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2447struct buf { int x; };
2448FILE * (*rcsopen) (struct buf *, struct stat *, int);
2449static char *e (p, i)
2450 char **p;
2451 int i;
2452{
2453 return p[i];
2454}
2455static char *f (char * (*g) (char **, int), char **p, ...)
2456{
2457 char *s;
2458 va_list v;
2459 va_start (v,p);
2460 s = g (p, va_arg (v,int));
2461 va_end (v);
2462 return s;
2463}
2464
2465/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2466 function prototypes and stuff, but not '\xHH' hex character constants.
2467 These don't provoke an error unfortunately, instead are silently treated
2468 as 'x'. The following induces an error, until -std1 is added to get
2469 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2470 array size at least. It's necessary to write '\x00'==0 to get something
2471 that's true only with -std1. */
2472int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2473
2474int test (int i, double x);
2475struct s1 {int (*f) (int a);};
2476struct s2 {int (*f) (double a);};
2477int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2478int argc;
2479char **argv;
2480int
2481main ()
2482{
2483return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2484 ;
2485 return 0;
2486}
2487_ACEOF
2488# Don't try gcc -ansi; that turns off useful extensions and
2489# breaks some systems' header files.
2490# AIX -qlanglvl=ansi
2491# Ultrix and OSF/1 -std1
2492# HP-UX 10.20 and later -Ae
2493# HP-UX older versions -Aa -D_HPUX_SOURCE
2494# SVR4 -Xc -D__EXTENSIONS__
2495for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2496do
2497 CC="$ac_save_CC $ac_arg"
2498 rm -f conftest.$ac_objext
2499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2500 (eval $ac_compile) 2>conftest.er1
2501 ac_status=$?
2502 grep -v '^ *+' conftest.er1 >conftest.err
2503 rm -f conftest.er1
2504 cat conftest.err >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); } &&
2507 { ac_try='test -z "$ac_c_werror_flag"
2508 || test ! -s conftest.err'
2509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2510 (eval $ac_try) 2>&5
2511 ac_status=$?
2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513 (exit $ac_status); }; } &&
2514 { ac_try='test -s conftest.$ac_objext'
2515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2516 (eval $ac_try) 2>&5
2517 ac_status=$?
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }; }; then
2520 ac_cv_prog_cc_stdc=$ac_arg
2521break
2522else
2523 echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext
2528done
2529rm -f conftest.$ac_ext conftest.$ac_objext
2530CC=$ac_save_CC
2531
2532fi
2533
2534case "x$ac_cv_prog_cc_stdc" in
2535 x|xno)
2536 echo "$as_me:$LINENO: result: none needed" >&5
2537echo "${ECHO_T}none needed" >&6 ;;
2538 *)
2539 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541 CC="$CC $ac_cv_prog_cc_stdc" ;;
2542esac
2543
2544# Some people use a C++ compiler to compile C. Since we use `exit',
2545# in C++ we need to declare it. In case someone uses the same compiler
2546# for both compiling C and C++ we need to have the C++ compiler decide
2547# the declaration of exit, since it's the most demanding environment.
2548cat >conftest.$ac_ext <<_ACEOF
2549#ifndef __cplusplus
2550 choke me
2551#endif
2552_ACEOF
2553rm -f conftest.$ac_objext
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555 (eval $ac_compile) 2>conftest.er1
2556 ac_status=$?
2557 grep -v '^ *+' conftest.er1 >conftest.err
2558 rm -f conftest.er1
2559 cat conftest.err >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); } &&
2562 { ac_try='test -z "$ac_c_werror_flag"
2563 || test ! -s conftest.err'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; } &&
2569 { ac_try='test -s conftest.$ac_objext'
2570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571 (eval $ac_try) 2>&5
2572 ac_status=$?
2573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574 (exit $ac_status); }; }; then
2575 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002576 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002577 'extern "C" void std::exit (int) throw (); using std::exit;' \
2578 'extern "C" void std::exit (int); using std::exit;' \
2579 'extern "C" void exit (int) throw ();' \
2580 'extern "C" void exit (int);' \
2581 'void exit (int);'
2582do
2583 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002584/* confdefs.h. */
2585_ACEOF
2586cat confdefs.h >>conftest.$ac_ext
2587cat >>conftest.$ac_ext <<_ACEOF
2588/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002589$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002590#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002591int
2592main ()
2593{
2594exit (42);
2595 ;
2596 return 0;
2597}
2598_ACEOF
2599rm -f conftest.$ac_objext
2600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002601 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002602 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002603 grep -v '^ *+' conftest.er1 >conftest.err
2604 rm -f conftest.er1
2605 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002608 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002609 || test ! -s conftest.err'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; } &&
2615 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2617 (eval $ac_try) 2>&5
2618 ac_status=$?
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; }; then
2621 :
2622else
2623 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002624sed 's/^/| /' conftest.$ac_ext >&5
2625
John Criswell7a73b802003-06-30 21:59:07 +00002626continue
2627fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002630/* confdefs.h. */
2631_ACEOF
2632cat confdefs.h >>conftest.$ac_ext
2633cat >>conftest.$ac_ext <<_ACEOF
2634/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002635$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002636int
2637main ()
2638{
2639exit (42);
2640 ;
2641 return 0;
2642}
2643_ACEOF
2644rm -f conftest.$ac_objext
2645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002646 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002648 grep -v '^ *+' conftest.er1 >conftest.err
2649 rm -f conftest.er1
2650 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002653 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002654 || test ! -s conftest.err'
2655 { (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); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 break
2667else
2668 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002669sed 's/^/| /' conftest.$ac_ext >&5
2670
John Criswell7a73b802003-06-30 21:59:07 +00002671fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002673done
2674rm -f conftest*
2675if test -n "$ac_declaration"; then
2676 echo '#ifdef __cplusplus' >>confdefs.h
2677 echo $ac_declaration >>confdefs.h
2678 echo '#endif' >>confdefs.h
2679fi
2680
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002681else
2682 echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685fi
2686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687ac_ext=c
2688ac_cpp='$CPP $CPPFLAGS'
2689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2691ac_compiler_gnu=$ac_cv_c_compiler_gnu
2692
2693
2694echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2695echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2696if test "${ac_cv_c_bigendian+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699 # See if sys/param.h defines the BYTE_ORDER macro.
2700cat >conftest.$ac_ext <<_ACEOF
2701/* confdefs.h. */
2702_ACEOF
2703cat confdefs.h >>conftest.$ac_ext
2704cat >>conftest.$ac_ext <<_ACEOF
2705/* end confdefs.h. */
2706#include <sys/types.h>
2707#include <sys/param.h>
2708
2709int
2710main ()
2711{
2712#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2713 bogus endian macros
2714#endif
2715
2716 ;
2717 return 0;
2718}
2719_ACEOF
2720rm -f conftest.$ac_objext
2721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2723 ac_status=$?
2724 grep -v '^ *+' conftest.er1 >conftest.err
2725 rm -f conftest.er1
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_c_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 (eval $ac_try) 2>&5
2739 ac_status=$?
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2742 # It does; now see whether it defined to BIG_ENDIAN or not.
2743cat >conftest.$ac_ext <<_ACEOF
2744/* confdefs.h. */
2745_ACEOF
2746cat confdefs.h >>conftest.$ac_ext
2747cat >>conftest.$ac_ext <<_ACEOF
2748/* end confdefs.h. */
2749#include <sys/types.h>
2750#include <sys/param.h>
2751
2752int
2753main ()
2754{
2755#if BYTE_ORDER != BIG_ENDIAN
2756 not big endian
2757#endif
2758
2759 ;
2760 return 0;
2761}
2762_ACEOF
2763rm -f conftest.$ac_objext
2764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2765 (eval $ac_compile) 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } &&
2772 { ac_try='test -z "$ac_c_werror_flag"
2773 || test ! -s conftest.err'
2774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 (eval $ac_try) 2>&5
2776 ac_status=$?
2777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778 (exit $ac_status); }; } &&
2779 { ac_try='test -s conftest.$ac_objext'
2780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 (eval $ac_try) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; }; then
2785 ac_cv_c_bigendian=yes
2786else
2787 echo "$as_me: failed program was:" >&5
2788sed 's/^/| /' conftest.$ac_ext >&5
2789
2790ac_cv_c_bigendian=no
2791fi
2792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2793else
2794 echo "$as_me: failed program was:" >&5
2795sed 's/^/| /' conftest.$ac_ext >&5
2796
2797# It does not; compile a test program.
2798if test "$cross_compiling" = yes; then
2799 # try to guess the endianness by grepping values into an object file
2800 ac_cv_c_bigendian=unknown
2801 cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h. */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h. */
2807short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2808short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2809void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2810short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2811short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2812void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2813int
2814main ()
2815{
2816 _ascii (); _ebcdic ();
2817 ;
2818 return 0;
2819}
2820_ACEOF
2821rm -f conftest.$ac_objext
2822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2823 (eval $ac_compile) 2>conftest.er1
2824 ac_status=$?
2825 grep -v '^ *+' conftest.er1 >conftest.err
2826 rm -f conftest.er1
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } &&
2830 { ac_try='test -z "$ac_c_werror_flag"
2831 || test ! -s conftest.err'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; } &&
2837 { ac_try='test -s conftest.$ac_objext'
2838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2839 (eval $ac_try) 2>&5
2840 ac_status=$?
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }; }; then
2843 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2844 ac_cv_c_bigendian=yes
2845fi
2846if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2847 if test "$ac_cv_c_bigendian" = unknown; then
2848 ac_cv_c_bigendian=no
2849 else
2850 # finding both strings is unlikely to happen, but who knows?
2851 ac_cv_c_bigendian=unknown
2852 fi
2853fi
2854else
2855 echo "$as_me: failed program was:" >&5
2856sed 's/^/| /' conftest.$ac_ext >&5
2857
2858fi
2859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2860else
2861 cat >conftest.$ac_ext <<_ACEOF
2862/* confdefs.h. */
2863_ACEOF
2864cat confdefs.h >>conftest.$ac_ext
2865cat >>conftest.$ac_ext <<_ACEOF
2866/* end confdefs.h. */
2867int
2868main ()
2869{
2870 /* Are we little or big endian? From Harbison&Steele. */
2871 union
2872 {
2873 long l;
2874 char c[sizeof (long)];
2875 } u;
2876 u.l = 1;
2877 exit (u.c[sizeof (long) - 1] == 1);
2878}
2879_ACEOF
2880rm -f conftest$ac_exeext
2881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2882 (eval $ac_link) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2887 (eval $ac_try) 2>&5
2888 ac_status=$?
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }; }; then
2891 ac_cv_c_bigendian=no
2892else
2893 echo "$as_me: program exited with status $ac_status" >&5
2894echo "$as_me: failed program was:" >&5
2895sed 's/^/| /' conftest.$ac_ext >&5
2896
2897( exit $ac_status )
2898ac_cv_c_bigendian=yes
2899fi
2900rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2901fi
2902fi
2903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2904fi
2905echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2906echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2907case $ac_cv_c_bigendian in
2908 yes)
2909 ENDIAN=big
2910 ;;
2911 no)
2912 ENDIAN=little
2913 ;;
2914 *)
2915 { { echo "$as_me:$LINENO: error: unknown endianness
2916presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2917echo "$as_me: error: unknown endianness
2918presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2919 { (exit 1); exit 1; }; } ;;
2920esac
2921
2922
2923
2924# Check whether --enable-optimized or --disable-optimized was given.
2925if test "${enable_optimized+set}" = set; then
2926 enableval="$enable_optimized"
2927
2928else
2929 enableval=no
2930fi;
2931if test ${enableval} = "no" ; then
2932 ENABLE_OPTIMIZED=
2933
2934else
2935 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2936
2937fi
2938
2939# Check whether --enable-jit or --disable-jit was given.
2940if test "${enable_jit+set}" = set; then
2941 enableval="$enable_jit"
2942
2943else
2944 enableval=default
2945fi;
2946if test ${enableval} = "no"
2947then
2948 JIT=
2949
2950else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002951 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002952 x86) JIT=TARGET_HAS_JIT=1
2953 ;;
2954 Sparc) JIT=TARGET_HAS_JIT=1
2955 ;;
2956 PowerPC) JIT=TARGET_HAS_JIT=1
2957 ;;
2958 *) JIT=
2959 ;;
2960 esac
2961fi
2962
Reid Spencer1f319422004-11-29 04:56:35 +00002963# Check whether --enable-doxygen or --disable-doxygen was given.
2964if test "${enable_doxygen+set}" = set; then
2965 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002966
Reid Spencer1f319422004-11-29 04:56:35 +00002967else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002968 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00002969fi;
2970case "$enableval" in
2971 yes) ENABLE_DOXYGEN=1
2972 ;;
2973 no) ENABLE_DOXYGEN=0
2974 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002975 default) ENABLE_DOXYGEN=0
2976 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00002977 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2978echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2979 { (exit 1); exit 1; }; } ;;
2980esac
2981
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002982
2983# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2984if test "${with_llvmgccdir+set}" = set; then
2985 withval="$with_llvmgccdir"
2986 LLVMGCCDIR=$withval
2987
2988fi;
2989
2990if test "x$LLVMGCCDIR" = x ; then
2991 case "$llvm_cv_platform_type" in
2992 Linux)
2993 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2994 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2995
2996 fi
2997 ;;
2998 SunOS)
2999 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
3000 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3001
3002 fi
3003 ;;
3004 esac
3005fi
3006
3007
3008ac_ext=c
3009ac_cpp='$CPP $CPPFLAGS'
3010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3012ac_compiler_gnu=$ac_cv_c_compiler_gnu
3013echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3014echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3015# On Suns, sometimes $CPP names a directory.
3016if test -n "$CPP" && test -d "$CPP"; then
3017 CPP=
3018fi
3019if test -z "$CPP"; then
3020 if test "${ac_cv_prog_CPP+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3022else
3023 # Double quotes because CPP needs to be expanded
3024 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3025 do
3026 ac_preproc_ok=false
3027for ac_c_preproc_warn_flag in '' yes
3028do
3029 # Use a header file that comes with gcc, so configuring glibc
3030 # with a fresh cross-compiler works.
3031 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3032 # <limits.h> exists even on freestanding compilers.
3033 # On the NeXT, cc -E runs the code through the compiler's parser,
3034 # not just through cpp. "Syntax error" is here to catch this case.
3035 cat >conftest.$ac_ext <<_ACEOF
3036/* confdefs.h. */
3037_ACEOF
3038cat confdefs.h >>conftest.$ac_ext
3039cat >>conftest.$ac_ext <<_ACEOF
3040/* end confdefs.h. */
3041#ifdef __STDC__
3042# include <limits.h>
3043#else
3044# include <assert.h>
3045#endif
3046 Syntax error
3047_ACEOF
3048if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3050 ac_status=$?
3051 grep -v '^ *+' conftest.er1 >conftest.err
3052 rm -f conftest.er1
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } >/dev/null; then
3056 if test -s conftest.err; then
3057 ac_cpp_err=$ac_c_preproc_warn_flag
3058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3059 else
3060 ac_cpp_err=
3061 fi
3062else
3063 ac_cpp_err=yes
3064fi
3065if test -z "$ac_cpp_err"; then
3066 :
3067else
3068 echo "$as_me: failed program was:" >&5
3069sed 's/^/| /' conftest.$ac_ext >&5
3070
3071 # Broken: fails on valid input.
3072continue
3073fi
3074rm -f conftest.err conftest.$ac_ext
3075
3076 # OK, works on sane cases. Now check whether non-existent headers
3077 # can be detected and how.
3078 cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h. */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h. */
3084#include <ac_nonexistent.h>
3085_ACEOF
3086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3088 ac_status=$?
3089 grep -v '^ *+' conftest.er1 >conftest.err
3090 rm -f conftest.er1
3091 cat conftest.err >&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); } >/dev/null; then
3094 if test -s conftest.err; then
3095 ac_cpp_err=$ac_c_preproc_warn_flag
3096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3097 else
3098 ac_cpp_err=
3099 fi
3100else
3101 ac_cpp_err=yes
3102fi
3103if test -z "$ac_cpp_err"; then
3104 # Broken: success on invalid input.
3105continue
3106else
3107 echo "$as_me: failed program was:" >&5
3108sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 # Passes both tests.
3111ac_preproc_ok=:
3112break
3113fi
3114rm -f conftest.err conftest.$ac_ext
3115
3116done
3117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3118rm -f conftest.err conftest.$ac_ext
3119if $ac_preproc_ok; then
3120 break
3121fi
3122
3123 done
3124 ac_cv_prog_CPP=$CPP
3125
3126fi
3127 CPP=$ac_cv_prog_CPP
3128else
3129 ac_cv_prog_CPP=$CPP
3130fi
3131echo "$as_me:$LINENO: result: $CPP" >&5
3132echo "${ECHO_T}$CPP" >&6
3133ac_preproc_ok=false
3134for ac_c_preproc_warn_flag in '' yes
3135do
3136 # Use a header file that comes with gcc, so configuring glibc
3137 # with a fresh cross-compiler works.
3138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3139 # <limits.h> exists even on freestanding compilers.
3140 # On the NeXT, cc -E runs the code through the compiler's parser,
3141 # not just through cpp. "Syntax error" is here to catch this case.
3142 cat >conftest.$ac_ext <<_ACEOF
3143/* confdefs.h. */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h. */
3148#ifdef __STDC__
3149# include <limits.h>
3150#else
3151# include <assert.h>
3152#endif
3153 Syntax error
3154_ACEOF
3155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3157 ac_status=$?
3158 grep -v '^ *+' conftest.er1 >conftest.err
3159 rm -f conftest.er1
3160 cat conftest.err >&5
3161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162 (exit $ac_status); } >/dev/null; then
3163 if test -s conftest.err; then
3164 ac_cpp_err=$ac_c_preproc_warn_flag
3165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3166 else
3167 ac_cpp_err=
3168 fi
3169else
3170 ac_cpp_err=yes
3171fi
3172if test -z "$ac_cpp_err"; then
3173 :
3174else
3175 echo "$as_me: failed program was:" >&5
3176sed 's/^/| /' conftest.$ac_ext >&5
3177
3178 # Broken: fails on valid input.
3179continue
3180fi
3181rm -f conftest.err conftest.$ac_ext
3182
3183 # OK, works on sane cases. Now check whether non-existent headers
3184 # can be detected and how.
3185 cat >conftest.$ac_ext <<_ACEOF
3186/* confdefs.h. */
3187_ACEOF
3188cat confdefs.h >>conftest.$ac_ext
3189cat >>conftest.$ac_ext <<_ACEOF
3190/* end confdefs.h. */
3191#include <ac_nonexistent.h>
3192_ACEOF
3193if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } >/dev/null; then
3201 if test -s conftest.err; then
3202 ac_cpp_err=$ac_c_preproc_warn_flag
3203 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3204 else
3205 ac_cpp_err=
3206 fi
3207else
3208 ac_cpp_err=yes
3209fi
3210if test -z "$ac_cpp_err"; then
3211 # Broken: success on invalid input.
3212continue
3213else
3214 echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 # Passes both tests.
3218ac_preproc_ok=:
3219break
3220fi
3221rm -f conftest.err conftest.$ac_ext
3222
3223done
3224# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3225rm -f conftest.err conftest.$ac_ext
3226if $ac_preproc_ok; then
3227 :
3228else
3229 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3230See \`config.log' for more details." >&5
3231echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3232See \`config.log' for more details." >&2;}
3233 { (exit 1); exit 1; }; }
3234fi
3235
John Criswell7a73b802003-06-30 21:59:07 +00003236ac_ext=c
3237ac_cpp='$CPP $CPPFLAGS'
3238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240ac_compiler_gnu=$ac_cv_c_compiler_gnu
3241
3242ac_ext=c
3243ac_cpp='$CPP $CPPFLAGS'
3244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247if test -n "$ac_tool_prefix"; then
3248 for ac_prog in gcc
3249 do
3250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3251set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3252echo "$as_me:$LINENO: checking for $ac_word" >&5
3253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3254if test "${ac_cv_prog_CC+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256else
3257 if test -n "$CC"; then
3258 ac_cv_prog_CC="$CC" # Let the user override the test.
3259else
3260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261for as_dir in $PATH
3262do
3263 IFS=$as_save_IFS
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 break 2
3270 fi
3271done
3272done
3273
3274fi
3275fi
3276CC=$ac_cv_prog_CC
3277if test -n "$CC"; then
3278 echo "$as_me:$LINENO: result: $CC" >&5
3279echo "${ECHO_T}$CC" >&6
3280else
3281 echo "$as_me:$LINENO: result: no" >&5
3282echo "${ECHO_T}no" >&6
3283fi
3284
3285 test -n "$CC" && break
3286 done
3287fi
3288if test -z "$CC"; then
3289 ac_ct_CC=$CC
3290 for ac_prog in gcc
3291do
3292 # Extract the first word of "$ac_prog", so it can be a program name with args.
3293set dummy $ac_prog; ac_word=$2
3294echo "$as_me:$LINENO: checking for $ac_word" >&5
3295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3296if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298else
3299 if test -n "$ac_ct_CC"; then
3300 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3301else
3302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303for as_dir in $PATH
3304do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309 ac_cv_prog_ac_ct_CC="$ac_prog"
3310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3312 fi
3313done
3314done
3315
3316fi
3317fi
3318ac_ct_CC=$ac_cv_prog_ac_ct_CC
3319if test -n "$ac_ct_CC"; then
3320 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3321echo "${ECHO_T}$ac_ct_CC" >&6
3322else
3323 echo "$as_me:$LINENO: result: no" >&5
3324echo "${ECHO_T}no" >&6
3325fi
3326
3327 test -n "$ac_ct_CC" && break
3328done
3329
3330 CC=$ac_ct_CC
3331fi
3332
3333
John Criswell0c38eaf2003-09-10 15:17:25 +00003334test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3335See \`config.log' for more details." >&5
3336echo "$as_me: error: no acceptable C compiler found in \$PATH
3337See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003338 { (exit 1); exit 1; }; }
3339
3340# Provide some information about the compiler.
3341echo "$as_me:$LINENO:" \
3342 "checking for C compiler version" >&5
3343ac_compiler=`set X $ac_compile; echo $2`
3344{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3345 (eval $ac_compiler --version </dev/null >&5) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }
3349{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3350 (eval $ac_compiler -v </dev/null >&5) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }
3354{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3355 (eval $ac_compiler -V </dev/null >&5) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }
3359
3360echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3361echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3362if test "${ac_cv_c_compiler_gnu+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364else
3365 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003366/* confdefs.h. */
3367_ACEOF
3368cat confdefs.h >>conftest.$ac_ext
3369cat >>conftest.$ac_ext <<_ACEOF
3370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003371
John Criswell7a73b802003-06-30 21:59:07 +00003372int
3373main ()
3374{
3375#ifndef __GNUC__
3376 choke me
3377#endif
3378
3379 ;
3380 return 0;
3381}
3382_ACEOF
3383rm -f conftest.$ac_objext
3384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003385 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003386 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003387 grep -v '^ *+' conftest.er1 >conftest.err
3388 rm -f conftest.er1
3389 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003392 { ac_try='test -z "$ac_c_werror_flag"
3393 || test ! -s conftest.err'
3394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 (eval $ac_try) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; } &&
3399 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; }; then
3405 ac_compiler_gnu=yes
3406else
3407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003408sed 's/^/| /' conftest.$ac_ext >&5
3409
John Criswell7a73b802003-06-30 21:59:07 +00003410ac_compiler_gnu=no
3411fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003413ac_cv_c_compiler_gnu=$ac_compiler_gnu
3414
3415fi
3416echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3417echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3418GCC=`test $ac_compiler_gnu = yes && echo yes`
3419ac_test_CFLAGS=${CFLAGS+set}
3420ac_save_CFLAGS=$CFLAGS
3421CFLAGS="-g"
3422echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3423echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3424if test "${ac_cv_prog_cc_g+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003428/* confdefs.h. */
3429_ACEOF
3430cat confdefs.h >>conftest.$ac_ext
3431cat >>conftest.$ac_ext <<_ACEOF
3432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003433
John Criswell7a73b802003-06-30 21:59:07 +00003434int
3435main ()
3436{
3437
3438 ;
3439 return 0;
3440}
3441_ACEOF
3442rm -f conftest.$ac_objext
3443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003444 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003445 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003446 grep -v '^ *+' conftest.er1 >conftest.err
3447 rm -f conftest.er1
3448 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003451 { ac_try='test -z "$ac_c_werror_flag"
3452 || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454 (eval $ac_try) 2>&5
3455 ac_status=$?
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3460 (eval $ac_try) 2>&5
3461 ac_status=$?
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 ac_cv_prog_cc_g=yes
3465else
3466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003467sed 's/^/| /' conftest.$ac_ext >&5
3468
John Criswell7a73b802003-06-30 21:59:07 +00003469ac_cv_prog_cc_g=no
3470fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003472fi
3473echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3474echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3475if test "$ac_test_CFLAGS" = set; then
3476 CFLAGS=$ac_save_CFLAGS
3477elif test $ac_cv_prog_cc_g = yes; then
3478 if test "$GCC" = yes; then
3479 CFLAGS="-g -O2"
3480 else
3481 CFLAGS="-g"
3482 fi
3483else
3484 if test "$GCC" = yes; then
3485 CFLAGS="-O2"
3486 else
3487 CFLAGS=
3488 fi
3489fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003490echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3491echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3492if test "${ac_cv_prog_cc_stdc+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494else
3495 ac_cv_prog_cc_stdc=no
3496ac_save_CC=$CC
3497cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003498/* confdefs.h. */
3499_ACEOF
3500cat confdefs.h >>conftest.$ac_ext
3501cat >>conftest.$ac_ext <<_ACEOF
3502/* end confdefs.h. */
3503#include <stdarg.h>
3504#include <stdio.h>
3505#include <sys/types.h>
3506#include <sys/stat.h>
3507/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3508struct buf { int x; };
3509FILE * (*rcsopen) (struct buf *, struct stat *, int);
3510static char *e (p, i)
3511 char **p;
3512 int i;
3513{
3514 return p[i];
3515}
3516static char *f (char * (*g) (char **, int), char **p, ...)
3517{
3518 char *s;
3519 va_list v;
3520 va_start (v,p);
3521 s = g (p, va_arg (v,int));
3522 va_end (v);
3523 return s;
3524}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003525
3526/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3527 function prototypes and stuff, but not '\xHH' hex character constants.
3528 These don't provoke an error unfortunately, instead are silently treated
3529 as 'x'. The following induces an error, until -std1 is added to get
3530 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3531 array size at least. It's necessary to write '\x00'==0 to get something
3532 that's true only with -std1. */
3533int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3534
John Criswell0c38eaf2003-09-10 15:17:25 +00003535int test (int i, double x);
3536struct s1 {int (*f) (int a);};
3537struct s2 {int (*f) (double a);};
3538int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3539int argc;
3540char **argv;
3541int
3542main ()
3543{
3544return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3545 ;
3546 return 0;
3547}
3548_ACEOF
3549# Don't try gcc -ansi; that turns off useful extensions and
3550# breaks some systems' header files.
3551# AIX -qlanglvl=ansi
3552# Ultrix and OSF/1 -std1
3553# HP-UX 10.20 and later -Ae
3554# HP-UX older versions -Aa -D_HPUX_SOURCE
3555# SVR4 -Xc -D__EXTENSIONS__
3556for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3557do
3558 CC="$ac_save_CC $ac_arg"
3559 rm -f conftest.$ac_objext
3560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003561 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003562 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003563 grep -v '^ *+' conftest.er1 >conftest.err
3564 rm -f conftest.er1
3565 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003568 { ac_try='test -z "$ac_c_werror_flag"
3569 || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3577 (eval $ac_try) 2>&5
3578 ac_status=$?
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }; }; then
3581 ac_cv_prog_cc_stdc=$ac_arg
3582break
3583else
3584 echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
3587fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003588rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003589done
3590rm -f conftest.$ac_ext conftest.$ac_objext
3591CC=$ac_save_CC
3592
3593fi
3594
3595case "x$ac_cv_prog_cc_stdc" in
3596 x|xno)
3597 echo "$as_me:$LINENO: result: none needed" >&5
3598echo "${ECHO_T}none needed" >&6 ;;
3599 *)
3600 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3601echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3602 CC="$CC $ac_cv_prog_cc_stdc" ;;
3603esac
3604
John Criswell7a73b802003-06-30 21:59:07 +00003605# Some people use a C++ compiler to compile C. Since we use `exit',
3606# in C++ we need to declare it. In case someone uses the same compiler
3607# for both compiling C and C++ we need to have the C++ compiler decide
3608# the declaration of exit, since it's the most demanding environment.
3609cat >conftest.$ac_ext <<_ACEOF
3610#ifndef __cplusplus
3611 choke me
3612#endif
3613_ACEOF
3614rm -f conftest.$ac_objext
3615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003616 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003617 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003618 grep -v '^ *+' conftest.er1 >conftest.err
3619 rm -f conftest.er1
3620 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003623 { ac_try='test -z "$ac_c_werror_flag"
3624 || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3632 (eval $ac_try) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; }; then
3636 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003637 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003638 'extern "C" void std::exit (int) throw (); using std::exit;' \
3639 'extern "C" void std::exit (int); using std::exit;' \
3640 'extern "C" void exit (int) throw ();' \
3641 'extern "C" void exit (int);' \
3642 'void exit (int);'
3643do
3644 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003645/* confdefs.h. */
3646_ACEOF
3647cat confdefs.h >>conftest.$ac_ext
3648cat >>conftest.$ac_ext <<_ACEOF
3649/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003650$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003651#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003652int
3653main ()
3654{
3655exit (42);
3656 ;
3657 return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext
3661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003662 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 :
3683else
3684 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003685sed 's/^/| /' conftest.$ac_ext >&5
3686
John Criswell7a73b802003-06-30 21:59:07 +00003687continue
3688fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003690 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003691/* confdefs.h. */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
3695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003696$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003697int
3698main ()
3699{
3700exit (42);
3701 ;
3702 return 0;
3703}
3704_ACEOF
3705rm -f conftest.$ac_objext
3706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003707 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003708 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003709 grep -v '^ *+' conftest.er1 >conftest.err
3710 rm -f conftest.er1
3711 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003714 { ac_try='test -z "$ac_c_werror_flag"
3715 || test ! -s conftest.err'
3716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; } &&
3721 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3723 (eval $ac_try) 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }; }; then
3727 break
3728else
3729 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003730sed 's/^/| /' conftest.$ac_ext >&5
3731
John Criswell7a73b802003-06-30 21:59:07 +00003732fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003734done
3735rm -f conftest*
3736if test -n "$ac_declaration"; then
3737 echo '#ifdef __cplusplus' >>confdefs.h
3738 echo $ac_declaration >>confdefs.h
3739 echo '#endif' >>confdefs.h
3740fi
3741
3742else
3743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003744sed 's/^/| /' conftest.$ac_ext >&5
3745
John Criswell7a73b802003-06-30 21:59:07 +00003746fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003748ac_ext=c
3749ac_cpp='$CPP $CPPFLAGS'
3750ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003754ac_ext=cc
3755ac_cpp='$CXXCPP $CPPFLAGS'
3756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3759if test -n "$ac_tool_prefix"; then
3760 for ac_prog in $CCC g++
3761 do
3762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3763set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3764echo "$as_me:$LINENO: checking for $ac_word" >&5
3765echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3766if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003769 if test -n "$CXX"; then
3770 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3771else
3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003774do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3779 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3782 fi
3783done
3784done
3785
3786fi
3787fi
3788CXX=$ac_cv_prog_CXX
3789if test -n "$CXX"; then
3790 echo "$as_me:$LINENO: result: $CXX" >&5
3791echo "${ECHO_T}$CXX" >&6
3792else
3793 echo "$as_me:$LINENO: result: no" >&5
3794echo "${ECHO_T}no" >&6
3795fi
3796
3797 test -n "$CXX" && break
3798 done
3799fi
3800if test -z "$CXX"; then
3801 ac_ct_CXX=$CXX
3802 for ac_prog in $CCC g++
3803do
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805set dummy $ac_prog; ac_word=$2
3806echo "$as_me:$LINENO: checking for $ac_word" >&5
3807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810else
3811 if test -n "$ac_ct_CXX"; then
3812 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3813else
3814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815for as_dir in $PATH
3816do
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_ac_ct_CXX="$ac_prog"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3824 fi
3825done
3826done
3827
3828fi
3829fi
3830ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3831if test -n "$ac_ct_CXX"; then
3832 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3833echo "${ECHO_T}$ac_ct_CXX" >&6
3834else
3835 echo "$as_me:$LINENO: result: no" >&5
3836echo "${ECHO_T}no" >&6
3837fi
3838
3839 test -n "$ac_ct_CXX" && break
3840done
3841test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3842
3843 CXX=$ac_ct_CXX
3844fi
3845
3846
3847# Provide some information about the compiler.
3848echo "$as_me:$LINENO:" \
3849 "checking for C++ compiler version" >&5
3850ac_compiler=`set X $ac_compile; echo $2`
3851{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3852 (eval $ac_compiler --version </dev/null >&5) 2>&5
3853 ac_status=$?
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }
3856{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3857 (eval $ac_compiler -v </dev/null >&5) 2>&5
3858 ac_status=$?
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); }
3861{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3862 (eval $ac_compiler -V </dev/null >&5) 2>&5
3863 ac_status=$?
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }
3866
3867echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3868echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3869if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3870 echo $ECHO_N "(cached) $ECHO_C" >&6
3871else
John Criswell7a73b802003-06-30 21:59:07 +00003872 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003873/* confdefs.h. */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003878
3879int
3880main ()
3881{
3882#ifndef __GNUC__
3883 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003884#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003885
3886 ;
3887 return 0;
3888}
John Criswell7a73b802003-06-30 21:59:07 +00003889_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003890rm -f conftest.$ac_objext
3891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003893 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003894 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003895 rm -f conftest.er1
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003898 (exit $ac_status); } &&
3899 { ac_try='test -z "$ac_cxx_werror_flag"
3900 || test ! -s conftest.err'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 (eval $ac_try) 2>&5
3903 ac_status=$?
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; } &&
3906 { ac_try='test -s conftest.$ac_objext'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3908 (eval $ac_try) 2>&5
3909 ac_status=$?
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3912 ac_compiler_gnu=yes
3913else
3914 echo "$as_me: failed program was:" >&5
3915sed 's/^/| /' conftest.$ac_ext >&5
3916
3917ac_compiler_gnu=no
3918fi
3919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3920ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3921
3922fi
3923echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3924echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3925GXX=`test $ac_compiler_gnu = yes && echo yes`
3926ac_test_CXXFLAGS=${CXXFLAGS+set}
3927ac_save_CXXFLAGS=$CXXFLAGS
3928CXXFLAGS="-g"
3929echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3930echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3931if test "${ac_cv_prog_cxx_g+set}" = set; then
3932 echo $ECHO_N "(cached) $ECHO_C" >&6
3933else
3934 cat >conftest.$ac_ext <<_ACEOF
3935/* confdefs.h. */
3936_ACEOF
3937cat confdefs.h >>conftest.$ac_ext
3938cat >>conftest.$ac_ext <<_ACEOF
3939/* end confdefs.h. */
3940
3941int
3942main ()
3943{
3944
3945 ;
3946 return 0;
3947}
3948_ACEOF
3949rm -f conftest.$ac_objext
3950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951 (eval $ac_compile) 2>conftest.er1
3952 ac_status=$?
3953 grep -v '^ *+' conftest.er1 >conftest.err
3954 rm -f conftest.er1
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957 (exit $ac_status); } &&
3958 { ac_try='test -z "$ac_cxx_werror_flag"
3959 || test ! -s conftest.err'
3960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3961 (eval $ac_try) 2>&5
3962 ac_status=$?
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); }; } &&
3965 { ac_try='test -s conftest.$ac_objext'
3966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967 (eval $ac_try) 2>&5
3968 ac_status=$?
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); }; }; then
3971 ac_cv_prog_cxx_g=yes
3972else
3973 echo "$as_me: failed program was:" >&5
3974sed 's/^/| /' conftest.$ac_ext >&5
3975
3976ac_cv_prog_cxx_g=no
3977fi
3978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3979fi
3980echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3981echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3982if test "$ac_test_CXXFLAGS" = set; then
3983 CXXFLAGS=$ac_save_CXXFLAGS
3984elif test $ac_cv_prog_cxx_g = yes; then
3985 if test "$GXX" = yes; then
3986 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003987 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003988 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003989 fi
3990else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003991 if test "$GXX" = yes; then
3992 CXXFLAGS="-O2"
3993 else
3994 CXXFLAGS=
3995 fi
John Criswell7a73b802003-06-30 21:59:07 +00003996fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003997for ac_declaration in \
3998 '' \
3999 'extern "C" void std::exit (int) throw (); using std::exit;' \
4000 'extern "C" void std::exit (int); using std::exit;' \
4001 'extern "C" void exit (int) throw ();' \
4002 'extern "C" void exit (int);' \
4003 'void exit (int);'
4004do
4005 cat >conftest.$ac_ext <<_ACEOF
4006/* confdefs.h. */
4007_ACEOF
4008cat confdefs.h >>conftest.$ac_ext
4009cat >>conftest.$ac_ext <<_ACEOF
4010/* end confdefs.h. */
4011$ac_declaration
4012#include <stdlib.h>
4013int
4014main ()
4015{
4016exit (42);
4017 ;
4018 return 0;
4019}
4020_ACEOF
4021rm -f conftest.$ac_objext
4022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4023 (eval $ac_compile) 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_cxx_werror_flag"
4031 || test ! -s conftest.err'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 (eval $ac_try) 2>&5
4034 ac_status=$?
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; } &&
4037 { ac_try='test -s conftest.$ac_objext'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004043 :
4044else
4045 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004046sed 's/^/| /' conftest.$ac_ext >&5
4047
John Criswell7a73b802003-06-30 21:59:07 +00004048continue
4049fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004051 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004052/* confdefs.h. */
4053_ACEOF
4054cat confdefs.h >>conftest.$ac_ext
4055cat >>conftest.$ac_ext <<_ACEOF
4056/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004057$ac_declaration
4058int
4059main ()
4060{
4061exit (42);
4062 ;
4063 return 0;
4064}
John Criswell7a73b802003-06-30 21:59:07 +00004065_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004066rm -f conftest.$ac_objext
4067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4068 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004069 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004070 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004071 rm -f conftest.er1
4072 cat conftest.err >&5
4073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004074 (exit $ac_status); } &&
4075 { ac_try='test -z "$ac_cxx_werror_flag"
4076 || test ! -s conftest.err'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 (eval $ac_try) 2>&5
4079 ac_status=$?
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; } &&
4082 { ac_try='test -s conftest.$ac_objext'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 (eval $ac_try) 2>&5
4085 ac_status=$?
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004088 break
John Criswell7a73b802003-06-30 21:59:07 +00004089else
4090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004091sed 's/^/| /' conftest.$ac_ext >&5
4092
John Criswell7a73b802003-06-30 21:59:07 +00004093fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004095done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004096rm -f conftest*
4097if test -n "$ac_declaration"; then
4098 echo '#ifdef __cplusplus' >>confdefs.h
4099 echo $ac_declaration >>confdefs.h
4100 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004101fi
4102
4103ac_ext=c
4104ac_cpp='$CPP $CPPFLAGS'
4105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108
John Criswell7a73b802003-06-30 21:59:07 +00004109echo "$as_me:$LINENO: checking " >&5
4110echo $ECHO_N "checking ... $ECHO_C" >&6
4111if test "${ac_cv_has_flex+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114 for ac_prog in flex lex
4115do
4116 # Extract the first word of "$ac_prog", so it can be a program name with args.
4117set dummy $ac_prog; ac_word=$2
4118echo "$as_me:$LINENO: checking for $ac_word" >&5
4119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4120if test "${ac_cv_prog_LEX+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123 if test -n "$LEX"; then
4124 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133 ac_cv_prog_LEX="$ac_prog"
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4136 fi
4137done
4138done
4139
4140fi
4141fi
4142LEX=$ac_cv_prog_LEX
4143if test -n "$LEX"; then
4144 echo "$as_me:$LINENO: result: $LEX" >&5
4145echo "${ECHO_T}$LEX" >&6
4146else
4147 echo "$as_me:$LINENO: result: no" >&5
4148echo "${ECHO_T}no" >&6
4149fi
4150
4151 test -n "$LEX" && break
4152done
4153test -n "$LEX" || LEX=":"
4154
4155if test -z "$LEXLIB"
4156then
4157 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4158echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4159if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4160 echo $ECHO_N "(cached) $ECHO_C" >&6
4161else
4162 ac_check_lib_save_LIBS=$LIBS
4163LIBS="-lfl $LIBS"
4164cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004165/* confdefs.h. */
4166_ACEOF
4167cat confdefs.h >>conftest.$ac_ext
4168cat >>conftest.$ac_ext <<_ACEOF
4169/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004170
4171/* Override any gcc2 internal prototype to avoid an error. */
4172#ifdef __cplusplus
4173extern "C"
4174#endif
4175/* We use char because int might match the return type of a gcc2
4176 builtin and then its argument prototype would still apply. */
4177char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004178int
4179main ()
4180{
4181yywrap ();
4182 ;
4183 return 0;
4184}
4185_ACEOF
4186rm -f conftest.$ac_objext conftest$ac_exeext
4187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004188 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004189 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004190 grep -v '^ *+' conftest.er1 >conftest.err
4191 rm -f conftest.er1
4192 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004195 { ac_try='test -z "$ac_c_werror_flag"
4196 || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4198 (eval $ac_try) 2>&5
4199 ac_status=$?
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4204 (eval $ac_try) 2>&5
4205 ac_status=$?
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4208 ac_cv_lib_fl_yywrap=yes
4209else
4210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004211sed 's/^/| /' conftest.$ac_ext >&5
4212
John Criswell7a73b802003-06-30 21:59:07 +00004213ac_cv_lib_fl_yywrap=no
4214fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004215rm -f conftest.err conftest.$ac_objext \
4216 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004217LIBS=$ac_check_lib_save_LIBS
4218fi
4219echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4220echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4221if test $ac_cv_lib_fl_yywrap = yes; then
4222 LEXLIB="-lfl"
4223else
4224 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4225echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4226if test "${ac_cv_lib_l_yywrap+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228else
4229 ac_check_lib_save_LIBS=$LIBS
4230LIBS="-ll $LIBS"
4231cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004232/* confdefs.h. */
4233_ACEOF
4234cat confdefs.h >>conftest.$ac_ext
4235cat >>conftest.$ac_ext <<_ACEOF
4236/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004237
4238/* Override any gcc2 internal prototype to avoid an error. */
4239#ifdef __cplusplus
4240extern "C"
4241#endif
4242/* We use char because int might match the return type of a gcc2
4243 builtin and then its argument prototype would still apply. */
4244char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004245int
4246main ()
4247{
4248yywrap ();
4249 ;
4250 return 0;
4251}
4252_ACEOF
4253rm -f conftest.$ac_objext conftest$ac_exeext
4254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004255 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004256 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004262 { ac_try='test -z "$ac_c_werror_flag"
4263 || test ! -s conftest.err'
4264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4265 (eval $ac_try) 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; } &&
4269 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 (eval $ac_try) 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }; }; then
4275 ac_cv_lib_l_yywrap=yes
4276else
4277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004278sed 's/^/| /' conftest.$ac_ext >&5
4279
John Criswell7a73b802003-06-30 21:59:07 +00004280ac_cv_lib_l_yywrap=no
4281fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004282rm -f conftest.err conftest.$ac_objext \
4283 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004284LIBS=$ac_check_lib_save_LIBS
4285fi
4286echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4287echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4288if test $ac_cv_lib_l_yywrap = yes; then
4289 LEXLIB="-ll"
4290fi
4291
4292fi
4293
4294fi
4295
4296if test "x$LEX" != "x:"; then
4297 echo "$as_me:$LINENO: checking lex output file root" >&5
4298echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4299if test "${ac_cv_prog_lex_root+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4301else
4302 # The minimal lex program is just a single line: %%. But some broken lexes
4303# (Solaris, I think it was) want two %% lines, so accommodate them.
4304cat >conftest.l <<_ACEOF
4305%%
4306%%
4307_ACEOF
4308{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4309 (eval $LEX conftest.l) 2>&5
4310 ac_status=$?
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); }
4313if test -f lex.yy.c; then
4314 ac_cv_prog_lex_root=lex.yy
4315elif test -f lexyy.c; then
4316 ac_cv_prog_lex_root=lexyy
4317else
4318 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4319echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4320 { (exit 1); exit 1; }; }
4321fi
4322fi
4323echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4324echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4325rm -f conftest.l
4326LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4327
4328echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4329echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4330if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4332else
4333 # POSIX says lex can declare yytext either as a pointer or an array; the
4334# default is implementation-dependent. Figure out which it is, since
4335# not all implementations provide the %pointer and %array declarations.
4336ac_cv_prog_lex_yytext_pointer=no
4337echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4338ac_save_LIBS=$LIBS
4339LIBS="$LIBS $LEXLIB"
4340cat >conftest.$ac_ext <<_ACEOF
4341`cat $LEX_OUTPUT_ROOT.c`
4342_ACEOF
4343rm -f conftest.$ac_objext conftest$ac_exeext
4344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004345 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004346 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004347 grep -v '^ *+' conftest.er1 >conftest.err
4348 rm -f conftest.er1
4349 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004352 { ac_try='test -z "$ac_c_werror_flag"
4353 || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4361 (eval $ac_try) 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_prog_lex_yytext_pointer=yes
4366else
4367 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004368sed 's/^/| /' conftest.$ac_ext >&5
4369
John Criswell7a73b802003-06-30 21:59:07 +00004370fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004371rm -f conftest.err conftest.$ac_objext \
4372 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004373LIBS=$ac_save_LIBS
4374rm -f "${LEX_OUTPUT_ROOT}.c"
4375
4376fi
4377echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4378echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4379if test $ac_cv_prog_lex_yytext_pointer = yes; then
4380
4381cat >>confdefs.h <<\_ACEOF
4382#define YYTEXT_POINTER 1
4383_ACEOF
4384
4385fi
4386
4387fi
4388
4389fi
4390echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4391echo "${ECHO_T}$ac_cv_has_flex" >&6
4392if test "$LEX" != "flex"; then
4393 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4394echo "$as_me: error: flex not found but required" >&2;}
4395 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004396else
4397 FLEX=flex
4398
John Criswell7a73b802003-06-30 21:59:07 +00004399fi
4400
4401echo "$as_me:$LINENO: checking " >&5
4402echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004403if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004404 echo $ECHO_N "(cached) $ECHO_C" >&6
4405else
4406 for ac_prog in 'bison -y' byacc
4407do
4408 # Extract the first word of "$ac_prog", so it can be a program name with args.
4409set dummy $ac_prog; ac_word=$2
4410echo "$as_me:$LINENO: checking for $ac_word" >&5
4411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4412if test "${ac_cv_prog_YACC+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415 if test -n "$YACC"; then
4416 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_prog_YACC="$ac_prog"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4428 fi
4429done
4430done
4431
4432fi
4433fi
4434YACC=$ac_cv_prog_YACC
4435if test -n "$YACC"; then
4436 echo "$as_me:$LINENO: result: $YACC" >&5
4437echo "${ECHO_T}$YACC" >&6
4438else
4439 echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6
4441fi
4442
4443 test -n "$YACC" && break
4444done
4445test -n "$YACC" || YACC="yacc"
4446
4447
4448fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004449echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4450echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004451if test "$YACC" != "bison -y"; then
4452 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4453echo "$as_me: error: bison not found but required" >&2;}
4454 { (exit 1); exit 1; }; }
4455else
Brian Gaeke12810632004-01-13 06:52:10 +00004456 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004457
4458fi
4459
Reid Spencer17795972004-11-18 09:47:37 +00004460
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004461echo "$as_me:$LINENO: checking for GNU make" >&5
4462echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4463if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004464 echo $ECHO_N "(cached) $ECHO_C" >&6
4465else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004466 llvm_cv_gnu_make_command=''
4467 for a in "$MAKE" make gmake gnumake ; do
4468 if test -z "$a" ; then continue ; fi ;
4469 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4470 then
4471 llvm_cv_gnu_make_command=$a ;
4472 break;
John Criswell47fdd832003-07-14 16:52:07 +00004473 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004474 done
John Criswell7a73b802003-06-30 21:59:07 +00004475fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004476echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4477echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4478 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4479 ifGNUmake='' ;
4480 else
4481 ifGNUmake='#' ;
4482 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4483echo "${ECHO_T}\"Not found\"" >&6;
4484 fi
John Criswell7a73b802003-06-30 21:59:07 +00004485
John Criswell7a73b802003-06-30 21:59:07 +00004486
4487echo "$as_me:$LINENO: checking whether ln -s works" >&5
4488echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4489LN_S=$as_ln_s
4490if test "$LN_S" = "ln -s"; then
4491 echo "$as_me:$LINENO: result: yes" >&5
4492echo "${ECHO_T}yes" >&6
4493else
4494 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4495echo "${ECHO_T}no, using $LN_S" >&6
4496fi
4497
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004498# Extract the first word of "date", so it can be a program name with args.
4499set dummy date; ac_word=$2
4500echo "$as_me:$LINENO: checking for $ac_word" >&5
4501echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4502if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004503 echo $ECHO_N "(cached) $ECHO_C" >&6
4504else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004505 case $DATE in
4506 [\\/]* | ?:[\\/]*)
4507 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004508 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004509 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511for as_dir in $PATH
4512do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004520 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004521done
4522done
John Criswell7a73b802003-06-30 21:59:07 +00004523
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004524 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004525 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004526esac
John Criswell7a73b802003-06-30 21:59:07 +00004527fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004528DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004529
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004530if test -n "$DATE"; then
4531 echo "$as_me:$LINENO: result: $DATE" >&5
4532echo "${ECHO_T}$DATE" >&6
4533else
4534 echo "$as_me:$LINENO: result: no" >&5
4535echo "${ECHO_T}no" >&6
4536fi
John Criswell7a73b802003-06-30 21:59:07 +00004537
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004538# Extract the first word of "find", so it can be a program name with args.
4539set dummy find; ac_word=$2
4540echo "$as_me:$LINENO: checking for $ac_word" >&5
4541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4542if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004543 echo $ECHO_N "(cached) $ECHO_C" >&6
4544else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004545 case $FIND in
4546 [\\/]* | ?:[\\/]*)
4547 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4548 ;;
4549 *)
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_exec_ext in '' $ac_executable_extensions; do
4556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4557 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559 break 2
4560 fi
4561done
4562done
4563
4564 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4565 ;;
4566esac
4567fi
4568FIND=$ac_cv_path_FIND
4569
4570if test -n "$FIND"; then
4571 echo "$as_me:$LINENO: result: $FIND" >&5
4572echo "${ECHO_T}$FIND" >&6
4573else
4574 echo "$as_me:$LINENO: result: no" >&5
4575echo "${ECHO_T}no" >&6
4576fi
4577
4578# Extract the first word of "grep", so it can be a program name with args.
4579set dummy grep; ac_word=$2
4580echo "$as_me:$LINENO: checking for $ac_word" >&5
4581echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582if test "${ac_cv_path_GREP+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4584else
4585 case $GREP in
4586 [\\/]* | ?:[\\/]*)
4587 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4588 ;;
4589 *)
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591for as_dir in $PATH
4592do
4593 IFS=$as_save_IFS
4594 test -z "$as_dir" && as_dir=.
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4597 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4599 break 2
4600 fi
4601done
4602done
4603
4604 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4605 ;;
4606esac
4607fi
4608GREP=$ac_cv_path_GREP
4609
4610if test -n "$GREP"; then
4611 echo "$as_me:$LINENO: result: $GREP" >&5
4612echo "${ECHO_T}$GREP" >&6
4613else
4614 echo "$as_me:$LINENO: result: no" >&5
4615echo "${ECHO_T}no" >&6
4616fi
4617
4618# Extract the first word of "mkdir", so it can be a program name with args.
4619set dummy mkdir; ac_word=$2
4620echo "$as_me:$LINENO: checking for $ac_word" >&5
4621echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4622if test "${ac_cv_path_MKDIR+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4624else
4625 case $MKDIR in
4626 [\\/]* | ?:[\\/]*)
4627 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4628 ;;
4629 *)
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631for as_dir in $PATH
4632do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4640 fi
4641done
4642done
4643
4644 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4645 ;;
4646esac
4647fi
4648MKDIR=$ac_cv_path_MKDIR
4649
4650if test -n "$MKDIR"; then
4651 echo "$as_me:$LINENO: result: $MKDIR" >&5
4652echo "${ECHO_T}$MKDIR" >&6
4653else
4654 echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6
4656fi
4657
4658# Extract the first word of "mv", so it can be a program name with args.
4659set dummy mv; ac_word=$2
4660echo "$as_me:$LINENO: checking for $ac_word" >&5
4661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4662if test "${ac_cv_path_MV+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664else
4665 case $MV in
4666 [\\/]* | ?:[\\/]*)
4667 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4668 ;;
4669 *)
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4677 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681done
4682done
4683
4684 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4685 ;;
4686esac
4687fi
4688MV=$ac_cv_path_MV
4689
4690if test -n "$MV"; then
4691 echo "$as_me:$LINENO: result: $MV" >&5
4692echo "${ECHO_T}$MV" >&6
4693else
4694 echo "$as_me:$LINENO: result: no" >&5
4695echo "${ECHO_T}no" >&6
4696fi
4697
4698# Extract the first word of "pax", so it can be a program name with args.
4699set dummy pax; ac_word=$2
4700echo "$as_me:$LINENO: checking for $ac_word" >&5
4701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702if test "${ac_cv_path_PAX+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704else
4705 case $PAX in
4706 [\\/]* | ?:[\\/]*)
4707 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4708 ;;
4709 *)
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4717 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4720 fi
4721done
4722done
4723
4724 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4725 ;;
4726esac
4727fi
4728PAX=$ac_cv_path_PAX
4729
4730if test -n "$PAX"; then
4731 echo "$as_me:$LINENO: result: $PAX" >&5
4732echo "${ECHO_T}$PAX" >&6
4733else
4734 echo "$as_me:$LINENO: result: no" >&5
4735echo "${ECHO_T}no" >&6
4736fi
4737
4738if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4740set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4741echo "$as_me:$LINENO: checking for $ac_word" >&5
4742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4743if test "${ac_cv_prog_RANLIB+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746 if test -n "$RANLIB"; then
4747 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4748else
4749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4758 break 2
4759 fi
4760done
4761done
4762
4763fi
4764fi
4765RANLIB=$ac_cv_prog_RANLIB
4766if test -n "$RANLIB"; then
4767 echo "$as_me:$LINENO: result: $RANLIB" >&5
4768echo "${ECHO_T}$RANLIB" >&6
4769else
4770 echo "$as_me:$LINENO: result: no" >&5
4771echo "${ECHO_T}no" >&6
4772fi
4773
4774fi
4775if test -z "$ac_cv_prog_RANLIB"; then
4776 ac_ct_RANLIB=$RANLIB
4777 # Extract the first word of "ranlib", so it can be a program name with args.
4778set dummy ranlib; ac_word=$2
4779echo "$as_me:$LINENO: checking for $ac_word" >&5
4780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4781if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4783else
4784 if test -n "$ac_ct_RANLIB"; then
4785 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4786else
4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4788for as_dir in $PATH
4789do
4790 IFS=$as_save_IFS
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4794 ac_cv_prog_ac_ct_RANLIB="ranlib"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 break 2
4797 fi
4798done
4799done
4800
4801 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4802fi
4803fi
4804ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4805if test -n "$ac_ct_RANLIB"; then
4806 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4807echo "${ECHO_T}$ac_ct_RANLIB" >&6
4808else
4809 echo "$as_me:$LINENO: result: no" >&5
4810echo "${ECHO_T}no" >&6
4811fi
4812
4813 RANLIB=$ac_ct_RANLIB
4814else
4815 RANLIB="$ac_cv_prog_RANLIB"
4816fi
4817
4818# Extract the first word of "rm", so it can be a program name with args.
4819set dummy rm; ac_word=$2
4820echo "$as_me:$LINENO: checking for $ac_word" >&5
4821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4822if test "${ac_cv_path_RM+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824else
4825 case $RM in
4826 [\\/]* | ?:[\\/]*)
4827 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4828 ;;
4829 *)
4830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839 break 2
4840 fi
4841done
4842done
4843
4844 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4845 ;;
4846esac
4847fi
4848RM=$ac_cv_path_RM
4849
4850if test -n "$RM"; then
4851 echo "$as_me:$LINENO: result: $RM" >&5
4852echo "${ECHO_T}$RM" >&6
4853else
4854 echo "$as_me:$LINENO: result: no" >&5
4855echo "${ECHO_T}no" >&6
4856fi
4857
4858# Extract the first word of "sed", so it can be a program name with args.
4859set dummy sed; ac_word=$2
4860echo "$as_me:$LINENO: checking for $ac_word" >&5
4861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4862if test "${ac_cv_path_SED+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 case $SED in
4866 [\\/]* | ?:[\\/]*)
4867 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4868 ;;
4869 *)
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4880 fi
4881done
4882done
4883
4884 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4885 ;;
4886esac
4887fi
4888SED=$ac_cv_path_SED
4889
4890if test -n "$SED"; then
4891 echo "$as_me:$LINENO: result: $SED" >&5
4892echo "${ECHO_T}$SED" >&6
4893else
4894 echo "$as_me:$LINENO: result: no" >&5
4895echo "${ECHO_T}no" >&6
4896fi
4897
4898# Extract the first word of "tar", so it can be a program name with args.
4899set dummy tar; ac_word=$2
4900echo "$as_me:$LINENO: checking for $ac_word" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4902if test "${ac_cv_path_TAR+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 case $TAR in
4906 [\\/]* | ?:[\\/]*)
4907 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4908 ;;
4909 *)
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4917 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921done
4922done
4923
4924 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4925 ;;
4926esac
4927fi
4928TAR=$ac_cv_path_TAR
4929
4930if test -n "$TAR"; then
4931 echo "$as_me:$LINENO: result: $TAR" >&5
4932echo "${ECHO_T}$TAR" >&6
4933else
4934 echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6
4936fi
4937
4938
4939# Find a good install program. We prefer a C program (faster),
4940# so one script is as good as another. But avoid the broken or
4941# incompatible versions:
4942# SysV /etc/install, /usr/sbin/install
4943# SunOS /usr/etc/install
4944# IRIX /sbin/install
4945# AIX /bin/install
4946# AmigaOS /C/install, which installs bootblocks on floppy discs
4947# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4948# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4949# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4950# OS/2's system install, which has a completely different semantic
4951# ./install, which can be erroneously created by make from ./install.sh.
4952echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4953echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4954if test -z "$INSTALL"; then
4955if test "${ac_cv_path_install+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957else
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH
4960do
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 # Account for people who put trailing slashes in PATH elements.
4964case $as_dir/ in
4965 ./ | .// | /cC/* | \
4966 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4967 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4968 /usr/ucb/* ) ;;
4969 *)
4970 # OSF1 and SCO ODT 3.0 have their own names for install.
4971 # Don't use installbsd from OSF since it installs stuff as root
4972 # by default.
4973 for ac_prog in ginstall scoinst install; do
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4976 if test $ac_prog = install &&
4977 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4978 # AIX install. It has an incompatible calling convention.
4979 :
4980 elif test $ac_prog = install &&
4981 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4982 # program-specific install script used by HP pwplus--don't use.
4983 :
4984 else
4985 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4986 break 3
4987 fi
4988 fi
4989 done
4990 done
4991 ;;
4992esac
4993done
4994
4995
4996fi
4997 if test "${ac_cv_path_install+set}" = set; then
4998 INSTALL=$ac_cv_path_install
4999 else
5000 # As a last resort, use the slow shell script. We don't cache a
5001 # path for INSTALL within a source directory, because that will
5002 # break other packages using the cache if that directory is
5003 # removed, or if the path is relative.
5004 INSTALL=$ac_install_sh
5005 fi
5006fi
5007echo "$as_me:$LINENO: result: $INSTALL" >&5
5008echo "${ECHO_T}$INSTALL" >&6
5009
5010# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5011# It thinks the first close brace ends the variable substitution.
5012test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5013
5014test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5015
5016test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5017
5018
5019# Extract the first word of "bzip2", so it can be a program name with args.
5020set dummy bzip2; ac_word=$2
5021echo "$as_me:$LINENO: checking for $ac_word" >&5
5022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5023if test "${ac_cv_path_BZIP2+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5025else
5026 case $BZIP2 in
5027 [\\/]* | ?:[\\/]*)
5028 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5029 ;;
5030 *)
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042done
5043done
5044
5045 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5046 ;;
5047esac
5048fi
5049BZIP2=$ac_cv_path_BZIP2
5050
5051if test -n "$BZIP2"; then
5052 echo "$as_me:$LINENO: result: $BZIP2" >&5
5053echo "${ECHO_T}$BZIP2" >&6
5054else
5055 echo "$as_me:$LINENO: result: no" >&5
5056echo "${ECHO_T}no" >&6
5057fi
5058
5059# Extract the first word of "dot", so it can be a program name with args.
5060set dummy dot; ac_word=$2
5061echo "$as_me:$LINENO: checking for $ac_word" >&5
5062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5063if test "${ac_cv_path_DOT+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5065else
5066 case $DOT in
5067 [\\/]* | ?:[\\/]*)
5068 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5069 ;;
5070 *)
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082done
5083done
5084
5085 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5086 ;;
5087esac
5088fi
5089DOT=$ac_cv_path_DOT
5090
5091if test -n "$DOT"; then
5092 echo "$as_me:$LINENO: result: $DOT" >&5
5093echo "${ECHO_T}$DOT" >&6
5094else
5095 echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6
5097fi
5098
5099# Extract the first word of "doxygen", so it can be a program name with args.
5100set dummy doxygen; ac_word=$2
5101echo "$as_me:$LINENO: checking for $ac_word" >&5
5102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5103if test "${ac_cv_path_DOXYGEN+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106 case $DOXYGEN in
5107 [\\/]* | ?:[\\/]*)
5108 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5109 ;;
5110 *)
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112for as_dir in $PATH
5113do
5114 IFS=$as_save_IFS
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5118 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5120 break 2
5121 fi
5122done
5123done
5124
5125 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5126 ;;
5127esac
5128fi
5129DOXYGEN=$ac_cv_path_DOXYGEN
5130
5131if test -n "$DOXYGEN"; then
5132 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5133echo "${ECHO_T}$DOXYGEN" >&6
5134else
5135 echo "$as_me:$LINENO: result: no" >&5
5136echo "${ECHO_T}no" >&6
5137fi
5138
5139# Extract the first word of "etags", so it can be a program name with args.
5140set dummy etags; ac_word=$2
5141echo "$as_me:$LINENO: checking for $ac_word" >&5
5142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5143if test "${ac_cv_path_ETAGS+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5145else
5146 case $ETAGS in
5147 [\\/]* | ?:[\\/]*)
5148 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5149 ;;
5150 *)
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152for as_dir in $PATH
5153do
5154 IFS=$as_save_IFS
5155 test -z "$as_dir" && as_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5158 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
5162done
5163done
5164
5165 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5166 ;;
5167esac
5168fi
5169ETAGS=$ac_cv_path_ETAGS
5170
5171if test -n "$ETAGS"; then
5172 echo "$as_me:$LINENO: result: $ETAGS" >&5
5173echo "${ECHO_T}$ETAGS" >&6
5174else
5175 echo "$as_me:$LINENO: result: no" >&5
5176echo "${ECHO_T}no" >&6
5177fi
5178
5179# Extract the first word of "groff", so it can be a program name with args.
5180set dummy groff; ac_word=$2
5181echo "$as_me:$LINENO: checking for $ac_word" >&5
5182echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183if test "${ac_cv_path_GROFF+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186 case $GROFF in
5187 [\\/]* | ?:[\\/]*)
5188 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5189 ;;
5190 *)
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192for as_dir in $PATH
5193do
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5198 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 break 2
5201 fi
5202done
5203done
5204
5205 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5206 ;;
5207esac
5208fi
5209GROFF=$ac_cv_path_GROFF
5210
5211if test -n "$GROFF"; then
5212 echo "$as_me:$LINENO: result: $GROFF" >&5
5213echo "${ECHO_T}$GROFF" >&6
5214else
5215 echo "$as_me:$LINENO: result: no" >&5
5216echo "${ECHO_T}no" >&6
5217fi
5218
5219# Extract the first word of "gzip", so it can be a program name with args.
5220set dummy gzip; ac_word=$2
5221echo "$as_me:$LINENO: checking for $ac_word" >&5
5222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5223if test "${ac_cv_path_GZIP+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225else
5226 case $GZIP in
5227 [\\/]* | ?:[\\/]*)
5228 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5229 ;;
5230 *)
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232for as_dir in $PATH
5233do
5234 IFS=$as_save_IFS
5235 test -z "$as_dir" && as_dir=.
5236 for ac_exec_ext in '' $ac_executable_extensions; do
5237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240 break 2
5241 fi
5242done
5243done
5244
5245 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5246 ;;
5247esac
5248fi
5249GZIP=$ac_cv_path_GZIP
5250
5251if test -n "$GZIP"; then
5252 echo "$as_me:$LINENO: result: $GZIP" >&5
5253echo "${ECHO_T}$GZIP" >&6
5254else
5255 echo "$as_me:$LINENO: result: no" >&5
5256echo "${ECHO_T}no" >&6
5257fi
5258
5259# Extract the first word of "pod2html", so it can be a program name with args.
5260set dummy pod2html; ac_word=$2
5261echo "$as_me:$LINENO: checking for $ac_word" >&5
5262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5263if test "${ac_cv_path_POD2HTML+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5265else
5266 case $POD2HTML in
5267 [\\/]* | ?:[\\/]*)
5268 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5269 ;;
5270 *)
5271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272for as_dir in $PATH
5273do
5274 IFS=$as_save_IFS
5275 test -z "$as_dir" && as_dir=.
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5280 break 2
5281 fi
5282done
5283done
5284
5285 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5286 ;;
5287esac
5288fi
5289POD2HTML=$ac_cv_path_POD2HTML
5290
5291if test -n "$POD2HTML"; then
5292 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5293echo "${ECHO_T}$POD2HTML" >&6
5294else
5295 echo "$as_me:$LINENO: result: no" >&5
5296echo "${ECHO_T}no" >&6
5297fi
5298
5299# Extract the first word of "pod2man", so it can be a program name with args.
5300set dummy pod2man; ac_word=$2
5301echo "$as_me:$LINENO: checking for $ac_word" >&5
5302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5303if test "${ac_cv_path_POD2MAN+set}" = set; then
5304 echo $ECHO_N "(cached) $ECHO_C" >&6
5305else
5306 case $POD2MAN in
5307 [\\/]* | ?:[\\/]*)
5308 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5309 ;;
5310 *)
5311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312for as_dir in $PATH
5313do
5314 IFS=$as_save_IFS
5315 test -z "$as_dir" && as_dir=.
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5318 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5320 break 2
5321 fi
5322done
5323done
5324
5325 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5326 ;;
5327esac
5328fi
5329POD2MAN=$ac_cv_path_POD2MAN
5330
5331if test -n "$POD2MAN"; then
5332 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5333echo "${ECHO_T}$POD2MAN" >&6
5334else
5335 echo "$as_me:$LINENO: result: no" >&5
5336echo "${ECHO_T}no" >&6
5337fi
5338
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005339# Extract the first word of "runtest", so it can be a program name with args.
5340set dummy runtest; ac_word=$2
5341echo "$as_me:$LINENO: checking for $ac_word" >&5
5342echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5343if test "${ac_cv_path_RUNTEST+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345else
5346 case $RUNTEST in
5347 [\\/]* | ?:[\\/]*)
5348 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5349 ;;
5350 *)
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352for as_dir in $PATH
5353do
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5358 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5361 fi
5362done
5363done
5364
5365 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5366 ;;
5367esac
5368fi
5369RUNTEST=$ac_cv_path_RUNTEST
5370
5371if test -n "$RUNTEST"; then
5372 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5373echo "${ECHO_T}$RUNTEST" >&6
5374else
5375 echo "$as_me:$LINENO: result: no" >&5
5376echo "${ECHO_T}no" >&6
5377fi
5378
Reid Spencer0fcb9412004-11-30 08:11:54 +00005379
Reid Spencer0fcb9412004-11-30 08:11:54 +00005380no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005381echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5382echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005383
5384# Check whether --with-tclinclude or --without-tclinclude was given.
5385if test "${with_tclinclude+set}" = set; then
5386 withval="$with_tclinclude"
5387 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005388else
5389 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005390fi;
5391if test "${ac_cv_path_tclsh+set}" = set; then
5392 echo $ECHO_N "(cached) $ECHO_C" >&6
5393else
5394
5395if test x"${with_tclinclude}" != x ; then
5396 if test -f ${with_tclinclude}/tclsh ; then
5397 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5398 elif test -f ${with_tclinclude}/src/tclsh ; then
5399 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5400 else
5401 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5402echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5403 { (exit 1); exit 1; }; }
5404 fi
5405fi
5406
Reid Spencer0fcb9412004-11-30 08:11:54 +00005407if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005408 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005409echo "${ECHO_T}none" >&6
Reid Spencerfc757b52004-12-02 07:31:22 +00005410 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 +00005411do
5412 # Extract the first word of "$ac_prog", so it can be a program name with args.
5413set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005414echo "$as_me:$LINENO: checking for $ac_word" >&5
5415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005416if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005417 echo $ECHO_N "(cached) $ECHO_C" >&6
5418else
Reid Spencercda35f82004-12-02 04:17:20 +00005419 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005420 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005421 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005422 ;;
5423 *)
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425for as_dir in $PATH
5426do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005431 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 break 2
5434 fi
5435done
5436done
5437
5438 ;;
5439esac
5440fi
Reid Spencercda35f82004-12-02 04:17:20 +00005441TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005442
Reid Spencercda35f82004-12-02 04:17:20 +00005443if test -n "$TCLSH"; then
5444 echo "$as_me:$LINENO: result: $TCLSH" >&5
5445echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005446else
5447 echo "$as_me:$LINENO: result: no" >&5
5448echo "${ECHO_T}no" >&6
5449fi
5450
Reid Spencercda35f82004-12-02 04:17:20 +00005451 test -n "$TCLSH" && break
5452done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005453
Reid Spencercda35f82004-12-02 04:17:20 +00005454 if test x"${TCLSH}" = x ; then
5455 ac_cv_path_tclsh='';
5456 else
5457 ac_cv_path_tclsh="${TCLSH}";
5458 fi
5459else
5460 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5461echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5462 TCLSH="${ac_cv_path_tclsh}"
5463
5464fi
5465
5466fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005467
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005468# Extract the first word of "zip", so it can be a program name with args.
5469set dummy zip; ac_word=$2
5470echo "$as_me:$LINENO: checking for $ac_word" >&5
5471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5472if test "${ac_cv_path_ZIP+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475 case $ZIP in
5476 [\\/]* | ?:[\\/]*)
5477 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5478 ;;
5479 *)
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5481for as_dir in $PATH
5482do
5483 IFS=$as_save_IFS
5484 test -z "$as_dir" && as_dir=.
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5487 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5489 break 2
5490 fi
5491done
5492done
5493
5494 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5495 ;;
5496esac
5497fi
5498ZIP=$ac_cv_path_ZIP
5499
5500if test -n "$ZIP"; then
5501 echo "$as_me:$LINENO: result: $ZIP" >&5
5502echo "${ECHO_T}$ZIP" >&6
5503else
5504 echo "$as_me:$LINENO: result: no" >&5
5505echo "${ECHO_T}no" >&6
5506fi
5507
5508
5509echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5510echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5511if test "${llvm_cv_link_use_r+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513else
5514 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005515ac_cpp='$CPP $CPPFLAGS'
5516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5518ac_compiler_gnu=$ac_cv_c_compiler_gnu
5519
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005520 oldcflags="$CFLAGS"
5521 CFLAGS="$CFLAGS -Wl,-R."
5522 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005523/* confdefs.h. */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
5527/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005528
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005529int
5530main ()
5531{
5532int main() { return 0; }
5533 ;
5534 return 0;
5535}
John Criswell47fdd832003-07-14 16:52:07 +00005536_ACEOF
5537rm -f conftest.$ac_objext conftest$ac_exeext
5538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005539 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005545 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005546 { ac_try='test -z "$ac_c_werror_flag"
5547 || test ! -s conftest.err'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; } &&
5553 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005559 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005560else
John Criswell47fdd832003-07-14 16:52:07 +00005561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005562sed 's/^/| /' conftest.$ac_ext >&5
5563
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005564llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005565fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005566rm -f conftest.err conftest.$ac_objext \
5567 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005568 CFLAGS="$oldcflags"
5569 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005570ac_cpp='$CPP $CPPFLAGS'
5571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573ac_compiler_gnu=$ac_cv_c_compiler_gnu
5574
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005575
John Criswell7a73b802003-06-30 21:59:07 +00005576fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005577echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5578echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5579if test "$llvm_cv_link_use_r" = yes ; then
5580
5581cat >>confdefs.h <<\_ACEOF
5582#define HAVE_LINK_R 1
5583_ACEOF
5584
John Criswell47fdd832003-07-14 16:52:07 +00005585 fi
John Criswell47fdd832003-07-14 16:52:07 +00005586
John Criswell47fdd832003-07-14 16:52:07 +00005587
John Criswell47fdd832003-07-14 16:52:07 +00005588
John Criswell7a73b802003-06-30 21:59:07 +00005589
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005590echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5591echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5592if test "${ac_cv_c_const+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594else
5595 cat >conftest.$ac_ext <<_ACEOF
5596/* confdefs.h. */
5597_ACEOF
5598cat confdefs.h >>conftest.$ac_ext
5599cat >>conftest.$ac_ext <<_ACEOF
5600/* end confdefs.h. */
5601
5602int
5603main ()
5604{
5605/* FIXME: Include the comments suggested by Paul. */
5606#ifndef __cplusplus
5607 /* Ultrix mips cc rejects this. */
5608 typedef int charset[2];
5609 const charset x;
5610 /* SunOS 4.1.1 cc rejects this. */
5611 char const *const *ccp;
5612 char **p;
5613 /* NEC SVR4.0.2 mips cc rejects this. */
5614 struct point {int x, y;};
5615 static struct point const zero = {0,0};
5616 /* AIX XL C 1.02.0.0 rejects this.
5617 It does not let you subtract one const X* pointer from another in
5618 an arm of an if-expression whose if-part is not a constant
5619 expression */
5620 const char *g = "string";
5621 ccp = &g + (g ? g-g : 0);
5622 /* HPUX 7.0 cc rejects these. */
5623 ++ccp;
5624 p = (char**) ccp;
5625 ccp = (char const *const *) p;
5626 { /* SCO 3.2v4 cc rejects this. */
5627 char *t;
5628 char const *s = 0 ? (char *) 0 : (char const *) 0;
5629
5630 *t++ = 0;
5631 }
5632 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5633 int x[] = {25, 17};
5634 const int *foo = &x[0];
5635 ++foo;
5636 }
5637 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5638 typedef const int *iptr;
5639 iptr p = 0;
5640 ++p;
5641 }
5642 { /* AIX XL C 1.02.0.0 rejects this saying
5643 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5644 struct s { int j; const int *ap[3]; };
5645 struct s *b; b->j = 5;
5646 }
5647 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5648 const int foo = 10;
5649 }
5650#endif
5651
5652 ;
5653 return 0;
5654}
5655_ACEOF
5656rm -f conftest.$ac_objext
5657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658 (eval $ac_compile) 2>conftest.er1
5659 ac_status=$?
5660 grep -v '^ *+' conftest.er1 >conftest.err
5661 rm -f conftest.er1
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } &&
5665 { ac_try='test -z "$ac_c_werror_flag"
5666 || test ! -s conftest.err'
5667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668 (eval $ac_try) 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); }; } &&
5672 { ac_try='test -s conftest.$ac_objext'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; }; then
5678 ac_cv_c_const=yes
5679else
5680 echo "$as_me: failed program was:" >&5
5681sed 's/^/| /' conftest.$ac_ext >&5
5682
5683ac_cv_c_const=no
5684fi
5685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5686fi
5687echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5688echo "${ECHO_T}$ac_cv_c_const" >&6
5689if test $ac_cv_c_const = no; then
5690
5691cat >>confdefs.h <<\_ACEOF
5692#define const
5693_ACEOF
5694
5695fi
5696
5697
5698echo "$as_me:$LINENO: checking for egrep" >&5
5699echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5700if test "${ac_cv_prog_egrep+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702else
5703 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5704 then ac_cv_prog_egrep='grep -E'
5705 else ac_cv_prog_egrep='egrep'
5706 fi
5707fi
5708echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5709echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5710 EGREP=$ac_cv_prog_egrep
5711
John Criswell7a73b802003-06-30 21:59:07 +00005712
5713echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5714echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5715if test "${ac_cv_header_stdc+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
5718 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005719/* confdefs.h. */
5720_ACEOF
5721cat confdefs.h >>conftest.$ac_ext
5722cat >>conftest.$ac_ext <<_ACEOF
5723/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005724#include <stdlib.h>
5725#include <stdarg.h>
5726#include <string.h>
5727#include <float.h>
5728
John Criswell0c38eaf2003-09-10 15:17:25 +00005729int
5730main ()
5731{
5732
5733 ;
5734 return 0;
5735}
John Criswell7a73b802003-06-30 21:59:07 +00005736_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005737rm -f conftest.$ac_objext
5738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005739 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005741 grep -v '^ *+' conftest.er1 >conftest.err
5742 rm -f conftest.er1
5743 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005745 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005746 { ac_try='test -z "$ac_c_werror_flag"
5747 || test ! -s conftest.err'
5748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 (eval $ac_try) 2>&5
5750 ac_status=$?
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); }; } &&
5753 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755 (eval $ac_try) 2>&5
5756 ac_status=$?
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005759 ac_cv_header_stdc=yes
5760else
5761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005762sed 's/^/| /' conftest.$ac_ext >&5
5763
5764ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005765fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005767
5768if test $ac_cv_header_stdc = yes; then
5769 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5770 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005771/* confdefs.h. */
5772_ACEOF
5773cat confdefs.h >>conftest.$ac_ext
5774cat >>conftest.$ac_ext <<_ACEOF
5775/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005776#include <string.h>
5777
5778_ACEOF
5779if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005780 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005781 :
5782else
5783 ac_cv_header_stdc=no
5784fi
5785rm -f conftest*
5786
5787fi
5788
5789if test $ac_cv_header_stdc = yes; then
5790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5791 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005792/* confdefs.h. */
5793_ACEOF
5794cat confdefs.h >>conftest.$ac_ext
5795cat >>conftest.$ac_ext <<_ACEOF
5796/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005797#include <stdlib.h>
5798
5799_ACEOF
5800if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005801 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005802 :
5803else
5804 ac_cv_header_stdc=no
5805fi
5806rm -f conftest*
5807
5808fi
5809
5810if test $ac_cv_header_stdc = yes; then
5811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5812 if test "$cross_compiling" = yes; then
5813 :
5814else
5815 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005816/* confdefs.h. */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005821#include <ctype.h>
5822#if ((' ' & 0x0FF) == 0x020)
5823# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5824# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5825#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005826# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005827 (('a' <= (c) && (c) <= 'i') \
5828 || ('j' <= (c) && (c) <= 'r') \
5829 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005830# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5831#endif
5832
5833#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5834int
5835main ()
5836{
5837 int i;
5838 for (i = 0; i < 256; i++)
5839 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005840 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005841 exit(2);
5842 exit (0);
5843}
5844_ACEOF
5845rm -f conftest$ac_exeext
5846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5847 (eval $ac_link) 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 (eval $ac_try) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; }; then
5856 :
5857else
5858 echo "$as_me: program exited with status $ac_status" >&5
5859echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005860sed 's/^/| /' conftest.$ac_ext >&5
5861
John Criswell7a73b802003-06-30 21:59:07 +00005862( exit $ac_status )
5863ac_cv_header_stdc=no
5864fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005865rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005866fi
5867fi
5868fi
5869echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5870echo "${ECHO_T}$ac_cv_header_stdc" >&6
5871if test $ac_cv_header_stdc = yes; then
5872
5873cat >>confdefs.h <<\_ACEOF
5874#define STDC_HEADERS 1
5875_ACEOF
5876
5877fi
5878
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005879
5880
5881
5882
5883
5884ac_header_dirent=no
5885for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5886 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5887echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5888echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5889if eval "test \"\${$as_ac_Header+set}\" = set"; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892 cat >conftest.$ac_ext <<_ACEOF
5893/* confdefs.h. */
5894_ACEOF
5895cat confdefs.h >>conftest.$ac_ext
5896cat >>conftest.$ac_ext <<_ACEOF
5897/* end confdefs.h. */
5898#include <sys/types.h>
5899#include <$ac_hdr>
5900
5901int
5902main ()
5903{
5904if ((DIR *) 0)
5905return 0;
5906 ;
5907 return 0;
5908}
5909_ACEOF
5910rm -f conftest.$ac_objext
5911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5912 (eval $ac_compile) 2>conftest.er1
5913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } &&
5919 { ac_try='test -z "$ac_c_werror_flag"
5920 || test ! -s conftest.err'
5921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5922 (eval $ac_try) 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest.$ac_objext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928 (eval $ac_try) 2>&5
5929 ac_status=$?
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5932 eval "$as_ac_Header=yes"
5933else
5934 echo "$as_me: failed program was:" >&5
5935sed 's/^/| /' conftest.$ac_ext >&5
5936
5937eval "$as_ac_Header=no"
5938fi
5939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5940fi
5941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5942echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5943if test `eval echo '${'$as_ac_Header'}'` = yes; then
5944 cat >>confdefs.h <<_ACEOF
5945#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5946_ACEOF
5947
5948ac_header_dirent=$ac_hdr; break
5949fi
5950
5951done
5952# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5953if test $ac_header_dirent = dirent.h; then
5954 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5955echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5956if test "${ac_cv_search_opendir+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5958else
5959 ac_func_search_save_LIBS=$LIBS
5960ac_cv_search_opendir=no
5961cat >conftest.$ac_ext <<_ACEOF
5962/* confdefs.h. */
5963_ACEOF
5964cat confdefs.h >>conftest.$ac_ext
5965cat >>conftest.$ac_ext <<_ACEOF
5966/* end confdefs.h. */
5967
5968/* Override any gcc2 internal prototype to avoid an error. */
5969#ifdef __cplusplus
5970extern "C"
5971#endif
5972/* We use char because int might match the return type of a gcc2
5973 builtin and then its argument prototype would still apply. */
5974char opendir ();
5975int
5976main ()
5977{
5978opendir ();
5979 ;
5980 return 0;
5981}
5982_ACEOF
5983rm -f conftest.$ac_objext conftest$ac_exeext
5984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5985 (eval $ac_link) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest$ac_exeext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_cv_search_opendir="none required"
6006else
6007 echo "$as_me: failed program was:" >&5
6008sed 's/^/| /' conftest.$ac_ext >&5
6009
6010fi
6011rm -f conftest.err conftest.$ac_objext \
6012 conftest$ac_exeext conftest.$ac_ext
6013if test "$ac_cv_search_opendir" = no; then
6014 for ac_lib in dir; do
6015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6016 cat >conftest.$ac_ext <<_ACEOF
6017/* confdefs.h. */
6018_ACEOF
6019cat confdefs.h >>conftest.$ac_ext
6020cat >>conftest.$ac_ext <<_ACEOF
6021/* end confdefs.h. */
6022
6023/* Override any gcc2 internal prototype to avoid an error. */
6024#ifdef __cplusplus
6025extern "C"
6026#endif
6027/* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */
6029char opendir ();
6030int
6031main ()
6032{
6033opendir ();
6034 ;
6035 return 0;
6036}
6037_ACEOF
6038rm -f conftest.$ac_objext conftest$ac_exeext
6039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040 (eval $ac_link) 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } &&
6047 { ac_try='test -z "$ac_c_werror_flag"
6048 || test ! -s conftest.err'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 (eval $ac_try) 2>&5
6051 ac_status=$?
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; } &&
6054 { ac_try='test -s conftest$ac_exeext'
6055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6056 (eval $ac_try) 2>&5
6057 ac_status=$?
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6060 ac_cv_search_opendir="-l$ac_lib"
6061break
6062else
6063 echo "$as_me: failed program was:" >&5
6064sed 's/^/| /' conftest.$ac_ext >&5
6065
6066fi
6067rm -f conftest.err conftest.$ac_objext \
6068 conftest$ac_exeext conftest.$ac_ext
6069 done
6070fi
6071LIBS=$ac_func_search_save_LIBS
6072fi
6073echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6074echo "${ECHO_T}$ac_cv_search_opendir" >&6
6075if test "$ac_cv_search_opendir" != no; then
6076 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6077
6078fi
6079
6080else
6081 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6082echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6083if test "${ac_cv_search_opendir+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085else
6086 ac_func_search_save_LIBS=$LIBS
6087ac_cv_search_opendir=no
6088cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h. */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h. */
6094
6095/* Override any gcc2 internal prototype to avoid an error. */
6096#ifdef __cplusplus
6097extern "C"
6098#endif
6099/* We use char because int might match the return type of a gcc2
6100 builtin and then its argument prototype would still apply. */
6101char opendir ();
6102int
6103main ()
6104{
6105opendir ();
6106 ;
6107 return 0;
6108}
6109_ACEOF
6110rm -f conftest.$ac_objext conftest$ac_exeext
6111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6112 (eval $ac_link) 2>conftest.er1
6113 ac_status=$?
6114 grep -v '^ *+' conftest.er1 >conftest.err
6115 rm -f conftest.er1
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag"
6120 || test ! -s conftest.err'
6121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122 (eval $ac_try) 2>&5
6123 ac_status=$?
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); }; } &&
6126 { ac_try='test -s conftest$ac_exeext'
6127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6128 (eval $ac_try) 2>&5
6129 ac_status=$?
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); }; }; then
6132 ac_cv_search_opendir="none required"
6133else
6134 echo "$as_me: failed program was:" >&5
6135sed 's/^/| /' conftest.$ac_ext >&5
6136
6137fi
6138rm -f conftest.err conftest.$ac_objext \
6139 conftest$ac_exeext conftest.$ac_ext
6140if test "$ac_cv_search_opendir" = no; then
6141 for ac_lib in x; do
6142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6143 cat >conftest.$ac_ext <<_ACEOF
6144/* confdefs.h. */
6145_ACEOF
6146cat confdefs.h >>conftest.$ac_ext
6147cat >>conftest.$ac_ext <<_ACEOF
6148/* end confdefs.h. */
6149
6150/* Override any gcc2 internal prototype to avoid an error. */
6151#ifdef __cplusplus
6152extern "C"
6153#endif
6154/* We use char because int might match the return type of a gcc2
6155 builtin and then its argument prototype would still apply. */
6156char opendir ();
6157int
6158main ()
6159{
6160opendir ();
6161 ;
6162 return 0;
6163}
6164_ACEOF
6165rm -f conftest.$ac_objext conftest$ac_exeext
6166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6167 (eval $ac_link) 2>conftest.er1
6168 ac_status=$?
6169 grep -v '^ *+' conftest.er1 >conftest.err
6170 rm -f conftest.er1
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } &&
6174 { ac_try='test -z "$ac_c_werror_flag"
6175 || test ! -s conftest.err'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6177 (eval $ac_try) 2>&5
6178 ac_status=$?
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; } &&
6181 { ac_try='test -s conftest$ac_exeext'
6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6183 (eval $ac_try) 2>&5
6184 ac_status=$?
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); }; }; then
6187 ac_cv_search_opendir="-l$ac_lib"
6188break
6189else
6190 echo "$as_me: failed program was:" >&5
6191sed 's/^/| /' conftest.$ac_ext >&5
6192
6193fi
6194rm -f conftest.err conftest.$ac_objext \
6195 conftest$ac_exeext conftest.$ac_ext
6196 done
6197fi
6198LIBS=$ac_func_search_save_LIBS
6199fi
6200echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6201echo "${ECHO_T}$ac_cv_search_opendir" >&6
6202if test "$ac_cv_search_opendir" != no; then
6203 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6204
6205fi
6206
6207fi
6208
John Criswell7a73b802003-06-30 21:59:07 +00006209# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006220 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006221do
6222as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6223echo "$as_me:$LINENO: checking for $ac_header" >&5
6224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6225if eval "test \"\${$as_ac_Header+set}\" = set"; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227else
6228 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006229/* confdefs.h. */
6230_ACEOF
6231cat confdefs.h >>conftest.$ac_ext
6232cat >>conftest.$ac_ext <<_ACEOF
6233/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006234$ac_includes_default
6235
6236#include <$ac_header>
6237_ACEOF
6238rm -f conftest.$ac_objext
6239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006240 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006241 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6246 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006247 { ac_try='test -z "$ac_c_werror_flag"
6248 || test ! -s conftest.err'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; } &&
6254 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6256 (eval $ac_try) 2>&5
6257 ac_status=$?
6258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); }; }; then
6260 eval "$as_ac_Header=yes"
6261else
6262 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006263sed 's/^/| /' conftest.$ac_ext >&5
6264
John Criswell7a73b802003-06-30 21:59:07 +00006265eval "$as_ac_Header=no"
6266fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006268fi
6269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6270echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6271if test `eval echo '${'$as_ac_Header'}'` = yes; then
6272 cat >>confdefs.h <<_ACEOF
6273#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6274_ACEOF
6275
6276fi
6277
6278done
6279
6280
6281
6282for ac_header in dlfcn.h
6283do
6284as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006285if eval "test \"\${$as_ac_Header+set}\" = set"; then
6286 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006287echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6288if eval "test \"\${$as_ac_Header+set}\" = set"; then
6289 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006290fi
6291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006293else
Brian Gaeke0a621332004-09-08 20:38:05 +00006294 # Is the header compilable?
6295echo "$as_me:$LINENO: checking $ac_header usability" >&5
6296echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6297cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006298/* confdefs.h. */
6299_ACEOF
6300cat confdefs.h >>conftest.$ac_ext
6301cat >>conftest.$ac_ext <<_ACEOF
6302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006303$ac_includes_default
6304#include <$ac_header>
6305_ACEOF
6306rm -f conftest.$ac_objext
6307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006308 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006309 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006310 grep -v '^ *+' conftest.er1 >conftest.err
6311 rm -f conftest.er1
6312 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006315 { ac_try='test -z "$ac_c_werror_flag"
6316 || test ! -s conftest.err'
6317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 (eval $ac_try) 2>&5
6319 ac_status=$?
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }; } &&
6322 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324 (eval $ac_try) 2>&5
6325 ac_status=$?
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006328 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006329else
6330 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006331sed 's/^/| /' conftest.$ac_ext >&5
6332
Brian Gaeke0a621332004-09-08 20:38:05 +00006333ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006334fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006336echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6337echo "${ECHO_T}$ac_header_compiler" >&6
6338
6339# Is the header present?
6340echo "$as_me:$LINENO: checking $ac_header presence" >&5
6341echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6342cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006343/* confdefs.h. */
6344_ACEOF
6345cat confdefs.h >>conftest.$ac_ext
6346cat >>conftest.$ac_ext <<_ACEOF
6347/* end confdefs.h. */
6348#include <$ac_header>
6349_ACEOF
6350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6352 ac_status=$?
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } >/dev/null; then
6358 if test -s conftest.err; then
6359 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006361 else
6362 ac_cpp_err=
6363 fi
6364else
6365 ac_cpp_err=yes
6366fi
6367if test -z "$ac_cpp_err"; then
6368 ac_header_preproc=yes
6369else
6370 echo "$as_me: failed program was:" >&5
6371sed 's/^/| /' conftest.$ac_ext >&5
6372
6373 ac_header_preproc=no
6374fi
6375rm -f conftest.err conftest.$ac_ext
6376echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6377echo "${ECHO_T}$ac_header_preproc" >&6
6378
6379# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006380case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6381 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6383echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6385echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6386 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006387 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006388 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6390echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6392echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6394echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6396echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6398echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6400echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006401 (
6402 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006403## ----------------------------------- ##
6404## Report this to llvmbugs@cs.uiuc.edu ##
6405## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006406_ASBOX
6407 ) |
6408 sed "s/^/$as_me: WARNING: /" >&2
6409 ;;
6410esac
6411echo "$as_me:$LINENO: checking for $ac_header" >&5
6412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6413if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414 echo $ECHO_N "(cached) $ECHO_C" >&6
6415else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006416 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006417fi
6418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6419echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006420
6421fi
John Criswell7a73b802003-06-30 21:59:07 +00006422if test `eval echo '${'$as_ac_Header'}'` = yes; then
6423 cat >>confdefs.h <<_ACEOF
6424#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6425_ACEOF
6426
6427fi
6428
6429done
6430
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006431# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6432if test "${enable_ltdl_install+set}" = set; then
6433 enableval="$enable_ltdl_install"
6434
6435fi;
6436
6437
6438
6439if test x"${enable_ltdl_install-no}" != xno; then
6440 INSTALL_LTDL_TRUE=
6441 INSTALL_LTDL_FALSE='#'
6442else
6443 INSTALL_LTDL_TRUE='#'
6444 INSTALL_LTDL_FALSE=
6445fi
6446
6447
6448
6449if test x"${enable_ltdl_convenience-no}" != xno; then
6450 CONVENIENCE_LTDL_TRUE=
6451 CONVENIENCE_LTDL_FALSE='#'
6452else
6453 CONVENIENCE_LTDL_TRUE='#'
6454 CONVENIENCE_LTDL_FALSE=
6455fi
6456
6457
6458echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6459echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6460library_names_spec=
6461libname_spec='lib$name'
6462soname_spec=
6463shrext_cmds=".so"
6464postinstall_cmds=
6465postuninstall_cmds=
6466finish_cmds=
6467finish_eval=
6468shlibpath_var=
6469shlibpath_overrides_runpath=unknown
6470version_type=none
6471dynamic_linker="$host_os ld.so"
6472sys_lib_dlsearch_path_spec="/lib /usr/lib"
6473if test "$GCC" = yes; then
6474 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6475 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6476 # if the path contains ";" then we assume it to be the separator
6477 # otherwise default to the standard path separator (i.e. ":") - it is
6478 # assumed that no part of a normal pathname contains ";" but that should
6479 # okay in the real world where ";" in dirpaths is itself problematic.
6480 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6481 else
6482 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6483 fi
6484else
6485 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6486fi
6487need_lib_prefix=unknown
6488hardcode_into_libs=no
6489
6490# when you set need_version to no, make sure it does not cause -set_version
6491# flags to be left without arguments
6492need_version=unknown
6493
6494case $host_os in
6495aix3*)
6496 version_type=linux
6497 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6498 shlibpath_var=LIBPATH
6499
6500 # AIX 3 has no versioning support, so we append a major version to the name.
6501 soname_spec='${libname}${release}${shared_ext}$major'
6502 ;;
6503
6504aix4* | aix5*)
6505 version_type=linux
6506 need_lib_prefix=no
6507 need_version=no
6508 hardcode_into_libs=yes
6509 if test "$host_cpu" = ia64; then
6510 # AIX 5 supports IA64
6511 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6512 shlibpath_var=LD_LIBRARY_PATH
6513 else
6514 # With GCC up to 2.95.x, collect2 would create an import file
6515 # for dependence libraries. The import file would start with
6516 # the line `#! .'. This would cause the generated library to
6517 # depend on `.', always an invalid library. This was fixed in
6518 # development snapshots of GCC prior to 3.0.
6519 case $host_os in
6520 aix4 | aix4.[01] | aix4.[01].*)
6521 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6522 echo ' yes '
6523 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6524 :
6525 else
6526 can_build_shared=no
6527 fi
6528 ;;
6529 esac
6530 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6531 # soname into executable. Probably we can add versioning support to
6532 # collect2, so additional links can be useful in future.
6533 if test "$aix_use_runtimelinking" = yes; then
6534 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6535 # instead of lib<name>.a to let people know that these are not
6536 # typical AIX shared libraries.
6537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6538 else
6539 # We preserve .a as extension for shared libraries through AIX4.2
6540 # and later when we are not doing run time linking.
6541 library_names_spec='${libname}${release}.a $libname.a'
6542 soname_spec='${libname}${release}${shared_ext}$major'
6543 fi
6544 shlibpath_var=LIBPATH
6545 fi
6546 ;;
6547
6548amigaos*)
6549 library_names_spec='$libname.ixlibrary $libname.a'
6550 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6551 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'
6552 ;;
6553
6554beos*)
6555 library_names_spec='${libname}${shared_ext}'
6556 dynamic_linker="$host_os ld.so"
6557 shlibpath_var=LIBRARY_PATH
6558 ;;
6559
6560bsdi[45]*)
6561 version_type=linux
6562 need_version=no
6563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6564 soname_spec='${libname}${release}${shared_ext}$major'
6565 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6566 shlibpath_var=LD_LIBRARY_PATH
6567 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6568 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6569 # the default ld.so.conf also contains /usr/contrib/lib and
6570 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6571 # libtool to hard-code these into programs
6572 ;;
6573
6574cygwin* | mingw* | pw32*)
6575 version_type=windows
6576 shrext_cmds=".dll"
6577 need_version=no
6578 need_lib_prefix=no
6579
6580 case $GCC,$host_os in
6581 yes,cygwin* | yes,mingw* | yes,pw32*)
6582 library_names_spec='$libname.dll.a'
6583 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6584 postinstall_cmds='base_file=`basename \${file}`~
6585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6586 dldir=$destdir/`dirname \$dlpath`~
6587 test -d \$dldir || mkdir -p \$dldir~
6588 $install_prog $dir/$dlname \$dldir/$dlname'
6589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6590 dlpath=$dir/\$dldll~
6591 $rm \$dlpath'
6592 shlibpath_overrides_runpath=yes
6593
6594 case $host_os in
6595 cygwin*)
6596 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6597 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6598 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6599 ;;
6600 mingw*)
6601 # MinGW DLLs use traditional 'lib' prefix
6602 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6603 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6604 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6605 # It is most probably a Windows format PATH printed by
6606 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6607 # path with ; separators, and with drive letters. We can handle the
6608 # drive letters (cygwin fileutils understands them), so leave them,
6609 # especially as we might pass files found there to a mingw objdump,
6610 # which wouldn't understand a cygwinified path. Ahh.
6611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6612 else
6613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6614 fi
6615 ;;
6616 pw32*)
6617 # pw32 DLLs use 'pw' prefix rather than 'lib'
6618 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6619 ;;
6620 esac
6621 ;;
6622
6623 *)
6624 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6625 ;;
6626 esac
6627 dynamic_linker='Win32 ld.exe'
6628 # FIXME: first we should search . and the directory the executable is in
6629 shlibpath_var=PATH
6630 ;;
6631
6632darwin* | rhapsody*)
6633 dynamic_linker="$host_os dyld"
6634 version_type=darwin
6635 need_lib_prefix=no
6636 need_version=no
6637 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6638 soname_spec='${libname}${release}${major}$shared_ext'
6639 shlibpath_overrides_runpath=yes
6640 shlibpath_var=DYLD_LIBRARY_PATH
6641 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6642 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6643 if test "$GCC" = yes; then
6644 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"`
6645 else
6646 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6647 fi
6648 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6649 ;;
6650
6651dgux*)
6652 version_type=linux
6653 need_lib_prefix=no
6654 need_version=no
6655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6656 soname_spec='${libname}${release}${shared_ext}$major'
6657 shlibpath_var=LD_LIBRARY_PATH
6658 ;;
6659
6660freebsd1*)
6661 dynamic_linker=no
6662 ;;
6663
6664kfreebsd*-gnu)
6665 version_type=linux
6666 need_lib_prefix=no
6667 need_version=no
6668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6669 soname_spec='${libname}${release}${shared_ext}$major'
6670 shlibpath_var=LD_LIBRARY_PATH
6671 shlibpath_overrides_runpath=no
6672 hardcode_into_libs=yes
6673 dynamic_linker='GNU ld.so'
6674 ;;
6675
6676freebsd*)
6677 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6678 version_type=freebsd-$objformat
6679 case $version_type in
6680 freebsd-elf*)
6681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6682 need_version=no
6683 need_lib_prefix=no
6684 ;;
6685 freebsd-*)
6686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6687 need_version=yes
6688 ;;
6689 esac
6690 shlibpath_var=LD_LIBRARY_PATH
6691 case $host_os in
6692 freebsd2*)
6693 shlibpath_overrides_runpath=yes
6694 ;;
6695 freebsd3.01* | freebsdelf3.01*)
6696 shlibpath_overrides_runpath=yes
6697 hardcode_into_libs=yes
6698 ;;
6699 *) # from 3.2 on
6700 shlibpath_overrides_runpath=no
6701 hardcode_into_libs=yes
6702 ;;
6703 esac
6704 ;;
6705
6706gnu*)
6707 version_type=linux
6708 need_lib_prefix=no
6709 need_version=no
6710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6711 soname_spec='${libname}${release}${shared_ext}$major'
6712 shlibpath_var=LD_LIBRARY_PATH
6713 hardcode_into_libs=yes
6714 ;;
6715
6716hpux9* | hpux10* | hpux11*)
6717 # Give a soname corresponding to the major version so that dld.sl refuses to
6718 # link against other versions.
6719 version_type=sunos
6720 need_lib_prefix=no
6721 need_version=no
6722 case "$host_cpu" in
6723 ia64*)
6724 shrext_cmds='.so'
6725 hardcode_into_libs=yes
6726 dynamic_linker="$host_os dld.so"
6727 shlibpath_var=LD_LIBRARY_PATH
6728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6730 soname_spec='${libname}${release}${shared_ext}$major'
6731 if test "X$HPUX_IA64_MODE" = X32; then
6732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6733 else
6734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6735 fi
6736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6737 ;;
6738 hppa*64*)
6739 shrext_cmds='.sl'
6740 hardcode_into_libs=yes
6741 dynamic_linker="$host_os dld.sl"
6742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6745 soname_spec='${libname}${release}${shared_ext}$major'
6746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6748 ;;
6749 *)
6750 shrext_cmds='.sl'
6751 dynamic_linker="$host_os dld.sl"
6752 shlibpath_var=SHLIB_PATH
6753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6755 soname_spec='${libname}${release}${shared_ext}$major'
6756 ;;
6757 esac
6758 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6759 postinstall_cmds='chmod 555 $lib'
6760 ;;
6761
6762irix5* | irix6* | nonstopux*)
6763 case $host_os in
6764 nonstopux*) version_type=nonstopux ;;
6765 *)
6766 if test "$lt_cv_prog_gnu_ld" = yes; then
6767 version_type=linux
6768 else
6769 version_type=irix
6770 fi ;;
6771 esac
6772 need_lib_prefix=no
6773 need_version=no
6774 soname_spec='${libname}${release}${shared_ext}$major'
6775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6776 case $host_os in
6777 irix5* | nonstopux*)
6778 libsuff= shlibsuff=
6779 ;;
6780 *)
6781 case $LD in # libtool.m4 will add one of these switches to LD
6782 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6783 libsuff= shlibsuff= libmagic=32-bit;;
6784 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6785 libsuff=32 shlibsuff=N32 libmagic=N32;;
6786 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6787 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6788 *) libsuff= shlibsuff= libmagic=never-match;;
6789 esac
6790 ;;
6791 esac
6792 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6793 shlibpath_overrides_runpath=no
6794 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6795 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6796 hardcode_into_libs=yes
6797 ;;
6798
6799# No shared lib support for Linux oldld, aout, or coff.
6800linux*oldld* | linux*aout* | linux*coff*)
6801 dynamic_linker=no
6802 ;;
6803
6804# This must be Linux ELF.
6805linux*)
6806 version_type=linux
6807 need_lib_prefix=no
6808 need_version=no
6809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6810 soname_spec='${libname}${release}${shared_ext}$major'
6811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6812 shlibpath_var=LD_LIBRARY_PATH
6813 shlibpath_overrides_runpath=no
6814 # This implies no fast_install, which is unacceptable.
6815 # Some rework will be needed to allow for fast_install
6816 # before this can be enabled.
6817 hardcode_into_libs=yes
6818
6819 # Append ld.so.conf contents to the search path
6820 if test -f /etc/ld.so.conf; then
6821 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6822 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6823 fi
6824
6825 # We used to test for /lib/ld.so.1 and disable shared libraries on
6826 # powerpc, because MkLinux only supported shared libraries with the
6827 # GNU dynamic linker. Since this was broken with cross compilers,
6828 # most powerpc-linux boxes support dynamic linking these days and
6829 # people can always --disable-shared, the test was removed, and we
6830 # assume the GNU/Linux dynamic linker is in use.
6831 dynamic_linker='GNU/Linux ld.so'
6832 ;;
6833
6834knetbsd*-gnu)
6835 version_type=linux
6836 need_lib_prefix=no
6837 need_version=no
6838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6839 soname_spec='${libname}${release}${shared_ext}$major'
6840 shlibpath_var=LD_LIBRARY_PATH
6841 shlibpath_overrides_runpath=no
6842 hardcode_into_libs=yes
6843 dynamic_linker='GNU ld.so'
6844 ;;
6845
6846netbsd*)
6847 version_type=sunos
6848 need_lib_prefix=no
6849 need_version=no
6850 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6852 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6853 dynamic_linker='NetBSD (a.out) ld.so'
6854 else
6855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6856 soname_spec='${libname}${release}${shared_ext}$major'
6857 dynamic_linker='NetBSD ld.elf_so'
6858 fi
6859 shlibpath_var=LD_LIBRARY_PATH
6860 shlibpath_overrides_runpath=yes
6861 hardcode_into_libs=yes
6862 ;;
6863
6864newsos6)
6865 version_type=linux
6866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6867 shlibpath_var=LD_LIBRARY_PATH
6868 shlibpath_overrides_runpath=yes
6869 ;;
6870
6871nto-qnx*)
6872 version_type=linux
6873 need_lib_prefix=no
6874 need_version=no
6875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6876 soname_spec='${libname}${release}${shared_ext}$major'
6877 shlibpath_var=LD_LIBRARY_PATH
6878 shlibpath_overrides_runpath=yes
6879 ;;
6880
6881openbsd*)
6882 version_type=sunos
6883 need_lib_prefix=no
6884 need_version=no
6885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6887 shlibpath_var=LD_LIBRARY_PATH
6888 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6889 case $host_os in
6890 openbsd2.[89] | openbsd2.[89].*)
6891 shlibpath_overrides_runpath=no
6892 ;;
6893 *)
6894 shlibpath_overrides_runpath=yes
6895 ;;
6896 esac
6897 else
6898 shlibpath_overrides_runpath=yes
6899 fi
6900 ;;
6901
6902os2*)
6903 libname_spec='$name'
6904 shrext_cmds=".dll"
6905 need_lib_prefix=no
6906 library_names_spec='$libname${shared_ext} $libname.a'
6907 dynamic_linker='OS/2 ld.exe'
6908 shlibpath_var=LIBPATH
6909 ;;
6910
6911osf3* | osf4* | osf5*)
6912 version_type=osf
6913 need_lib_prefix=no
6914 need_version=no
6915 soname_spec='${libname}${release}${shared_ext}$major'
6916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6917 shlibpath_var=LD_LIBRARY_PATH
6918 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6919 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6920 ;;
6921
6922sco3.2v5*)
6923 version_type=osf
6924 soname_spec='${libname}${release}${shared_ext}$major'
6925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6926 shlibpath_var=LD_LIBRARY_PATH
6927 ;;
6928
6929solaris*)
6930 version_type=linux
6931 need_lib_prefix=no
6932 need_version=no
6933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6934 soname_spec='${libname}${release}${shared_ext}$major'
6935 shlibpath_var=LD_LIBRARY_PATH
6936 shlibpath_overrides_runpath=yes
6937 hardcode_into_libs=yes
6938 # ldd complains unless libraries are executable
6939 postinstall_cmds='chmod +x $lib'
6940 ;;
6941
6942sunos4*)
6943 version_type=sunos
6944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6945 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6946 shlibpath_var=LD_LIBRARY_PATH
6947 shlibpath_overrides_runpath=yes
6948 if test "$with_gnu_ld" = yes; then
6949 need_lib_prefix=no
6950 fi
6951 need_version=yes
6952 ;;
6953
6954sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6955 version_type=linux
6956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6957 soname_spec='${libname}${release}${shared_ext}$major'
6958 shlibpath_var=LD_LIBRARY_PATH
6959 case $host_vendor in
6960 sni)
6961 shlibpath_overrides_runpath=no
6962 need_lib_prefix=no
6963 export_dynamic_flag_spec='${wl}-Blargedynsym'
6964 runpath_var=LD_RUN_PATH
6965 ;;
6966 siemens)
6967 need_lib_prefix=no
6968 ;;
6969 motorola)
6970 need_lib_prefix=no
6971 need_version=no
6972 shlibpath_overrides_runpath=no
6973 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6974 ;;
6975 esac
6976 ;;
6977
6978sysv4*MP*)
6979 if test -d /usr/nec ;then
6980 version_type=linux
6981 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6982 soname_spec='$libname${shared_ext}.$major'
6983 shlibpath_var=LD_LIBRARY_PATH
6984 fi
6985 ;;
6986
6987uts4*)
6988 version_type=linux
6989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6990 soname_spec='${libname}${release}${shared_ext}$major'
6991 shlibpath_var=LD_LIBRARY_PATH
6992 ;;
6993
6994*)
6995 dynamic_linker=no
6996 ;;
6997esac
6998echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6999echo "${ECHO_T}$dynamic_linker" >&6
7000test "$dynamic_linker" = no && can_build_shared=no
7001
7002
7003echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7004echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7005if test "${libltdl_cv_shlibext+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7007else
7008
7009module=yes
7010eval libltdl_cv_shlibext=$shrext_cmds
7011
7012fi
7013echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7014echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7015if test -n "$libltdl_cv_shlibext"; then
7016
7017cat >>confdefs.h <<_ACEOF
7018#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7019_ACEOF
7020
7021fi
7022
7023
7024echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7025echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7026if test "${libltdl_cv_shlibpath_var+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028else
7029 libltdl_cv_shlibpath_var="$shlibpath_var"
7030fi
7031echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7032echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7033if test -n "$libltdl_cv_shlibpath_var"; then
7034
7035cat >>confdefs.h <<_ACEOF
7036#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7037_ACEOF
7038
7039fi
7040
7041
7042echo "$as_me:$LINENO: checking for the default library search path" >&5
7043echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7044if test "${libltdl_cv_sys_search_path+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7046else
7047 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7048fi
7049echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7050echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7051if test -n "$libltdl_cv_sys_search_path"; then
7052 sys_search_path=
7053 for dir in $libltdl_cv_sys_search_path; do
7054 if test -z "$sys_search_path"; then
7055 sys_search_path="$dir"
7056 else
7057 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7058 fi
7059 done
7060
7061cat >>confdefs.h <<_ACEOF
7062#define LTDL_SYSSEARCHPATH "$sys_search_path"
7063_ACEOF
7064
7065fi
7066
7067echo "$as_me:$LINENO: checking for objdir" >&5
7068echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7069if test "${libltdl_cv_objdir+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071else
7072 libltdl_cv_objdir="$objdir"
7073 if test -n "$objdir"; then
7074 :
7075 else
7076 rm -f .libs 2>/dev/null
7077 mkdir .libs 2>/dev/null
7078 if test -d .libs; then
7079 libltdl_cv_objdir=.libs
7080 else
7081 # MS-DOS does not allow filenames that begin with a dot.
7082 libltdl_cv_objdir=_libs
7083 fi
7084 rmdir .libs 2>/dev/null
7085 fi
7086
7087fi
7088echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7089echo "${ECHO_T}$libltdl_cv_objdir" >&6
7090
7091cat >>confdefs.h <<_ACEOF
7092#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7093_ACEOF
7094
7095
7096echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7097echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7098if test "${lt_cv_path_NM+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7100else
7101 if test -n "$NM"; then
7102 # Let the user override the test.
7103 lt_cv_path_NM="$NM"
7104else
7105 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7106 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7107 IFS="$lt_save_ifs"
7108 test -z "$ac_dir" && ac_dir=.
7109 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7110 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7111 # Check to see if the nm accepts a BSD-compat flag.
7112 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7113 # nm: unknown option "B" ignored
7114 # Tru64's nm complains that /dev/null is an invalid object file
7115 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7116 */dev/null* | *'Invalid file or object type'*)
7117 lt_cv_path_NM="$tmp_nm -B"
7118 break
7119 ;;
7120 *)
7121 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7122 */dev/null*)
7123 lt_cv_path_NM="$tmp_nm -p"
7124 break
7125 ;;
7126 *)
7127 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7128 continue # so that we can try to find one that supports BSD flags
7129 ;;
7130 esac
7131 esac
7132 fi
7133 done
7134 IFS="$lt_save_ifs"
7135 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7136fi
7137fi
7138echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7139echo "${ECHO_T}$lt_cv_path_NM" >&6
7140NM="$lt_cv_path_NM"
7141
7142
7143
7144
7145
7146# Check for command to grab the raw symbol name followed by C symbol from nm.
7147echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7148echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7149if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7150 echo $ECHO_N "(cached) $ECHO_C" >&6
7151else
7152
7153# These are sane defaults that work on at least a few old systems.
7154# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7155
7156# Character class describing NM global symbol codes.
7157symcode='[BCDEGRST]'
7158
7159# Regexp to match symbols that can be accessed directly from C.
7160sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7161
7162# Transform the above into a raw symbol and a C symbol.
7163symxfrm='\1 \2\3 \3'
7164
7165# Transform an extracted symbol line into a proper C declaration
7166lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7167
7168# Transform an extracted symbol line into symbol name and symbol address
7169lt_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'"
7170
7171# Define system-specific variables.
7172case $host_os in
7173aix*)
7174 symcode='[BCDT]'
7175 ;;
7176cygwin* | mingw* | pw32*)
7177 symcode='[ABCDGISTW]'
7178 ;;
7179hpux*) # Its linker distinguishes data from code symbols
7180 if test "$host_cpu" = ia64; then
7181 symcode='[ABCDEGRST]'
7182 fi
7183 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7184 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'"
7185 ;;
7186linux*)
7187 if test "$host_cpu" = ia64; then
7188 symcode='[ABCDGIRSTW]'
7189 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7190 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'"
7191 fi
7192 ;;
7193irix* | nonstopux*)
7194 symcode='[BCDEGRST]'
7195 ;;
7196osf*)
7197 symcode='[BCDEGQRST]'
7198 ;;
7199solaris* | sysv5*)
7200 symcode='[BDRT]'
7201 ;;
7202sysv4)
7203 symcode='[DFNSTU]'
7204 ;;
7205esac
7206
7207# Handle CRLF in mingw tool chain
7208opt_cr=
7209case $build_os in
7210mingw*)
7211 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7212 ;;
7213esac
7214
7215# If we're using GNU nm, then use its standard symbol codes.
7216case `$NM -V 2>&1` in
7217*GNU* | *'with BFD'*)
7218 symcode='[ABCDGIRSTW]' ;;
7219esac
7220
7221# Try without a prefix undercore, then with it.
7222for ac_symprfx in "" "_"; do
7223
7224 # Write the raw and C identifiers.
7225 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7226
7227 # Check to see that the pipe works correctly.
7228 pipe_works=no
7229
7230 rm -f conftest*
7231 cat > conftest.$ac_ext <<EOF
7232#ifdef __cplusplus
7233extern "C" {
7234#endif
7235char nm_test_var;
7236void nm_test_func(){}
7237#ifdef __cplusplus
7238}
7239#endif
7240int main(){nm_test_var='a';nm_test_func();return(0);}
7241EOF
7242
7243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7244 (eval $ac_compile) 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); }; then
7248 # Now try to grab the symbols.
7249 nlist=conftest.nm
7250 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7251 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7252 ac_status=$?
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); } && test -s "$nlist"; then
7255 # Try sorting and uniquifying the output.
7256 if sort "$nlist" | uniq > "$nlist"T; then
7257 mv -f "$nlist"T "$nlist"
7258 else
7259 rm -f "$nlist"T
7260 fi
7261
7262 # Make sure that we snagged all the symbols we need.
7263 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7264 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7265 cat <<EOF > conftest.$ac_ext
7266#ifdef __cplusplus
7267extern "C" {
7268#endif
7269
7270EOF
7271 # Now generate the symbol file.
7272 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7273
7274 cat <<EOF >> conftest.$ac_ext
7275#if defined (__STDC__) && __STDC__
7276# define lt_ptr_t void *
7277#else
7278# define lt_ptr_t char *
7279# define const
7280#endif
7281
7282/* The mapping between symbol names and symbols. */
7283const struct {
7284 const char *name;
7285 lt_ptr_t address;
7286}
7287lt_preloaded_symbols[] =
7288{
7289EOF
7290 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7291 cat <<\EOF >> conftest.$ac_ext
7292 {0, (lt_ptr_t) 0}
7293};
7294
7295#ifdef __cplusplus
7296}
7297#endif
7298EOF
7299 # Now try linking the two files.
7300 mv conftest.$ac_objext conftstm.$ac_objext
7301 lt_save_LIBS="$LIBS"
7302 lt_save_CFLAGS="$CFLAGS"
7303 LIBS="conftstm.$ac_objext"
7304 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7306 (eval $ac_link) 2>&5
7307 ac_status=$?
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7310 pipe_works=yes
7311 fi
7312 LIBS="$lt_save_LIBS"
7313 CFLAGS="$lt_save_CFLAGS"
7314 else
7315 echo "cannot find nm_test_func in $nlist" >&5
7316 fi
7317 else
7318 echo "cannot find nm_test_var in $nlist" >&5
7319 fi
7320 else
7321 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7322 fi
7323 else
7324 echo "$progname: failed program was:" >&5
7325 cat conftest.$ac_ext >&5
7326 fi
7327 rm -f conftest* conftst*
7328
7329 # Do not use the global_symbol_pipe unless it works.
7330 if test "$pipe_works" = yes; then
7331 break
7332 else
7333 lt_cv_sys_global_symbol_pipe=
7334 fi
7335done
7336
7337fi
7338
7339if test -z "$lt_cv_sys_global_symbol_pipe"; then
7340 lt_cv_sys_global_symbol_to_cdecl=
7341fi
7342if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7343 echo "$as_me:$LINENO: result: failed" >&5
7344echo "${ECHO_T}failed" >&6
7345else
7346 echo "$as_me:$LINENO: result: ok" >&5
7347echo "${ECHO_T}ok" >&6
7348fi
7349
7350
7351echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7352echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7353if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7354 echo $ECHO_N "(cached) $ECHO_C" >&6
7355else
7356 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7357 libltdl_cv_preloaded_symbols=yes
7358 else
7359 libltdl_cv_preloaded_symbols=no
7360 fi
7361
7362fi
7363echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7364echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7365if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7366
7367cat >>confdefs.h <<\_ACEOF
7368#define HAVE_PRELOADED_SYMBOLS 1
7369_ACEOF
7370
7371fi
7372
7373LIBADD_DL=
7374
7375ac_ext=c
7376ac_cpp='$CPP $CPPFLAGS'
7377ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379ac_compiler_gnu=$ac_cv_c_compiler_gnu
7380
7381
7382echo "$as_me:$LINENO: checking for shl_load" >&5
7383echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7384if test "${ac_cv_func_shl_load+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386else
7387 cat >conftest.$ac_ext <<_ACEOF
7388/* confdefs.h. */
7389_ACEOF
7390cat confdefs.h >>conftest.$ac_ext
7391cat >>conftest.$ac_ext <<_ACEOF
7392/* end confdefs.h. */
7393/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7395#define shl_load innocuous_shl_load
7396
7397/* System header to define __stub macros and hopefully few prototypes,
7398 which can conflict with char shl_load (); below.
7399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7400 <limits.h> exists even on freestanding compilers. */
7401
7402#ifdef __STDC__
7403# include <limits.h>
7404#else
7405# include <assert.h>
7406#endif
7407
7408#undef shl_load
7409
7410/* Override any gcc2 internal prototype to avoid an error. */
7411#ifdef __cplusplus
7412extern "C"
7413{
7414#endif
7415/* We use char because int might match the return type of a gcc2
7416 builtin and then its argument prototype would still apply. */
7417char shl_load ();
7418/* The GNU C library defines this for functions which it implements
7419 to always fail with ENOSYS. Some functions are actually named
7420 something starting with __ and the normal name is an alias. */
7421#if defined (__stub_shl_load) || defined (__stub___shl_load)
7422choke me
7423#else
7424char (*f) () = shl_load;
7425#endif
7426#ifdef __cplusplus
7427}
7428#endif
7429
7430int
7431main ()
7432{
7433return f != shl_load;
7434 ;
7435 return 0;
7436}
7437_ACEOF
7438rm -f conftest.$ac_objext conftest$ac_exeext
7439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7440 (eval $ac_link) 2>conftest.er1
7441 ac_status=$?
7442 grep -v '^ *+' conftest.er1 >conftest.err
7443 rm -f conftest.er1
7444 cat conftest.err >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } &&
7447 { ac_try='test -z "$ac_c_werror_flag"
7448 || test ! -s conftest.err'
7449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7450 (eval $ac_try) 2>&5
7451 ac_status=$?
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); }; } &&
7454 { ac_try='test -s conftest$ac_exeext'
7455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7456 (eval $ac_try) 2>&5
7457 ac_status=$?
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); }; }; then
7460 ac_cv_func_shl_load=yes
7461else
7462 echo "$as_me: failed program was:" >&5
7463sed 's/^/| /' conftest.$ac_ext >&5
7464
7465ac_cv_func_shl_load=no
7466fi
7467rm -f conftest.err conftest.$ac_objext \
7468 conftest$ac_exeext conftest.$ac_ext
7469fi
7470echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7471echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7472if test $ac_cv_func_shl_load = yes; then
7473
7474cat >>confdefs.h <<\_ACEOF
7475#define HAVE_SHL_LOAD 1
7476_ACEOF
7477
7478else
7479 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7480echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7481if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483else
7484 ac_check_lib_save_LIBS=$LIBS
7485LIBS="-ldld $LIBS"
7486cat >conftest.$ac_ext <<_ACEOF
7487/* confdefs.h. */
7488_ACEOF
7489cat confdefs.h >>conftest.$ac_ext
7490cat >>conftest.$ac_ext <<_ACEOF
7491/* end confdefs.h. */
7492
7493/* Override any gcc2 internal prototype to avoid an error. */
7494#ifdef __cplusplus
7495extern "C"
7496#endif
7497/* We use char because int might match the return type of a gcc2
7498 builtin and then its argument prototype would still apply. */
7499char shl_load ();
7500int
7501main ()
7502{
7503shl_load ();
7504 ;
7505 return 0;
7506}
7507_ACEOF
7508rm -f conftest.$ac_objext conftest$ac_exeext
7509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7510 (eval $ac_link) 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -z "$ac_c_werror_flag"
7518 || test ! -s conftest.err'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 (eval $ac_try) 2>&5
7521 ac_status=$?
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; } &&
7524 { ac_try='test -s conftest$ac_exeext'
7525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7526 (eval $ac_try) 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_cv_lib_dld_shl_load=yes
7531else
7532 echo "$as_me: failed program was:" >&5
7533sed 's/^/| /' conftest.$ac_ext >&5
7534
7535ac_cv_lib_dld_shl_load=no
7536fi
7537rm -f conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
7539LIBS=$ac_check_lib_save_LIBS
7540fi
7541echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7542echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7543if test $ac_cv_lib_dld_shl_load = yes; then
7544
7545cat >>confdefs.h <<\_ACEOF
7546#define HAVE_SHL_LOAD 1
7547_ACEOF
7548
7549 LIBADD_DL="$LIBADD_DL -ldld"
7550else
7551 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7552echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7553if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555else
7556 ac_check_lib_save_LIBS=$LIBS
7557LIBS="-ldl $LIBS"
7558cat >conftest.$ac_ext <<_ACEOF
7559/* confdefs.h. */
7560_ACEOF
7561cat confdefs.h >>conftest.$ac_ext
7562cat >>conftest.$ac_ext <<_ACEOF
7563/* end confdefs.h. */
7564
7565/* Override any gcc2 internal prototype to avoid an error. */
7566#ifdef __cplusplus
7567extern "C"
7568#endif
7569/* We use char because int might match the return type of a gcc2
7570 builtin and then its argument prototype would still apply. */
7571char dlopen ();
7572int
7573main ()
7574{
7575dlopen ();
7576 ;
7577 return 0;
7578}
7579_ACEOF
7580rm -f conftest.$ac_objext conftest$ac_exeext
7581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7582 (eval $ac_link) 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try='test -z "$ac_c_werror_flag"
7590 || test ! -s conftest.err'
7591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7592 (eval $ac_try) 2>&5
7593 ac_status=$?
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); }; } &&
7596 { ac_try='test -s conftest$ac_exeext'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; }; then
7602 ac_cv_lib_dl_dlopen=yes
7603else
7604 echo "$as_me: failed program was:" >&5
7605sed 's/^/| /' conftest.$ac_ext >&5
7606
7607ac_cv_lib_dl_dlopen=no
7608fi
7609rm -f conftest.err conftest.$ac_objext \
7610 conftest$ac_exeext conftest.$ac_ext
7611LIBS=$ac_check_lib_save_LIBS
7612fi
7613echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7614echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7615if test $ac_cv_lib_dl_dlopen = yes; then
7616
7617cat >>confdefs.h <<\_ACEOF
7618#define HAVE_LIBDL 1
7619_ACEOF
7620
7621 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7622else
7623 cat >conftest.$ac_ext <<_ACEOF
7624/* confdefs.h. */
7625_ACEOF
7626cat confdefs.h >>conftest.$ac_ext
7627cat >>conftest.$ac_ext <<_ACEOF
7628/* end confdefs.h. */
7629#if HAVE_DLFCN_H
7630# include <dlfcn.h>
7631#endif
7632
7633int
7634main ()
7635{
7636dlopen(0, 0);
7637 ;
7638 return 0;
7639}
7640_ACEOF
7641rm -f conftest.$ac_objext conftest$ac_exeext
7642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7643 (eval $ac_link) 2>conftest.er1
7644 ac_status=$?
7645 grep -v '^ *+' conftest.er1 >conftest.err
7646 rm -f conftest.er1
7647 cat conftest.err >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } &&
7650 { ac_try='test -z "$ac_c_werror_flag"
7651 || test ! -s conftest.err'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7653 (eval $ac_try) 2>&5
7654 ac_status=$?
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; } &&
7657 { ac_try='test -s conftest$ac_exeext'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 (eval $ac_try) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7663
7664cat >>confdefs.h <<\_ACEOF
7665#define HAVE_LIBDL 1
7666_ACEOF
7667 libltdl_cv_func_dlopen="yes"
7668else
7669 echo "$as_me: failed program was:" >&5
7670sed 's/^/| /' conftest.$ac_ext >&5
7671
7672echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7673echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7674if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676else
7677 ac_check_lib_save_LIBS=$LIBS
7678LIBS="-lsvld $LIBS"
7679cat >conftest.$ac_ext <<_ACEOF
7680/* confdefs.h. */
7681_ACEOF
7682cat confdefs.h >>conftest.$ac_ext
7683cat >>conftest.$ac_ext <<_ACEOF
7684/* end confdefs.h. */
7685
7686/* Override any gcc2 internal prototype to avoid an error. */
7687#ifdef __cplusplus
7688extern "C"
7689#endif
7690/* We use char because int might match the return type of a gcc2
7691 builtin and then its argument prototype would still apply. */
7692char dlopen ();
7693int
7694main ()
7695{
7696dlopen ();
7697 ;
7698 return 0;
7699}
7700_ACEOF
7701rm -f conftest.$ac_objext conftest$ac_exeext
7702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7703 (eval $ac_link) 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } &&
7710 { ac_try='test -z "$ac_c_werror_flag"
7711 || test ! -s conftest.err'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; } &&
7717 { ac_try='test -s conftest$ac_exeext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 ac_cv_lib_svld_dlopen=yes
7724else
7725 echo "$as_me: failed program was:" >&5
7726sed 's/^/| /' conftest.$ac_ext >&5
7727
7728ac_cv_lib_svld_dlopen=no
7729fi
7730rm -f conftest.err conftest.$ac_objext \
7731 conftest$ac_exeext conftest.$ac_ext
7732LIBS=$ac_check_lib_save_LIBS
7733fi
7734echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7735echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7736if test $ac_cv_lib_svld_dlopen = yes; then
7737
7738cat >>confdefs.h <<\_ACEOF
7739#define HAVE_LIBDL 1
7740_ACEOF
7741
7742 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7743else
7744 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7745echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7746if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748else
7749 ac_check_lib_save_LIBS=$LIBS
7750LIBS="-ldld $LIBS"
7751cat >conftest.$ac_ext <<_ACEOF
7752/* confdefs.h. */
7753_ACEOF
7754cat confdefs.h >>conftest.$ac_ext
7755cat >>conftest.$ac_ext <<_ACEOF
7756/* end confdefs.h. */
7757
7758/* Override any gcc2 internal prototype to avoid an error. */
7759#ifdef __cplusplus
7760extern "C"
7761#endif
7762/* We use char because int might match the return type of a gcc2
7763 builtin and then its argument prototype would still apply. */
7764char dld_link ();
7765int
7766main ()
7767{
7768dld_link ();
7769 ;
7770 return 0;
7771}
7772_ACEOF
7773rm -f conftest.$ac_objext conftest$ac_exeext
7774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7775 (eval $ac_link) 2>conftest.er1
7776 ac_status=$?
7777 grep -v '^ *+' conftest.er1 >conftest.err
7778 rm -f conftest.er1
7779 cat conftest.err >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } &&
7782 { ac_try='test -z "$ac_c_werror_flag"
7783 || test ! -s conftest.err'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7785 (eval $ac_try) 2>&5
7786 ac_status=$?
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; } &&
7789 { ac_try='test -s conftest$ac_exeext'
7790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 (eval $ac_try) 2>&5
7792 ac_status=$?
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); }; }; then
7795 ac_cv_lib_dld_dld_link=yes
7796else
7797 echo "$as_me: failed program was:" >&5
7798sed 's/^/| /' conftest.$ac_ext >&5
7799
7800ac_cv_lib_dld_dld_link=no
7801fi
7802rm -f conftest.err conftest.$ac_objext \
7803 conftest$ac_exeext conftest.$ac_ext
7804LIBS=$ac_check_lib_save_LIBS
7805fi
7806echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7807echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7808if test $ac_cv_lib_dld_dld_link = yes; then
7809
7810cat >>confdefs.h <<\_ACEOF
7811#define HAVE_DLD 1
7812_ACEOF
7813
7814 LIBADD_DL="$LIBADD_DL -ldld"
7815else
7816 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7817echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7818if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7820else
7821 cat >conftest.$ac_ext <<_ACEOF
7822/* confdefs.h. */
7823_ACEOF
7824cat confdefs.h >>conftest.$ac_ext
7825cat >>conftest.$ac_ext <<_ACEOF
7826/* end confdefs.h. */
7827/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7829#define _dyld_func_lookup innocuous__dyld_func_lookup
7830
7831/* System header to define __stub macros and hopefully few prototypes,
7832 which can conflict with char _dyld_func_lookup (); below.
7833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7834 <limits.h> exists even on freestanding compilers. */
7835
7836#ifdef __STDC__
7837# include <limits.h>
7838#else
7839# include <assert.h>
7840#endif
7841
7842#undef _dyld_func_lookup
7843
7844/* Override any gcc2 internal prototype to avoid an error. */
7845#ifdef __cplusplus
7846extern "C"
7847{
7848#endif
7849/* We use char because int might match the return type of a gcc2
7850 builtin and then its argument prototype would still apply. */
7851char _dyld_func_lookup ();
7852/* The GNU C library defines this for functions which it implements
7853 to always fail with ENOSYS. Some functions are actually named
7854 something starting with __ and the normal name is an alias. */
7855#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7856choke me
7857#else
7858char (*f) () = _dyld_func_lookup;
7859#endif
7860#ifdef __cplusplus
7861}
7862#endif
7863
7864int
7865main ()
7866{
7867return f != _dyld_func_lookup;
7868 ;
7869 return 0;
7870}
7871_ACEOF
7872rm -f conftest.$ac_objext conftest$ac_exeext
7873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874 (eval $ac_link) 2>conftest.er1
7875 ac_status=$?
7876 grep -v '^ *+' conftest.er1 >conftest.err
7877 rm -f conftest.er1
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -z "$ac_c_werror_flag"
7882 || test ! -s conftest.err'
7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 (eval $ac_try) 2>&5
7885 ac_status=$?
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; } &&
7888 { ac_try='test -s conftest$ac_exeext'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 (eval $ac_try) 2>&5
7891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7894 ac_cv_func__dyld_func_lookup=yes
7895else
7896 echo "$as_me: failed program was:" >&5
7897sed 's/^/| /' conftest.$ac_ext >&5
7898
7899ac_cv_func__dyld_func_lookup=no
7900fi
7901rm -f conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7903fi
7904echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7905echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7906if test $ac_cv_func__dyld_func_lookup = yes; then
7907
7908cat >>confdefs.h <<\_ACEOF
7909#define HAVE_DYLD 1
7910_ACEOF
7911
7912fi
7913
7914
7915fi
7916
7917
7918fi
7919
7920
7921fi
7922rm -f conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7924
7925fi
7926
7927
7928fi
7929
7930
7931fi
7932
7933
7934if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
7935then
7936 lt_save_LIBS="$LIBS"
7937 LIBS="$LIBS $LIBADD_DL"
7938
7939for ac_func in dlerror
7940do
7941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7942echo "$as_me:$LINENO: checking for $ac_func" >&5
7943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7944if eval "test \"\${$as_ac_var+set}\" = set"; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7946else
7947 cat >conftest.$ac_ext <<_ACEOF
7948/* confdefs.h. */
7949_ACEOF
7950cat confdefs.h >>conftest.$ac_ext
7951cat >>conftest.$ac_ext <<_ACEOF
7952/* end confdefs.h. */
7953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7955#define $ac_func innocuous_$ac_func
7956
7957/* System header to define __stub macros and hopefully few prototypes,
7958 which can conflict with char $ac_func (); below.
7959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7960 <limits.h> exists even on freestanding compilers. */
7961
7962#ifdef __STDC__
7963# include <limits.h>
7964#else
7965# include <assert.h>
7966#endif
7967
7968#undef $ac_func
7969
7970/* Override any gcc2 internal prototype to avoid an error. */
7971#ifdef __cplusplus
7972extern "C"
7973{
7974#endif
7975/* We use char because int might match the return type of a gcc2
7976 builtin and then its argument prototype would still apply. */
7977char $ac_func ();
7978/* The GNU C library defines this for functions which it implements
7979 to always fail with ENOSYS. Some functions are actually named
7980 something starting with __ and the normal name is an alias. */
7981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7982choke me
7983#else
7984char (*f) () = $ac_func;
7985#endif
7986#ifdef __cplusplus
7987}
7988#endif
7989
7990int
7991main ()
7992{
7993return f != $ac_func;
7994 ;
7995 return 0;
7996}
7997_ACEOF
7998rm -f conftest.$ac_objext conftest$ac_exeext
7999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8000 (eval $ac_link) 2>conftest.er1
8001 ac_status=$?
8002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
8007 { ac_try='test -z "$ac_c_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest$ac_exeext'
8015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 eval "$as_ac_var=yes"
8021else
8022 echo "$as_me: failed program was:" >&5
8023sed 's/^/| /' conftest.$ac_ext >&5
8024
8025eval "$as_ac_var=no"
8026fi
8027rm -f conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
8029fi
8030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8031echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8032if test `eval echo '${'$as_ac_var'}'` = yes; then
8033 cat >>confdefs.h <<_ACEOF
8034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8035_ACEOF
8036
8037fi
8038done
8039
8040 LIBS="$lt_save_LIBS"
8041fi
8042ac_ext=c
8043ac_cpp='$CPP $CPPFLAGS'
8044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8046ac_compiler_gnu=$ac_cv_c_compiler_gnu
8047
8048
8049
8050echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8051echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8052if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8053 echo $ECHO_N "(cached) $ECHO_C" >&6
8054else
8055 ac_cv_sys_symbol_underscore=no
8056 cat > conftest.$ac_ext <<EOF
8057void nm_test_func(){}
8058int main(){nm_test_func;return 0;}
8059EOF
8060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8061 (eval $ac_compile) 2>&5
8062 ac_status=$?
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); }; then
8065 # Now try to grab the symbols.
8066 ac_nlist=conftest.nm
8067 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8068 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } && test -s "$ac_nlist"; then
8072 # See whether the symbols have a leading underscore.
8073 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8074 ac_cv_sys_symbol_underscore=yes
8075 else
8076 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8077 :
8078 else
8079 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8080 fi
8081 fi
8082 else
8083 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8084 fi
8085 else
8086 echo "configure: failed program was:" >&5
8087 cat conftest.c >&5
8088 fi
8089 rm -rf conftest*
8090
8091fi
8092echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8093echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8094
8095
8096if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8097 if test x"$libltdl_cv_func_dlopen" = xyes ||
8098 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8099 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8100echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8101if test "${libltdl_cv_need_uscore+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8103else
8104 libltdl_cv_need_uscore=unknown
8105 save_LIBS="$LIBS"
8106 LIBS="$LIBS $LIBADD_DL"
8107 if test "$cross_compiling" = yes; then :
8108 libltdl_cv_need_uscore=cross
8109else
8110 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8111 lt_status=$lt_dlunknown
8112 cat > conftest.$ac_ext <<EOF
Reid Spencer86901802004-12-08 23:07:27 +00008113#line 8113 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008114#include "confdefs.h"
8115
8116#if HAVE_DLFCN_H
8117#include <dlfcn.h>
8118#endif
8119
8120#include <stdio.h>
8121
8122#ifdef RTLD_GLOBAL
8123# define LT_DLGLOBAL RTLD_GLOBAL
8124#else
8125# ifdef DL_GLOBAL
8126# define LT_DLGLOBAL DL_GLOBAL
8127# else
8128# define LT_DLGLOBAL 0
8129# endif
8130#endif
8131
8132/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8133 find out it does not work in some platform. */
8134#ifndef LT_DLLAZY_OR_NOW
8135# ifdef RTLD_LAZY
8136# define LT_DLLAZY_OR_NOW RTLD_LAZY
8137# else
8138# ifdef DL_LAZY
8139# define LT_DLLAZY_OR_NOW DL_LAZY
8140# else
8141# ifdef RTLD_NOW
8142# define LT_DLLAZY_OR_NOW RTLD_NOW
8143# else
8144# ifdef DL_NOW
8145# define LT_DLLAZY_OR_NOW DL_NOW
8146# else
8147# define LT_DLLAZY_OR_NOW 0
8148# endif
8149# endif
8150# endif
8151# endif
8152#endif
8153
8154#ifdef __cplusplus
8155extern "C" void exit (int);
8156#endif
8157
8158void fnord() { int i=42;}
8159int main ()
8160{
8161 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8162 int status = $lt_dlunknown;
8163
8164 if (self)
8165 {
8166 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8167 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8168 /* dlclose (self); */
8169 }
8170
8171 exit (status);
8172}
8173EOF
8174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8175 (eval $ac_link) 2>&5
8176 ac_status=$?
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8179 (./conftest; exit; ) 2>/dev/null
8180 lt_status=$?
8181 case x$lt_status in
8182 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8183 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8184 x$lt_unknown|x*) ;;
8185 esac
8186 else :
8187 # compilation failed
8188
8189 fi
8190fi
8191rm -fr conftest*
8192
8193 LIBS="$save_LIBS"
8194
8195fi
8196echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8197echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8198 fi
8199fi
8200
8201if test x"$libltdl_cv_need_uscore" = xyes; then
8202
8203cat >>confdefs.h <<\_ACEOF
8204#define NEED_USCORE 1
8205_ACEOF
8206
8207fi
8208
8209
8210echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8211echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8212if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8214else
8215 # PORTME does your system automatically load deplibs for dlopen?
8216 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8217 # For now, we just catch OSes we know something about -- in the
8218 # future, we'll try test this programmatically.
8219 libltdl_cv_sys_dlopen_deplibs=unknown
8220 case "$host_os" in
8221 aix3*|aix4.1.*|aix4.2.*)
8222 # Unknown whether this is true for these versions of AIX, but
8223 # we want this `case' here to explicitly catch those versions.
8224 libltdl_cv_sys_dlopen_deplibs=unknown
8225 ;;
8226 aix[45]*)
8227 libltdl_cv_sys_dlopen_deplibs=yes
8228 ;;
8229 darwin*)
8230 # Assuming the user has installed a libdl from somewhere, this is true
8231 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8232 libltdl_cv_sys_dlopen_deplibs=yes
8233 ;;
8234 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8235 # GNU and its variants, using gnu ld.so (Glibc)
8236 libltdl_cv_sys_dlopen_deplibs=yes
8237 ;;
8238 hpux10*|hpux11*)
8239 libltdl_cv_sys_dlopen_deplibs=yes
8240 ;;
8241 irix[12345]*|irix6.[01]*)
8242 # Catch all versions of IRIX before 6.2, and indicate that we don't
8243 # know how it worked for any of those versions.
8244 libltdl_cv_sys_dlopen_deplibs=unknown
8245 ;;
8246 irix*)
8247 # The case above catches anything before 6.2, and it's known that
8248 # at 6.2 and later dlopen does load deplibs.
8249 libltdl_cv_sys_dlopen_deplibs=yes
8250 ;;
8251 netbsd*)
8252 libltdl_cv_sys_dlopen_deplibs=yes
8253 ;;
8254 openbsd*)
8255 libltdl_cv_sys_dlopen_deplibs=yes
8256 ;;
8257 osf[1234]*)
8258 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8259 # it did *not* use an RPATH in a shared library to find objects the
8260 # library depends on, so we explictly say `no'.
8261 libltdl_cv_sys_dlopen_deplibs=no
8262 ;;
8263 osf5.0|osf5.0a|osf5.1)
8264 # dlopen *does* load deplibs and with the right loader patch applied
8265 # it even uses RPATH in a shared library to search for shared objects
8266 # that the library depends on, but there's no easy way to know if that
8267 # patch is installed. Since this is the case, all we can really
8268 # say is unknown -- it depends on the patch being installed. If
8269 # it is, this changes to `yes'. Without it, it would be `no'.
8270 libltdl_cv_sys_dlopen_deplibs=unknown
8271 ;;
8272 osf*)
8273 # the two cases above should catch all versions of osf <= 5.1. Read
8274 # the comments above for what we know about them.
8275 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8276 # is used to find them so we can finally say `yes'.
8277 libltdl_cv_sys_dlopen_deplibs=yes
8278 ;;
8279 solaris*)
8280 libltdl_cv_sys_dlopen_deplibs=yes
8281 ;;
8282 esac
8283
8284fi
8285echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8286echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8287if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8288
8289cat >>confdefs.h <<\_ACEOF
8290#define LTDL_DLOPEN_DEPLIBS 1
8291_ACEOF
8292
8293fi
8294
8295
8296for ac_header in argz.h
8297do
8298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8299if eval "test \"\${$as_ac_Header+set}\" = set"; then
8300 echo "$as_me:$LINENO: checking for $ac_header" >&5
8301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8302if eval "test \"\${$as_ac_Header+set}\" = set"; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304fi
8305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8307else
8308 # Is the header compilable?
8309echo "$as_me:$LINENO: checking $ac_header usability" >&5
8310echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8311cat >conftest.$ac_ext <<_ACEOF
8312/* confdefs.h. */
8313_ACEOF
8314cat confdefs.h >>conftest.$ac_ext
8315cat >>conftest.$ac_ext <<_ACEOF
8316/* end confdefs.h. */
8317$ac_includes_default
8318#include <$ac_header>
8319_ACEOF
8320rm -f conftest.$ac_objext
8321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8322 (eval $ac_compile) 2>conftest.er1
8323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } &&
8329 { ac_try='test -z "$ac_c_werror_flag"
8330 || test ! -s conftest.err'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 (eval $ac_try) 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; } &&
8336 { ac_try='test -s conftest.$ac_objext'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_header_compiler=yes
8343else
8344 echo "$as_me: failed program was:" >&5
8345sed 's/^/| /' conftest.$ac_ext >&5
8346
8347ac_header_compiler=no
8348fi
8349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8350echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8351echo "${ECHO_T}$ac_header_compiler" >&6
8352
8353# Is the header present?
8354echo "$as_me:$LINENO: checking $ac_header presence" >&5
8355echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8356cat >conftest.$ac_ext <<_ACEOF
8357/* confdefs.h. */
8358_ACEOF
8359cat confdefs.h >>conftest.$ac_ext
8360cat >>conftest.$ac_ext <<_ACEOF
8361/* end confdefs.h. */
8362#include <$ac_header>
8363_ACEOF
8364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8366 ac_status=$?
8367 grep -v '^ *+' conftest.er1 >conftest.err
8368 rm -f conftest.er1
8369 cat conftest.err >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } >/dev/null; then
8372 if test -s conftest.err; then
8373 ac_cpp_err=$ac_c_preproc_warn_flag
8374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8375 else
8376 ac_cpp_err=
8377 fi
8378else
8379 ac_cpp_err=yes
8380fi
8381if test -z "$ac_cpp_err"; then
8382 ac_header_preproc=yes
8383else
8384 echo "$as_me: failed program was:" >&5
8385sed 's/^/| /' conftest.$ac_ext >&5
8386
8387 ac_header_preproc=no
8388fi
8389rm -f conftest.err conftest.$ac_ext
8390echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8391echo "${ECHO_T}$ac_header_preproc" >&6
8392
8393# So? What about this header?
8394case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8395 yes:no: )
8396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8397echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8399echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8400 ac_header_preproc=yes
8401 ;;
8402 no:yes:* )
8403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8404echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8406echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8408echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8410echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8412echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8414echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8415 (
8416 cat <<\_ASBOX
8417## ----------------------------------- ##
8418## Report this to llvmbugs@cs.uiuc.edu ##
8419## ----------------------------------- ##
8420_ASBOX
8421 ) |
8422 sed "s/^/$as_me: WARNING: /" >&2
8423 ;;
8424esac
8425echo "$as_me:$LINENO: checking for $ac_header" >&5
8426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8427if eval "test \"\${$as_ac_Header+set}\" = set"; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429else
8430 eval "$as_ac_Header=\$ac_header_preproc"
8431fi
8432echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8433echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8434
8435fi
8436if test `eval echo '${'$as_ac_Header'}'` = yes; then
8437 cat >>confdefs.h <<_ACEOF
8438#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8439_ACEOF
8440
8441fi
8442
8443done
8444
8445
8446echo "$as_me:$LINENO: checking for error_t" >&5
8447echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8448if test "${ac_cv_type_error_t+set}" = set; then
8449 echo $ECHO_N "(cached) $ECHO_C" >&6
8450else
8451 cat >conftest.$ac_ext <<_ACEOF
8452/* confdefs.h. */
8453_ACEOF
8454cat confdefs.h >>conftest.$ac_ext
8455cat >>conftest.$ac_ext <<_ACEOF
8456/* end confdefs.h. */
8457#if HAVE_ARGZ_H
8458# include <argz.h>
8459#endif
8460
8461int
8462main ()
8463{
8464if ((error_t *) 0)
8465 return 0;
8466if (sizeof (error_t))
8467 return 0;
8468 ;
8469 return 0;
8470}
8471_ACEOF
8472rm -f conftest.$ac_objext
8473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8474 (eval $ac_compile) 2>conftest.er1
8475 ac_status=$?
8476 grep -v '^ *+' conftest.er1 >conftest.err
8477 rm -f conftest.er1
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); } &&
8481 { ac_try='test -z "$ac_c_werror_flag"
8482 || test ! -s conftest.err'
8483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 (eval $ac_try) 2>&5
8485 ac_status=$?
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); }; } &&
8488 { ac_try='test -s conftest.$ac_objext'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8490 (eval $ac_try) 2>&5
8491 ac_status=$?
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 ac_cv_type_error_t=yes
8495else
8496 echo "$as_me: failed program was:" >&5
8497sed 's/^/| /' conftest.$ac_ext >&5
8498
8499ac_cv_type_error_t=no
8500fi
8501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8502fi
8503echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8504echo "${ECHO_T}$ac_cv_type_error_t" >&6
8505if test $ac_cv_type_error_t = yes; then
8506
8507cat >>confdefs.h <<_ACEOF
8508#define HAVE_ERROR_T 1
8509_ACEOF
8510
8511
8512else
8513
8514cat >>confdefs.h <<\_ACEOF
8515#define error_t int
8516_ACEOF
8517
8518fi
8519
8520
8521
8522
8523
8524
8525
8526for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8527do
8528as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8529echo "$as_me:$LINENO: checking for $ac_func" >&5
8530echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8531if eval "test \"\${$as_ac_var+set}\" = set"; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533else
8534 cat >conftest.$ac_ext <<_ACEOF
8535/* confdefs.h. */
8536_ACEOF
8537cat confdefs.h >>conftest.$ac_ext
8538cat >>conftest.$ac_ext <<_ACEOF
8539/* end confdefs.h. */
8540/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8542#define $ac_func innocuous_$ac_func
8543
8544/* System header to define __stub macros and hopefully few prototypes,
8545 which can conflict with char $ac_func (); below.
8546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8547 <limits.h> exists even on freestanding compilers. */
8548
8549#ifdef __STDC__
8550# include <limits.h>
8551#else
8552# include <assert.h>
8553#endif
8554
8555#undef $ac_func
8556
8557/* Override any gcc2 internal prototype to avoid an error. */
8558#ifdef __cplusplus
8559extern "C"
8560{
8561#endif
8562/* We use char because int might match the return type of a gcc2
8563 builtin and then its argument prototype would still apply. */
8564char $ac_func ();
8565/* The GNU C library defines this for functions which it implements
8566 to always fail with ENOSYS. Some functions are actually named
8567 something starting with __ and the normal name is an alias. */
8568#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8569choke me
8570#else
8571char (*f) () = $ac_func;
8572#endif
8573#ifdef __cplusplus
8574}
8575#endif
8576
8577int
8578main ()
8579{
8580return f != $ac_func;
8581 ;
8582 return 0;
8583}
8584_ACEOF
8585rm -f conftest.$ac_objext conftest$ac_exeext
8586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8587 (eval $ac_link) 2>conftest.er1
8588 ac_status=$?
8589 grep -v '^ *+' conftest.er1 >conftest.err
8590 rm -f conftest.er1
8591 cat conftest.err >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); } &&
8594 { ac_try='test -z "$ac_c_werror_flag"
8595 || test ! -s conftest.err'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; } &&
8601 { ac_try='test -s conftest$ac_exeext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603 (eval $ac_try) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 eval "$as_ac_var=yes"
8608else
8609 echo "$as_me: failed program was:" >&5
8610sed 's/^/| /' conftest.$ac_ext >&5
8611
8612eval "$as_ac_var=no"
8613fi
8614rm -f conftest.err conftest.$ac_objext \
8615 conftest$ac_exeext conftest.$ac_ext
8616fi
8617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8618echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8619if test `eval echo '${'$as_ac_var'}'` = yes; then
8620 cat >>confdefs.h <<_ACEOF
8621#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8622_ACEOF
8623
8624fi
8625done
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8655 stdio.h unistd.h
8656do
8657as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8658if eval "test \"\${$as_ac_Header+set}\" = set"; then
8659 echo "$as_me:$LINENO: checking for $ac_header" >&5
8660echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8661if eval "test \"\${$as_ac_Header+set}\" = set"; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663fi
8664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8666else
8667 # Is the header compilable?
8668echo "$as_me:$LINENO: checking $ac_header usability" >&5
8669echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8670cat >conftest.$ac_ext <<_ACEOF
8671/* confdefs.h. */
8672_ACEOF
8673cat confdefs.h >>conftest.$ac_ext
8674cat >>conftest.$ac_ext <<_ACEOF
8675/* end confdefs.h. */
8676$ac_includes_default
8677#include <$ac_header>
8678_ACEOF
8679rm -f conftest.$ac_objext
8680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8681 (eval $ac_compile) 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_c_werror_flag"
8689 || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest.$ac_objext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 ac_header_compiler=yes
8702else
8703 echo "$as_me: failed program was:" >&5
8704sed 's/^/| /' conftest.$ac_ext >&5
8705
8706ac_header_compiler=no
8707fi
8708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8709echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8710echo "${ECHO_T}$ac_header_compiler" >&6
8711
8712# Is the header present?
8713echo "$as_me:$LINENO: checking $ac_header presence" >&5
8714echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8715cat >conftest.$ac_ext <<_ACEOF
8716/* confdefs.h. */
8717_ACEOF
8718cat confdefs.h >>conftest.$ac_ext
8719cat >>conftest.$ac_ext <<_ACEOF
8720/* end confdefs.h. */
8721#include <$ac_header>
8722_ACEOF
8723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8725 ac_status=$?
8726 grep -v '^ *+' conftest.er1 >conftest.err
8727 rm -f conftest.er1
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } >/dev/null; then
8731 if test -s conftest.err; then
8732 ac_cpp_err=$ac_c_preproc_warn_flag
8733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8734 else
8735 ac_cpp_err=
8736 fi
8737else
8738 ac_cpp_err=yes
8739fi
8740if test -z "$ac_cpp_err"; then
8741 ac_header_preproc=yes
8742else
8743 echo "$as_me: failed program was:" >&5
8744sed 's/^/| /' conftest.$ac_ext >&5
8745
8746 ac_header_preproc=no
8747fi
8748rm -f conftest.err conftest.$ac_ext
8749echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8750echo "${ECHO_T}$ac_header_preproc" >&6
8751
8752# So? What about this header?
8753case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8754 yes:no: )
8755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8756echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8758echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8759 ac_header_preproc=yes
8760 ;;
8761 no:yes:* )
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8763echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8765echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8767echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8769echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8771echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8773echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8774 (
8775 cat <<\_ASBOX
8776## ----------------------------------- ##
8777## Report this to llvmbugs@cs.uiuc.edu ##
8778## ----------------------------------- ##
8779_ASBOX
8780 ) |
8781 sed "s/^/$as_me: WARNING: /" >&2
8782 ;;
8783esac
8784echo "$as_me:$LINENO: checking for $ac_header" >&5
8785echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8786if eval "test \"\${$as_ac_Header+set}\" = set"; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8788else
8789 eval "$as_ac_Header=\$ac_header_preproc"
8790fi
8791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8793
8794fi
8795if test `eval echo '${'$as_ac_Header'}'` = yes; then
8796 cat >>confdefs.h <<_ACEOF
8797#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8798_ACEOF
8799
8800fi
8801
8802done
8803
8804
8805
8806
8807
8808for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8809do
8810as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8811if eval "test \"\${$as_ac_Header+set}\" = set"; then
8812 echo "$as_me:$LINENO: checking for $ac_header" >&5
8813echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8814if eval "test \"\${$as_ac_Header+set}\" = set"; then
8815 echo $ECHO_N "(cached) $ECHO_C" >&6
8816fi
8817echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8818echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8819else
8820 # Is the header compilable?
8821echo "$as_me:$LINENO: checking $ac_header usability" >&5
8822echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8823cat >conftest.$ac_ext <<_ACEOF
8824/* confdefs.h. */
8825_ACEOF
8826cat confdefs.h >>conftest.$ac_ext
8827cat >>conftest.$ac_ext <<_ACEOF
8828/* end confdefs.h. */
8829$ac_includes_default
8830#include <$ac_header>
8831_ACEOF
8832rm -f conftest.$ac_objext
8833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8834 (eval $ac_compile) 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); } &&
8841 { ac_try='test -z "$ac_c_werror_flag"
8842 || test ! -s conftest.err'
8843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8844 (eval $ac_try) 2>&5
8845 ac_status=$?
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; } &&
8848 { ac_try='test -s conftest.$ac_objext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850 (eval $ac_try) 2>&5
8851 ac_status=$?
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_header_compiler=yes
8855else
8856 echo "$as_me: failed program was:" >&5
8857sed 's/^/| /' conftest.$ac_ext >&5
8858
8859ac_header_compiler=no
8860fi
8861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8862echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8863echo "${ECHO_T}$ac_header_compiler" >&6
8864
8865# Is the header present?
8866echo "$as_me:$LINENO: checking $ac_header presence" >&5
8867echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8868cat >conftest.$ac_ext <<_ACEOF
8869/* confdefs.h. */
8870_ACEOF
8871cat confdefs.h >>conftest.$ac_ext
8872cat >>conftest.$ac_ext <<_ACEOF
8873/* end confdefs.h. */
8874#include <$ac_header>
8875_ACEOF
8876if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8878 ac_status=$?
8879 grep -v '^ *+' conftest.er1 >conftest.err
8880 rm -f conftest.er1
8881 cat conftest.err >&5
8882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } >/dev/null; then
8884 if test -s conftest.err; then
8885 ac_cpp_err=$ac_c_preproc_warn_flag
8886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8887 else
8888 ac_cpp_err=
8889 fi
8890else
8891 ac_cpp_err=yes
8892fi
8893if test -z "$ac_cpp_err"; then
8894 ac_header_preproc=yes
8895else
8896 echo "$as_me: failed program was:" >&5
8897sed 's/^/| /' conftest.$ac_ext >&5
8898
8899 ac_header_preproc=no
8900fi
8901rm -f conftest.err conftest.$ac_ext
8902echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8903echo "${ECHO_T}$ac_header_preproc" >&6
8904
8905# So? What about this header?
8906case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8907 yes:no: )
8908 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8909echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8911echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8912 ac_header_preproc=yes
8913 ;;
8914 no:yes:* )
8915 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8916echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8917 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8918echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8919 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8920echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8921 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8922echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8924echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8925 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8926echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8927 (
8928 cat <<\_ASBOX
8929## ----------------------------------- ##
8930## Report this to llvmbugs@cs.uiuc.edu ##
8931## ----------------------------------- ##
8932_ASBOX
8933 ) |
8934 sed "s/^/$as_me: WARNING: /" >&2
8935 ;;
8936esac
8937echo "$as_me:$LINENO: checking for $ac_header" >&5
8938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8939if eval "test \"\${$as_ac_Header+set}\" = set"; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8941else
8942 eval "$as_ac_Header=\$ac_header_preproc"
8943fi
8944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8945echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8946
8947fi
8948if test `eval echo '${'$as_ac_Header'}'` = yes; then
8949 cat >>confdefs.h <<_ACEOF
8950#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8951_ACEOF
8952
8953fi
8954
8955done
8956
8957
8958
8959for ac_header in string.h strings.h
8960do
8961as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8962if eval "test \"\${$as_ac_Header+set}\" = set"; then
8963 echo "$as_me:$LINENO: checking for $ac_header" >&5
8964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8965if eval "test \"\${$as_ac_Header+set}\" = set"; then
8966 echo $ECHO_N "(cached) $ECHO_C" >&6
8967fi
8968echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8969echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8970else
8971 # Is the header compilable?
8972echo "$as_me:$LINENO: checking $ac_header usability" >&5
8973echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8974cat >conftest.$ac_ext <<_ACEOF
8975/* confdefs.h. */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h. */
8980$ac_includes_default
8981#include <$ac_header>
8982_ACEOF
8983rm -f conftest.$ac_objext
8984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8985 (eval $ac_compile) 2>conftest.er1
8986 ac_status=$?
8987 grep -v '^ *+' conftest.er1 >conftest.err
8988 rm -f conftest.er1
8989 cat conftest.err >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } &&
8992 { ac_try='test -z "$ac_c_werror_flag"
8993 || test ! -s conftest.err'
8994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995 (eval $ac_try) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); }; } &&
8999 { ac_try='test -s conftest.$ac_objext'
9000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 (eval $ac_try) 2>&5
9002 ac_status=$?
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); }; }; then
9005 ac_header_compiler=yes
9006else
9007 echo "$as_me: failed program was:" >&5
9008sed 's/^/| /' conftest.$ac_ext >&5
9009
9010ac_header_compiler=no
9011fi
9012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9013echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9014echo "${ECHO_T}$ac_header_compiler" >&6
9015
9016# Is the header present?
9017echo "$as_me:$LINENO: checking $ac_header presence" >&5
9018echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9019cat >conftest.$ac_ext <<_ACEOF
9020/* confdefs.h. */
9021_ACEOF
9022cat confdefs.h >>conftest.$ac_ext
9023cat >>conftest.$ac_ext <<_ACEOF
9024/* end confdefs.h. */
9025#include <$ac_header>
9026_ACEOF
9027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9029 ac_status=$?
9030 grep -v '^ *+' conftest.er1 >conftest.err
9031 rm -f conftest.er1
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } >/dev/null; then
9035 if test -s conftest.err; then
9036 ac_cpp_err=$ac_c_preproc_warn_flag
9037 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9038 else
9039 ac_cpp_err=
9040 fi
9041else
9042 ac_cpp_err=yes
9043fi
9044if test -z "$ac_cpp_err"; then
9045 ac_header_preproc=yes
9046else
9047 echo "$as_me: failed program was:" >&5
9048sed 's/^/| /' conftest.$ac_ext >&5
9049
9050 ac_header_preproc=no
9051fi
9052rm -f conftest.err conftest.$ac_ext
9053echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9054echo "${ECHO_T}$ac_header_preproc" >&6
9055
9056# So? What about this header?
9057case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9058 yes:no: )
9059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9060echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9062echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9063 ac_header_preproc=yes
9064 ;;
9065 no:yes:* )
9066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9067echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9069echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9071echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9073echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9077echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9078 (
9079 cat <<\_ASBOX
9080## ----------------------------------- ##
9081## Report this to llvmbugs@cs.uiuc.edu ##
9082## ----------------------------------- ##
9083_ASBOX
9084 ) |
9085 sed "s/^/$as_me: WARNING: /" >&2
9086 ;;
9087esac
9088echo "$as_me:$LINENO: checking for $ac_header" >&5
9089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9090if eval "test \"\${$as_ac_Header+set}\" = set"; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092else
9093 eval "$as_ac_Header=\$ac_header_preproc"
9094fi
9095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9097
9098fi
9099if test `eval echo '${'$as_ac_Header'}'` = yes; then
9100 cat >>confdefs.h <<_ACEOF
9101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9102_ACEOF
9103 break
9104fi
9105
9106done
9107
9108
9109
9110
9111for ac_func in strchr index
9112do
9113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9114echo "$as_me:$LINENO: checking for $ac_func" >&5
9115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9116if eval "test \"\${$as_ac_var+set}\" = set"; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118else
9119 cat >conftest.$ac_ext <<_ACEOF
9120/* confdefs.h. */
9121_ACEOF
9122cat confdefs.h >>conftest.$ac_ext
9123cat >>conftest.$ac_ext <<_ACEOF
9124/* end confdefs.h. */
9125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9127#define $ac_func innocuous_$ac_func
9128
9129/* System header to define __stub macros and hopefully few prototypes,
9130 which can conflict with char $ac_func (); below.
9131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9132 <limits.h> exists even on freestanding compilers. */
9133
9134#ifdef __STDC__
9135# include <limits.h>
9136#else
9137# include <assert.h>
9138#endif
9139
9140#undef $ac_func
9141
9142/* Override any gcc2 internal prototype to avoid an error. */
9143#ifdef __cplusplus
9144extern "C"
9145{
9146#endif
9147/* We use char because int might match the return type of a gcc2
9148 builtin and then its argument prototype would still apply. */
9149char $ac_func ();
9150/* The GNU C library defines this for functions which it implements
9151 to always fail with ENOSYS. Some functions are actually named
9152 something starting with __ and the normal name is an alias. */
9153#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9154choke me
9155#else
9156char (*f) () = $ac_func;
9157#endif
9158#ifdef __cplusplus
9159}
9160#endif
9161
9162int
9163main ()
9164{
9165return f != $ac_func;
9166 ;
9167 return 0;
9168}
9169_ACEOF
9170rm -f conftest.$ac_objext conftest$ac_exeext
9171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172 (eval $ac_link) 2>conftest.er1
9173 ac_status=$?
9174 grep -v '^ *+' conftest.er1 >conftest.err
9175 rm -f conftest.er1
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag"
9180 || test ! -s conftest.err'
9181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 (eval $ac_try) 2>&5
9183 ac_status=$?
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); }; } &&
9186 { ac_try='test -s conftest$ac_exeext'
9187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9188 (eval $ac_try) 2>&5
9189 ac_status=$?
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 (exit $ac_status); }; }; then
9192 eval "$as_ac_var=yes"
9193else
9194 echo "$as_me: failed program was:" >&5
9195sed 's/^/| /' conftest.$ac_ext >&5
9196
9197eval "$as_ac_var=no"
9198fi
9199rm -f conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9201fi
9202echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9203echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9204if test `eval echo '${'$as_ac_var'}'` = yes; then
9205 cat >>confdefs.h <<_ACEOF
9206#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9207_ACEOF
9208 break
9209fi
9210done
9211
9212
9213
9214for ac_func in strrchr rindex
9215do
9216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9217echo "$as_me:$LINENO: checking for $ac_func" >&5
9218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9219if eval "test \"\${$as_ac_var+set}\" = set"; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9221else
9222 cat >conftest.$ac_ext <<_ACEOF
9223/* confdefs.h. */
9224_ACEOF
9225cat confdefs.h >>conftest.$ac_ext
9226cat >>conftest.$ac_ext <<_ACEOF
9227/* end confdefs.h. */
9228/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9230#define $ac_func innocuous_$ac_func
9231
9232/* System header to define __stub macros and hopefully few prototypes,
9233 which can conflict with char $ac_func (); below.
9234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9235 <limits.h> exists even on freestanding compilers. */
9236
9237#ifdef __STDC__
9238# include <limits.h>
9239#else
9240# include <assert.h>
9241#endif
9242
9243#undef $ac_func
9244
9245/* Override any gcc2 internal prototype to avoid an error. */
9246#ifdef __cplusplus
9247extern "C"
9248{
9249#endif
9250/* We use char because int might match the return type of a gcc2
9251 builtin and then its argument prototype would still apply. */
9252char $ac_func ();
9253/* The GNU C library defines this for functions which it implements
9254 to always fail with ENOSYS. Some functions are actually named
9255 something starting with __ and the normal name is an alias. */
9256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9257choke me
9258#else
9259char (*f) () = $ac_func;
9260#endif
9261#ifdef __cplusplus
9262}
9263#endif
9264
9265int
9266main ()
9267{
9268return f != $ac_func;
9269 ;
9270 return 0;
9271}
9272_ACEOF
9273rm -f conftest.$ac_objext conftest$ac_exeext
9274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9275 (eval $ac_link) 2>conftest.er1
9276 ac_status=$?
9277 grep -v '^ *+' conftest.er1 >conftest.err
9278 rm -f conftest.er1
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } &&
9282 { ac_try='test -z "$ac_c_werror_flag"
9283 || test ! -s conftest.err'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285 (eval $ac_try) 2>&5
9286 ac_status=$?
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try='test -s conftest$ac_exeext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 (eval $ac_try) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 eval "$as_ac_var=yes"
9296else
9297 echo "$as_me: failed program was:" >&5
9298sed 's/^/| /' conftest.$ac_ext >&5
9299
9300eval "$as_ac_var=no"
9301fi
9302rm -f conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext conftest.$ac_ext
9304fi
9305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9306echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9307if test `eval echo '${'$as_ac_var'}'` = yes; then
9308 cat >>confdefs.h <<_ACEOF
9309#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9310_ACEOF
9311 break
9312fi
9313done
9314
9315
9316
9317for ac_func in memcpy bcopy
9318do
9319as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9320echo "$as_me:$LINENO: checking for $ac_func" >&5
9321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9322if eval "test \"\${$as_ac_var+set}\" = set"; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324else
9325 cat >conftest.$ac_ext <<_ACEOF
9326/* confdefs.h. */
9327_ACEOF
9328cat confdefs.h >>conftest.$ac_ext
9329cat >>conftest.$ac_ext <<_ACEOF
9330/* end confdefs.h. */
9331/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9333#define $ac_func innocuous_$ac_func
9334
9335/* System header to define __stub macros and hopefully few prototypes,
9336 which can conflict with char $ac_func (); below.
9337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9338 <limits.h> exists even on freestanding compilers. */
9339
9340#ifdef __STDC__
9341# include <limits.h>
9342#else
9343# include <assert.h>
9344#endif
9345
9346#undef $ac_func
9347
9348/* Override any gcc2 internal prototype to avoid an error. */
9349#ifdef __cplusplus
9350extern "C"
9351{
9352#endif
9353/* We use char because int might match the return type of a gcc2
9354 builtin and then its argument prototype would still apply. */
9355char $ac_func ();
9356/* The GNU C library defines this for functions which it implements
9357 to always fail with ENOSYS. Some functions are actually named
9358 something starting with __ and the normal name is an alias. */
9359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9360choke me
9361#else
9362char (*f) () = $ac_func;
9363#endif
9364#ifdef __cplusplus
9365}
9366#endif
9367
9368int
9369main ()
9370{
9371return f != $ac_func;
9372 ;
9373 return 0;
9374}
9375_ACEOF
9376rm -f conftest.$ac_objext conftest$ac_exeext
9377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9378 (eval $ac_link) 2>conftest.er1
9379 ac_status=$?
9380 grep -v '^ *+' conftest.er1 >conftest.err
9381 rm -f conftest.er1
9382 cat conftest.err >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } &&
9385 { ac_try='test -z "$ac_c_werror_flag"
9386 || test ! -s conftest.err'
9387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388 (eval $ac_try) 2>&5
9389 ac_status=$?
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); }; } &&
9392 { ac_try='test -s conftest$ac_exeext'
9393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9394 (eval $ac_try) 2>&5
9395 ac_status=$?
9396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); }; }; then
9398 eval "$as_ac_var=yes"
9399else
9400 echo "$as_me: failed program was:" >&5
9401sed 's/^/| /' conftest.$ac_ext >&5
9402
9403eval "$as_ac_var=no"
9404fi
9405rm -f conftest.err conftest.$ac_objext \
9406 conftest$ac_exeext conftest.$ac_ext
9407fi
9408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9409echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9410if test `eval echo '${'$as_ac_var'}'` = yes; then
9411 cat >>confdefs.h <<_ACEOF
9412#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9413_ACEOF
9414 break
9415fi
9416done
9417
9418
9419
9420for ac_func in memmove strcmp
9421do
9422as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9423echo "$as_me:$LINENO: checking for $ac_func" >&5
9424echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9425if eval "test \"\${$as_ac_var+set}\" = set"; then
9426 echo $ECHO_N "(cached) $ECHO_C" >&6
9427else
9428 cat >conftest.$ac_ext <<_ACEOF
9429/* confdefs.h. */
9430_ACEOF
9431cat confdefs.h >>conftest.$ac_ext
9432cat >>conftest.$ac_ext <<_ACEOF
9433/* end confdefs.h. */
9434/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9436#define $ac_func innocuous_$ac_func
9437
9438/* System header to define __stub macros and hopefully few prototypes,
9439 which can conflict with char $ac_func (); below.
9440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9441 <limits.h> exists even on freestanding compilers. */
9442
9443#ifdef __STDC__
9444# include <limits.h>
9445#else
9446# include <assert.h>
9447#endif
9448
9449#undef $ac_func
9450
9451/* Override any gcc2 internal prototype to avoid an error. */
9452#ifdef __cplusplus
9453extern "C"
9454{
9455#endif
9456/* We use char because int might match the return type of a gcc2
9457 builtin and then its argument prototype would still apply. */
9458char $ac_func ();
9459/* The GNU C library defines this for functions which it implements
9460 to always fail with ENOSYS. Some functions are actually named
9461 something starting with __ and the normal name is an alias. */
9462#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9463choke me
9464#else
9465char (*f) () = $ac_func;
9466#endif
9467#ifdef __cplusplus
9468}
9469#endif
9470
9471int
9472main ()
9473{
9474return f != $ac_func;
9475 ;
9476 return 0;
9477}
9478_ACEOF
9479rm -f conftest.$ac_objext conftest$ac_exeext
9480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9481 (eval $ac_link) 2>conftest.er1
9482 ac_status=$?
9483 grep -v '^ *+' conftest.er1 >conftest.err
9484 rm -f conftest.er1
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
9488 { ac_try='test -z "$ac_c_werror_flag"
9489 || test ! -s conftest.err'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 (eval $ac_try) 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest$ac_exeext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 (eval $ac_try) 2>&5
9498 ac_status=$?
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 eval "$as_ac_var=yes"
9502else
9503 echo "$as_me: failed program was:" >&5
9504sed 's/^/| /' conftest.$ac_ext >&5
9505
9506eval "$as_ac_var=no"
9507fi
9508rm -f conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9510fi
9511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9512echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9513if test `eval echo '${'$as_ac_var'}'` = yes; then
9514 cat >>confdefs.h <<_ACEOF
9515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9516_ACEOF
9517
9518fi
9519done
9520
9521
9522
9523
9524for ac_func in closedir opendir readdir
9525do
9526as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9527echo "$as_me:$LINENO: checking for $ac_func" >&5
9528echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9529if eval "test \"\${$as_ac_var+set}\" = set"; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9531else
9532 cat >conftest.$ac_ext <<_ACEOF
9533/* confdefs.h. */
9534_ACEOF
9535cat confdefs.h >>conftest.$ac_ext
9536cat >>conftest.$ac_ext <<_ACEOF
9537/* end confdefs.h. */
9538/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9540#define $ac_func innocuous_$ac_func
9541
9542/* System header to define __stub macros and hopefully few prototypes,
9543 which can conflict with char $ac_func (); below.
9544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9545 <limits.h> exists even on freestanding compilers. */
9546
9547#ifdef __STDC__
9548# include <limits.h>
9549#else
9550# include <assert.h>
9551#endif
9552
9553#undef $ac_func
9554
9555/* Override any gcc2 internal prototype to avoid an error. */
9556#ifdef __cplusplus
9557extern "C"
9558{
9559#endif
9560/* We use char because int might match the return type of a gcc2
9561 builtin and then its argument prototype would still apply. */
9562char $ac_func ();
9563/* The GNU C library defines this for functions which it implements
9564 to always fail with ENOSYS. Some functions are actually named
9565 something starting with __ and the normal name is an alias. */
9566#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9567choke me
9568#else
9569char (*f) () = $ac_func;
9570#endif
9571#ifdef __cplusplus
9572}
9573#endif
9574
9575int
9576main ()
9577{
9578return f != $ac_func;
9579 ;
9580 return 0;
9581}
9582_ACEOF
9583rm -f conftest.$ac_objext conftest$ac_exeext
9584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9585 (eval $ac_link) 2>conftest.er1
9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } &&
9592 { ac_try='test -z "$ac_c_werror_flag"
9593 || test ! -s conftest.err'
9594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 (eval $ac_try) 2>&5
9596 ac_status=$?
9597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598 (exit $ac_status); }; } &&
9599 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9605 eval "$as_ac_var=yes"
9606else
9607 echo "$as_me: failed program was:" >&5
9608sed 's/^/| /' conftest.$ac_ext >&5
9609
9610eval "$as_ac_var=no"
9611fi
9612rm -f conftest.err conftest.$ac_objext \
9613 conftest$ac_exeext conftest.$ac_ext
9614fi
9615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9616echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9617if test `eval echo '${'$as_ac_var'}'` = yes; then
9618 cat >>confdefs.h <<_ACEOF
9619#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9620_ACEOF
9621
9622fi
9623done
9624
9625
9626# Check whether --enable-shared or --disable-shared was given.
9627if test "${enable_shared+set}" = set; then
9628 enableval="$enable_shared"
9629 p=${PACKAGE-default}
9630 case $enableval in
9631 yes) enable_shared=yes ;;
9632 no) enable_shared=no ;;
9633 *)
9634 enable_shared=no
9635 # Look at the argument we got. We use all the common list separators.
9636 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9637 for pkg in $enableval; do
9638 IFS="$lt_save_ifs"
9639 if test "X$pkg" = "X$p"; then
9640 enable_shared=yes
9641 fi
9642 done
9643 IFS="$lt_save_ifs"
9644 ;;
9645 esac
9646else
9647 enable_shared=yes
9648fi;
9649
9650# Check whether --enable-static or --disable-static was given.
9651if test "${enable_static+set}" = set; then
9652 enableval="$enable_static"
9653 p=${PACKAGE-default}
9654 case $enableval in
9655 yes) enable_static=yes ;;
9656 no) enable_static=no ;;
9657 *)
9658 enable_static=no
9659 # Look at the argument we got. We use all the common list separators.
9660 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9661 for pkg in $enableval; do
9662 IFS="$lt_save_ifs"
9663 if test "X$pkg" = "X$p"; then
9664 enable_static=yes
9665 fi
9666 done
9667 IFS="$lt_save_ifs"
9668 ;;
9669 esac
9670else
9671 enable_static=yes
9672fi;
9673
9674# Check whether --enable-fast-install or --disable-fast-install was given.
9675if test "${enable_fast_install+set}" = set; then
9676 enableval="$enable_fast_install"
9677 p=${PACKAGE-default}
9678 case $enableval in
9679 yes) enable_fast_install=yes ;;
9680 no) enable_fast_install=no ;;
9681 *)
9682 enable_fast_install=no
9683 # Look at the argument we got. We use all the common list separators.
9684 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9685 for pkg in $enableval; do
9686 IFS="$lt_save_ifs"
9687 if test "X$pkg" = "X$p"; then
9688 enable_fast_install=yes
9689 fi
9690 done
9691 IFS="$lt_save_ifs"
9692 ;;
9693 esac
9694else
9695 enable_fast_install=yes
9696fi;
9697
9698echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9699echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9700if test "${lt_cv_path_SED+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9702else
9703 # Loop through the user's path and test for sed and gsed.
9704# Then use that list of sed's as ones to test for truncation.
9705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9706for as_dir in $PATH
9707do
9708 IFS=$as_save_IFS
9709 test -z "$as_dir" && as_dir=.
9710 for lt_ac_prog in sed gsed; do
9711 for ac_exec_ext in '' $ac_executable_extensions; do
9712 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9713 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9714 fi
9715 done
9716 done
9717done
9718lt_ac_max=0
9719lt_ac_count=0
9720# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9721# along with /bin/sed that truncates output.
9722for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9723 test ! -f $lt_ac_sed && break
9724 cat /dev/null > conftest.in
9725 lt_ac_count=0
9726 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9727 # Check for GNU sed and select it if it is found.
9728 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9729 lt_cv_path_SED=$lt_ac_sed
9730 break
9731 fi
9732 while true; do
9733 cat conftest.in conftest.in >conftest.tmp
9734 mv conftest.tmp conftest.in
9735 cp conftest.in conftest.nl
9736 echo >>conftest.nl
9737 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9738 cmp -s conftest.out conftest.nl || break
9739 # 10000 chars as input seems more than enough
9740 test $lt_ac_count -gt 10 && break
9741 lt_ac_count=`expr $lt_ac_count + 1`
9742 if test $lt_ac_count -gt $lt_ac_max; then
9743 lt_ac_max=$lt_ac_count
9744 lt_cv_path_SED=$lt_ac_sed
9745 fi
9746 done
9747done
9748
9749fi
9750
9751SED=$lt_cv_path_SED
9752echo "$as_me:$LINENO: result: $SED" >&5
9753echo "${ECHO_T}$SED" >&6
9754
9755
9756# Check whether --with-gnu-ld or --without-gnu-ld was given.
9757if test "${with_gnu_ld+set}" = set; then
9758 withval="$with_gnu_ld"
9759 test "$withval" = no || with_gnu_ld=yes
9760else
9761 with_gnu_ld=no
9762fi;
9763ac_prog=ld
9764if test "$GCC" = yes; then
9765 # Check if gcc -print-prog-name=ld gives a path.
9766 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9767echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9768 case $host in
9769 *-*-mingw*)
9770 # gcc leaves a trailing carriage return which upsets mingw
9771 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9772 *)
9773 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9774 esac
9775 case $ac_prog in
9776 # Accept absolute paths.
9777 [\\/]* | ?:[\\/]*)
9778 re_direlt='/[^/][^/]*/\.\./'
9779 # Canonicalize the pathname of ld
9780 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9781 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9782 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9783 done
9784 test -z "$LD" && LD="$ac_prog"
9785 ;;
9786 "")
9787 # If it fails, then pretend we aren't using GCC.
9788 ac_prog=ld
9789 ;;
9790 *)
9791 # If it is relative, then search for the first ld in PATH.
9792 with_gnu_ld=unknown
9793 ;;
9794 esac
9795elif test "$with_gnu_ld" = yes; then
9796 echo "$as_me:$LINENO: checking for GNU ld" >&5
9797echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9798else
9799 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9800echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9801fi
9802if test "${lt_cv_path_LD+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9804else
9805 if test -z "$LD"; then
9806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9807 for ac_dir in $PATH; do
9808 IFS="$lt_save_ifs"
9809 test -z "$ac_dir" && ac_dir=.
9810 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9811 lt_cv_path_LD="$ac_dir/$ac_prog"
9812 # Check to see if the program is GNU ld. I'd rather use --version,
9813 # but apparently some GNU ld's only accept -v.
9814 # Break only if it was the GNU/non-GNU ld that we prefer.
9815 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9816 *GNU* | *'with BFD'*)
9817 test "$with_gnu_ld" != no && break
9818 ;;
9819 *)
9820 test "$with_gnu_ld" != yes && break
9821 ;;
9822 esac
9823 fi
9824 done
9825 IFS="$lt_save_ifs"
9826else
9827 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9828fi
9829fi
9830
9831LD="$lt_cv_path_LD"
9832if test -n "$LD"; then
9833 echo "$as_me:$LINENO: result: $LD" >&5
9834echo "${ECHO_T}$LD" >&6
9835else
9836 echo "$as_me:$LINENO: result: no" >&5
9837echo "${ECHO_T}no" >&6
9838fi
9839test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9840echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9841 { (exit 1); exit 1; }; }
9842echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9843echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9844if test "${lt_cv_prog_gnu_ld+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9846else
9847 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9848case `$LD -v 2>&1 </dev/null` in
9849*GNU* | *'with BFD'*)
9850 lt_cv_prog_gnu_ld=yes
9851 ;;
9852*)
9853 lt_cv_prog_gnu_ld=no
9854 ;;
9855esac
9856fi
9857echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9858echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9859with_gnu_ld=$lt_cv_prog_gnu_ld
9860
9861
9862echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9863echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9864if test "${lt_cv_ld_reload_flag+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866else
9867 lt_cv_ld_reload_flag='-r'
9868fi
9869echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9870echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9871reload_flag=$lt_cv_ld_reload_flag
9872case $reload_flag in
9873"" | " "*) ;;
9874*) reload_flag=" $reload_flag" ;;
9875esac
9876reload_cmds='$LD$reload_flag -o $output$reload_objs'
9877case $host_os in
9878 darwin*)
9879 if test "$GCC" = yes; then
9880 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9881 else
9882 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9883 fi
9884 ;;
9885esac
9886
9887echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9888echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9889if test "${lt_cv_deplibs_check_method+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891else
9892 lt_cv_file_magic_cmd='$MAGIC_CMD'
9893lt_cv_file_magic_test_file=
9894lt_cv_deplibs_check_method='unknown'
9895# Need to set the preceding variable on all platforms that support
9896# interlibrary dependencies.
9897# 'none' -- dependencies not supported.
9898# `unknown' -- same as none, but documents that we really don't know.
9899# 'pass_all' -- all dependencies passed with no checks.
9900# 'test_compile' -- check by making test program.
9901# 'file_magic [[regex]]' -- check by looking for files in library path
9902# which responds to the $file_magic_cmd with a given extended regex.
9903# If you have `file' or equivalent on your system and you're not sure
9904# whether `pass_all' will *always* work, you probably want this one.
9905
9906case $host_os in
9907aix4* | aix5*)
9908 lt_cv_deplibs_check_method=pass_all
9909 ;;
9910
9911beos*)
9912 lt_cv_deplibs_check_method=pass_all
9913 ;;
9914
9915bsdi[45]*)
9916 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9917 lt_cv_file_magic_cmd='/usr/bin/file -L'
9918 lt_cv_file_magic_test_file=/shlib/libc.so
9919 ;;
9920
9921cygwin*)
9922 # func_win32_libid is a shell function defined in ltmain.sh
9923 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9924 lt_cv_file_magic_cmd='func_win32_libid'
9925 ;;
9926
9927mingw* | pw32*)
9928 # Base MSYS/MinGW do not provide the 'file' command needed by
9929 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9930 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9931 lt_cv_file_magic_cmd='$OBJDUMP -f'
9932 ;;
9933
9934darwin* | rhapsody*)
9935 lt_cv_deplibs_check_method=pass_all
9936 ;;
9937
9938freebsd* | kfreebsd*-gnu)
9939 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9940 case $host_cpu in
9941 i*86 )
9942 # Not sure whether the presence of OpenBSD here was a mistake.
9943 # Let's accept both of them until this is cleared up.
9944 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
9945 lt_cv_file_magic_cmd=/usr/bin/file
9946 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9947 ;;
9948 esac
9949 else
9950 lt_cv_deplibs_check_method=pass_all
9951 fi
9952 ;;
9953
9954gnu*)
9955 lt_cv_deplibs_check_method=pass_all
9956 ;;
9957
9958hpux10.20* | hpux11*)
9959 lt_cv_file_magic_cmd=/usr/bin/file
9960 case "$host_cpu" in
9961 ia64*)
9962 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9963 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9964 ;;
9965 hppa*64*)
9966 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]'
9967 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9968 ;;
9969 *)
9970 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9971 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9972 ;;
9973 esac
9974 ;;
9975
9976irix5* | irix6* | nonstopux*)
9977 case $LD in
9978 *-32|*"-32 ") libmagic=32-bit;;
9979 *-n32|*"-n32 ") libmagic=N32;;
9980 *-64|*"-64 ") libmagic=64-bit;;
9981 *) libmagic=never-match;;
9982 esac
9983 lt_cv_deplibs_check_method=pass_all
9984 ;;
9985
9986# This must be Linux ELF.
9987linux*)
9988 lt_cv_deplibs_check_method=pass_all
9989 ;;
9990
9991netbsd*)
9992 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9993 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9994 else
9995 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9996 fi
9997 ;;
9998
9999newos6*)
10000 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10001 lt_cv_file_magic_cmd=/usr/bin/file
10002 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10003 ;;
10004
10005nto-qnx*)
10006 lt_cv_deplibs_check_method=unknown
10007 ;;
10008
10009openbsd*)
10010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10011 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10012 else
10013 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10014 fi
10015 ;;
10016
10017osf3* | osf4* | osf5*)
10018 lt_cv_deplibs_check_method=pass_all
10019 ;;
10020
10021sco3.2v5*)
10022 lt_cv_deplibs_check_method=pass_all
10023 ;;
10024
10025solaris*)
10026 lt_cv_deplibs_check_method=pass_all
10027 ;;
10028
10029sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10030 case $host_vendor in
10031 motorola)
10032 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]'
10033 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10034 ;;
10035 ncr)
10036 lt_cv_deplibs_check_method=pass_all
10037 ;;
10038 sequent)
10039 lt_cv_file_magic_cmd='/bin/file'
10040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10041 ;;
10042 sni)
10043 lt_cv_file_magic_cmd='/bin/file'
10044 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10045 lt_cv_file_magic_test_file=/lib/libc.so
10046 ;;
10047 siemens)
10048 lt_cv_deplibs_check_method=pass_all
10049 ;;
10050 esac
10051 ;;
10052
10053sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10054 lt_cv_deplibs_check_method=pass_all
10055 ;;
10056esac
10057
10058fi
10059echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10060echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10061file_magic_cmd=$lt_cv_file_magic_cmd
10062deplibs_check_method=$lt_cv_deplibs_check_method
10063test -z "$deplibs_check_method" && deplibs_check_method=unknown
10064
10065
10066
10067# If no C compiler was specified, use CC.
10068LTCC=${LTCC-"$CC"}
10069
10070# Allow CC to be a program name with arguments.
10071compiler=$CC
10072
10073# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10074if test "${enable_libtool_lock+set}" = set; then
10075 enableval="$enable_libtool_lock"
10076
10077fi;
10078test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10079
10080# Some flags need to be propagated to the compiler or linker for good
10081# libtool support.
10082case $host in
10083ia64-*-hpux*)
10084 # Find out which ABI we are using.
10085 echo 'int i;' > conftest.$ac_ext
10086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10087 (eval $ac_compile) 2>&5
10088 ac_status=$?
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; then
10091 case `/usr/bin/file conftest.$ac_objext` in
10092 *ELF-32*)
10093 HPUX_IA64_MODE="32"
10094 ;;
10095 *ELF-64*)
10096 HPUX_IA64_MODE="64"
10097 ;;
10098 esac
10099 fi
10100 rm -rf conftest*
10101 ;;
10102*-*-irix6*)
10103 # Find out which ABI we are using.
Reid Spencer86901802004-12-08 23:07:27 +000010104 echo '#line 10104 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10106 (eval $ac_compile) 2>&5
10107 ac_status=$?
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; then
10110 if test "$lt_cv_prog_gnu_ld" = yes; then
10111 case `/usr/bin/file conftest.$ac_objext` in
10112 *32-bit*)
10113 LD="${LD-ld} -melf32bsmip"
10114 ;;
10115 *N32*)
10116 LD="${LD-ld} -melf32bmipn32"
10117 ;;
10118 *64-bit*)
10119 LD="${LD-ld} -melf64bmip"
10120 ;;
10121 esac
10122 else
10123 case `/usr/bin/file conftest.$ac_objext` in
10124 *32-bit*)
10125 LD="${LD-ld} -32"
10126 ;;
10127 *N32*)
10128 LD="${LD-ld} -n32"
10129 ;;
10130 *64-bit*)
10131 LD="${LD-ld} -64"
10132 ;;
10133 esac
10134 fi
10135 fi
10136 rm -rf conftest*
10137 ;;
10138
10139x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10140 # Find out which ABI we are using.
10141 echo 'int i;' > conftest.$ac_ext
10142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10143 (eval $ac_compile) 2>&5
10144 ac_status=$?
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); }; then
10147 case "`/usr/bin/file conftest.o`" in
10148 *32-bit*)
10149 case $host in
10150 x86_64-*linux*)
10151 LD="${LD-ld} -m elf_i386"
10152 ;;
10153 ppc64-*linux*|powerpc64-*linux*)
10154 LD="${LD-ld} -m elf32ppclinux"
10155 ;;
10156 s390x-*linux*)
10157 LD="${LD-ld} -m elf_s390"
10158 ;;
10159 sparc64-*linux*)
10160 LD="${LD-ld} -m elf32_sparc"
10161 ;;
10162 esac
10163 ;;
10164 *64-bit*)
10165 case $host in
10166 x86_64-*linux*)
10167 LD="${LD-ld} -m elf_x86_64"
10168 ;;
10169 ppc*-*linux*|powerpc*-*linux*)
10170 LD="${LD-ld} -m elf64ppc"
10171 ;;
10172 s390*-*linux*)
10173 LD="${LD-ld} -m elf64_s390"
10174 ;;
10175 sparc*-*linux*)
10176 LD="${LD-ld} -m elf64_sparc"
10177 ;;
10178 esac
10179 ;;
10180 esac
10181 fi
10182 rm -rf conftest*
10183 ;;
10184
10185*-*-sco3.2v5*)
10186 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10187 SAVE_CFLAGS="$CFLAGS"
10188 CFLAGS="$CFLAGS -belf"
10189 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10190echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10191if test "${lt_cv_cc_needs_belf+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10193else
10194 ac_ext=c
10195ac_cpp='$CPP $CPPFLAGS'
10196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10198ac_compiler_gnu=$ac_cv_c_compiler_gnu
10199
10200 cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h. */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h. */
10206
10207_ACEOF
10208rm -f conftest.$ac_objext conftest$ac_exeext
10209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210 (eval $ac_link) 2>conftest.er1
10211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try='test -z "$ac_c_werror_flag"
10218 || test ! -s conftest.err'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest$ac_exeext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 lt_cv_cc_needs_belf=yes
10231else
10232 echo "$as_me: failed program was:" >&5
10233sed 's/^/| /' conftest.$ac_ext >&5
10234
10235lt_cv_cc_needs_belf=no
10236fi
10237rm -f conftest.err conftest.$ac_objext \
10238 conftest$ac_exeext conftest.$ac_ext
10239 ac_ext=c
10240ac_cpp='$CPP $CPPFLAGS'
10241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10243ac_compiler_gnu=$ac_cv_c_compiler_gnu
10244
10245fi
10246echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10247echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10248 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10249 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10250 CFLAGS="$SAVE_CFLAGS"
10251 fi
10252 ;;
10253
10254esac
10255
10256need_locks="$enable_libtool_lock"
10257
10258
Reid Spencer2706f8c2004-09-19 23:53:36 +000010259
10260
10261if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10262 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10263 (test "X$CXX" != "Xg++"))) ; then
10264 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010265ac_cpp='$CXXCPP $CPPFLAGS'
10266ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10267ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10268ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10269echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10270echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10271if test -z "$CXXCPP"; then
10272 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010273 echo $ECHO_N "(cached) $ECHO_C" >&6
10274else
John Criswell47fdd832003-07-14 16:52:07 +000010275 # Double quotes because CXXCPP needs to be expanded
10276 for CXXCPP in "$CXX -E" "/lib/cpp"
10277 do
10278 ac_preproc_ok=false
10279for ac_cxx_preproc_warn_flag in '' yes
10280do
10281 # Use a header file that comes with gcc, so configuring glibc
10282 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10284 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010285 # On the NeXT, cc -E runs the code through the compiler's parser,
10286 # not just through cpp. "Syntax error" is here to catch this case.
10287 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010288/* confdefs.h. */
10289_ACEOF
10290cat confdefs.h >>conftest.$ac_ext
10291cat >>conftest.$ac_ext <<_ACEOF
10292/* end confdefs.h. */
10293#ifdef __STDC__
10294# include <limits.h>
10295#else
10296# include <assert.h>
10297#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010298 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010299_ACEOF
10300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10302 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010303 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010304 rm -f conftest.er1
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } >/dev/null; then
10308 if test -s conftest.err; then
10309 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010310 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010311 else
John Criswell47fdd832003-07-14 16:52:07 +000010312 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010313 fi
John Criswell47fdd832003-07-14 16:52:07 +000010314else
10315 ac_cpp_err=yes
10316fi
10317if test -z "$ac_cpp_err"; then
10318 :
10319else
10320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010321sed 's/^/| /' conftest.$ac_ext >&5
10322
John Criswell47fdd832003-07-14 16:52:07 +000010323 # Broken: fails on valid input.
10324continue
10325fi
10326rm -f conftest.err conftest.$ac_ext
10327
10328 # OK, works on sane cases. Now check whether non-existent headers
10329 # can be detected and how.
10330 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010331/* confdefs.h. */
10332_ACEOF
10333cat confdefs.h >>conftest.$ac_ext
10334cat >>conftest.$ac_ext <<_ACEOF
10335/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010336#include <ac_nonexistent.h>
10337_ACEOF
10338if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10340 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010341 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010342 rm -f conftest.er1
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } >/dev/null; then
10346 if test -s conftest.err; then
10347 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010348 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010349 else
10350 ac_cpp_err=
10351 fi
10352else
10353 ac_cpp_err=yes
10354fi
10355if test -z "$ac_cpp_err"; then
10356 # Broken: success on invalid input.
10357continue
10358else
10359 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010360sed 's/^/| /' conftest.$ac_ext >&5
10361
John Criswell47fdd832003-07-14 16:52:07 +000010362 # Passes both tests.
10363ac_preproc_ok=:
10364break
10365fi
10366rm -f conftest.err conftest.$ac_ext
10367
10368done
10369# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10370rm -f conftest.err conftest.$ac_ext
10371if $ac_preproc_ok; then
10372 break
John Criswell7a73b802003-06-30 21:59:07 +000010373fi
10374
John Criswell47fdd832003-07-14 16:52:07 +000010375 done
10376 ac_cv_prog_CXXCPP=$CXXCPP
10377
10378fi
10379 CXXCPP=$ac_cv_prog_CXXCPP
10380else
10381 ac_cv_prog_CXXCPP=$CXXCPP
10382fi
10383echo "$as_me:$LINENO: result: $CXXCPP" >&5
10384echo "${ECHO_T}$CXXCPP" >&6
10385ac_preproc_ok=false
10386for ac_cxx_preproc_warn_flag in '' yes
10387do
10388 # Use a header file that comes with gcc, so configuring glibc
10389 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10391 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010392 # On the NeXT, cc -E runs the code through the compiler's parser,
10393 # not just through cpp. "Syntax error" is here to catch this case.
10394 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010395/* confdefs.h. */
10396_ACEOF
10397cat confdefs.h >>conftest.$ac_ext
10398cat >>conftest.$ac_ext <<_ACEOF
10399/* end confdefs.h. */
10400#ifdef __STDC__
10401# include <limits.h>
10402#else
10403# include <assert.h>
10404#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010405 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010406_ACEOF
10407if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10408 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10409 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010410 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010411 rm -f conftest.er1
10412 cat conftest.err >&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } >/dev/null; then
10415 if test -s conftest.err; then
10416 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010417 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010418 else
10419 ac_cpp_err=
10420 fi
10421else
10422 ac_cpp_err=yes
10423fi
10424if test -z "$ac_cpp_err"; then
10425 :
10426else
10427 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010428sed 's/^/| /' conftest.$ac_ext >&5
10429
John Criswell47fdd832003-07-14 16:52:07 +000010430 # Broken: fails on valid input.
10431continue
10432fi
10433rm -f conftest.err conftest.$ac_ext
10434
10435 # OK, works on sane cases. Now check whether non-existent headers
10436 # can be detected and how.
10437 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010438/* confdefs.h. */
10439_ACEOF
10440cat confdefs.h >>conftest.$ac_ext
10441cat >>conftest.$ac_ext <<_ACEOF
10442/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010443#include <ac_nonexistent.h>
10444_ACEOF
10445if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010448 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010449 rm -f conftest.er1
10450 cat conftest.err >&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } >/dev/null; then
10453 if test -s conftest.err; then
10454 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010455 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010456 else
10457 ac_cpp_err=
10458 fi
10459else
10460 ac_cpp_err=yes
10461fi
10462if test -z "$ac_cpp_err"; then
10463 # Broken: success on invalid input.
10464continue
10465else
10466 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010467sed 's/^/| /' conftest.$ac_ext >&5
10468
John Criswell47fdd832003-07-14 16:52:07 +000010469 # Passes both tests.
10470ac_preproc_ok=:
10471break
10472fi
10473rm -f conftest.err conftest.$ac_ext
10474
10475done
10476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10477rm -f conftest.err conftest.$ac_ext
10478if $ac_preproc_ok; then
10479 :
10480else
John Criswell0c38eaf2003-09-10 15:17:25 +000010481 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10482See \`config.log' for more details." >&5
10483echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10484See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010485 { (exit 1); exit 1; }; }
10486fi
10487
10488ac_ext=cc
10489ac_cpp='$CXXCPP $CPPFLAGS'
10490ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10491ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10492ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10493
Reid Spencer2706f8c2004-09-19 23:53:36 +000010494fi
10495
John Criswell47fdd832003-07-14 16:52:07 +000010496
10497ac_ext=f
10498ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10499ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10500ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10501if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010502 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 +000010503 do
10504 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10505set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10506echo "$as_me:$LINENO: checking for $ac_word" >&5
10507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10508if test "${ac_cv_prog_F77+set}" = set; then
10509 echo $ECHO_N "(cached) $ECHO_C" >&6
10510else
10511 if test -n "$F77"; then
10512 ac_cv_prog_F77="$F77" # Let the user override the test.
10513else
10514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515for as_dir in $PATH
10516do
10517 IFS=$as_save_IFS
10518 test -z "$as_dir" && as_dir=.
10519 for ac_exec_ext in '' $ac_executable_extensions; do
10520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10521 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10523 break 2
10524 fi
10525done
10526done
10527
10528fi
10529fi
10530F77=$ac_cv_prog_F77
10531if test -n "$F77"; then
10532 echo "$as_me:$LINENO: result: $F77" >&5
10533echo "${ECHO_T}$F77" >&6
10534else
10535 echo "$as_me:$LINENO: result: no" >&5
10536echo "${ECHO_T}no" >&6
10537fi
10538
10539 test -n "$F77" && break
10540 done
10541fi
10542if test -z "$F77"; then
10543 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010544 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 +000010545do
10546 # Extract the first word of "$ac_prog", so it can be a program name with args.
10547set dummy $ac_prog; ac_word=$2
10548echo "$as_me:$LINENO: checking for $ac_word" >&5
10549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10550if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10552else
10553 if test -n "$ac_ct_F77"; then
10554 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10555else
10556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557for as_dir in $PATH
10558do
10559 IFS=$as_save_IFS
10560 test -z "$as_dir" && as_dir=.
10561 for ac_exec_ext in '' $ac_executable_extensions; do
10562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10563 ac_cv_prog_ac_ct_F77="$ac_prog"
10564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10565 break 2
10566 fi
10567done
10568done
10569
10570fi
10571fi
10572ac_ct_F77=$ac_cv_prog_ac_ct_F77
10573if test -n "$ac_ct_F77"; then
10574 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10575echo "${ECHO_T}$ac_ct_F77" >&6
10576else
10577 echo "$as_me:$LINENO: result: no" >&5
10578echo "${ECHO_T}no" >&6
10579fi
10580
10581 test -n "$ac_ct_F77" && break
10582done
10583
10584 F77=$ac_ct_F77
10585fi
10586
10587
10588# Provide some information about the compiler.
Reid Spencer86901802004-12-08 23:07:27 +000010589echo "$as_me:10589:" \
John Criswell47fdd832003-07-14 16:52:07 +000010590 "checking for Fortran 77 compiler version" >&5
10591ac_compiler=`set X $ac_compile; echo $2`
10592{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10593 (eval $ac_compiler --version </dev/null >&5) 2>&5
10594 ac_status=$?
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }
10597{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10598 (eval $ac_compiler -v </dev/null >&5) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }
10602{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10603 (eval $ac_compiler -V </dev/null >&5) 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010607rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010608
10609# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010610# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010611ac_save_ext=$ac_ext
10612ac_ext=F
10613echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10614echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10615if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10617else
10618 cat >conftest.$ac_ext <<_ACEOF
10619 program main
10620#ifndef __GNUC__
10621 choke me
10622#endif
10623
10624 end
10625_ACEOF
10626rm -f conftest.$ac_objext
10627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010628 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010629 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010630 grep -v '^ *+' conftest.er1 >conftest.err
10631 rm -f conftest.er1
10632 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010635 { ac_try='test -z "$ac_f77_werror_flag"
10636 || test ! -s conftest.err'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10639 ac_status=$?
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; } &&
10642 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; }; then
10648 ac_compiler_gnu=yes
10649else
10650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010651sed 's/^/| /' conftest.$ac_ext >&5
10652
John Criswell47fdd832003-07-14 16:52:07 +000010653ac_compiler_gnu=no
10654fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010656ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10657
10658fi
10659echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10660echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10661ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010662ac_test_FFLAGS=${FFLAGS+set}
10663ac_save_FFLAGS=$FFLAGS
10664FFLAGS=
10665echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10666echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10667if test "${ac_cv_prog_f77_g+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669else
10670 FFLAGS=-g
10671cat >conftest.$ac_ext <<_ACEOF
10672 program main
10673
10674 end
10675_ACEOF
10676rm -f conftest.$ac_objext
10677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010678 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010679 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010680 grep -v '^ *+' conftest.er1 >conftest.err
10681 rm -f conftest.er1
10682 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010685 { ac_try='test -z "$ac_f77_werror_flag"
10686 || test ! -s conftest.err'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; } &&
10692 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10694 (eval $ac_try) 2>&5
10695 ac_status=$?
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); }; }; then
10698 ac_cv_prog_f77_g=yes
10699else
10700 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010701sed 's/^/| /' conftest.$ac_ext >&5
10702
John Criswell47fdd832003-07-14 16:52:07 +000010703ac_cv_prog_f77_g=no
10704fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010706
10707fi
10708echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10709echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10710if test "$ac_test_FFLAGS" = set; then
10711 FFLAGS=$ac_save_FFLAGS
10712elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010713 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010714 FFLAGS="-g -O2"
10715 else
10716 FFLAGS="-g"
10717 fi
10718else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010719 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010720 FFLAGS="-O2"
10721 else
10722 FFLAGS=
10723 fi
10724fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010725
10726G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010727ac_ext=c
10728ac_cpp='$CPP $CPPFLAGS'
10729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10731ac_compiler_gnu=$ac_cv_c_compiler_gnu
10732
10733
10734
10735# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10736
10737# find the maximum length of command line arguments
10738echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10739echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10740if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742else
10743 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010744 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010745
10746 case $build_os in
10747 msdosdjgpp*)
10748 # On DJGPP, this test can blow up pretty badly due to problems in libc
10749 # (any single argument exceeding 2000 bytes causes a buffer overrun
10750 # during glob expansion). Even if it were fixed, the result of this
10751 # check would be larger than it should be.
10752 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10753 ;;
10754
10755 gnu*)
10756 # Under GNU Hurd, this test is not required because there is
10757 # no limit to the length of command line arguments.
10758 # Libtool will interpret -1 as no limit whatsoever
10759 lt_cv_sys_max_cmd_len=-1;
10760 ;;
10761
10762 cygwin* | mingw*)
10763 # On Win9x/ME, this test blows up -- it succeeds, but takes
10764 # about 5 minutes as the teststring grows exponentially.
10765 # Worse, since 9x/ME are not pre-emptively multitasking,
10766 # you end up with a "frozen" computer, even though with patience
10767 # the test eventually succeeds (with a max line length of 256k).
10768 # Instead, let's just punt: use the minimum linelength reported by
10769 # all of the supported platforms: 8192 (on NT/2K/XP).
10770 lt_cv_sys_max_cmd_len=8192;
10771 ;;
10772
Reid Spencer2706f8c2004-09-19 23:53:36 +000010773 amigaos*)
10774 # On AmigaOS with pdksh, this test takes hours, literally.
10775 # So we just punt and use a minimum line length of 8192.
10776 lt_cv_sys_max_cmd_len=8192;
10777 ;;
10778
10779 netbsd* | freebsd* | openbsd* | darwin* )
10780 # This has been around since 386BSD, at least. Likely further.
10781 if test -x /sbin/sysctl; then
10782 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10783 elif test -x /usr/sbin/sysctl; then
10784 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10785 else
10786 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10787 fi
10788 # And add a safety zone
10789 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10790 ;;
10791
John Criswell47fdd832003-07-14 16:52:07 +000010792 *)
10793 # If test is not a shell built-in, we'll probably end up computing a
10794 # maximum length that is only half of the actual maximum length, but
10795 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010796 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10797 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10798 = "XX$teststring") >/dev/null 2>&1 &&
10799 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010800 lt_cv_sys_max_cmd_len=$new_result &&
10801 test $i != 17 # 1/2 MB should be enough
10802 do
10803 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010804 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010805 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010806 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010807 # Add a significant safety factor because C++ compilers can tack on massive
10808 # amounts of additional arguments before passing them to the linker.
10809 # It appears as though 1/2 is a usable value.
10810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10811 ;;
10812 esac
10813
10814fi
10815
10816if test -n $lt_cv_sys_max_cmd_len ; then
10817 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10818echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10819else
10820 echo "$as_me:$LINENO: result: none" >&5
10821echo "${ECHO_T}none" >&6
10822fi
10823
10824
10825
10826
10827# Check for command to grab the raw symbol name followed by C symbol from nm.
10828echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10829echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10830if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10832else
10833
10834# These are sane defaults that work on at least a few old systems.
10835# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10836
10837# Character class describing NM global symbol codes.
10838symcode='[BCDEGRST]'
10839
10840# Regexp to match symbols that can be accessed directly from C.
10841sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10842
10843# Transform the above into a raw symbol and a C symbol.
10844symxfrm='\1 \2\3 \3'
10845
10846# Transform an extracted symbol line into a proper C declaration
10847lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10848
10849# Transform an extracted symbol line into symbol name and symbol address
10850lt_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'"
10851
10852# Define system-specific variables.
10853case $host_os in
10854aix*)
10855 symcode='[BCDT]'
10856 ;;
10857cygwin* | mingw* | pw32*)
10858 symcode='[ABCDGISTW]'
10859 ;;
10860hpux*) # Its linker distinguishes data from code symbols
10861 if test "$host_cpu" = ia64; then
10862 symcode='[ABCDEGRST]'
10863 fi
10864 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10865 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'"
10866 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010867linux*)
10868 if test "$host_cpu" = ia64; then
10869 symcode='[ABCDGIRSTW]'
10870 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10871 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'"
10872 fi
10873 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010874irix* | nonstopux*)
10875 symcode='[BCDEGRST]'
10876 ;;
10877osf*)
10878 symcode='[BCDEGQRST]'
10879 ;;
10880solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010881 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000010882 ;;
10883sysv4)
10884 symcode='[DFNSTU]'
10885 ;;
10886esac
10887
10888# Handle CRLF in mingw tool chain
10889opt_cr=
10890case $build_os in
10891mingw*)
10892 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10893 ;;
10894esac
10895
10896# If we're using GNU nm, then use its standard symbol codes.
10897case `$NM -V 2>&1` in
10898*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010899 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000010900esac
10901
10902# Try without a prefix undercore, then with it.
10903for ac_symprfx in "" "_"; do
10904
10905 # Write the raw and C identifiers.
10906 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10907
10908 # Check to see that the pipe works correctly.
10909 pipe_works=no
10910
10911 rm -f conftest*
10912 cat > conftest.$ac_ext <<EOF
10913#ifdef __cplusplus
10914extern "C" {
10915#endif
10916char nm_test_var;
10917void nm_test_func(){}
10918#ifdef __cplusplus
10919}
10920#endif
10921int main(){nm_test_var='a';nm_test_func();return(0);}
10922EOF
10923
10924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10925 (eval $ac_compile) 2>&5
10926 ac_status=$?
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; then
10929 # Now try to grab the symbols.
10930 nlist=conftest.nm
10931 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10932 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && test -s "$nlist"; then
10936 # Try sorting and uniquifying the output.
10937 if sort "$nlist" | uniq > "$nlist"T; then
10938 mv -f "$nlist"T "$nlist"
10939 else
10940 rm -f "$nlist"T
10941 fi
10942
10943 # Make sure that we snagged all the symbols we need.
10944 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10945 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10946 cat <<EOF > conftest.$ac_ext
10947#ifdef __cplusplus
10948extern "C" {
10949#endif
10950
10951EOF
10952 # Now generate the symbol file.
10953 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10954
10955 cat <<EOF >> conftest.$ac_ext
10956#if defined (__STDC__) && __STDC__
10957# define lt_ptr_t void *
10958#else
10959# define lt_ptr_t char *
10960# define const
10961#endif
10962
10963/* The mapping between symbol names and symbols. */
10964const struct {
10965 const char *name;
10966 lt_ptr_t address;
10967}
10968lt_preloaded_symbols[] =
10969{
10970EOF
10971 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10972 cat <<\EOF >> conftest.$ac_ext
10973 {0, (lt_ptr_t) 0}
10974};
10975
10976#ifdef __cplusplus
10977}
10978#endif
10979EOF
10980 # Now try linking the two files.
10981 mv conftest.$ac_objext conftstm.$ac_objext
10982 lt_save_LIBS="$LIBS"
10983 lt_save_CFLAGS="$CFLAGS"
10984 LIBS="conftstm.$ac_objext"
10985 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987 (eval $ac_link) 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10991 pipe_works=yes
10992 fi
10993 LIBS="$lt_save_LIBS"
10994 CFLAGS="$lt_save_CFLAGS"
10995 else
10996 echo "cannot find nm_test_func in $nlist" >&5
10997 fi
10998 else
10999 echo "cannot find nm_test_var in $nlist" >&5
11000 fi
11001 else
11002 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11003 fi
11004 else
11005 echo "$progname: failed program was:" >&5
11006 cat conftest.$ac_ext >&5
11007 fi
11008 rm -f conftest* conftst*
11009
11010 # Do not use the global_symbol_pipe unless it works.
11011 if test "$pipe_works" = yes; then
11012 break
11013 else
11014 lt_cv_sys_global_symbol_pipe=
11015 fi
11016done
11017
11018fi
11019
11020if test -z "$lt_cv_sys_global_symbol_pipe"; then
11021 lt_cv_sys_global_symbol_to_cdecl=
11022fi
11023if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11024 echo "$as_me:$LINENO: result: failed" >&5
11025echo "${ECHO_T}failed" >&6
11026else
11027 echo "$as_me:$LINENO: result: ok" >&5
11028echo "${ECHO_T}ok" >&6
11029fi
11030
11031echo "$as_me:$LINENO: checking for objdir" >&5
11032echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11033if test "${lt_cv_objdir+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11035else
11036 rm -f .libs 2>/dev/null
11037mkdir .libs 2>/dev/null
11038if test -d .libs; then
11039 lt_cv_objdir=.libs
11040else
11041 # MS-DOS does not allow filenames that begin with a dot.
11042 lt_cv_objdir=_libs
11043fi
11044rmdir .libs 2>/dev/null
11045fi
11046echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11047echo "${ECHO_T}$lt_cv_objdir" >&6
11048objdir=$lt_cv_objdir
11049
11050
11051
11052
11053
11054case $host_os in
11055aix3*)
11056 # AIX sometimes has problems with the GCC collect2 program. For some
11057 # reason, if we set the COLLECT_NAMES environment variable, the problems
11058 # vanish in a puff of smoke.
11059 if test "X${COLLECT_NAMES+set}" != Xset; then
11060 COLLECT_NAMES=
11061 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011062 fi
11063 ;;
11064esac
11065
John Criswell47fdd832003-07-14 16:52:07 +000011066# Sed substitution that helps us do robust quoting. It backslashifies
11067# metacharacters that are still active within double-quoted strings.
11068Xsed='sed -e s/^X//'
11069sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11070
11071# Same as above, but do not quote variable references.
11072double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11073
11074# Sed substitution to delay expansion of an escaped shell variable in a
11075# double_quote_subst'ed string.
11076delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11077
11078# Sed substitution to avoid accidental globbing in evaled expressions
11079no_glob_subst='s/\*/\\\*/g'
11080
11081# Constants:
11082rm="rm -f"
11083
11084# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011085default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011086can_build_shared=yes
11087
11088# All known linkers require a `.a' archive for static linking (except M$VC,
11089# which needs '.lib').
11090libext=a
11091ltmain="$ac_aux_dir/ltmain.sh"
11092ofile="$default_ofile"
11093with_gnu_ld="$lt_cv_prog_gnu_ld"
11094
11095if test -n "$ac_tool_prefix"; then
11096 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11097set dummy ${ac_tool_prefix}ar; ac_word=$2
11098echo "$as_me:$LINENO: checking for $ac_word" >&5
11099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11100if test "${ac_cv_prog_AR+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11102else
11103 if test -n "$AR"; then
11104 ac_cv_prog_AR="$AR" # Let the user override the test.
11105else
11106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107for as_dir in $PATH
11108do
11109 IFS=$as_save_IFS
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11113 ac_cv_prog_AR="${ac_tool_prefix}ar"
11114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11115 break 2
11116 fi
11117done
11118done
11119
11120fi
11121fi
11122AR=$ac_cv_prog_AR
11123if test -n "$AR"; then
11124 echo "$as_me:$LINENO: result: $AR" >&5
11125echo "${ECHO_T}$AR" >&6
11126else
11127 echo "$as_me:$LINENO: result: no" >&5
11128echo "${ECHO_T}no" >&6
11129fi
11130
11131fi
11132if test -z "$ac_cv_prog_AR"; then
11133 ac_ct_AR=$AR
11134 # Extract the first word of "ar", so it can be a program name with args.
11135set dummy ar; ac_word=$2
11136echo "$as_me:$LINENO: checking for $ac_word" >&5
11137echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11138if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11140else
11141 if test -n "$ac_ct_AR"; then
11142 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11143else
11144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145for as_dir in $PATH
11146do
11147 IFS=$as_save_IFS
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11151 ac_cv_prog_ac_ct_AR="ar"
11152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11153 break 2
11154 fi
11155done
11156done
11157
11158 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11159fi
11160fi
11161ac_ct_AR=$ac_cv_prog_ac_ct_AR
11162if test -n "$ac_ct_AR"; then
11163 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11164echo "${ECHO_T}$ac_ct_AR" >&6
11165else
11166 echo "$as_me:$LINENO: result: no" >&5
11167echo "${ECHO_T}no" >&6
11168fi
11169
11170 AR=$ac_ct_AR
11171else
11172 AR="$ac_cv_prog_AR"
11173fi
11174
John Criswell7a73b802003-06-30 21:59:07 +000011175if test -n "$ac_tool_prefix"; then
11176 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11177set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11178echo "$as_me:$LINENO: checking for $ac_word" >&5
11179echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11180if test "${ac_cv_prog_RANLIB+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11182else
11183 if test -n "$RANLIB"; then
11184 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11185else
11186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187for as_dir in $PATH
11188do
11189 IFS=$as_save_IFS
11190 test -z "$as_dir" && as_dir=.
11191 for ac_exec_ext in '' $ac_executable_extensions; do
11192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11195 break 2
11196 fi
11197done
11198done
11199
11200fi
11201fi
11202RANLIB=$ac_cv_prog_RANLIB
11203if test -n "$RANLIB"; then
11204 echo "$as_me:$LINENO: result: $RANLIB" >&5
11205echo "${ECHO_T}$RANLIB" >&6
11206else
11207 echo "$as_me:$LINENO: result: no" >&5
11208echo "${ECHO_T}no" >&6
11209fi
11210
11211fi
11212if test -z "$ac_cv_prog_RANLIB"; then
11213 ac_ct_RANLIB=$RANLIB
11214 # Extract the first word of "ranlib", so it can be a program name with args.
11215set dummy ranlib; ac_word=$2
11216echo "$as_me:$LINENO: checking for $ac_word" >&5
11217echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11218if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220else
11221 if test -n "$ac_ct_RANLIB"; then
11222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11223else
11224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225for as_dir in $PATH
11226do
11227 IFS=$as_save_IFS
11228 test -z "$as_dir" && as_dir=.
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231 ac_cv_prog_ac_ct_RANLIB="ranlib"
11232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11233 break 2
11234 fi
11235done
11236done
11237
11238 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11239fi
11240fi
11241ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11242if test -n "$ac_ct_RANLIB"; then
11243 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11244echo "${ECHO_T}$ac_ct_RANLIB" >&6
11245else
11246 echo "$as_me:$LINENO: result: no" >&5
11247echo "${ECHO_T}no" >&6
11248fi
11249
11250 RANLIB=$ac_ct_RANLIB
11251else
11252 RANLIB="$ac_cv_prog_RANLIB"
11253fi
11254
11255if test -n "$ac_tool_prefix"; then
11256 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11257set dummy ${ac_tool_prefix}strip; ac_word=$2
11258echo "$as_me:$LINENO: checking for $ac_word" >&5
11259echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11260if test "${ac_cv_prog_STRIP+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262else
11263 if test -n "$STRIP"; then
11264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11265else
11266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267for as_dir in $PATH
11268do
11269 IFS=$as_save_IFS
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11275 break 2
11276 fi
11277done
11278done
11279
11280fi
11281fi
11282STRIP=$ac_cv_prog_STRIP
11283if test -n "$STRIP"; then
11284 echo "$as_me:$LINENO: result: $STRIP" >&5
11285echo "${ECHO_T}$STRIP" >&6
11286else
11287 echo "$as_me:$LINENO: result: no" >&5
11288echo "${ECHO_T}no" >&6
11289fi
11290
11291fi
11292if test -z "$ac_cv_prog_STRIP"; then
11293 ac_ct_STRIP=$STRIP
11294 # Extract the first word of "strip", so it can be a program name with args.
11295set dummy strip; ac_word=$2
11296echo "$as_me:$LINENO: checking for $ac_word" >&5
11297echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11298if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11300else
11301 if test -n "$ac_ct_STRIP"; then
11302 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11303else
11304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305for as_dir in $PATH
11306do
11307 IFS=$as_save_IFS
11308 test -z "$as_dir" && as_dir=.
11309 for ac_exec_ext in '' $ac_executable_extensions; do
11310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11311 ac_cv_prog_ac_ct_STRIP="strip"
11312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11313 break 2
11314 fi
11315done
11316done
11317
11318 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11319fi
11320fi
11321ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11322if test -n "$ac_ct_STRIP"; then
11323 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11324echo "${ECHO_T}$ac_ct_STRIP" >&6
11325else
11326 echo "$as_me:$LINENO: result: no" >&5
11327echo "${ECHO_T}no" >&6
11328fi
11329
11330 STRIP=$ac_ct_STRIP
11331else
11332 STRIP="$ac_cv_prog_STRIP"
11333fi
11334
11335
John Criswell7a73b802003-06-30 21:59:07 +000011336old_CC="$CC"
11337old_CFLAGS="$CFLAGS"
11338
11339# Set sane defaults for various variables
11340test -z "$AR" && AR=ar
11341test -z "$AR_FLAGS" && AR_FLAGS=cru
11342test -z "$AS" && AS=as
11343test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011344test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011345test -z "$DLLTOOL" && DLLTOOL=dlltool
11346test -z "$LD" && LD=ld
11347test -z "$LN_S" && LN_S="ln -s"
11348test -z "$MAGIC_CMD" && MAGIC_CMD=file
11349test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011350test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011351test -z "$OBJDUMP" && OBJDUMP=objdump
11352test -z "$RANLIB" && RANLIB=:
11353test -z "$STRIP" && STRIP=:
11354test -z "$ac_objext" && ac_objext=o
11355
John Criswell7a73b802003-06-30 21:59:07 +000011356# Determine commands to create old-style static archives.
11357old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11358old_postinstall_cmds='chmod 644 $oldlib'
11359old_postuninstall_cmds=
11360
11361if test -n "$RANLIB"; then
11362 case $host_os in
11363 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011364 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011365 ;;
11366 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011367 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011368 ;;
11369 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011370 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011371fi
11372
Reid Spencer2706f8c2004-09-19 23:53:36 +000011373cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11374
John Criswell47fdd832003-07-14 16:52:07 +000011375# Only perform the check for file, if the check method requires it
11376case $deplibs_check_method in
11377file_magic*)
11378 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11379 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11380echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11381if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011383else
John Criswell47fdd832003-07-14 16:52:07 +000011384 case $MAGIC_CMD in
11385[\\/*] | ?:[\\/]*)
11386 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11387 ;;
11388*)
11389 lt_save_MAGIC_CMD="$MAGIC_CMD"
11390 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11391 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11392 for ac_dir in $ac_dummy; do
11393 IFS="$lt_save_ifs"
11394 test -z "$ac_dir" && ac_dir=.
11395 if test -f $ac_dir/${ac_tool_prefix}file; then
11396 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11397 if test -n "$file_magic_test_file"; then
11398 case $deplibs_check_method in
11399 "file_magic "*)
11400 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11401 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11402 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11403 $EGREP "$file_magic_regex" > /dev/null; then
11404 :
11405 else
11406 cat <<EOF 1>&2
11407
11408*** Warning: the command libtool uses to detect shared libraries,
11409*** $file_magic_cmd, produces output that libtool cannot recognize.
11410*** The result is that libtool may fail to recognize shared libraries
11411*** as such. This will affect the creation of libtool libraries that
11412*** depend on shared libraries, but programs linked with such libtool
11413*** libraries will work regardless of this problem. Nevertheless, you
11414*** may want to report the problem to your system manager and/or to
11415*** bug-libtool@gnu.org
11416
11417EOF
11418 fi ;;
11419 esac
11420 fi
11421 break
11422 fi
11423 done
11424 IFS="$lt_save_ifs"
11425 MAGIC_CMD="$lt_save_MAGIC_CMD"
11426 ;;
11427esac
John Criswell7a73b802003-06-30 21:59:07 +000011428fi
John Criswell7a73b802003-06-30 21:59:07 +000011429
John Criswell47fdd832003-07-14 16:52:07 +000011430MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11431if test -n "$MAGIC_CMD"; then
11432 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11433echo "${ECHO_T}$MAGIC_CMD" >&6
11434else
11435 echo "$as_me:$LINENO: result: no" >&5
11436echo "${ECHO_T}no" >&6
11437fi
John Criswell7a73b802003-06-30 21:59:07 +000011438
John Criswell47fdd832003-07-14 16:52:07 +000011439if test -z "$lt_cv_path_MAGIC_CMD"; then
11440 if test -n "$ac_tool_prefix"; then
11441 echo "$as_me:$LINENO: checking for file" >&5
11442echo $ECHO_N "checking for file... $ECHO_C" >&6
11443if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11444 echo $ECHO_N "(cached) $ECHO_C" >&6
11445else
11446 case $MAGIC_CMD in
11447[\\/*] | ?:[\\/]*)
11448 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11449 ;;
11450*)
11451 lt_save_MAGIC_CMD="$MAGIC_CMD"
11452 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11453 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11454 for ac_dir in $ac_dummy; do
11455 IFS="$lt_save_ifs"
11456 test -z "$ac_dir" && ac_dir=.
11457 if test -f $ac_dir/file; then
11458 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11459 if test -n "$file_magic_test_file"; then
11460 case $deplibs_check_method in
11461 "file_magic "*)
11462 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11463 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11464 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11465 $EGREP "$file_magic_regex" > /dev/null; then
11466 :
11467 else
11468 cat <<EOF 1>&2
11469
11470*** Warning: the command libtool uses to detect shared libraries,
11471*** $file_magic_cmd, produces output that libtool cannot recognize.
11472*** The result is that libtool may fail to recognize shared libraries
11473*** as such. This will affect the creation of libtool libraries that
11474*** depend on shared libraries, but programs linked with such libtool
11475*** libraries will work regardless of this problem. Nevertheless, you
11476*** may want to report the problem to your system manager and/or to
11477*** bug-libtool@gnu.org
11478
11479EOF
11480 fi ;;
11481 esac
11482 fi
11483 break
11484 fi
11485 done
11486 IFS="$lt_save_ifs"
11487 MAGIC_CMD="$lt_save_MAGIC_CMD"
11488 ;;
11489esac
11490fi
11491
11492MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11493if test -n "$MAGIC_CMD"; then
11494 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11495echo "${ECHO_T}$MAGIC_CMD" >&6
11496else
11497 echo "$as_me:$LINENO: result: no" >&5
11498echo "${ECHO_T}no" >&6
11499fi
11500
11501 else
11502 MAGIC_CMD=:
11503 fi
11504fi
11505
11506 fi
11507 ;;
11508esac
11509
Reid Spencer17795972004-11-18 09:47:37 +000011510enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011511enable_win32_dll=no
11512
11513# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11514if test "${enable_libtool_lock+set}" = set; then
11515 enableval="$enable_libtool_lock"
11516
11517fi;
11518test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11519
John Criswell7a73b802003-06-30 21:59:07 +000011520
11521# Check whether --with-pic or --without-pic was given.
11522if test "${with_pic+set}" = set; then
11523 withval="$with_pic"
11524 pic_mode="$withval"
11525else
11526 pic_mode=default
11527fi;
11528test -z "$pic_mode" && pic_mode=default
11529
John Criswell47fdd832003-07-14 16:52:07 +000011530# Use C for the default configuration in the libtool script
11531tagname=
11532lt_save_CC="$CC"
11533ac_ext=c
11534ac_cpp='$CPP $CPPFLAGS'
11535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11537ac_compiler_gnu=$ac_cv_c_compiler_gnu
11538
11539
11540# Source file extension for C test sources.
11541ac_ext=c
11542
11543# Object file extension for compiled C test sources.
11544objext=o
11545objext=$objext
11546
11547# Code to be used in simple compile tests
11548lt_simple_compile_test_code="int some_variable = 0;\n"
11549
11550# Code to be used in simple link tests
11551lt_simple_link_test_code='int main(){return(0);}\n'
11552
11553
11554# If no C compiler was specified, use CC.
11555LTCC=${LTCC-"$CC"}
11556
11557# Allow CC to be a program name with arguments.
11558compiler=$CC
11559
11560
11561#
11562# Check for any special shared library compilation flags.
11563#
11564lt_prog_cc_shlib=
11565if test "$GCC" = no; then
11566 case $host_os in
11567 sco3.2v5*)
11568 lt_prog_cc_shlib='-belf'
11569 ;;
11570 esac
11571fi
11572if test -n "$lt_prog_cc_shlib"; then
11573 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11574echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11575 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11576 else
11577 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11578echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11579 lt_cv_prog_cc_can_build_shared=no
11580 fi
11581fi
11582
11583
11584#
11585# Check to make sure the static flag actually works.
11586#
11587echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11588echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11589if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591else
John Criswell47fdd832003-07-14 16:52:07 +000011592 lt_prog_compiler_static_works=no
11593 save_LDFLAGS="$LDFLAGS"
11594 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11595 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11596 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11597 # The compiler can only warn and ignore the option if not recognized
11598 # So say no if there are warnings
11599 if test -s conftest.err; then
11600 # Append any errors to the config.log.
11601 cat conftest.err 1>&5
11602 else
11603 lt_prog_compiler_static_works=yes
11604 fi
11605 fi
11606 $rm conftest*
11607 LDFLAGS="$save_LDFLAGS"
11608
11609fi
11610echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11611echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11612
11613if test x"$lt_prog_compiler_static_works" = xyes; then
11614 :
11615else
11616 lt_prog_compiler_static=
11617fi
11618
11619
11620
John Criswell47fdd832003-07-14 16:52:07 +000011621
11622lt_prog_compiler_no_builtin_flag=
11623
11624if test "$GCC" = yes; then
11625 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11626
Reid Spencer2706f8c2004-09-19 23:53:36 +000011627
11628echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011629echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11630if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632else
11633 lt_cv_prog_compiler_rtti_exceptions=no
11634 ac_outfile=conftest.$ac_objext
11635 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11636 lt_compiler_flag="-fno-rtti -fno-exceptions"
11637 # Insert the option either (1) after the last *FLAGS variable, or
11638 # (2) before a word containing "conftest.", or (3) at the end.
11639 # Note that $ac_compile itself does not contain backslashes and begins
11640 # with a dollar sign (not a hyphen), so the echo should work correctly.
11641 # The option is referenced via a variable to avoid confusing sed.
11642 lt_compile=`echo "$ac_compile" | $SED \
11643 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11645 -e 's:$: $lt_compiler_flag:'`
Reid Spencer86901802004-12-08 23:07:27 +000011646 (eval echo "\"\$as_me:11646: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011647 (eval "$lt_compile" 2>conftest.err)
11648 ac_status=$?
11649 cat conftest.err >&5
Reid Spencer86901802004-12-08 23:07:27 +000011650 echo "$as_me:11650: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011651 if (exit $ac_status) && test -s "$ac_outfile"; then
11652 # The compiler can only warn and ignore the option if not recognized
11653 # So say no if there are warnings
11654 if test ! -s conftest.err; then
11655 lt_cv_prog_compiler_rtti_exceptions=yes
11656 fi
11657 fi
11658 $rm conftest*
11659
11660fi
11661echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11662echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11663
11664if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11665 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11666else
11667 :
11668fi
11669
11670fi
11671
11672lt_prog_compiler_wl=
11673lt_prog_compiler_pic=
11674lt_prog_compiler_static=
11675
11676echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11677echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011678
11679 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011680 lt_prog_compiler_wl='-Wl,'
11681 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011682
11683 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011684 aix*)
11685 # All AIX code is PIC.
11686 if test "$host_cpu" = ia64; then
11687 # AIX 5 now supports IA64 processor
11688 lt_prog_compiler_static='-Bstatic'
11689 fi
John Criswell7a73b802003-06-30 21:59:07 +000011690 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011691
John Criswell7a73b802003-06-30 21:59:07 +000011692 amigaos*)
11693 # FIXME: we need at least 68020 code to build shared libraries, but
11694 # adding the `-m68020' flag to GCC prevents building anything better,
11695 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011696 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011697 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011698
11699 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011700 # PIC is the default for these OSes.
11701 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011702
11703 mingw* | pw32* | os2*)
11704 # This hack is so that the source file can tell whether it is being
11705 # built for inclusion in a dll (and should export symbols for example).
11706 lt_prog_compiler_pic='-DDLL_EXPORT'
11707 ;;
11708
John Criswell7a73b802003-06-30 21:59:07 +000011709 darwin* | rhapsody*)
11710 # PIC is the default on this platform
11711 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011712 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011713 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011714
11715 msdosdjgpp*)
11716 # Just because we use GCC doesn't mean we suddenly get shared libraries
11717 # on systems that don't support them.
11718 lt_prog_compiler_can_build_shared=no
11719 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011720 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011721
John Criswell7a73b802003-06-30 21:59:07 +000011722 sysv4*MP*)
11723 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011724 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011725 fi
11726 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011727
11728 hpux*)
11729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11730 # not for PA HP-UX.
11731 case "$host_cpu" in
11732 hppa*64*|ia64*)
11733 # +Z the default
11734 ;;
11735 *)
11736 lt_prog_compiler_pic='-fPIC'
11737 ;;
11738 esac
11739 ;;
11740
John Criswell7a73b802003-06-30 21:59:07 +000011741 *)
John Criswell47fdd832003-07-14 16:52:07 +000011742 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011743 ;;
11744 esac
11745 else
John Criswell47fdd832003-07-14 16:52:07 +000011746 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011747 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011748 aix*)
11749 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011750 if test "$host_cpu" = ia64; then
11751 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011752 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011753 else
John Criswell47fdd832003-07-14 16:52:07 +000011754 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011755 fi
11756 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011757 darwin*)
11758 # PIC is the default on this platform
11759 # Common symbols not allowed in MH_DYLIB files
11760 case "$cc_basename" in
11761 xlc*)
11762 lt_prog_compiler_pic='-qnocommon'
11763 lt_prog_compiler_wl='-Wl,'
11764 ;;
11765 esac
11766 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011767
John Criswell47fdd832003-07-14 16:52:07 +000011768 mingw* | pw32* | os2*)
11769 # This hack is so that the source file can tell whether it is being
11770 # built for inclusion in a dll (and should export symbols for example).
11771 lt_prog_compiler_pic='-DDLL_EXPORT'
11772 ;;
11773
John Criswell7a73b802003-06-30 21:59:07 +000011774 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011775 lt_prog_compiler_wl='-Wl,'
11776 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11777 # not for PA HP-UX.
11778 case "$host_cpu" in
11779 hppa*64*|ia64*)
11780 # +Z the default
11781 ;;
11782 *)
11783 lt_prog_compiler_pic='+Z'
11784 ;;
11785 esac
11786 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11787 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011788 ;;
11789
John Criswell47fdd832003-07-14 16:52:07 +000011790 irix5* | irix6* | nonstopux*)
11791 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011792 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011793 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011794 ;;
11795
11796 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011797 lt_prog_compiler_pic='-KPIC'
11798 lt_prog_compiler_static='-Bstatic'
11799 ;;
11800
11801 linux*)
11802 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011803 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011804 lt_prog_compiler_wl='-Wl,'
11805 lt_prog_compiler_pic='-KPIC'
11806 lt_prog_compiler_static='-static'
11807 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011808 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011809 lt_prog_compiler_wl='-Wl,'
11810 # All Alpha code is PIC.
11811 lt_prog_compiler_static='-non_shared'
11812 ;;
11813 esac
John Criswell7a73b802003-06-30 21:59:07 +000011814 ;;
11815
11816 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011817 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011818 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011819 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011820 ;;
11821
11822 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011823 lt_prog_compiler_pic='-Kpic'
11824 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011825 ;;
11826
11827 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011828 lt_prog_compiler_wl='-Wl,'
11829 lt_prog_compiler_pic='-KPIC'
11830 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011831 ;;
11832
11833 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011834 lt_prog_compiler_wl='-Qoption ld '
11835 lt_prog_compiler_pic='-PIC'
11836 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011837 ;;
11838
11839 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011840 lt_prog_compiler_wl='-Wl,'
11841 lt_prog_compiler_pic='-KPIC'
11842 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011843 ;;
11844
11845 sysv4*MP*)
11846 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011847 lt_prog_compiler_pic='-Kconform_pic'
11848 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011849 fi
11850 ;;
11851
John Criswell47fdd832003-07-14 16:52:07 +000011852 uts4*)
11853 lt_prog_compiler_pic='-pic'
11854 lt_prog_compiler_static='-Bstatic'
11855 ;;
11856
John Criswell7a73b802003-06-30 21:59:07 +000011857 *)
John Criswell47fdd832003-07-14 16:52:07 +000011858 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011859 ;;
11860 esac
11861 fi
11862
John Criswell47fdd832003-07-14 16:52:07 +000011863echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11864echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011865
John Criswell47fdd832003-07-14 16:52:07 +000011866#
11867# Check to make sure the PIC flag actually works.
11868#
11869if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011870
11871echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011872echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11873if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011874 echo $ECHO_N "(cached) $ECHO_C" >&6
11875else
John Criswell47fdd832003-07-14 16:52:07 +000011876 lt_prog_compiler_pic_works=no
11877 ac_outfile=conftest.$ac_objext
11878 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11879 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11880 # Insert the option either (1) after the last *FLAGS variable, or
11881 # (2) before a word containing "conftest.", or (3) at the end.
11882 # Note that $ac_compile itself does not contain backslashes and begins
11883 # with a dollar sign (not a hyphen), so the echo should work correctly.
11884 # The option is referenced via a variable to avoid confusing sed.
11885 lt_compile=`echo "$ac_compile" | $SED \
11886 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11888 -e 's:$: $lt_compiler_flag:'`
Reid Spencer86901802004-12-08 23:07:27 +000011889 (eval echo "\"\$as_me:11889: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011890 (eval "$lt_compile" 2>conftest.err)
11891 ac_status=$?
11892 cat conftest.err >&5
Reid Spencer86901802004-12-08 23:07:27 +000011893 echo "$as_me:11893: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011894 if (exit $ac_status) && test -s "$ac_outfile"; then
11895 # The compiler can only warn and ignore the option if not recognized
11896 # So say no if there are warnings
11897 if test ! -s conftest.err; then
11898 lt_prog_compiler_pic_works=yes
11899 fi
11900 fi
11901 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000011902
John Criswell47fdd832003-07-14 16:52:07 +000011903fi
11904echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11905echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011906
John Criswell47fdd832003-07-14 16:52:07 +000011907if test x"$lt_prog_compiler_pic_works" = xyes; then
11908 case $lt_prog_compiler_pic in
11909 "" | " "*) ;;
11910 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11911 esac
John Criswell7a73b802003-06-30 21:59:07 +000011912else
John Criswell47fdd832003-07-14 16:52:07 +000011913 lt_prog_compiler_pic=
11914 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011915fi
11916
John Criswell7a73b802003-06-30 21:59:07 +000011917fi
John Criswell47fdd832003-07-14 16:52:07 +000011918case "$host_os" in
11919 # For platforms which do not support PIC, -DPIC is meaningless:
11920 *djgpp*)
11921 lt_prog_compiler_pic=
11922 ;;
11923 *)
11924 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11925 ;;
11926esac
John Criswell7a73b802003-06-30 21:59:07 +000011927
John Criswell7a73b802003-06-30 21:59:07 +000011928echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11929echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000011930if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011931 echo $ECHO_N "(cached) $ECHO_C" >&6
11932else
John Criswell47fdd832003-07-14 16:52:07 +000011933 lt_cv_prog_compiler_c_o=no
11934 $rm -r conftest 2>/dev/null
11935 mkdir conftest
11936 cd conftest
11937 mkdir out
11938 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000011939
John Criswell47fdd832003-07-14 16:52:07 +000011940 lt_compiler_flag="-o out/conftest2.$ac_objext"
11941 # Insert the option either (1) after the last *FLAGS variable, or
11942 # (2) before a word containing "conftest.", or (3) at the end.
11943 # Note that $ac_compile itself does not contain backslashes and begins
11944 # with a dollar sign (not a hyphen), so the echo should work correctly.
11945 lt_compile=`echo "$ac_compile" | $SED \
11946 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11947 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11948 -e 's:$: $lt_compiler_flag:'`
Reid Spencer86901802004-12-08 23:07:27 +000011949 (eval echo "\"\$as_me:11949: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011950 (eval "$lt_compile" 2>out/conftest.err)
11951 ac_status=$?
11952 cat out/conftest.err >&5
Reid Spencer86901802004-12-08 23:07:27 +000011953 echo "$as_me:11953: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011954 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11955 then
11956 # The compiler can only warn and ignore the option if not recognized
11957 # So say no if there are warnings
11958 if test ! -s out/conftest.err; then
11959 lt_cv_prog_compiler_c_o=yes
11960 fi
11961 fi
11962 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000011963 $rm conftest*
11964 # SGI C++ compiler will create directory out/ii_files/ for
11965 # template instantiation
11966 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11967 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000011968 cd ..
11969 rmdir conftest
11970 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000011971
11972fi
John Criswell47fdd832003-07-14 16:52:07 +000011973echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11974echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011975
John Criswell7a73b802003-06-30 21:59:07 +000011976
John Criswell7a73b802003-06-30 21:59:07 +000011977hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000011978if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000011979 # do not overwrite the value of need_locks provided by the user
11980 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11981echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11982 hard_links=yes
11983 $rm conftest*
11984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11985 touch conftest.a
11986 ln conftest.a conftest.b 2>&5 || hard_links=no
11987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11988 echo "$as_me:$LINENO: result: $hard_links" >&5
11989echo "${ECHO_T}$hard_links" >&6
11990 if test "$hard_links" = no; then
11991 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11992echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11993 need_locks=warn
11994 fi
11995else
11996 need_locks=no
11997fi
John Criswell7a73b802003-06-30 21:59:07 +000011998
John Criswell47fdd832003-07-14 16:52:07 +000011999echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12000echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12001
12002 runpath_var=
12003 allow_undefined_flag=
12004 enable_shared_with_static_runtimes=no
12005 archive_cmds=
12006 archive_expsym_cmds=
12007 old_archive_From_new_cmds=
12008 old_archive_from_expsyms_cmds=
12009 export_dynamic_flag_spec=
12010 whole_archive_flag_spec=
12011 thread_safe_flag_spec=
12012 hardcode_libdir_flag_spec=
12013 hardcode_libdir_flag_spec_ld=
12014 hardcode_libdir_separator=
12015 hardcode_direct=no
12016 hardcode_minus_L=no
12017 hardcode_shlibpath_var=unsupported
12018 link_all_deplibs=unknown
12019 hardcode_automatic=no
12020 module_cmds=
12021 module_expsym_cmds=
12022 always_export_symbols=no
12023 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12024 # include_expsyms should be a list of space-separated symbols to be *always*
12025 # included in the symbol list
12026 include_expsyms=
12027 # exclude_expsyms can be an extended regexp of symbols to exclude
12028 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12029 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12030 # as well as any symbol that contains `d'.
12031 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12032 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12033 # platforms (ab)use it in PIC code, but their linkers get confused if
12034 # the symbol is explicitly referenced. Since portable code cannot
12035 # rely on this symbol name, it's probably fine to never include it in
12036 # preloaded symbol tables.
12037 extract_expsyms_cmds=
12038
12039 case $host_os in
12040 cygwin* | mingw* | pw32*)
12041 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12042 # When not using gcc, we currently assume that we are using
12043 # Microsoft Visual C++.
12044 if test "$GCC" != yes; then
12045 with_gnu_ld=no
12046 fi
12047 ;;
12048 openbsd*)
12049 with_gnu_ld=no
12050 ;;
12051 esac
12052
12053 ld_shlibs=yes
12054 if test "$with_gnu_ld" = yes; then
12055 # If archive_cmds runs LD, not CC, wlarc should be empty
12056 wlarc='${wl}'
12057
12058 # See if GNU ld supports shared libraries.
12059 case $host_os in
12060 aix3* | aix4* | aix5*)
12061 # On AIX/PPC, the GNU linker is very broken
12062 if test "$host_cpu" != ia64; then
12063 ld_shlibs=no
12064 cat <<EOF 1>&2
12065
12066*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12067*** to be unable to reliably create shared libraries on AIX.
12068*** Therefore, libtool is disabling shared libraries support. If you
12069*** really care for shared libraries, you may want to modify your PATH
12070*** so that a non-GNU linker is found, and then restart.
12071
12072EOF
12073 fi
12074 ;;
12075
12076 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012077 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 +000012078 hardcode_libdir_flag_spec='-L$libdir'
12079 hardcode_minus_L=yes
12080
12081 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12082 # that the semantics of dynamic libraries on AmigaOS, at least up
12083 # to version 4, is to share data among multiple programs linked
12084 # with the same dynamic library. Since this doesn't match the
12085 # behavior of shared libraries on other platforms, we can't use
12086 # them.
12087 ld_shlibs=no
12088 ;;
12089
12090 beos*)
12091 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12092 allow_undefined_flag=unsupported
12093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12094 # support --undefined. This deserves some investigation. FIXME
12095 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12096 else
12097 ld_shlibs=no
12098 fi
12099 ;;
12100
12101 cygwin* | mingw* | pw32*)
12102 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12103 # as there is no search path for DLLs.
12104 hardcode_libdir_flag_spec='-L$libdir'
12105 allow_undefined_flag=unsupported
12106 always_export_symbols=no
12107 enable_shared_with_static_runtimes=yes
12108 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12109
12110 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12111 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12112 # If the export-symbols file already is a .def file (1st line
12113 # is EXPORTS), use it as is; otherwise, prepend...
12114 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12115 cp $export_symbols $output_objdir/$soname.def;
12116 else
12117 echo EXPORTS > $output_objdir/$soname.def;
12118 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012119 fi~
12120 $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 +000012121 else
12122 ld_shlibs=no
12123 fi
12124 ;;
12125
12126 netbsd*)
12127 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12128 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12129 wlarc=
12130 else
12131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12132 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12133 fi
12134 ;;
12135
12136 solaris* | sysv5*)
12137 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12138 ld_shlibs=no
12139 cat <<EOF 1>&2
12140
12141*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12142*** create shared libraries on Solaris systems. Therefore, libtool
12143*** is disabling shared libraries support. We urge you to upgrade GNU
12144*** binutils to release 2.9.1 or newer. Another option is to modify
12145*** your PATH or compiler configuration so that the native linker is
12146*** used, and then restart.
12147
12148EOF
12149 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12151 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12152 else
12153 ld_shlibs=no
12154 fi
12155 ;;
12156
12157 sunos4*)
12158 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12159 wlarc=
12160 hardcode_direct=yes
12161 hardcode_shlibpath_var=no
12162 ;;
12163
Reid Spencer2706f8c2004-09-19 23:53:36 +000012164 linux*)
12165 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12166 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12167 archive_cmds="$tmp_archive_cmds"
12168 supports_anon_versioning=no
12169 case `$LD -v 2>/dev/null` in
12170 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12171 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12172 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12173 *\ 2.11.*) ;; # other 2.11 versions
12174 *) supports_anon_versioning=yes ;;
12175 esac
12176 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012177 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12178cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12179$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012180 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12181 else
12182 archive_expsym_cmds="$tmp_archive_cmds"
12183 fi
12184 else
12185 ld_shlibs=no
12186 fi
12187 ;;
12188
John Criswell47fdd832003-07-14 16:52:07 +000012189 *)
12190 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12193 else
12194 ld_shlibs=no
12195 fi
12196 ;;
12197 esac
12198
12199 if test "$ld_shlibs" = yes; then
12200 runpath_var=LD_RUN_PATH
12201 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12202 export_dynamic_flag_spec='${wl}--export-dynamic'
12203 # ancient GNU ld didn't support --whole-archive et. al.
12204 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12205 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12206 else
12207 whole_archive_flag_spec=
12208 fi
12209 fi
12210 else
12211 # PORTME fill in a description of your system's linker (not GNU ld)
12212 case $host_os in
12213 aix3*)
12214 allow_undefined_flag=unsupported
12215 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012216 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 +000012217 # Note: this linker hardcodes the directories in LIBPATH if there
12218 # are no directories specified by -L.
12219 hardcode_minus_L=yes
12220 if test "$GCC" = yes && test -z "$link_static_flag"; then
12221 # Neither direct hardcoding nor static linking is supported with a
12222 # broken collect2.
12223 hardcode_direct=unsupported
12224 fi
12225 ;;
12226
12227 aix4* | aix5*)
12228 if test "$host_cpu" = ia64; then
12229 # On IA64, the linker does run time linking by default, so we don't
12230 # have to do anything special.
12231 aix_use_runtimelinking=no
12232 exp_sym_flag='-Bexport'
12233 no_entry_flag=""
12234 else
12235 # If we're using GNU nm, then we don't want the "-C" option.
12236 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12237 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12238 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'
12239 else
12240 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'
12241 fi
12242 aix_use_runtimelinking=no
12243
12244 # Test if we are trying to use run time linking or normal
12245 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12246 # need to do runtime linking.
12247 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12248 for ld_flag in $LDFLAGS; do
12249 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12250 aix_use_runtimelinking=yes
12251 break
12252 fi
12253 done
12254 esac
12255
12256 exp_sym_flag='-bexport'
12257 no_entry_flag='-bnoentry'
12258 fi
12259
12260 # When large executables or shared objects are built, AIX ld can
12261 # have problems creating the table of contents. If linking a library
12262 # or program results in "error TOC overflow" add -mminimal-toc to
12263 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12264 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12265
12266 archive_cmds=''
12267 hardcode_direct=yes
12268 hardcode_libdir_separator=':'
12269 link_all_deplibs=yes
12270
12271 if test "$GCC" = yes; then
12272 case $host_os in aix4.012|aix4.012.*)
12273 # We only want to do this on AIX 4.2 and lower, the check
12274 # below for broken collect2 doesn't work under 4.3+
12275 collect2name=`${CC} -print-prog-name=collect2`
12276 if test -f "$collect2name" && \
12277 strings "$collect2name" | grep resolve_lib_name >/dev/null
12278 then
12279 # We have reworked collect2
12280 hardcode_direct=yes
12281 else
12282 # We have old collect2
12283 hardcode_direct=unsupported
12284 # It fails to find uninstalled libraries when the uninstalled
12285 # path is not listed in the libpath. Setting hardcode_minus_L
12286 # to unsupported forces relinking
12287 hardcode_minus_L=yes
12288 hardcode_libdir_flag_spec='-L$libdir'
12289 hardcode_libdir_separator=
12290 fi
12291 esac
12292 shared_flag='-shared'
12293 else
12294 # not using gcc
12295 if test "$host_cpu" = ia64; then
12296 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12297 # chokes on -Wl,-G. The following line is correct:
12298 shared_flag='-G'
12299 else
12300 if test "$aix_use_runtimelinking" = yes; then
12301 shared_flag='${wl}-G'
12302 else
12303 shared_flag='${wl}-bM:SRE'
12304 fi
12305 fi
12306 fi
12307
12308 # It seems that -bexpall does not export symbols beginning with
12309 # underscore (_), so it is better to generate a list of symbols to export.
12310 always_export_symbols=yes
12311 if test "$aix_use_runtimelinking" = yes; then
12312 # Warning - without using the other runtime loading flags (-brtl),
12313 # -berok will link without error, but may produce a broken library.
12314 allow_undefined_flag='-berok'
12315 # Determine the default libpath from the value encoded in an empty executable.
12316 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012317/* confdefs.h. */
12318_ACEOF
12319cat confdefs.h >>conftest.$ac_ext
12320cat >>conftest.$ac_ext <<_ACEOF
12321/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012322
John Criswell7a73b802003-06-30 21:59:07 +000012323int
12324main ()
12325{
John Criswell47fdd832003-07-14 16:52:07 +000012326
John Criswell7a73b802003-06-30 21:59:07 +000012327 ;
12328 return 0;
12329}
12330_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012331rm -f conftest.$ac_objext conftest$ac_exeext
12332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012333 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012334 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012335 grep -v '^ *+' conftest.er1 >conftest.err
12336 rm -f conftest.er1
12337 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012340 { ac_try='test -z "$ac_c_werror_flag"
12341 || test ! -s conftest.err'
12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012353
John Criswell47fdd832003-07-14 16:52:07 +000012354aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12355}'`
12356# Check for a 64-bit object if we didn't find anything.
12357if 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; }
12358}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012359else
12360 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012361sed 's/^/| /' conftest.$ac_ext >&5
12362
John Criswell7a73b802003-06-30 21:59:07 +000012363fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012364rm -f conftest.err conftest.$ac_objext \
12365 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012366if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012367
John Criswell47fdd832003-07-14 16:52:07 +000012368 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12369 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"
12370 else
12371 if test "$host_cpu" = ia64; then
12372 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12373 allow_undefined_flag="-z nodefs"
12374 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"
12375 else
12376 # Determine the default libpath from the value encoded in an empty executable.
12377 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012378/* confdefs.h. */
12379_ACEOF
12380cat confdefs.h >>conftest.$ac_ext
12381cat >>conftest.$ac_ext <<_ACEOF
12382/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012383
John Criswell47fdd832003-07-14 16:52:07 +000012384int
12385main ()
12386{
John Criswell7a73b802003-06-30 21:59:07 +000012387
John Criswell47fdd832003-07-14 16:52:07 +000012388 ;
12389 return 0;
12390}
12391_ACEOF
12392rm -f conftest.$ac_objext conftest$ac_exeext
12393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012394 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012395 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012401 { ac_try='test -z "$ac_c_werror_flag"
12402 || test ! -s conftest.err'
12403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404 (eval $ac_try) 2>&5
12405 ac_status=$?
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); }; } &&
12408 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012414
John Criswell47fdd832003-07-14 16:52:07 +000012415aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12416}'`
12417# Check for a 64-bit object if we didn't find anything.
12418if 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; }
12419}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012420else
John Criswell47fdd832003-07-14 16:52:07 +000012421 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012422sed 's/^/| /' conftest.$ac_ext >&5
12423
John Criswell47fdd832003-07-14 16:52:07 +000012424fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012425rm -f conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012427if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012428
John Criswell47fdd832003-07-14 16:52:07 +000012429 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12430 # Warning - without using the other run time loading flags,
12431 # -berok will link without error, but may produce a broken library.
12432 no_undefined_flag=' ${wl}-bernotok'
12433 allow_undefined_flag=' ${wl}-berok'
12434 # -bexpall does not export symbols beginning with underscore (_)
12435 always_export_symbols=yes
12436 # Exported symbols can be pulled into shared objects from archives
12437 whole_archive_flag_spec=' '
12438 archive_cmds_need_lc=yes
12439 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012440 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 +000012441 fi
12442 fi
John Criswell7a73b802003-06-30 21:59:07 +000012443 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012444
12445 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012446 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 +000012447 hardcode_libdir_flag_spec='-L$libdir'
12448 hardcode_minus_L=yes
12449 # see comment about different semantics on the GNU ld section
12450 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012451 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012452
Reid Spencer2706f8c2004-09-19 23:53:36 +000012453 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012454 export_dynamic_flag_spec=-rdynamic
12455 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012456
John Criswell47fdd832003-07-14 16:52:07 +000012457 cygwin* | mingw* | pw32*)
12458 # When not using gcc, we currently assume that we are using
12459 # Microsoft Visual C++.
12460 # hardcode_libdir_flag_spec is actually meaningless, as there is
12461 # no search path for DLLs.
12462 hardcode_libdir_flag_spec=' '
12463 allow_undefined_flag=unsupported
12464 # Tell ltmain to make .lib files, not .a files.
12465 libext=lib
12466 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012467 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012468 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012469 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012470 # The linker will automatically build a .lib file if we build a DLL.
12471 old_archive_From_new_cmds='true'
12472 # FIXME: Should let the user specify the lib program.
12473 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12474 fix_srcfile_path='`cygpath -w "$srcfile"`'
12475 enable_shared_with_static_runtimes=yes
12476 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012477
John Criswell47fdd832003-07-14 16:52:07 +000012478 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012479 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012480 rhapsody* | darwin1.[012])
12481 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12482 ;;
12483 *) # Darwin 1.3 on
12484 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12485 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12486 else
12487 case ${MACOSX_DEPLOYMENT_TARGET} in
12488 10.[012])
12489 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12490 ;;
12491 10.*)
12492 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12493 ;;
12494 esac
12495 fi
12496 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012497 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012498 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012499 hardcode_direct=no
12500 hardcode_automatic=yes
12501 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012502 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012503 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012504 if test "$GCC" = yes ; then
12505 output_verbose_link_cmd='echo'
12506 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12507 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12508 # 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 +000012509 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}'
12510 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 +000012511 else
12512 case "$cc_basename" in
12513 xlc*)
12514 output_verbose_link_cmd='echo'
12515 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12516 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12517 # 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 +000012518 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}'
12519 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 +000012520 ;;
12521 *)
12522 ld_shlibs=no
12523 ;;
12524 esac
John Criswell7a73b802003-06-30 21:59:07 +000012525 fi
John Criswell47fdd832003-07-14 16:52:07 +000012526 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012527
John Criswell47fdd832003-07-14 16:52:07 +000012528 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012530 hardcode_libdir_flag_spec='-L$libdir'
12531 hardcode_shlibpath_var=no
12532 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012533
John Criswell47fdd832003-07-14 16:52:07 +000012534 freebsd1*)
12535 ld_shlibs=no
12536 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012537
John Criswell47fdd832003-07-14 16:52:07 +000012538 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12539 # support. Future versions do this automatically, but an explicit c++rt0.o
12540 # does not break anything, and helps significantly (at the cost of a little
12541 # extra space).
12542 freebsd2.2*)
12543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12544 hardcode_libdir_flag_spec='-R$libdir'
12545 hardcode_direct=yes
12546 hardcode_shlibpath_var=no
12547 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012548
John Criswell47fdd832003-07-14 16:52:07 +000012549 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12550 freebsd2*)
12551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12552 hardcode_direct=yes
12553 hardcode_minus_L=yes
12554 hardcode_shlibpath_var=no
12555 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012556
John Criswell47fdd832003-07-14 16:52:07 +000012557 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012558 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012559 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12560 hardcode_libdir_flag_spec='-R$libdir'
12561 hardcode_direct=yes
12562 hardcode_shlibpath_var=no
12563 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012564
John Criswell47fdd832003-07-14 16:52:07 +000012565 hpux9*)
12566 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012567 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 +000012568 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012569 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 +000012570 fi
12571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12572 hardcode_libdir_separator=:
12573 hardcode_direct=yes
12574
12575 # hardcode_minus_L: Not really in the search PATH,
12576 # but as the default location of the library.
12577 hardcode_minus_L=yes
12578 export_dynamic_flag_spec='${wl}-E'
12579 ;;
12580
12581 hpux10* | hpux11*)
12582 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12583 case "$host_cpu" in
12584 hppa*64*|ia64*)
12585 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12586 ;;
12587 *)
12588 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12589 ;;
12590 esac
12591 else
12592 case "$host_cpu" in
12593 hppa*64*|ia64*)
12594 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12595 ;;
12596 *)
12597 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12598 ;;
12599 esac
12600 fi
12601 if test "$with_gnu_ld" = no; then
12602 case "$host_cpu" in
12603 hppa*64*)
12604 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12605 hardcode_libdir_flag_spec_ld='+b $libdir'
12606 hardcode_libdir_separator=:
12607 hardcode_direct=no
12608 hardcode_shlibpath_var=no
12609 ;;
12610 ia64*)
12611 hardcode_libdir_flag_spec='-L$libdir'
12612 hardcode_direct=no
12613 hardcode_shlibpath_var=no
12614
12615 # hardcode_minus_L: Not really in the search PATH,
12616 # but as the default location of the library.
12617 hardcode_minus_L=yes
12618 ;;
12619 *)
12620 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12621 hardcode_libdir_separator=:
12622 hardcode_direct=yes
12623 export_dynamic_flag_spec='${wl}-E'
12624
12625 # hardcode_minus_L: Not really in the search PATH,
12626 # but as the default location of the library.
12627 hardcode_minus_L=yes
12628 ;;
12629 esac
12630 fi
12631 ;;
12632
12633 irix5* | irix6* | nonstopux*)
12634 if test "$GCC" = yes; then
12635 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'
12636 else
12637 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'
12638 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12639 fi
12640 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12641 hardcode_libdir_separator=:
12642 link_all_deplibs=yes
12643 ;;
12644
12645 netbsd*)
12646 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12647 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12648 else
12649 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12650 fi
12651 hardcode_libdir_flag_spec='-R$libdir'
12652 hardcode_direct=yes
12653 hardcode_shlibpath_var=no
12654 ;;
12655
12656 newsos6)
12657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12658 hardcode_direct=yes
12659 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12660 hardcode_libdir_separator=:
12661 hardcode_shlibpath_var=no
12662 ;;
12663
12664 openbsd*)
12665 hardcode_direct=yes
12666 hardcode_shlibpath_var=no
12667 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12668 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012669 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 +000012670 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12671 export_dynamic_flag_spec='${wl}-E'
12672 else
12673 case $host_os in
12674 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12676 hardcode_libdir_flag_spec='-R$libdir'
12677 ;;
12678 *)
12679 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12681 ;;
12682 esac
12683 fi
12684 ;;
12685
12686 os2*)
12687 hardcode_libdir_flag_spec='-L$libdir'
12688 hardcode_minus_L=yes
12689 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012690 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 +000012691 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12692 ;;
12693
12694 osf3*)
12695 if test "$GCC" = yes; then
12696 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12697 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'
12698 else
12699 allow_undefined_flag=' -expect_unresolved \*'
12700 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'
12701 fi
12702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12703 hardcode_libdir_separator=:
12704 ;;
12705
12706 osf4* | osf5*) # as osf3* with the addition of -msym flag
12707 if test "$GCC" = yes; then
12708 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12709 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'
12710 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12711 else
12712 allow_undefined_flag=' -expect_unresolved \*'
12713 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 +000012714 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12715 $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'
12716
John Criswell47fdd832003-07-14 16:52:07 +000012717 # Both c and cxx compiler support -rpath directly
12718 hardcode_libdir_flag_spec='-rpath $libdir'
12719 fi
12720 hardcode_libdir_separator=:
12721 ;;
12722
12723 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012724 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12725 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012726 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012727 runpath_var=LD_RUN_PATH
12728 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012729 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012730
John Criswell47fdd832003-07-14 16:52:07 +000012731 solaris*)
12732 no_undefined_flag=' -z text'
12733 if test "$GCC" = yes; then
12734 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012735 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12736 $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 +000012737 else
12738 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012739 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12740 $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 +000012741 fi
12742 hardcode_libdir_flag_spec='-R$libdir'
12743 hardcode_shlibpath_var=no
12744 case $host_os in
12745 solaris2.[0-5] | solaris2.[0-5].*) ;;
12746 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12747 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12748 esac
12749 link_all_deplibs=yes
12750 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012751
John Criswell47fdd832003-07-14 16:52:07 +000012752 sunos4*)
12753 if test "x$host_vendor" = xsequent; then
12754 # Use $CC to link under sequent, because it throws in some extra .o
12755 # files that make .init and .fini sections work.
12756 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12757 else
12758 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12759 fi
12760 hardcode_libdir_flag_spec='-L$libdir'
12761 hardcode_direct=yes
12762 hardcode_minus_L=yes
12763 hardcode_shlibpath_var=no
12764 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012765
John Criswell47fdd832003-07-14 16:52:07 +000012766 sysv4)
12767 case $host_vendor in
12768 sni)
12769 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12770 hardcode_direct=yes # is this really true???
12771 ;;
12772 siemens)
12773 ## LD is ld it makes a PLAMLIB
12774 ## CC just makes a GrossModule.
12775 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12776 reload_cmds='$CC -r -o $output$reload_objs'
12777 hardcode_direct=no
12778 ;;
12779 motorola)
12780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12781 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12782 ;;
12783 esac
12784 runpath_var='LD_RUN_PATH'
12785 hardcode_shlibpath_var=no
12786 ;;
12787
12788 sysv4.3*)
12789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12790 hardcode_shlibpath_var=no
12791 export_dynamic_flag_spec='-Bexport'
12792 ;;
12793
12794 sysv4*MP*)
12795 if test -d /usr/nec; then
12796 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12797 hardcode_shlibpath_var=no
12798 runpath_var=LD_RUN_PATH
12799 hardcode_runpath_var=yes
12800 ld_shlibs=yes
12801 fi
12802 ;;
12803
12804 sysv4.2uw2*)
12805 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12806 hardcode_direct=yes
12807 hardcode_minus_L=no
12808 hardcode_shlibpath_var=no
12809 hardcode_runpath_var=yes
12810 runpath_var=LD_RUN_PATH
12811 ;;
12812
12813 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12814 no_undefined_flag='${wl}-z ${wl}text'
12815 if test "$GCC" = yes; then
12816 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12817 else
12818 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12819 fi
12820 runpath_var='LD_RUN_PATH'
12821 hardcode_shlibpath_var=no
12822 ;;
12823
12824 sysv5*)
12825 no_undefined_flag=' -z text'
12826 # $CC -shared without GNU ld will not create a library from C++
12827 # object files and a static libstdc++, better avoid it by now
12828 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012829 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12830 $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 +000012831 hardcode_libdir_flag_spec=
12832 hardcode_shlibpath_var=no
12833 runpath_var='LD_RUN_PATH'
12834 ;;
12835
12836 uts4*)
12837 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12838 hardcode_libdir_flag_spec='-L$libdir'
12839 hardcode_shlibpath_var=no
12840 ;;
12841
12842 *)
12843 ld_shlibs=no
12844 ;;
12845 esac
12846 fi
12847
John Criswell7a73b802003-06-30 21:59:07 +000012848echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12849echo "${ECHO_T}$ld_shlibs" >&6
12850test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012851
John Criswell47fdd832003-07-14 16:52:07 +000012852variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12853if test "$GCC" = yes; then
12854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12855fi
12856
12857#
12858# Do we need to explicitly link libc?
12859#
12860case "x$archive_cmds_need_lc" in
12861x|xyes)
12862 # Assume -lc should be added
12863 archive_cmds_need_lc=yes
12864
12865 if test "$enable_shared" = yes && test "$GCC" = yes; then
12866 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012867 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012868 # FIXME: we may have to deal with multi-command sequences.
12869 ;;
12870 '$CC '*)
12871 # Test whether the compiler implicitly links with -lc since on some
12872 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12873 # to ld, don't add -lc before -lgcc.
12874 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12875echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12876 $rm conftest*
12877 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12878
12879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880 (eval $ac_compile) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); } 2>conftest.err; then
12884 soname=conftest
12885 lib=conftest
12886 libobjs=conftest.$ac_objext
12887 deplibs=
12888 wl=$lt_prog_compiler_wl
12889 compiler_flags=-v
12890 linker_flags=-v
12891 verstring=
12892 output_objdir=.
12893 libname=conftest
12894 lt_save_allow_undefined_flag=$allow_undefined_flag
12895 allow_undefined_flag=
12896 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12897 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12898 ac_status=$?
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }
12901 then
12902 archive_cmds_need_lc=no
12903 else
12904 archive_cmds_need_lc=yes
12905 fi
12906 allow_undefined_flag=$lt_save_allow_undefined_flag
12907 else
12908 cat conftest.err 1>&5
12909 fi
12910 $rm conftest*
12911 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12912echo "${ECHO_T}$archive_cmds_need_lc" >&6
12913 ;;
12914 esac
12915 fi
12916 ;;
12917esac
12918
John Criswell7a73b802003-06-30 21:59:07 +000012919echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12920echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12921library_names_spec=
12922libname_spec='lib$name'
12923soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000012924shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000012925postinstall_cmds=
12926postuninstall_cmds=
12927finish_cmds=
12928finish_eval=
12929shlibpath_var=
12930shlibpath_overrides_runpath=unknown
12931version_type=none
12932dynamic_linker="$host_os ld.so"
12933sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000012934if test "$GCC" = yes; then
12935 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12936 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12937 # if the path contains ";" then we assume it to be the separator
12938 # otherwise default to the standard path separator (i.e. ":") - it is
12939 # assumed that no part of a normal pathname contains ";" but that should
12940 # okay in the real world where ";" in dirpaths is itself problematic.
12941 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12942 else
12943 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12944 fi
12945else
12946 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12947fi
12948need_lib_prefix=unknown
12949hardcode_into_libs=no
12950
12951# when you set need_version to no, make sure it does not cause -set_version
12952# flags to be left without arguments
12953need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000012954
12955case $host_os in
12956aix3*)
12957 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000012958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000012959 shlibpath_var=LIBPATH
12960
John Criswell47fdd832003-07-14 16:52:07 +000012961 # AIX 3 has no versioning support, so we append a major version to the name.
12962 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000012963 ;;
12964
12965aix4* | aix5*)
12966 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000012967 need_lib_prefix=no
12968 need_version=no
12969 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000012970 if test "$host_cpu" = ia64; then
12971 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000012972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000012973 shlibpath_var=LD_LIBRARY_PATH
12974 else
12975 # With GCC up to 2.95.x, collect2 would create an import file
12976 # for dependence libraries. The import file would start with
12977 # the line `#! .'. This would cause the generated library to
12978 # depend on `.', always an invalid library. This was fixed in
12979 # development snapshots of GCC prior to 3.0.
12980 case $host_os in
12981 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000012982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12983 echo ' yes '
12984 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12985 :
12986 else
12987 can_build_shared=no
12988 fi
12989 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012990 esac
John Criswell47fdd832003-07-14 16:52:07 +000012991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12992 # soname into executable. Probably we can add versioning support to
12993 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000012994 if test "$aix_use_runtimelinking" = yes; then
12995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12996 # instead of lib<name>.a to let people know that these are not
12997 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000012998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000012999 else
13000 # We preserve .a as extension for shared libraries through AIX4.2
13001 # and later when we are not doing run time linking.
13002 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013003 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013004 fi
13005 shlibpath_var=LIBPATH
13006 fi
13007 ;;
13008
13009amigaos*)
13010 library_names_spec='$libname.ixlibrary $libname.a'
13011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013012 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 +000013013 ;;
13014
13015beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013016 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013017 dynamic_linker="$host_os ld.so"
13018 shlibpath_var=LIBRARY_PATH
13019 ;;
13020
Reid Spencer2706f8c2004-09-19 23:53:36 +000013021bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013022 version_type=linux
13023 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13025 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013026 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13027 shlibpath_var=LD_LIBRARY_PATH
13028 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13029 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013030 # the default ld.so.conf also contains /usr/contrib/lib and
13031 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13032 # libtool to hard-code these into programs
13033 ;;
13034
13035cygwin* | mingw* | pw32*)
13036 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013037 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013038 need_version=no
13039 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013040
John Criswell7a73b802003-06-30 21:59:07 +000013041 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013042 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013043 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013044 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013045 postinstall_cmds='base_file=`basename \${file}`~
13046 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13047 dldir=$destdir/`dirname \$dlpath`~
13048 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013049 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13051 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013052 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013053 shlibpath_overrides_runpath=yes
13054
13055 case $host_os in
13056 cygwin*)
13057 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13058 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 +000013059 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013060 ;;
13061 mingw*)
13062 # MinGW DLLs use traditional 'lib' prefix
13063 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13064 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13065 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13066 # It is most probably a Windows format PATH printed by
13067 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13068 # path with ; separators, and with drive letters. We can handle the
13069 # drive letters (cygwin fileutils understands them), so leave them,
13070 # especially as we might pass files found there to a mingw objdump,
13071 # which wouldn't understand a cygwinified path. Ahh.
13072 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13073 else
13074 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13075 fi
13076 ;;
13077 pw32*)
13078 # pw32 DLLs use 'pw' prefix rather than 'lib'
13079 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13080 ;;
13081 esac
John Criswell7a73b802003-06-30 21:59:07 +000013082 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013083
John Criswell7a73b802003-06-30 21:59:07 +000013084 *)
John Criswell47fdd832003-07-14 16:52:07 +000013085 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013086 ;;
13087 esac
13088 dynamic_linker='Win32 ld.exe'
13089 # FIXME: first we should search . and the directory the executable is in
13090 shlibpath_var=PATH
13091 ;;
13092
13093darwin* | rhapsody*)
13094 dynamic_linker="$host_os dyld"
13095 version_type=darwin
13096 need_lib_prefix=no
13097 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013098 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013099 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013100 shlibpath_overrides_runpath=yes
13101 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013102 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013103 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013104 if test "$GCC" = yes; then
13105 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"`
13106 else
13107 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013108 fi
13109 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13110 ;;
13111
13112dgux*)
13113 version_type=linux
13114 need_lib_prefix=no
13115 need_version=no
13116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13117 soname_spec='${libname}${release}${shared_ext}$major'
13118 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013119 ;;
13120
13121freebsd1*)
13122 dynamic_linker=no
13123 ;;
13124
Reid Spencer2706f8c2004-09-19 23:53:36 +000013125kfreebsd*-gnu)
13126 version_type=linux
13127 need_lib_prefix=no
13128 need_version=no
13129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13130 soname_spec='${libname}${release}${shared_ext}$major'
13131 shlibpath_var=LD_LIBRARY_PATH
13132 shlibpath_overrides_runpath=no
13133 hardcode_into_libs=yes
13134 dynamic_linker='GNU ld.so'
13135 ;;
13136
John Criswell7a73b802003-06-30 21:59:07 +000013137freebsd*)
13138 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13139 version_type=freebsd-$objformat
13140 case $version_type in
13141 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013143 need_version=no
13144 need_lib_prefix=no
13145 ;;
13146 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013148 need_version=yes
13149 ;;
13150 esac
13151 shlibpath_var=LD_LIBRARY_PATH
13152 case $host_os in
13153 freebsd2*)
13154 shlibpath_overrides_runpath=yes
13155 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013156 freebsd3.01* | freebsdelf3.01*)
13157 shlibpath_overrides_runpath=yes
13158 hardcode_into_libs=yes
13159 ;;
13160 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013161 shlibpath_overrides_runpath=no
13162 hardcode_into_libs=yes
13163 ;;
13164 esac
13165 ;;
13166
13167gnu*)
13168 version_type=linux
13169 need_lib_prefix=no
13170 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13172 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013173 shlibpath_var=LD_LIBRARY_PATH
13174 hardcode_into_libs=yes
13175 ;;
13176
13177hpux9* | hpux10* | hpux11*)
13178 # Give a soname corresponding to the major version so that dld.sl refuses to
13179 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013180 version_type=sunos
13181 need_lib_prefix=no
13182 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013183 case "$host_cpu" in
13184 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013185 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013186 hardcode_into_libs=yes
13187 dynamic_linker="$host_os dld.so"
13188 shlibpath_var=LD_LIBRARY_PATH
13189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13191 soname_spec='${libname}${release}${shared_ext}$major'
13192 if test "X$HPUX_IA64_MODE" = X32; then
13193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13194 else
13195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13196 fi
13197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13198 ;;
13199 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013200 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013201 hardcode_into_libs=yes
13202 dynamic_linker="$host_os dld.sl"
13203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206 soname_spec='${libname}${release}${shared_ext}$major'
13207 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13209 ;;
13210 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013211 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013212 dynamic_linker="$host_os dld.sl"
13213 shlibpath_var=SHLIB_PATH
13214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13216 soname_spec='${libname}${release}${shared_ext}$major'
13217 ;;
13218 esac
John Criswell7a73b802003-06-30 21:59:07 +000013219 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13220 postinstall_cmds='chmod 555 $lib'
13221 ;;
13222
John Criswell47fdd832003-07-14 16:52:07 +000013223irix5* | irix6* | nonstopux*)
13224 case $host_os in
13225 nonstopux*) version_type=nonstopux ;;
13226 *)
13227 if test "$lt_cv_prog_gnu_ld" = yes; then
13228 version_type=linux
13229 else
13230 version_type=irix
13231 fi ;;
13232 esac
John Criswell7a73b802003-06-30 21:59:07 +000013233 need_lib_prefix=no
13234 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013235 soname_spec='${libname}${release}${shared_ext}$major'
13236 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 +000013237 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013238 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013239 libsuff= shlibsuff=
13240 ;;
13241 *)
13242 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013243 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13244 libsuff= shlibsuff= libmagic=32-bit;;
13245 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13246 libsuff=32 shlibsuff=N32 libmagic=N32;;
13247 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13248 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013249 *) libsuff= shlibsuff= libmagic=never-match;;
13250 esac
13251 ;;
13252 esac
13253 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13254 shlibpath_overrides_runpath=no
13255 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13256 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013257 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013258 ;;
13259
13260# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013261linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013262 dynamic_linker=no
13263 ;;
13264
13265# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013266linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013267 version_type=linux
13268 need_lib_prefix=no
13269 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13271 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13273 shlibpath_var=LD_LIBRARY_PATH
13274 shlibpath_overrides_runpath=no
13275 # This implies no fast_install, which is unacceptable.
13276 # Some rework will be needed to allow for fast_install
13277 # before this can be enabled.
13278 hardcode_into_libs=yes
13279
Reid Spencer2706f8c2004-09-19 23:53:36 +000013280 # Append ld.so.conf contents to the search path
13281 if test -f /etc/ld.so.conf; then
13282 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13283 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13284 fi
13285
John Criswell7a73b802003-06-30 21:59:07 +000013286 # We used to test for /lib/ld.so.1 and disable shared libraries on
13287 # powerpc, because MkLinux only supported shared libraries with the
13288 # GNU dynamic linker. Since this was broken with cross compilers,
13289 # most powerpc-linux boxes support dynamic linking these days and
13290 # people can always --disable-shared, the test was removed, and we
13291 # assume the GNU/Linux dynamic linker is in use.
13292 dynamic_linker='GNU/Linux ld.so'
13293 ;;
13294
Reid Spencer2706f8c2004-09-19 23:53:36 +000013295knetbsd*-gnu)
13296 version_type=linux
13297 need_lib_prefix=no
13298 need_version=no
13299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13300 soname_spec='${libname}${release}${shared_ext}$major'
13301 shlibpath_var=LD_LIBRARY_PATH
13302 shlibpath_overrides_runpath=no
13303 hardcode_into_libs=yes
13304 dynamic_linker='GNU ld.so'
13305 ;;
13306
John Criswell7a73b802003-06-30 21:59:07 +000013307netbsd*)
13308 version_type=sunos
13309 need_lib_prefix=no
13310 need_version=no
13311 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13314 dynamic_linker='NetBSD (a.out) ld.so'
13315 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013317 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013318 dynamic_linker='NetBSD ld.elf_so'
13319 fi
13320 shlibpath_var=LD_LIBRARY_PATH
13321 shlibpath_overrides_runpath=yes
13322 hardcode_into_libs=yes
13323 ;;
13324
13325newsos6)
13326 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13328 shlibpath_var=LD_LIBRARY_PATH
13329 shlibpath_overrides_runpath=yes
13330 ;;
13331
Reid Spencer2706f8c2004-09-19 23:53:36 +000013332nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013333 version_type=linux
13334 need_lib_prefix=no
13335 need_version=no
13336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13337 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013338 shlibpath_var=LD_LIBRARY_PATH
13339 shlibpath_overrides_runpath=yes
13340 ;;
13341
13342openbsd*)
13343 version_type=sunos
13344 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013345 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13348 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013349 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 +000013350 case $host_os in
13351 openbsd2.[89] | openbsd2.[89].*)
13352 shlibpath_overrides_runpath=no
13353 ;;
13354 *)
13355 shlibpath_overrides_runpath=yes
13356 ;;
13357 esac
John Criswell7a73b802003-06-30 21:59:07 +000013358 else
13359 shlibpath_overrides_runpath=yes
13360 fi
John Criswell7a73b802003-06-30 21:59:07 +000013361 ;;
13362
13363os2*)
13364 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013365 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013366 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013367 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013368 dynamic_linker='OS/2 ld.exe'
13369 shlibpath_var=LIBPATH
13370 ;;
13371
13372osf3* | osf4* | osf5*)
13373 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013374 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013375 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013376 soname_spec='${libname}${release}${shared_ext}$major'
13377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013378 shlibpath_var=LD_LIBRARY_PATH
13379 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13380 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13381 ;;
13382
13383sco3.2v5*)
13384 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013385 soname_spec='${libname}${release}${shared_ext}$major'
13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013387 shlibpath_var=LD_LIBRARY_PATH
13388 ;;
13389
13390solaris*)
13391 version_type=linux
13392 need_lib_prefix=no
13393 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13395 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013396 shlibpath_var=LD_LIBRARY_PATH
13397 shlibpath_overrides_runpath=yes
13398 hardcode_into_libs=yes
13399 # ldd complains unless libraries are executable
13400 postinstall_cmds='chmod +x $lib'
13401 ;;
13402
13403sunos4*)
13404 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013406 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13407 shlibpath_var=LD_LIBRARY_PATH
13408 shlibpath_overrides_runpath=yes
13409 if test "$with_gnu_ld" = yes; then
13410 need_lib_prefix=no
13411 fi
13412 need_version=yes
13413 ;;
13414
13415sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13416 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13418 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013419 shlibpath_var=LD_LIBRARY_PATH
13420 case $host_vendor in
13421 sni)
13422 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013423 need_lib_prefix=no
13424 export_dynamic_flag_spec='${wl}-Blargedynsym'
13425 runpath_var=LD_RUN_PATH
13426 ;;
13427 siemens)
13428 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013429 ;;
13430 motorola)
13431 need_lib_prefix=no
13432 need_version=no
13433 shlibpath_overrides_runpath=no
13434 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13435 ;;
13436 esac
13437 ;;
13438
John Criswell7a73b802003-06-30 21:59:07 +000013439sysv4*MP*)
13440 if test -d /usr/nec ;then
13441 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013442 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13443 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013444 shlibpath_var=LD_LIBRARY_PATH
13445 fi
13446 ;;
13447
John Criswell47fdd832003-07-14 16:52:07 +000013448uts4*)
13449 version_type=linux
13450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13451 soname_spec='${libname}${release}${shared_ext}$major'
13452 shlibpath_var=LD_LIBRARY_PATH
13453 ;;
13454
John Criswell7a73b802003-06-30 21:59:07 +000013455*)
13456 dynamic_linker=no
13457 ;;
13458esac
13459echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13460echo "${ECHO_T}$dynamic_linker" >&6
13461test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013462
Reid Spencer2706f8c2004-09-19 23:53:36 +000013463echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13464echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13465hardcode_action=
13466if test -n "$hardcode_libdir_flag_spec" || \
13467 test -n "$runpath_var" || \
13468 test "X$hardcode_automatic" = "Xyes" ; then
13469
13470 # We can hardcode non-existant directories.
13471 if test "$hardcode_direct" != no &&
13472 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13473 # have to relink, otherwise we might link with an installed library
13474 # when we should be linking with a yet-to-be-installed one
13475 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13476 test "$hardcode_minus_L" != no; then
13477 # Linking always hardcodes the temporary library directory.
13478 hardcode_action=relink
13479 else
13480 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13481 hardcode_action=immediate
13482 fi
13483else
13484 # We cannot hardcode anything, or else we can only hardcode existing
13485 # directories.
13486 hardcode_action=unsupported
13487fi
13488echo "$as_me:$LINENO: result: $hardcode_action" >&5
13489echo "${ECHO_T}$hardcode_action" >&6
13490
13491if test "$hardcode_action" = relink; then
13492 # Fast installation is not supported
13493 enable_fast_install=no
13494elif test "$shlibpath_overrides_runpath" = yes ||
13495 test "$enable_shared" = no; then
13496 # Fast installation is not necessary
13497 enable_fast_install=needless
13498fi
13499
13500striplib=
13501old_striplib=
13502echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13503echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13504if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13505 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13506 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13507 echo "$as_me:$LINENO: result: yes" >&5
13508echo "${ECHO_T}yes" >&6
13509else
13510# FIXME - insert some real tests, host_os isn't really good enough
13511 case $host_os in
13512 darwin*)
13513 if test -n "$STRIP" ; then
13514 striplib="$STRIP -x"
13515 echo "$as_me:$LINENO: result: yes" >&5
13516echo "${ECHO_T}yes" >&6
13517 else
13518 echo "$as_me:$LINENO: result: no" >&5
13519echo "${ECHO_T}no" >&6
13520fi
13521 ;;
13522 *)
13523 echo "$as_me:$LINENO: result: no" >&5
13524echo "${ECHO_T}no" >&6
13525 ;;
13526 esac
13527fi
13528
John Criswell7a73b802003-06-30 21:59:07 +000013529if test "x$enable_dlopen" != xyes; then
13530 enable_dlopen=unknown
13531 enable_dlopen_self=unknown
13532 enable_dlopen_self_static=unknown
13533else
13534 lt_cv_dlopen=no
13535 lt_cv_dlopen_libs=
13536
13537 case $host_os in
13538 beos*)
13539 lt_cv_dlopen="load_add_on"
13540 lt_cv_dlopen_libs=
13541 lt_cv_dlopen_self=yes
13542 ;;
13543
John Criswell47fdd832003-07-14 16:52:07 +000013544 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013545 lt_cv_dlopen="LoadLibrary"
13546 lt_cv_dlopen_libs=
13547 ;;
13548
John Criswell47fdd832003-07-14 16:52:07 +000013549 cygwin*)
13550 lt_cv_dlopen="dlopen"
13551 lt_cv_dlopen_libs=
13552 ;;
13553
13554 darwin*)
13555 # if libdl is installed we need to link against it
13556 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13557echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13558if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13560else
13561 ac_check_lib_save_LIBS=$LIBS
13562LIBS="-ldl $LIBS"
13563cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013564/* confdefs.h. */
13565_ACEOF
13566cat confdefs.h >>conftest.$ac_ext
13567cat >>conftest.$ac_ext <<_ACEOF
13568/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013569
13570/* Override any gcc2 internal prototype to avoid an error. */
13571#ifdef __cplusplus
13572extern "C"
13573#endif
13574/* We use char because int might match the return type of a gcc2
13575 builtin and then its argument prototype would still apply. */
13576char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013577int
13578main ()
13579{
13580dlopen ();
13581 ;
13582 return 0;
13583}
13584_ACEOF
13585rm -f conftest.$ac_objext conftest$ac_exeext
13586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013587 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013588 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013589 grep -v '^ *+' conftest.er1 >conftest.err
13590 rm -f conftest.er1
13591 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013594 { ac_try='test -z "$ac_c_werror_flag"
13595 || test ! -s conftest.err'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; } &&
13601 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13607 ac_cv_lib_dl_dlopen=yes
13608else
13609 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013610sed 's/^/| /' conftest.$ac_ext >&5
13611
John Criswell47fdd832003-07-14 16:52:07 +000013612ac_cv_lib_dl_dlopen=no
13613fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013614rm -f conftest.err conftest.$ac_objext \
13615 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013616LIBS=$ac_check_lib_save_LIBS
13617fi
13618echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13619echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13620if test $ac_cv_lib_dl_dlopen = yes; then
13621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13622else
13623
13624 lt_cv_dlopen="dyld"
13625 lt_cv_dlopen_libs=
13626 lt_cv_dlopen_self=yes
13627
13628fi
13629
13630 ;;
13631
John Criswell7a73b802003-06-30 21:59:07 +000013632 *)
13633 echo "$as_me:$LINENO: checking for shl_load" >&5
13634echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13635if test "${ac_cv_func_shl_load+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13637else
13638 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013639/* confdefs.h. */
13640_ACEOF
13641cat confdefs.h >>conftest.$ac_ext
13642cat >>conftest.$ac_ext <<_ACEOF
13643/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013644/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13646#define shl_load innocuous_shl_load
13647
John Criswell7a73b802003-06-30 21:59:07 +000013648/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013649 which can conflict with char shl_load (); below.
13650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13651 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013652
John Criswell0c38eaf2003-09-10 15:17:25 +000013653#ifdef __STDC__
13654# include <limits.h>
13655#else
13656# include <assert.h>
13657#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013658
13659#undef shl_load
13660
John Criswell7a73b802003-06-30 21:59:07 +000013661/* Override any gcc2 internal prototype to avoid an error. */
13662#ifdef __cplusplus
13663extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013664{
John Criswell7a73b802003-06-30 21:59:07 +000013665#endif
13666/* We use char because int might match the return type of a gcc2
13667 builtin and then its argument prototype would still apply. */
13668char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013669/* The GNU C library defines this for functions which it implements
13670 to always fail with ENOSYS. Some functions are actually named
13671 something starting with __ and the normal name is an alias. */
13672#if defined (__stub_shl_load) || defined (__stub___shl_load)
13673choke me
13674#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013675char (*f) () = shl_load;
13676#endif
13677#ifdef __cplusplus
13678}
John Criswell7a73b802003-06-30 21:59:07 +000013679#endif
13680
John Criswell0c38eaf2003-09-10 15:17:25 +000013681int
13682main ()
13683{
13684return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013685 ;
13686 return 0;
13687}
13688_ACEOF
13689rm -f conftest.$ac_objext conftest$ac_exeext
13690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013691 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013692 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013693 grep -v '^ *+' conftest.er1 >conftest.err
13694 rm -f conftest.er1
13695 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013698 { ac_try='test -z "$ac_c_werror_flag"
13699 || test ! -s conftest.err'
13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13701 (eval $ac_try) 2>&5
13702 ac_status=$?
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); }; } &&
13705 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013706 { (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); }; }; then
13711 ac_cv_func_shl_load=yes
13712else
13713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013714sed 's/^/| /' conftest.$ac_ext >&5
13715
John Criswell7a73b802003-06-30 21:59:07 +000013716ac_cv_func_shl_load=no
13717fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013718rm -f conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013720fi
13721echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13722echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13723if test $ac_cv_func_shl_load = yes; then
13724 lt_cv_dlopen="shl_load"
13725else
13726 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13727echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13728if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13730else
13731 ac_check_lib_save_LIBS=$LIBS
13732LIBS="-ldld $LIBS"
13733cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013734/* confdefs.h. */
13735_ACEOF
13736cat confdefs.h >>conftest.$ac_ext
13737cat >>conftest.$ac_ext <<_ACEOF
13738/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013739
13740/* Override any gcc2 internal prototype to avoid an error. */
13741#ifdef __cplusplus
13742extern "C"
13743#endif
13744/* We use char because int might match the return type of a gcc2
13745 builtin and then its argument prototype would still apply. */
13746char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013747int
13748main ()
13749{
13750shl_load ();
13751 ;
13752 return 0;
13753}
13754_ACEOF
13755rm -f conftest.$ac_objext conftest$ac_exeext
13756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013757 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013758 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013759 grep -v '^ *+' conftest.er1 >conftest.err
13760 rm -f conftest.er1
13761 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013764 { ac_try='test -z "$ac_c_werror_flag"
13765 || test ! -s conftest.err'
13766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13767 (eval $ac_try) 2>&5
13768 ac_status=$?
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); }; } &&
13771 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13774 ac_status=$?
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }; then
13777 ac_cv_lib_dld_shl_load=yes
13778else
13779 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013780sed 's/^/| /' conftest.$ac_ext >&5
13781
John Criswell7a73b802003-06-30 21:59:07 +000013782ac_cv_lib_dld_shl_load=no
13783fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013784rm -f conftest.err conftest.$ac_objext \
13785 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013786LIBS=$ac_check_lib_save_LIBS
13787fi
13788echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13789echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13790if test $ac_cv_lib_dld_shl_load = yes; then
13791 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13792else
13793 echo "$as_me:$LINENO: checking for dlopen" >&5
13794echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13795if test "${ac_cv_func_dlopen+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
13797else
13798 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013799/* confdefs.h. */
13800_ACEOF
13801cat confdefs.h >>conftest.$ac_ext
13802cat >>conftest.$ac_ext <<_ACEOF
13803/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013804/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13806#define dlopen innocuous_dlopen
13807
John Criswell7a73b802003-06-30 21:59:07 +000013808/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013809 which can conflict with char dlopen (); below.
13810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13811 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013812
John Criswell0c38eaf2003-09-10 15:17:25 +000013813#ifdef __STDC__
13814# include <limits.h>
13815#else
13816# include <assert.h>
13817#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013818
13819#undef dlopen
13820
John Criswell7a73b802003-06-30 21:59:07 +000013821/* Override any gcc2 internal prototype to avoid an error. */
13822#ifdef __cplusplus
13823extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013824{
John Criswell7a73b802003-06-30 21:59:07 +000013825#endif
13826/* We use char because int might match the return type of a gcc2
13827 builtin and then its argument prototype would still apply. */
13828char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013829/* The GNU C library defines this for functions which it implements
13830 to always fail with ENOSYS. Some functions are actually named
13831 something starting with __ and the normal name is an alias. */
13832#if defined (__stub_dlopen) || defined (__stub___dlopen)
13833choke me
13834#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013835char (*f) () = dlopen;
13836#endif
13837#ifdef __cplusplus
13838}
John Criswell7a73b802003-06-30 21:59:07 +000013839#endif
13840
John Criswell0c38eaf2003-09-10 15:17:25 +000013841int
13842main ()
13843{
13844return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013845 ;
13846 return 0;
13847}
13848_ACEOF
13849rm -f conftest.$ac_objext conftest$ac_exeext
13850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013851 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013852 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013853 grep -v '^ *+' conftest.er1 >conftest.err
13854 rm -f conftest.er1
13855 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013858 { ac_try='test -z "$ac_c_werror_flag"
13859 || test ! -s conftest.err'
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; } &&
13865 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867 (eval $ac_try) 2>&5
13868 ac_status=$?
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); }; }; then
13871 ac_cv_func_dlopen=yes
13872else
13873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013874sed 's/^/| /' conftest.$ac_ext >&5
13875
John Criswell7a73b802003-06-30 21:59:07 +000013876ac_cv_func_dlopen=no
13877fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013878rm -f conftest.err conftest.$ac_objext \
13879 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013880fi
13881echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13882echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13883if test $ac_cv_func_dlopen = yes; then
13884 lt_cv_dlopen="dlopen"
13885else
13886 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13887echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13888if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13890else
13891 ac_check_lib_save_LIBS=$LIBS
13892LIBS="-ldl $LIBS"
13893cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013894/* confdefs.h. */
13895_ACEOF
13896cat confdefs.h >>conftest.$ac_ext
13897cat >>conftest.$ac_ext <<_ACEOF
13898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013899
13900/* Override any gcc2 internal prototype to avoid an error. */
13901#ifdef __cplusplus
13902extern "C"
13903#endif
13904/* We use char because int might match the return type of a gcc2
13905 builtin and then its argument prototype would still apply. */
13906char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013907int
13908main ()
13909{
13910dlopen ();
13911 ;
13912 return 0;
13913}
13914_ACEOF
13915rm -f conftest.$ac_objext conftest$ac_exeext
13916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013917 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013918 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013919 grep -v '^ *+' conftest.er1 >conftest.err
13920 rm -f conftest.er1
13921 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013924 { ac_try='test -z "$ac_c_werror_flag"
13925 || test ! -s conftest.err'
13926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13927 (eval $ac_try) 2>&5
13928 ac_status=$?
13929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13930 (exit $ac_status); }; } &&
13931 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13933 (eval $ac_try) 2>&5
13934 ac_status=$?
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; }; then
13937 ac_cv_lib_dl_dlopen=yes
13938else
13939 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013940sed 's/^/| /' conftest.$ac_ext >&5
13941
John Criswell7a73b802003-06-30 21:59:07 +000013942ac_cv_lib_dl_dlopen=no
13943fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013944rm -f conftest.err conftest.$ac_objext \
13945 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013946LIBS=$ac_check_lib_save_LIBS
13947fi
13948echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13949echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13950if test $ac_cv_lib_dl_dlopen = yes; then
13951 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13952else
13953 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13954echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13955if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13956 echo $ECHO_N "(cached) $ECHO_C" >&6
13957else
13958 ac_check_lib_save_LIBS=$LIBS
13959LIBS="-lsvld $LIBS"
13960cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013961/* confdefs.h. */
13962_ACEOF
13963cat confdefs.h >>conftest.$ac_ext
13964cat >>conftest.$ac_ext <<_ACEOF
13965/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013966
13967/* Override any gcc2 internal prototype to avoid an error. */
13968#ifdef __cplusplus
13969extern "C"
13970#endif
13971/* We use char because int might match the return type of a gcc2
13972 builtin and then its argument prototype would still apply. */
13973char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013974int
13975main ()
13976{
13977dlopen ();
13978 ;
13979 return 0;
13980}
13981_ACEOF
13982rm -f conftest.$ac_objext conftest$ac_exeext
13983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013984 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013985 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013991 { ac_try='test -z "$ac_c_werror_flag"
13992 || test ! -s conftest.err'
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } &&
13998 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
14004 ac_cv_lib_svld_dlopen=yes
14005else
14006 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014007sed 's/^/| /' conftest.$ac_ext >&5
14008
John Criswell7a73b802003-06-30 21:59:07 +000014009ac_cv_lib_svld_dlopen=no
14010fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014011rm -f conftest.err conftest.$ac_objext \
14012 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014013LIBS=$ac_check_lib_save_LIBS
14014fi
14015echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14016echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14017if test $ac_cv_lib_svld_dlopen = yes; then
14018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14019else
14020 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14021echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14022if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14024else
14025 ac_check_lib_save_LIBS=$LIBS
14026LIBS="-ldld $LIBS"
14027cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014028/* confdefs.h. */
14029_ACEOF
14030cat confdefs.h >>conftest.$ac_ext
14031cat >>conftest.$ac_ext <<_ACEOF
14032/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014033
14034/* Override any gcc2 internal prototype to avoid an error. */
14035#ifdef __cplusplus
14036extern "C"
14037#endif
14038/* We use char because int might match the return type of a gcc2
14039 builtin and then its argument prototype would still apply. */
14040char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014041int
14042main ()
14043{
14044dld_link ();
14045 ;
14046 return 0;
14047}
14048_ACEOF
14049rm -f conftest.$ac_objext conftest$ac_exeext
14050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014051 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014052 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014053 grep -v '^ *+' conftest.er1 >conftest.err
14054 rm -f conftest.er1
14055 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014058 { ac_try='test -z "$ac_c_werror_flag"
14059 || test ! -s conftest.err'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14062 ac_status=$?
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; } &&
14065 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14068 ac_status=$?
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; }; then
14071 ac_cv_lib_dld_dld_link=yes
14072else
14073 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014074sed 's/^/| /' conftest.$ac_ext >&5
14075
John Criswell7a73b802003-06-30 21:59:07 +000014076ac_cv_lib_dld_dld_link=no
14077fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014078rm -f conftest.err conftest.$ac_objext \
14079 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014080LIBS=$ac_check_lib_save_LIBS
14081fi
14082echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14083echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14084if test $ac_cv_lib_dld_dld_link = yes; then
14085 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14086fi
14087
14088
14089fi
14090
14091
14092fi
14093
14094
14095fi
14096
14097
14098fi
14099
14100
14101fi
14102
14103 ;;
14104 esac
14105
14106 if test "x$lt_cv_dlopen" != xno; then
14107 enable_dlopen=yes
14108 else
14109 enable_dlopen=no
14110 fi
14111
14112 case $lt_cv_dlopen in
14113 dlopen)
14114 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014115 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014116
14117 save_LDFLAGS="$LDFLAGS"
14118 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14119
14120 save_LIBS="$LIBS"
14121 LIBS="$lt_cv_dlopen_libs $LIBS"
14122
14123 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14124echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14125if test "${lt_cv_dlopen_self+set}" = set; then
14126 echo $ECHO_N "(cached) $ECHO_C" >&6
14127else
14128 if test "$cross_compiling" = yes; then :
14129 lt_cv_dlopen_self=cross
14130else
John Criswell47fdd832003-07-14 16:52:07 +000014131 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014132 lt_status=$lt_dlunknown
14133 cat > conftest.$ac_ext <<EOF
Reid Spencer86901802004-12-08 23:07:27 +000014134#line 14134 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014135#include "confdefs.h"
14136
14137#if HAVE_DLFCN_H
14138#include <dlfcn.h>
14139#endif
14140
14141#include <stdio.h>
14142
14143#ifdef RTLD_GLOBAL
14144# define LT_DLGLOBAL RTLD_GLOBAL
14145#else
14146# ifdef DL_GLOBAL
14147# define LT_DLGLOBAL DL_GLOBAL
14148# else
14149# define LT_DLGLOBAL 0
14150# endif
14151#endif
14152
14153/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14154 find out it does not work in some platform. */
14155#ifndef LT_DLLAZY_OR_NOW
14156# ifdef RTLD_LAZY
14157# define LT_DLLAZY_OR_NOW RTLD_LAZY
14158# else
14159# ifdef DL_LAZY
14160# define LT_DLLAZY_OR_NOW DL_LAZY
14161# else
14162# ifdef RTLD_NOW
14163# define LT_DLLAZY_OR_NOW RTLD_NOW
14164# else
14165# ifdef DL_NOW
14166# define LT_DLLAZY_OR_NOW DL_NOW
14167# else
14168# define LT_DLLAZY_OR_NOW 0
14169# endif
14170# endif
14171# endif
14172# endif
14173#endif
14174
14175#ifdef __cplusplus
14176extern "C" void exit (int);
14177#endif
14178
14179void fnord() { int i=42;}
14180int main ()
14181{
14182 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14183 int status = $lt_dlunknown;
14184
14185 if (self)
14186 {
14187 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14188 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14189 /* dlclose (self); */
14190 }
14191
14192 exit (status);
14193}
14194EOF
14195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14196 (eval $ac_link) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14200 (./conftest; exit; ) 2>/dev/null
14201 lt_status=$?
14202 case x$lt_status in
14203 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14204 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14205 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14206 esac
14207 else :
14208 # compilation failed
14209 lt_cv_dlopen_self=no
14210 fi
14211fi
14212rm -fr conftest*
14213
14214
14215fi
14216echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14217echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14218
14219 if test "x$lt_cv_dlopen_self" = xyes; then
14220 LDFLAGS="$LDFLAGS $link_static_flag"
14221 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14222echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14223if test "${lt_cv_dlopen_self_static+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225else
14226 if test "$cross_compiling" = yes; then :
14227 lt_cv_dlopen_self_static=cross
14228else
John Criswell47fdd832003-07-14 16:52:07 +000014229 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014230 lt_status=$lt_dlunknown
14231 cat > conftest.$ac_ext <<EOF
Reid Spencer86901802004-12-08 23:07:27 +000014232#line 14232 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014233#include "confdefs.h"
14234
14235#if HAVE_DLFCN_H
14236#include <dlfcn.h>
14237#endif
14238
14239#include <stdio.h>
14240
14241#ifdef RTLD_GLOBAL
14242# define LT_DLGLOBAL RTLD_GLOBAL
14243#else
14244# ifdef DL_GLOBAL
14245# define LT_DLGLOBAL DL_GLOBAL
14246# else
14247# define LT_DLGLOBAL 0
14248# endif
14249#endif
14250
14251/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14252 find out it does not work in some platform. */
14253#ifndef LT_DLLAZY_OR_NOW
14254# ifdef RTLD_LAZY
14255# define LT_DLLAZY_OR_NOW RTLD_LAZY
14256# else
14257# ifdef DL_LAZY
14258# define LT_DLLAZY_OR_NOW DL_LAZY
14259# else
14260# ifdef RTLD_NOW
14261# define LT_DLLAZY_OR_NOW RTLD_NOW
14262# else
14263# ifdef DL_NOW
14264# define LT_DLLAZY_OR_NOW DL_NOW
14265# else
14266# define LT_DLLAZY_OR_NOW 0
14267# endif
14268# endif
14269# endif
14270# endif
14271#endif
14272
14273#ifdef __cplusplus
14274extern "C" void exit (int);
14275#endif
14276
14277void fnord() { int i=42;}
14278int main ()
14279{
14280 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14281 int status = $lt_dlunknown;
14282
14283 if (self)
14284 {
14285 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14286 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14287 /* dlclose (self); */
14288 }
14289
14290 exit (status);
14291}
14292EOF
14293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14294 (eval $ac_link) 2>&5
14295 ac_status=$?
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14298 (./conftest; exit; ) 2>/dev/null
14299 lt_status=$?
14300 case x$lt_status in
14301 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14302 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14303 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14304 esac
14305 else :
14306 # compilation failed
14307 lt_cv_dlopen_self_static=no
14308 fi
14309fi
14310rm -fr conftest*
14311
14312
14313fi
14314echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14315echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14316 fi
14317
14318 CPPFLAGS="$save_CPPFLAGS"
14319 LDFLAGS="$save_LDFLAGS"
14320 LIBS="$save_LIBS"
14321 ;;
14322 esac
14323
14324 case $lt_cv_dlopen_self in
14325 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14326 *) enable_dlopen_self=unknown ;;
14327 esac
14328
14329 case $lt_cv_dlopen_self_static in
14330 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14331 *) enable_dlopen_self_static=unknown ;;
14332 esac
14333fi
14334
14335
John Criswell47fdd832003-07-14 16:52:07 +000014336# Report which librarie types wil actually be built
14337echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14338echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14339echo "$as_me:$LINENO: result: $can_build_shared" >&5
14340echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014341
John Criswell47fdd832003-07-14 16:52:07 +000014342echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14343echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14344test "$can_build_shared" = "no" && enable_shared=no
14345
14346# On AIX, shared libraries and static libraries use the same namespace, and
14347# are all built from PIC.
14348case "$host_os" in
14349aix3*)
14350 test "$enable_shared" = yes && enable_static=no
14351 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014352 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014353 postinstall_cmds='$RANLIB $lib'
14354 fi
14355 ;;
14356
Reid Spencer2706f8c2004-09-19 23:53:36 +000014357aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014358 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14359 test "$enable_shared" = yes && enable_static=no
14360 fi
John Criswell7a73b802003-06-30 21:59:07 +000014361 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014362esac
14363echo "$as_me:$LINENO: result: $enable_shared" >&5
14364echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014365
John Criswell47fdd832003-07-14 16:52:07 +000014366echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14367echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14368# Make sure either enable_shared or enable_static is yes.
14369test "$enable_shared" = yes || enable_static=yes
14370echo "$as_me:$LINENO: result: $enable_static" >&5
14371echo "${ECHO_T}$enable_static" >&6
14372
14373# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014374# libtool distribution, otherwise you forgot to ship ltmain.sh
14375# with your package, and you will get complaints that there are
14376# no rules to generate ltmain.sh.
14377if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014378 # See if we are running on zsh, and set the options which allow our commands through
14379 # without removal of \ escapes.
14380 if test -n "${ZSH_VERSION+set}" ; then
14381 setopt NO_GLOB_SUBST
14382 fi
John Criswell7a73b802003-06-30 21:59:07 +000014383 # Now quote all the things that may contain metacharacters while being
14384 # careful not to overquote the AC_SUBSTed values. We take copies of the
14385 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014386 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14387 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014388 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14389 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14390 deplibs_check_method reload_flag reload_cmds need_locks \
14391 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14392 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014393 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014394 old_postinstall_cmds old_postuninstall_cmds \
14395 compiler \
14396 CC \
14397 LD \
14398 lt_prog_compiler_wl \
14399 lt_prog_compiler_pic \
14400 lt_prog_compiler_static \
14401 lt_prog_compiler_no_builtin_flag \
14402 export_dynamic_flag_spec \
14403 thread_safe_flag_spec \
14404 whole_archive_flag_spec \
14405 enable_shared_with_static_runtimes \
14406 old_archive_cmds \
14407 old_archive_from_new_cmds \
14408 predep_objects \
14409 postdep_objects \
14410 predeps \
14411 postdeps \
14412 compiler_lib_search_path \
14413 archive_cmds \
14414 archive_expsym_cmds \
14415 postinstall_cmds \
14416 postuninstall_cmds \
14417 old_archive_from_expsyms_cmds \
14418 allow_undefined_flag \
14419 no_undefined_flag \
14420 export_symbols_cmds \
14421 hardcode_libdir_flag_spec \
14422 hardcode_libdir_flag_spec_ld \
14423 hardcode_libdir_separator \
14424 hardcode_automatic \
14425 module_cmds \
14426 module_expsym_cmds \
14427 lt_cv_prog_compiler_c_o \
14428 exclude_expsyms \
14429 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014430
14431 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014432 old_archive_cmds | \
14433 old_archive_from_new_cmds | \
14434 archive_cmds | \
14435 archive_expsym_cmds | \
14436 module_cmds | \
14437 module_expsym_cmds | \
14438 old_archive_from_expsyms_cmds | \
14439 export_symbols_cmds | \
14440 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014441 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014442 old_postinstall_cmds | old_postuninstall_cmds | \
14443 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014444 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014445 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 +000014446 ;;
14447 *)
14448 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14449 ;;
14450 esac
14451 done
14452
John Criswell47fdd832003-07-14 16:52:07 +000014453 case $lt_echo in
14454 *'\$0 --fallback-echo"')
14455 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14456 ;;
14457 esac
14458
14459cfgfile="${ofile}T"
14460 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14461 $rm -f "$cfgfile"
14462 { echo "$as_me:$LINENO: creating $ofile" >&5
14463echo "$as_me: creating $ofile" >&6;}
14464
14465 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014466#! $SHELL
14467
John Criswell47fdd832003-07-14 16:52:07 +000014468# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014469# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14470# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14471#
John Criswell47fdd832003-07-14 16:52:07 +000014472# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14473# Free Software Foundation, Inc.
14474#
14475# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014476# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14477#
14478# This program is free software; you can redistribute it and/or modify
14479# it under the terms of the GNU General Public License as published by
14480# the Free Software Foundation; either version 2 of the License, or
14481# (at your option) any later version.
14482#
14483# This program is distributed in the hope that it will be useful, but
14484# WITHOUT ANY WARRANTY; without even the implied warranty of
14485# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14486# General Public License for more details.
14487#
14488# You should have received a copy of the GNU General Public License
14489# along with this program; if not, write to the Free Software
14490# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14491#
14492# As a special exception to the GNU General Public License, if you
14493# distribute this file as part of a program that contains a
14494# configuration script generated by Autoconf, you may include it under
14495# the same distribution terms that you use for the rest of that program.
14496
John Criswell47fdd832003-07-14 16:52:07 +000014497# A sed program that does not truncate output.
14498SED=$lt_SED
14499
John Criswell7a73b802003-06-30 21:59:07 +000014500# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014501Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014502
14503# The HP-UX ksh and POSIX shell print the target directory to stdout
14504# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014505(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014506
John Criswell47fdd832003-07-14 16:52:07 +000014507# The names of the tagged configurations supported by this script.
14508available_tags=
14509
John Criswell7a73b802003-06-30 21:59:07 +000014510# ### BEGIN LIBTOOL CONFIG
14511
14512# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14513
14514# Shell to use when invoking shell scripts.
14515SHELL=$lt_SHELL
14516
14517# Whether or not to build shared libraries.
14518build_libtool_libs=$enable_shared
14519
14520# Whether or not to build static libraries.
14521build_old_libs=$enable_static
14522
14523# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014524build_libtool_need_lc=$archive_cmds_need_lc
14525
14526# Whether or not to disallow shared libs when runtime libs are static
14527allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014528
14529# Whether or not to optimize for fast installation.
14530fast_install=$enable_fast_install
14531
14532# The host system.
14533host_alias=$host_alias
14534host=$host
14535
14536# An echo program that does not interpret backslashes.
14537echo=$lt_echo
14538
14539# The archiver.
14540AR=$lt_AR
14541AR_FLAGS=$lt_AR_FLAGS
14542
John Criswell47fdd832003-07-14 16:52:07 +000014543# A C compiler.
14544LTCC=$lt_LTCC
14545
14546# A language-specific compiler.
14547CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014548
14549# Is the compiler the GNU C compiler?
14550with_gcc=$GCC
14551
John Criswell47fdd832003-07-14 16:52:07 +000014552# An ERE matcher.
14553EGREP=$lt_EGREP
14554
John Criswell7a73b802003-06-30 21:59:07 +000014555# The linker used to build libraries.
14556LD=$lt_LD
14557
14558# Whether we need hard or soft links.
14559LN_S=$lt_LN_S
14560
14561# A BSD-compatible nm program.
14562NM=$lt_NM
14563
14564# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014565STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014566
14567# Used to examine libraries when file_magic_cmd begins "file"
14568MAGIC_CMD=$MAGIC_CMD
14569
14570# Used on cygwin: DLL creation program.
14571DLLTOOL="$DLLTOOL"
14572
14573# Used on cygwin: object dumper.
14574OBJDUMP="$OBJDUMP"
14575
14576# Used on cygwin: assembler.
14577AS="$AS"
14578
14579# The name of the directory that contains temporary libtool files.
14580objdir=$objdir
14581
14582# How to create reloadable object files.
14583reload_flag=$lt_reload_flag
14584reload_cmds=$lt_reload_cmds
14585
14586# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014587wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014588
14589# Object file suffix (normally "o").
14590objext="$ac_objext"
14591
14592# Old archive suffix (normally "a").
14593libext="$libext"
14594
John Criswell47fdd832003-07-14 16:52:07 +000014595# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014596shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014597
John Criswell7a73b802003-06-30 21:59:07 +000014598# Executable file suffix (normally "").
14599exeext="$exeext"
14600
14601# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014602pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014603pic_mode=$pic_mode
14604
John Criswell47fdd832003-07-14 16:52:07 +000014605# What is the maximum length of a command?
14606max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014607
John Criswell47fdd832003-07-14 16:52:07 +000014608# Does compiler simultaneously support -c and -o options?
14609compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014610
14611# Must we lock files when doing compilation ?
14612need_locks=$lt_need_locks
14613
14614# Do we need the lib prefix for modules?
14615need_lib_prefix=$need_lib_prefix
14616
14617# Do we need a version for libraries?
14618need_version=$need_version
14619
14620# Whether dlopen is supported.
14621dlopen_support=$enable_dlopen
14622
14623# Whether dlopen of programs is supported.
14624dlopen_self=$enable_dlopen_self
14625
14626# Whether dlopen of statically linked programs is supported.
14627dlopen_self_static=$enable_dlopen_self_static
14628
14629# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014630link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014631
14632# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014633no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014634
14635# Compiler flag to allow reflexive dlopens.
14636export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14637
14638# Compiler flag to generate shared objects directly from archives.
14639whole_archive_flag_spec=$lt_whole_archive_flag_spec
14640
14641# Compiler flag to generate thread-safe objects.
14642thread_safe_flag_spec=$lt_thread_safe_flag_spec
14643
14644# Library versioning type.
14645version_type=$version_type
14646
14647# Format of library name prefix.
14648libname_spec=$lt_libname_spec
14649
14650# List of archive names. First name is the real one, the rest are links.
14651# The last name is the one that the linker finds with -lNAME.
14652library_names_spec=$lt_library_names_spec
14653
14654# The coded name of the library, if different from the real name.
14655soname_spec=$lt_soname_spec
14656
14657# Commands used to build and install an old-style archive.
14658RANLIB=$lt_RANLIB
14659old_archive_cmds=$lt_old_archive_cmds
14660old_postinstall_cmds=$lt_old_postinstall_cmds
14661old_postuninstall_cmds=$lt_old_postuninstall_cmds
14662
14663# Create an old-style archive from a shared archive.
14664old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14665
14666# Create a temporary old-style archive to link instead of a shared archive.
14667old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14668
14669# Commands used to build and install a shared archive.
14670archive_cmds=$lt_archive_cmds
14671archive_expsym_cmds=$lt_archive_expsym_cmds
14672postinstall_cmds=$lt_postinstall_cmds
14673postuninstall_cmds=$lt_postuninstall_cmds
14674
John Criswell47fdd832003-07-14 16:52:07 +000014675# Commands used to build a loadable module (assumed same as above if empty)
14676module_cmds=$lt_module_cmds
14677module_expsym_cmds=$lt_module_expsym_cmds
14678
John Criswell7a73b802003-06-30 21:59:07 +000014679# Commands to strip libraries.
14680old_striplib=$lt_old_striplib
14681striplib=$lt_striplib
14682
John Criswell47fdd832003-07-14 16:52:07 +000014683# Dependencies to place before the objects being linked to create a
14684# shared library.
14685predep_objects=$lt_predep_objects
14686
14687# Dependencies to place after the objects being linked to create a
14688# shared library.
14689postdep_objects=$lt_postdep_objects
14690
14691# Dependencies to place before the objects being linked to create a
14692# shared library.
14693predeps=$lt_predeps
14694
14695# Dependencies to place after the objects being linked to create a
14696# shared library.
14697postdeps=$lt_postdeps
14698
14699# The library search path used internally by the compiler when linking
14700# a shared library.
14701compiler_lib_search_path=$lt_compiler_lib_search_path
14702
John Criswell7a73b802003-06-30 21:59:07 +000014703# Method to check whether dependent libraries are shared objects.
14704deplibs_check_method=$lt_deplibs_check_method
14705
14706# Command to use when deplibs_check_method == file_magic.
14707file_magic_cmd=$lt_file_magic_cmd
14708
14709# Flag that allows shared libraries with undefined symbols to be built.
14710allow_undefined_flag=$lt_allow_undefined_flag
14711
14712# Flag that forces no undefined symbols.
14713no_undefined_flag=$lt_no_undefined_flag
14714
14715# Commands used to finish a libtool library installation in a directory.
14716finish_cmds=$lt_finish_cmds
14717
14718# Same as above, but a single script fragment to be evaled but not shown.
14719finish_eval=$lt_finish_eval
14720
14721# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014722global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014723
14724# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014725global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014726
14727# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014728global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014729
14730# This is the shared library runtime path variable.
14731runpath_var=$runpath_var
14732
14733# This is the shared library path variable.
14734shlibpath_var=$shlibpath_var
14735
14736# Is shlibpath searched before the hard-coded library search path?
14737shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14738
14739# How to hardcode a shared library path into an executable.
14740hardcode_action=$hardcode_action
14741
14742# Whether we should hardcode library paths into libraries.
14743hardcode_into_libs=$hardcode_into_libs
14744
14745# Flag to hardcode \$libdir into a binary during linking.
14746# This must work even if \$libdir does not exist.
14747hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14748
John Criswell47fdd832003-07-14 16:52:07 +000014749# If ld is used when linking, flag to hardcode \$libdir into
14750# a binary during linking. This must work even if \$libdir does
14751# not exist.
14752hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14753
John Criswell7a73b802003-06-30 21:59:07 +000014754# Whether we need a single -rpath flag with a separated argument.
14755hardcode_libdir_separator=$lt_hardcode_libdir_separator
14756
John Criswell47fdd832003-07-14 16:52:07 +000014757# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014758# resulting binary.
14759hardcode_direct=$hardcode_direct
14760
14761# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14762# resulting binary.
14763hardcode_minus_L=$hardcode_minus_L
14764
14765# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14766# the resulting binary.
14767hardcode_shlibpath_var=$hardcode_shlibpath_var
14768
John Criswell47fdd832003-07-14 16:52:07 +000014769# Set to yes if building a shared library automatically hardcodes DIR into the library
14770# and all subsequent libraries and executables linked against it.
14771hardcode_automatic=$hardcode_automatic
14772
John Criswell7a73b802003-06-30 21:59:07 +000014773# Variables whose values should be saved in libtool wrapper scripts and
14774# restored at relink time.
14775variables_saved_for_relink="$variables_saved_for_relink"
14776
14777# Whether libtool must link a program against all its dependency libraries.
14778link_all_deplibs=$link_all_deplibs
14779
14780# Compile-time system search path for libraries
14781sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14782
14783# Run-time system search path for libraries
14784sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14785
14786# Fix the shell variable \$srcfile for the compiler.
14787fix_srcfile_path="$fix_srcfile_path"
14788
14789# Set to yes if exported symbols are required.
14790always_export_symbols=$always_export_symbols
14791
14792# The commands to list exported symbols.
14793export_symbols_cmds=$lt_export_symbols_cmds
14794
14795# The commands to extract the exported symbol list from a shared archive.
14796extract_expsyms_cmds=$lt_extract_expsyms_cmds
14797
14798# Symbols that should not be listed in the preloaded symbols.
14799exclude_expsyms=$lt_exclude_expsyms
14800
14801# Symbols that must always be exported.
14802include_expsyms=$lt_include_expsyms
14803
14804# ### END LIBTOOL CONFIG
14805
14806__EOF__
14807
John Criswell47fdd832003-07-14 16:52:07 +000014808
John Criswell7a73b802003-06-30 21:59:07 +000014809 case $host_os in
14810 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014811 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014812
14813# AIX sometimes has problems with the GCC collect2 program. For some
14814# reason, if we set the COLLECT_NAMES environment variable, the problems
14815# vanish in a puff of smoke.
14816if test "X${COLLECT_NAMES+set}" != Xset; then
14817 COLLECT_NAMES=
14818 export COLLECT_NAMES
14819fi
14820EOF
14821 ;;
14822 esac
14823
John Criswell7a73b802003-06-30 21:59:07 +000014824 # We use sed instead of cat because bash on DJGPP gets confused if
14825 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14826 # text mode, it properly converts lines to CR/LF. This bash problem
14827 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014828 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014829
John Criswell47fdd832003-07-14 16:52:07 +000014830 mv -f "$cfgfile" "$ofile" || \
14831 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014832 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014833
14834else
14835 # If there is no Makefile yet, we rely on a make rule to execute
14836 # `config.status --recheck' to rerun these tests and create the
14837 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014838 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14839 if test -f "$ltmain_in"; then
14840 test -f Makefile && make "$ltmain"
14841 fi
John Criswell7a73b802003-06-30 21:59:07 +000014842fi
John Criswell7a73b802003-06-30 21:59:07 +000014843
14844
John Criswell47fdd832003-07-14 16:52:07 +000014845ac_ext=c
14846ac_cpp='$CPP $CPPFLAGS'
14847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14849ac_compiler_gnu=$ac_cv_c_compiler_gnu
14850
14851CC="$lt_save_CC"
14852
14853
14854# Check whether --with-tags or --without-tags was given.
14855if test "${with_tags+set}" = set; then
14856 withval="$with_tags"
14857 tagnames="$withval"
14858fi;
14859
14860if test -f "$ltmain" && test -n "$tagnames"; then
14861 if test ! -f "${ofile}"; then
14862 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14863echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14864 fi
14865
14866 if test -z "$LTCC"; then
14867 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14868 if test -z "$LTCC"; then
14869 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14870echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14871 else
14872 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14873echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14874 fi
14875 fi
14876
14877 # Extract list of available tagged configurations in $ofile.
14878 # Note that this assumes the entire list is on one line.
14879 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14880
14881 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14882 for tagname in $tagnames; do
14883 IFS="$lt_save_ifs"
14884 # Check whether tagname contains only valid characters
14885 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14886 "") ;;
14887 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14888echo "$as_me: error: invalid tag name: $tagname" >&2;}
14889 { (exit 1); exit 1; }; }
14890 ;;
14891 esac
14892
14893 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14894 then
14895 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14896echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14897 { (exit 1); exit 1; }; }
14898 fi
14899
14900 # Update the list of available tags.
14901 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014902 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000014903
14904 case $tagname in
14905 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014906 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14907 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14908 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000014909 ac_ext=cc
14910ac_cpp='$CXXCPP $CPPFLAGS'
14911ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14912ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14913ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14914
14915
14916
14917
14918archive_cmds_need_lc_CXX=no
14919allow_undefined_flag_CXX=
14920always_export_symbols_CXX=no
14921archive_expsym_cmds_CXX=
14922export_dynamic_flag_spec_CXX=
14923hardcode_direct_CXX=no
14924hardcode_libdir_flag_spec_CXX=
14925hardcode_libdir_flag_spec_ld_CXX=
14926hardcode_libdir_separator_CXX=
14927hardcode_minus_L_CXX=no
14928hardcode_automatic_CXX=no
14929module_cmds_CXX=
14930module_expsym_cmds_CXX=
14931link_all_deplibs_CXX=unknown
14932old_archive_cmds_CXX=$old_archive_cmds
14933no_undefined_flag_CXX=
14934whole_archive_flag_spec_CXX=
14935enable_shared_with_static_runtimes_CXX=no
14936
14937# Dependencies to place before and after the object being linked:
14938predep_objects_CXX=
14939postdep_objects_CXX=
14940predeps_CXX=
14941postdeps_CXX=
14942compiler_lib_search_path_CXX=
14943
14944# Source file extension for C++ test sources.
14945ac_ext=cc
14946
14947# Object file extension for compiled C++ test sources.
14948objext=o
14949objext_CXX=$objext
14950
14951# Code to be used in simple compile tests
14952lt_simple_compile_test_code="int some_variable = 0;\n"
14953
14954# Code to be used in simple link tests
14955lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
14956
14957# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14958
14959# If no C compiler was specified, use CC.
14960LTCC=${LTCC-"$CC"}
14961
14962# Allow CC to be a program name with arguments.
14963compiler=$CC
14964
14965
14966# Allow CC to be a program name with arguments.
14967lt_save_CC=$CC
14968lt_save_LD=$LD
14969lt_save_GCC=$GCC
14970GCC=$GXX
14971lt_save_with_gnu_ld=$with_gnu_ld
14972lt_save_path_LD=$lt_cv_path_LD
14973if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14974 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14975else
14976 unset lt_cv_prog_gnu_ld
14977fi
14978if test -n "${lt_cv_path_LDCXX+set}"; then
14979 lt_cv_path_LD=$lt_cv_path_LDCXX
14980else
14981 unset lt_cv_path_LD
14982fi
14983test -z "${LDCXX+set}" || LD=$LDCXX
14984CC=${CXX-"c++"}
14985compiler=$CC
14986compiler_CXX=$CC
14987cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14988
14989# We don't want -fno-exception wen compiling C++ code, so set the
14990# no_builtin_flag separately
14991if test "$GXX" = yes; then
14992 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14993else
14994 lt_prog_compiler_no_builtin_flag_CXX=
14995fi
14996
14997if test "$GXX" = yes; then
14998 # Set up default GNU C++ configuration
14999
15000
15001# Check whether --with-gnu-ld or --without-gnu-ld was given.
15002if test "${with_gnu_ld+set}" = set; then
15003 withval="$with_gnu_ld"
15004 test "$withval" = no || with_gnu_ld=yes
15005else
15006 with_gnu_ld=no
15007fi;
15008ac_prog=ld
15009if test "$GCC" = yes; then
15010 # Check if gcc -print-prog-name=ld gives a path.
15011 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15012echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15013 case $host in
15014 *-*-mingw*)
15015 # gcc leaves a trailing carriage return which upsets mingw
15016 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15017 *)
15018 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15019 esac
15020 case $ac_prog in
15021 # Accept absolute paths.
15022 [\\/]* | ?:[\\/]*)
15023 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015024 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015025 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15026 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15027 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15028 done
15029 test -z "$LD" && LD="$ac_prog"
15030 ;;
15031 "")
15032 # If it fails, then pretend we aren't using GCC.
15033 ac_prog=ld
15034 ;;
15035 *)
15036 # If it is relative, then search for the first ld in PATH.
15037 with_gnu_ld=unknown
15038 ;;
15039 esac
15040elif test "$with_gnu_ld" = yes; then
15041 echo "$as_me:$LINENO: checking for GNU ld" >&5
15042echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15043else
15044 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15045echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15046fi
15047if test "${lt_cv_path_LD+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15049else
15050 if test -z "$LD"; then
15051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15052 for ac_dir in $PATH; do
15053 IFS="$lt_save_ifs"
15054 test -z "$ac_dir" && ac_dir=.
15055 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15056 lt_cv_path_LD="$ac_dir/$ac_prog"
15057 # Check to see if the program is GNU ld. I'd rather use --version,
15058 # but apparently some GNU ld's only accept -v.
15059 # Break only if it was the GNU/non-GNU ld that we prefer.
15060 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15061 *GNU* | *'with BFD'*)
15062 test "$with_gnu_ld" != no && break
15063 ;;
15064 *)
15065 test "$with_gnu_ld" != yes && break
15066 ;;
15067 esac
15068 fi
15069 done
15070 IFS="$lt_save_ifs"
15071else
15072 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15073fi
15074fi
15075
15076LD="$lt_cv_path_LD"
15077if test -n "$LD"; then
15078 echo "$as_me:$LINENO: result: $LD" >&5
15079echo "${ECHO_T}$LD" >&6
15080else
15081 echo "$as_me:$LINENO: result: no" >&5
15082echo "${ECHO_T}no" >&6
15083fi
15084test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15085echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15086 { (exit 1); exit 1; }; }
15087echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15088echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15089if test "${lt_cv_prog_gnu_ld+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15091else
15092 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015093case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015094*GNU* | *'with BFD'*)
15095 lt_cv_prog_gnu_ld=yes
15096 ;;
15097*)
15098 lt_cv_prog_gnu_ld=no
15099 ;;
15100esac
15101fi
15102echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15103echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15104with_gnu_ld=$lt_cv_prog_gnu_ld
15105
15106
15107
15108 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15109 # archiving commands below assume that GNU ld is being used.
15110 if test "$with_gnu_ld" = yes; then
15111 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15112 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'
15113
15114 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15115 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15116
15117 # If archive_cmds runs LD, not CC, wlarc should be empty
15118 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15119 # investigate it a little bit more. (MM)
15120 wlarc='${wl}'
15121
15122 # ancient GNU ld didn't support --whole-archive et. al.
15123 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15124 grep 'no-whole-archive' > /dev/null; then
15125 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15126 else
15127 whole_archive_flag_spec_CXX=
15128 fi
15129 else
15130 with_gnu_ld=no
15131 wlarc=
15132
15133 # A generic and very simple default shared library creation
15134 # command for GNU C++ for the case where it uses the native
15135 # linker, instead of GNU ld. If possible, this setting should
15136 # overridden to take advantage of the native linker features on
15137 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015138 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015139 fi
15140
15141 # Commands to make compiler produce verbose output that lists
15142 # what "hidden" libraries, object files and flags are used when
15143 # linking a shared library.
15144 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15145
15146else
15147 GXX=no
15148 with_gnu_ld=no
15149 wlarc=
15150fi
15151
15152# PORTME: fill in a description of your system's C++ link characteristics
15153echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15154echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15155ld_shlibs_CXX=yes
15156case $host_os in
15157 aix3*)
15158 # FIXME: insert proper C++ library support
15159 ld_shlibs_CXX=no
15160 ;;
15161 aix4* | aix5*)
15162 if test "$host_cpu" = ia64; then
15163 # On IA64, the linker does run time linking by default, so we don't
15164 # have to do anything special.
15165 aix_use_runtimelinking=no
15166 exp_sym_flag='-Bexport'
15167 no_entry_flag=""
15168 else
15169 aix_use_runtimelinking=no
15170
15171 # Test if we are trying to use run time linking or normal
15172 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15173 # need to do runtime linking.
15174 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15175 for ld_flag in $LDFLAGS; do
15176 case $ld_flag in
15177 *-brtl*)
15178 aix_use_runtimelinking=yes
15179 break
15180 ;;
15181 esac
15182 done
15183 esac
15184
15185 exp_sym_flag='-bexport'
15186 no_entry_flag='-bnoentry'
15187 fi
15188
15189 # When large executables or shared objects are built, AIX ld can
15190 # have problems creating the table of contents. If linking a library
15191 # or program results in "error TOC overflow" add -mminimal-toc to
15192 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15193 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15194
15195 archive_cmds_CXX=''
15196 hardcode_direct_CXX=yes
15197 hardcode_libdir_separator_CXX=':'
15198 link_all_deplibs_CXX=yes
15199
15200 if test "$GXX" = yes; then
15201 case $host_os in aix4.012|aix4.012.*)
15202 # We only want to do this on AIX 4.2 and lower, the check
15203 # below for broken collect2 doesn't work under 4.3+
15204 collect2name=`${CC} -print-prog-name=collect2`
15205 if test -f "$collect2name" && \
15206 strings "$collect2name" | grep resolve_lib_name >/dev/null
15207 then
15208 # We have reworked collect2
15209 hardcode_direct_CXX=yes
15210 else
15211 # We have old collect2
15212 hardcode_direct_CXX=unsupported
15213 # It fails to find uninstalled libraries when the uninstalled
15214 # path is not listed in the libpath. Setting hardcode_minus_L
15215 # to unsupported forces relinking
15216 hardcode_minus_L_CXX=yes
15217 hardcode_libdir_flag_spec_CXX='-L$libdir'
15218 hardcode_libdir_separator_CXX=
15219 fi
15220 esac
15221 shared_flag='-shared'
15222 else
15223 # not using gcc
15224 if test "$host_cpu" = ia64; then
15225 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15226 # chokes on -Wl,-G. The following line is correct:
15227 shared_flag='-G'
15228 else
15229 if test "$aix_use_runtimelinking" = yes; then
15230 shared_flag='${wl}-G'
15231 else
15232 shared_flag='${wl}-bM:SRE'
15233 fi
15234 fi
15235 fi
15236
15237 # It seems that -bexpall does not export symbols beginning with
15238 # underscore (_), so it is better to generate a list of symbols to export.
15239 always_export_symbols_CXX=yes
15240 if test "$aix_use_runtimelinking" = yes; then
15241 # Warning - without using the other runtime loading flags (-brtl),
15242 # -berok will link without error, but may produce a broken library.
15243 allow_undefined_flag_CXX='-berok'
15244 # Determine the default libpath from the value encoded in an empty executable.
15245 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015246/* confdefs.h. */
15247_ACEOF
15248cat confdefs.h >>conftest.$ac_ext
15249cat >>conftest.$ac_ext <<_ACEOF
15250/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015251
John Criswell47fdd832003-07-14 16:52:07 +000015252int
15253main ()
15254{
15255
15256 ;
15257 return 0;
15258}
15259_ACEOF
15260rm -f conftest.$ac_objext conftest$ac_exeext
15261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015262 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015263 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015264 grep -v '^ *+' conftest.er1 >conftest.err
15265 rm -f conftest.er1
15266 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015269 { ac_try='test -z "$ac_cxx_werror_flag"
15270 || test ! -s conftest.err'
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; } &&
15276 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15278 (eval $ac_try) 2>&5
15279 ac_status=$?
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); }; }; then
15282
15283aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15284}'`
15285# Check for a 64-bit object if we didn't find anything.
15286if 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; }
15287}'`; fi
15288else
15289 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015290sed 's/^/| /' conftest.$ac_ext >&5
15291
John Criswell47fdd832003-07-14 16:52:07 +000015292fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015293rm -f conftest.err conftest.$ac_objext \
15294 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015295if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15296
15297 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15298
15299 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"
15300 else
15301 if test "$host_cpu" = ia64; then
15302 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15303 allow_undefined_flag_CXX="-z nodefs"
15304 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"
15305 else
15306 # Determine the default libpath from the value encoded in an empty executable.
15307 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015308/* confdefs.h. */
15309_ACEOF
15310cat confdefs.h >>conftest.$ac_ext
15311cat >>conftest.$ac_ext <<_ACEOF
15312/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015313
John Criswell47fdd832003-07-14 16:52:07 +000015314int
15315main ()
15316{
15317
15318 ;
15319 return 0;
15320}
15321_ACEOF
15322rm -f conftest.$ac_objext conftest$ac_exeext
15323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015324 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015325 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015326 grep -v '^ *+' conftest.er1 >conftest.err
15327 rm -f conftest.er1
15328 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015331 { ac_try='test -z "$ac_cxx_werror_flag"
15332 || test ! -s conftest.err'
15333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15334 (eval $ac_try) 2>&5
15335 ac_status=$?
15336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337 (exit $ac_status); }; } &&
15338 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15340 (eval $ac_try) 2>&5
15341 ac_status=$?
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); }; }; then
15344
15345aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15346}'`
15347# Check for a 64-bit object if we didn't find anything.
15348if 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; }
15349}'`; fi
15350else
15351 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015352sed 's/^/| /' conftest.$ac_ext >&5
15353
John Criswell47fdd832003-07-14 16:52:07 +000015354fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015355rm -f conftest.err conftest.$ac_objext \
15356 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015357if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15358
15359 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15360 # Warning - without using the other run time loading flags,
15361 # -berok will link without error, but may produce a broken library.
15362 no_undefined_flag_CXX=' ${wl}-bernotok'
15363 allow_undefined_flag_CXX=' ${wl}-berok'
15364 # -bexpall does not export symbols beginning with underscore (_)
15365 always_export_symbols_CXX=yes
15366 # Exported symbols can be pulled into shared objects from archives
15367 whole_archive_flag_spec_CXX=' '
15368 archive_cmds_need_lc_CXX=yes
15369 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015370 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 +000015371 fi
15372 fi
15373 ;;
15374 chorus*)
15375 case $cc_basename in
15376 *)
15377 # FIXME: insert proper C++ library support
15378 ld_shlibs_CXX=no
15379 ;;
15380 esac
15381 ;;
15382
Reid Spencer2706f8c2004-09-19 23:53:36 +000015383
John Criswell47fdd832003-07-14 16:52:07 +000015384 cygwin* | mingw* | pw32*)
15385 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15386 # as there is no search path for DLLs.
15387 hardcode_libdir_flag_spec_CXX='-L$libdir'
15388 allow_undefined_flag_CXX=unsupported
15389 always_export_symbols_CXX=no
15390 enable_shared_with_static_runtimes_CXX=yes
15391
15392 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15393 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'
15394 # If the export-symbols file already is a .def file (1st line
15395 # is EXPORTS), use it as is; otherwise, prepend...
15396 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15397 cp $export_symbols $output_objdir/$soname.def;
15398 else
15399 echo EXPORTS > $output_objdir/$soname.def;
15400 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015401 fi~
15402 $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 +000015403 else
15404 ld_shlibs_CXX=no
15405 fi
15406 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015407 darwin* | rhapsody*)
15408 case "$host_os" in
15409 rhapsody* | darwin1.[012])
15410 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15411 ;;
15412 *) # Darwin 1.3 on
15413 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15414 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15415 else
15416 case ${MACOSX_DEPLOYMENT_TARGET} in
15417 10.[012])
15418 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15419 ;;
15420 10.*)
15421 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15422 ;;
15423 esac
15424 fi
15425 ;;
15426 esac
15427 archive_cmds_need_lc_CXX=no
15428 hardcode_direct_CXX=no
15429 hardcode_automatic_CXX=yes
15430 hardcode_shlibpath_var_CXX=unsupported
15431 whole_archive_flag_spec_CXX=''
15432 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015433
Reid Spencer2706f8c2004-09-19 23:53:36 +000015434 if test "$GXX" = yes ; then
15435 lt_int_apple_cc_single_mod=no
15436 output_verbose_link_cmd='echo'
15437 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15438 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015439 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015440 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015441 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 +000015442 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015443 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 +000015444 fi
15445 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15446 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15447 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015448 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 +000015449 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015450 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 +000015451 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015452 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 +000015453 else
15454 case "$cc_basename" in
15455 xlc*)
15456 output_verbose_link_cmd='echo'
15457 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'
15458 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15459 # 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 +000015460 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}'
15461 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 +000015462 ;;
15463 *)
15464 ld_shlibs_CXX=no
15465 ;;
15466 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015467 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015468 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015469
15470 dgux*)
15471 case $cc_basename in
15472 ec++)
15473 # FIXME: insert proper C++ library support
15474 ld_shlibs_CXX=no
15475 ;;
15476 ghcx)
15477 # Green Hills C++ Compiler
15478 # FIXME: insert proper C++ library support
15479 ld_shlibs_CXX=no
15480 ;;
15481 *)
15482 # FIXME: insert proper C++ library support
15483 ld_shlibs_CXX=no
15484 ;;
15485 esac
15486 ;;
15487 freebsd12*)
15488 # C++ shared libraries reported to be fairly broken before switch to ELF
15489 ld_shlibs_CXX=no
15490 ;;
15491 freebsd-elf*)
15492 archive_cmds_need_lc_CXX=no
15493 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015494 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015495 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15496 # conventions
15497 ld_shlibs_CXX=yes
15498 ;;
15499 gnu*)
15500 ;;
15501 hpux9*)
15502 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15503 hardcode_libdir_separator_CXX=:
15504 export_dynamic_flag_spec_CXX='${wl}-E'
15505 hardcode_direct_CXX=yes
15506 hardcode_minus_L_CXX=yes # Not in the search PATH,
15507 # but as the default
15508 # location of the library.
15509
15510 case $cc_basename in
15511 CC)
15512 # FIXME: insert proper C++ library support
15513 ld_shlibs_CXX=no
15514 ;;
15515 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015516 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 +000015517 # Commands to make compiler produce verbose output that lists
15518 # what "hidden" libraries, object files and flags are used when
15519 # linking a shared library.
15520 #
15521 # There doesn't appear to be a way to prevent this compiler from
15522 # explicitly linking system object files so we need to strip them
15523 # from the output so that they don't get included in the library
15524 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015525 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 +000015526 ;;
15527 *)
15528 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015529 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 +000015530 else
15531 # FIXME: insert proper C++ library support
15532 ld_shlibs_CXX=no
15533 fi
15534 ;;
15535 esac
15536 ;;
15537 hpux10*|hpux11*)
15538 if test $with_gnu_ld = no; then
15539 case "$host_cpu" in
15540 hppa*64*)
15541 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15542 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15543 hardcode_libdir_separator_CXX=:
15544 ;;
15545 ia64*)
15546 hardcode_libdir_flag_spec_CXX='-L$libdir'
15547 ;;
15548 *)
15549 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15550 hardcode_libdir_separator_CXX=:
15551 export_dynamic_flag_spec_CXX='${wl}-E'
15552 ;;
15553 esac
15554 fi
15555 case "$host_cpu" in
15556 hppa*64*)
15557 hardcode_direct_CXX=no
15558 hardcode_shlibpath_var_CXX=no
15559 ;;
15560 ia64*)
15561 hardcode_direct_CXX=no
15562 hardcode_shlibpath_var_CXX=no
15563 hardcode_minus_L_CXX=yes # Not in the search PATH,
15564 # but as the default
15565 # location of the library.
15566 ;;
15567 *)
15568 hardcode_direct_CXX=yes
15569 hardcode_minus_L_CXX=yes # Not in the search PATH,
15570 # but as the default
15571 # location of the library.
15572 ;;
15573 esac
15574
15575 case $cc_basename in
15576 CC)
15577 # FIXME: insert proper C++ library support
15578 ld_shlibs_CXX=no
15579 ;;
15580 aCC)
15581 case "$host_cpu" in
15582 hppa*64*|ia64*)
15583 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15584 ;;
15585 *)
15586 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15587 ;;
15588 esac
15589 # Commands to make compiler produce verbose output that lists
15590 # what "hidden" libraries, object files and flags are used when
15591 # linking a shared library.
15592 #
15593 # There doesn't appear to be a way to prevent this compiler from
15594 # explicitly linking system object files so we need to strip them
15595 # from the output so that they don't get included in the library
15596 # dependencies.
15597 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'
15598 ;;
15599 *)
15600 if test "$GXX" = yes; then
15601 if test $with_gnu_ld = no; then
15602 case "$host_cpu" in
15603 ia64*|hppa*64*)
15604 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15605 ;;
15606 *)
15607 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'
15608 ;;
15609 esac
15610 fi
15611 else
15612 # FIXME: insert proper C++ library support
15613 ld_shlibs_CXX=no
15614 fi
15615 ;;
15616 esac
15617 ;;
15618 irix5* | irix6*)
15619 case $cc_basename in
15620 CC)
15621 # SGI C++
15622 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'
15623
15624 # Archives containing C++ object files must be created using
15625 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15626 # necessary to make sure instantiated templates are included
15627 # in the archive.
15628 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15629 ;;
15630 *)
15631 if test "$GXX" = yes; then
15632 if test "$with_gnu_ld" = no; then
15633 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'
15634 else
15635 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'
15636 fi
15637 fi
15638 link_all_deplibs_CXX=yes
15639 ;;
15640 esac
15641 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15642 hardcode_libdir_separator_CXX=:
15643 ;;
15644 linux*)
15645 case $cc_basename in
15646 KCC)
15647 # Kuck and Associates, Inc. (KAI) C++ Compiler
15648
15649 # KCC will only create a shared library if the output file
15650 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15651 # to its proper name (with version) after linking.
15652 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'
15653 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'
15654 # Commands to make compiler produce verbose output that lists
15655 # what "hidden" libraries, object files and flags are used when
15656 # linking a shared library.
15657 #
15658 # There doesn't appear to be a way to prevent this compiler from
15659 # explicitly linking system object files so we need to strip them
15660 # from the output so that they don't get included in the library
15661 # dependencies.
15662 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'
15663
15664 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15665 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15666
15667 # Archives containing C++ object files must be created using
15668 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15669 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15670 ;;
15671 icpc)
15672 # Intel C++
15673 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015674 # version 8.0 and above of icpc choke on multiply defined symbols
15675 # if we add $predep_objects and $postdep_objects, however 7.1 and
15676 # earlier do not add the objects themselves.
15677 case `$CC -V 2>&1` in
15678 *"Version 7."*)
15679 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15680 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'
15681 ;;
15682 *) # Version 8.0 or newer
15683 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15684 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15685 ;;
15686 esac
John Criswell47fdd832003-07-14 16:52:07 +000015687 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015688 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15689 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15690 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15691 ;;
15692 cxx)
15693 # Compaq C++
15694 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15695 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'
15696
15697 runpath_var=LD_RUN_PATH
15698 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15699 hardcode_libdir_separator_CXX=:
15700
15701 # Commands to make compiler produce verbose output that lists
15702 # what "hidden" libraries, object files and flags are used when
15703 # linking a shared library.
15704 #
15705 # There doesn't appear to be a way to prevent this compiler from
15706 # explicitly linking system object files so we need to strip them
15707 # from the output so that they don't get included in the library
15708 # dependencies.
15709 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'
15710 ;;
15711 esac
15712 ;;
15713 lynxos*)
15714 # FIXME: insert proper C++ library support
15715 ld_shlibs_CXX=no
15716 ;;
15717 m88k*)
15718 # FIXME: insert proper C++ library support
15719 ld_shlibs_CXX=no
15720 ;;
15721 mvs*)
15722 case $cc_basename in
15723 cxx)
15724 # FIXME: insert proper C++ library support
15725 ld_shlibs_CXX=no
15726 ;;
15727 *)
15728 # FIXME: insert proper C++ library support
15729 ld_shlibs_CXX=no
15730 ;;
15731 esac
15732 ;;
15733 netbsd*)
15734 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15735 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15736 wlarc=
15737 hardcode_libdir_flag_spec_CXX='-R$libdir'
15738 hardcode_direct_CXX=yes
15739 hardcode_shlibpath_var_CXX=no
15740 fi
15741 # Workaround some broken pre-1.5 toolchains
15742 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15743 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015744 openbsd2*)
15745 # C++ shared libraries are fairly broken
15746 ld_shlibs_CXX=no
15747 ;;
15748 openbsd*)
15749 hardcode_direct_CXX=yes
15750 hardcode_shlibpath_var_CXX=no
15751 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15752 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15753 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15754 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15755 export_dynamic_flag_spec_CXX='${wl}-E'
15756 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15757 fi
15758 output_verbose_link_cmd='echo'
15759 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015760 osf3*)
15761 case $cc_basename in
15762 KCC)
15763 # Kuck and Associates, Inc. (KAI) C++ Compiler
15764
15765 # KCC will only create a shared library if the output file
15766 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15767 # to its proper name (with version) after linking.
15768 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'
15769
15770 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15771 hardcode_libdir_separator_CXX=:
15772
15773 # Archives containing C++ object files must be created using
15774 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15775 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15776
15777 ;;
15778 RCC)
15779 # Rational C++ 2.4.1
15780 # FIXME: insert proper C++ library support
15781 ld_shlibs_CXX=no
15782 ;;
15783 cxx)
15784 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15785 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'
15786
15787 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15788 hardcode_libdir_separator_CXX=:
15789
15790 # Commands to make compiler produce verbose output that lists
15791 # what "hidden" libraries, object files and flags are used when
15792 # linking a shared library.
15793 #
15794 # There doesn't appear to be a way to prevent this compiler from
15795 # explicitly linking system object files so we need to strip them
15796 # from the output so that they don't get included in the library
15797 # dependencies.
15798 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'
15799 ;;
15800 *)
15801 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15802 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15803 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'
15804
15805 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15806 hardcode_libdir_separator_CXX=:
15807
15808 # Commands to make compiler produce verbose output that lists
15809 # what "hidden" libraries, object files and flags are used when
15810 # linking a shared library.
15811 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15812
15813 else
15814 # FIXME: insert proper C++ library support
15815 ld_shlibs_CXX=no
15816 fi
15817 ;;
15818 esac
15819 ;;
15820 osf4* | osf5*)
15821 case $cc_basename in
15822 KCC)
15823 # Kuck and Associates, Inc. (KAI) C++ Compiler
15824
15825 # KCC will only create a shared library if the output file
15826 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15827 # to its proper name (with version) after linking.
15828 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'
15829
15830 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15831 hardcode_libdir_separator_CXX=:
15832
15833 # Archives containing C++ object files must be created using
15834 # the KAI C++ compiler.
15835 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15836 ;;
15837 RCC)
15838 # Rational C++ 2.4.1
15839 # FIXME: insert proper C++ library support
15840 ld_shlibs_CXX=no
15841 ;;
15842 cxx)
15843 allow_undefined_flag_CXX=' -expect_unresolved \*'
15844 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 +000015845 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15846 echo "-hidden">> $lib.exp~
15847 $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~
15848 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015849
15850 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15851 hardcode_libdir_separator_CXX=:
15852
15853 # Commands to make compiler produce verbose output that lists
15854 # what "hidden" libraries, object files and flags are used when
15855 # linking a shared library.
15856 #
15857 # There doesn't appear to be a way to prevent this compiler from
15858 # explicitly linking system object files so we need to strip them
15859 # from the output so that they don't get included in the library
15860 # dependencies.
15861 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'
15862 ;;
15863 *)
15864 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15865 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15866 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'
15867
15868 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15869 hardcode_libdir_separator_CXX=:
15870
15871 # Commands to make compiler produce verbose output that lists
15872 # what "hidden" libraries, object files and flags are used when
15873 # linking a shared library.
15874 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15875
15876 else
15877 # FIXME: insert proper C++ library support
15878 ld_shlibs_CXX=no
15879 fi
15880 ;;
15881 esac
15882 ;;
15883 psos*)
15884 # FIXME: insert proper C++ library support
15885 ld_shlibs_CXX=no
15886 ;;
15887 sco*)
15888 archive_cmds_need_lc_CXX=no
15889 case $cc_basename in
15890 CC)
15891 # FIXME: insert proper C++ library support
15892 ld_shlibs_CXX=no
15893 ;;
15894 *)
15895 # FIXME: insert proper C++ library support
15896 ld_shlibs_CXX=no
15897 ;;
15898 esac
15899 ;;
15900 sunos4*)
15901 case $cc_basename in
15902 CC)
15903 # Sun C++ 4.x
15904 # FIXME: insert proper C++ library support
15905 ld_shlibs_CXX=no
15906 ;;
15907 lcc)
15908 # Lucid
15909 # FIXME: insert proper C++ library support
15910 ld_shlibs_CXX=no
15911 ;;
15912 *)
15913 # FIXME: insert proper C++ library support
15914 ld_shlibs_CXX=no
15915 ;;
15916 esac
15917 ;;
15918 solaris*)
15919 case $cc_basename in
15920 CC)
15921 # Sun C++ 4.2, 5.x and Centerline C++
15922 no_undefined_flag_CXX=' -zdefs'
15923 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 +000015924 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15925 $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 +000015926
15927 hardcode_libdir_flag_spec_CXX='-R$libdir'
15928 hardcode_shlibpath_var_CXX=no
15929 case $host_os in
15930 solaris2.0-5 | solaris2.0-5.*) ;;
15931 *)
15932 # The C++ compiler is used as linker so we must use $wl
15933 # flag to pass the commands to the underlying system
15934 # linker.
15935 # Supported since Solaris 2.6 (maybe 2.5.1?)
15936 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15937 ;;
15938 esac
15939 link_all_deplibs_CXX=yes
15940
15941 # Commands to make compiler produce verbose output that lists
15942 # what "hidden" libraries, object files and flags are used when
15943 # linking a shared library.
15944 #
15945 # There doesn't appear to be a way to prevent this compiler from
15946 # explicitly linking system object files so we need to strip them
15947 # from the output so that they don't get included in the library
15948 # dependencies.
15949 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'
15950
15951 # Archives containing C++ object files must be created using
15952 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15953 # necessary to make sure instantiated templates are included
15954 # in the archive.
15955 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15956 ;;
15957 gcx)
15958 # Green Hills C++ Compiler
15959 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15960
15961 # The C++ compiler must be used to create the archive.
15962 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15963 ;;
15964 *)
15965 # GNU C++ compiler with Solaris linker
15966 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15967 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15968 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000015969 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 +000015970 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15971 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15972
John Criswell47fdd832003-07-14 16:52:07 +000015973 # Commands to make compiler produce verbose output that lists
15974 # what "hidden" libraries, object files and flags are used when
15975 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000015976 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000015977 else
15978 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15979 # platform.
15980 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 +000015981 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15982 $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 +000015983
15984 # Commands to make compiler produce verbose output that lists
15985 # what "hidden" libraries, object files and flags are used when
15986 # linking a shared library.
15987 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15988 fi
15989
15990 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15991 fi
15992 ;;
15993 esac
15994 ;;
15995 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15996 archive_cmds_need_lc_CXX=no
15997 ;;
15998 tandem*)
15999 case $cc_basename in
16000 NCC)
16001 # NonStop-UX NCC 3.20
16002 # FIXME: insert proper C++ library support
16003 ld_shlibs_CXX=no
16004 ;;
16005 *)
16006 # FIXME: insert proper C++ library support
16007 ld_shlibs_CXX=no
16008 ;;
16009 esac
16010 ;;
16011 vxworks*)
16012 # FIXME: insert proper C++ library support
16013 ld_shlibs_CXX=no
16014 ;;
16015 *)
16016 # FIXME: insert proper C++ library support
16017 ld_shlibs_CXX=no
16018 ;;
16019esac
16020echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16021echo "${ECHO_T}$ld_shlibs_CXX" >&6
16022test "$ld_shlibs_CXX" = no && can_build_shared=no
16023
16024GCC_CXX="$GXX"
16025LD_CXX="$LD"
16026
John Criswell47fdd832003-07-14 16:52:07 +000016027
16028cat > conftest.$ac_ext <<EOF
16029class Foo
16030{
16031public:
16032 Foo (void) { a = 0; }
16033private:
16034 int a;
16035};
16036EOF
16037
16038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16039 (eval $ac_compile) 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; then
16043 # Parse the compiler output and extract the necessary
16044 # objects, libraries and library flags.
16045
16046 # Sentinel used to keep track of whether or not we are before
16047 # the conftest object file.
16048 pre_test_object_deps_done=no
16049
16050 # The `*' in the case matches for architectures that use `case' in
16051 # $output_verbose_cmd can trigger glob expansion during the loop
16052 # eval without this substitution.
16053 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16054
16055 for p in `eval $output_verbose_link_cmd`; do
16056 case $p in
16057
16058 -L* | -R* | -l*)
16059 # Some compilers place space between "-{L,R}" and the path.
16060 # Remove the space.
16061 if test $p = "-L" \
16062 || test $p = "-R"; then
16063 prev=$p
16064 continue
16065 else
16066 prev=
16067 fi
16068
16069 if test "$pre_test_object_deps_done" = no; then
16070 case $p in
16071 -L* | -R*)
16072 # Internal compiler library paths should come after those
16073 # provided the user. The postdeps already come after the
16074 # user supplied libs so there is no need to process them.
16075 if test -z "$compiler_lib_search_path_CXX"; then
16076 compiler_lib_search_path_CXX="${prev}${p}"
16077 else
16078 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16079 fi
16080 ;;
16081 # The "-l" case would never come before the object being
16082 # linked, so don't bother handling this case.
16083 esac
16084 else
16085 if test -z "$postdeps_CXX"; then
16086 postdeps_CXX="${prev}${p}"
16087 else
16088 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16089 fi
16090 fi
16091 ;;
16092
16093 *.$objext)
16094 # This assumes that the test object file only shows up
16095 # once in the compiler output.
16096 if test "$p" = "conftest.$objext"; then
16097 pre_test_object_deps_done=yes
16098 continue
16099 fi
16100
16101 if test "$pre_test_object_deps_done" = no; then
16102 if test -z "$predep_objects_CXX"; then
16103 predep_objects_CXX="$p"
16104 else
16105 predep_objects_CXX="$predep_objects_CXX $p"
16106 fi
16107 else
16108 if test -z "$postdep_objects_CXX"; then
16109 postdep_objects_CXX="$p"
16110 else
16111 postdep_objects_CXX="$postdep_objects_CXX $p"
16112 fi
16113 fi
16114 ;;
16115
16116 *) ;; # Ignore the rest.
16117
16118 esac
16119 done
16120
16121 # Clean up.
16122 rm -f a.out a.exe
16123else
16124 echo "libtool.m4: error: problem compiling CXX test program"
16125fi
16126
16127$rm -f confest.$objext
16128
16129case " $postdeps_CXX " in
16130*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16131esac
16132
16133lt_prog_compiler_wl_CXX=
16134lt_prog_compiler_pic_CXX=
16135lt_prog_compiler_static_CXX=
16136
16137echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16138echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16139
16140 # C++ specific cases for pic, static, wl, etc.
16141 if test "$GXX" = yes; then
16142 lt_prog_compiler_wl_CXX='-Wl,'
16143 lt_prog_compiler_static_CXX='-static'
16144
16145 case $host_os in
16146 aix*)
16147 # All AIX code is PIC.
16148 if test "$host_cpu" = ia64; then
16149 # AIX 5 now supports IA64 processor
16150 lt_prog_compiler_static_CXX='-Bstatic'
16151 fi
16152 ;;
16153 amigaos*)
16154 # FIXME: we need at least 68020 code to build shared libraries, but
16155 # adding the `-m68020' flag to GCC prevents building anything better,
16156 # like `-m68040'.
16157 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16158 ;;
16159 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16160 # PIC is the default for these OSes.
16161 ;;
16162 mingw* | os2* | pw32*)
16163 # This hack is so that the source file can tell whether it is being
16164 # built for inclusion in a dll (and should export symbols for example).
16165 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16166 ;;
16167 darwin* | rhapsody*)
16168 # PIC is the default on this platform
16169 # Common symbols not allowed in MH_DYLIB files
16170 lt_prog_compiler_pic_CXX='-fno-common'
16171 ;;
16172 *djgpp*)
16173 # DJGPP does not support shared libraries at all
16174 lt_prog_compiler_pic_CXX=
16175 ;;
16176 sysv4*MP*)
16177 if test -d /usr/nec; then
16178 lt_prog_compiler_pic_CXX=-Kconform_pic
16179 fi
16180 ;;
16181 hpux*)
16182 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16183 # not for PA HP-UX.
16184 case "$host_cpu" in
16185 hppa*64*|ia64*)
16186 ;;
16187 *)
16188 lt_prog_compiler_pic_CXX='-fPIC'
16189 ;;
16190 esac
16191 ;;
16192 *)
16193 lt_prog_compiler_pic_CXX='-fPIC'
16194 ;;
16195 esac
16196 else
16197 case $host_os in
16198 aix4* | aix5*)
16199 # All AIX code is PIC.
16200 if test "$host_cpu" = ia64; then
16201 # AIX 5 now supports IA64 processor
16202 lt_prog_compiler_static_CXX='-Bstatic'
16203 else
16204 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16205 fi
16206 ;;
16207 chorus*)
16208 case $cc_basename in
16209 cxch68)
16210 # Green Hills C++ Compiler
16211 # _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"
16212 ;;
16213 esac
16214 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016215 darwin*)
16216 # PIC is the default on this platform
16217 # Common symbols not allowed in MH_DYLIB files
16218 case "$cc_basename" in
16219 xlc*)
16220 lt_prog_compiler_pic_CXX='-qnocommon'
16221 lt_prog_compiler_wl_CXX='-Wl,'
16222 ;;
16223 esac
16224 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016225 dgux*)
16226 case $cc_basename in
16227 ec++)
16228 lt_prog_compiler_pic_CXX='-KPIC'
16229 ;;
16230 ghcx)
16231 # Green Hills C++ Compiler
16232 lt_prog_compiler_pic_CXX='-pic'
16233 ;;
16234 *)
16235 ;;
16236 esac
16237 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016238 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016239 # FreeBSD uses GNU C++
16240 ;;
16241 hpux9* | hpux10* | hpux11*)
16242 case $cc_basename in
16243 CC)
16244 lt_prog_compiler_wl_CXX='-Wl,'
16245 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16246 if test "$host_cpu" != ia64; then
16247 lt_prog_compiler_pic_CXX='+Z'
16248 fi
16249 ;;
16250 aCC)
16251 lt_prog_compiler_wl_CXX='-Wl,'
16252 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16253 case "$host_cpu" in
16254 hppa*64*|ia64*)
16255 # +Z the default
16256 ;;
16257 *)
16258 lt_prog_compiler_pic_CXX='+Z'
16259 ;;
16260 esac
16261 ;;
16262 *)
16263 ;;
16264 esac
16265 ;;
16266 irix5* | irix6* | nonstopux*)
16267 case $cc_basename in
16268 CC)
16269 lt_prog_compiler_wl_CXX='-Wl,'
16270 lt_prog_compiler_static_CXX='-non_shared'
16271 # CC pic flag -KPIC is the default.
16272 ;;
16273 *)
16274 ;;
16275 esac
16276 ;;
16277 linux*)
16278 case $cc_basename in
16279 KCC)
16280 # KAI C++ Compiler
16281 lt_prog_compiler_wl_CXX='--backend -Wl,'
16282 lt_prog_compiler_pic_CXX='-fPIC'
16283 ;;
16284 icpc)
16285 # Intel C++
16286 lt_prog_compiler_wl_CXX='-Wl,'
16287 lt_prog_compiler_pic_CXX='-KPIC'
16288 lt_prog_compiler_static_CXX='-static'
16289 ;;
16290 cxx)
16291 # Compaq C++
16292 # Make sure the PIC flag is empty. It appears that all Alpha
16293 # Linux and Compaq Tru64 Unix objects are PIC.
16294 lt_prog_compiler_pic_CXX=
16295 lt_prog_compiler_static_CXX='-non_shared'
16296 ;;
16297 *)
16298 ;;
16299 esac
16300 ;;
16301 lynxos*)
16302 ;;
16303 m88k*)
16304 ;;
16305 mvs*)
16306 case $cc_basename in
16307 cxx)
16308 lt_prog_compiler_pic_CXX='-W c,exportall'
16309 ;;
16310 *)
16311 ;;
16312 esac
16313 ;;
16314 netbsd*)
16315 ;;
16316 osf3* | osf4* | osf5*)
16317 case $cc_basename in
16318 KCC)
16319 lt_prog_compiler_wl_CXX='--backend -Wl,'
16320 ;;
16321 RCC)
16322 # Rational C++ 2.4.1
16323 lt_prog_compiler_pic_CXX='-pic'
16324 ;;
16325 cxx)
16326 # Digital/Compaq C++
16327 lt_prog_compiler_wl_CXX='-Wl,'
16328 # Make sure the PIC flag is empty. It appears that all Alpha
16329 # Linux and Compaq Tru64 Unix objects are PIC.
16330 lt_prog_compiler_pic_CXX=
16331 lt_prog_compiler_static_CXX='-non_shared'
16332 ;;
16333 *)
16334 ;;
16335 esac
16336 ;;
16337 psos*)
16338 ;;
16339 sco*)
16340 case $cc_basename in
16341 CC)
16342 lt_prog_compiler_pic_CXX='-fPIC'
16343 ;;
16344 *)
16345 ;;
16346 esac
16347 ;;
16348 solaris*)
16349 case $cc_basename in
16350 CC)
16351 # Sun C++ 4.2, 5.x and Centerline C++
16352 lt_prog_compiler_pic_CXX='-KPIC'
16353 lt_prog_compiler_static_CXX='-Bstatic'
16354 lt_prog_compiler_wl_CXX='-Qoption ld '
16355 ;;
16356 gcx)
16357 # Green Hills C++ Compiler
16358 lt_prog_compiler_pic_CXX='-PIC'
16359 ;;
16360 *)
16361 ;;
16362 esac
16363 ;;
16364 sunos4*)
16365 case $cc_basename in
16366 CC)
16367 # Sun C++ 4.x
16368 lt_prog_compiler_pic_CXX='-pic'
16369 lt_prog_compiler_static_CXX='-Bstatic'
16370 ;;
16371 lcc)
16372 # Lucid
16373 lt_prog_compiler_pic_CXX='-pic'
16374 ;;
16375 *)
16376 ;;
16377 esac
16378 ;;
16379 tandem*)
16380 case $cc_basename in
16381 NCC)
16382 # NonStop-UX NCC 3.20
16383 lt_prog_compiler_pic_CXX='-KPIC'
16384 ;;
16385 *)
16386 ;;
16387 esac
16388 ;;
16389 unixware*)
16390 ;;
16391 vxworks*)
16392 ;;
16393 *)
16394 lt_prog_compiler_can_build_shared_CXX=no
16395 ;;
16396 esac
16397 fi
16398
16399echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16400echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16401
16402#
16403# Check to make sure the PIC flag actually works.
16404#
16405if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016406
16407echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016408echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16409if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16410 echo $ECHO_N "(cached) $ECHO_C" >&6
16411else
16412 lt_prog_compiler_pic_works_CXX=no
16413 ac_outfile=conftest.$ac_objext
16414 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16415 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16416 # Insert the option either (1) after the last *FLAGS variable, or
16417 # (2) before a word containing "conftest.", or (3) at the end.
16418 # Note that $ac_compile itself does not contain backslashes and begins
16419 # with a dollar sign (not a hyphen), so the echo should work correctly.
16420 # The option is referenced via a variable to avoid confusing sed.
16421 lt_compile=`echo "$ac_compile" | $SED \
16422 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16423 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16424 -e 's:$: $lt_compiler_flag:'`
Reid Spencer86901802004-12-08 23:07:27 +000016425 (eval echo "\"\$as_me:16425: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016426 (eval "$lt_compile" 2>conftest.err)
16427 ac_status=$?
16428 cat conftest.err >&5
Reid Spencer86901802004-12-08 23:07:27 +000016429 echo "$as_me:16429: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016430 if (exit $ac_status) && test -s "$ac_outfile"; then
16431 # The compiler can only warn and ignore the option if not recognized
16432 # So say no if there are warnings
16433 if test ! -s conftest.err; then
16434 lt_prog_compiler_pic_works_CXX=yes
16435 fi
16436 fi
16437 $rm conftest*
16438
16439fi
16440echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16441echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16442
16443if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16444 case $lt_prog_compiler_pic_CXX in
16445 "" | " "*) ;;
16446 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16447 esac
16448else
16449 lt_prog_compiler_pic_CXX=
16450 lt_prog_compiler_can_build_shared_CXX=no
16451fi
16452
16453fi
16454case "$host_os" in
16455 # For platforms which do not support PIC, -DPIC is meaningless:
16456 *djgpp*)
16457 lt_prog_compiler_pic_CXX=
16458 ;;
16459 *)
16460 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16461 ;;
16462esac
16463
16464echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16465echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16466if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16467 echo $ECHO_N "(cached) $ECHO_C" >&6
16468else
16469 lt_cv_prog_compiler_c_o_CXX=no
16470 $rm -r conftest 2>/dev/null
16471 mkdir conftest
16472 cd conftest
16473 mkdir out
16474 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16475
John Criswell47fdd832003-07-14 16:52:07 +000016476 lt_compiler_flag="-o out/conftest2.$ac_objext"
16477 # Insert the option either (1) after the last *FLAGS variable, or
16478 # (2) before a word containing "conftest.", or (3) at the end.
16479 # Note that $ac_compile itself does not contain backslashes and begins
16480 # with a dollar sign (not a hyphen), so the echo should work correctly.
16481 lt_compile=`echo "$ac_compile" | $SED \
16482 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16484 -e 's:$: $lt_compiler_flag:'`
Reid Spencer86901802004-12-08 23:07:27 +000016485 (eval echo "\"\$as_me:16485: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016486 (eval "$lt_compile" 2>out/conftest.err)
16487 ac_status=$?
16488 cat out/conftest.err >&5
Reid Spencer86901802004-12-08 23:07:27 +000016489 echo "$as_me:16489: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016490 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16491 then
16492 # The compiler can only warn and ignore the option if not recognized
16493 # So say no if there are warnings
16494 if test ! -s out/conftest.err; then
16495 lt_cv_prog_compiler_c_o_CXX=yes
16496 fi
16497 fi
16498 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016499 $rm conftest*
16500 # SGI C++ compiler will create directory out/ii_files/ for
16501 # template instantiation
16502 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16503 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016504 cd ..
16505 rmdir conftest
16506 $rm conftest*
16507
16508fi
16509echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16510echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16511
16512
16513hard_links="nottested"
16514if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16515 # do not overwrite the value of need_locks provided by the user
16516 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16517echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16518 hard_links=yes
16519 $rm conftest*
16520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16521 touch conftest.a
16522 ln conftest.a conftest.b 2>&5 || hard_links=no
16523 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16524 echo "$as_me:$LINENO: result: $hard_links" >&5
16525echo "${ECHO_T}$hard_links" >&6
16526 if test "$hard_links" = no; then
16527 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16528echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16529 need_locks=warn
16530 fi
16531else
16532 need_locks=no
16533fi
16534
16535echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16536echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16537
16538 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16539 case $host_os in
16540 aix4* | aix5*)
16541 # If we're using GNU nm, then we don't want the "-C" option.
16542 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16543 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16544 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'
16545 else
16546 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'
16547 fi
16548 ;;
16549 pw32*)
16550 export_symbols_cmds_CXX="$ltdll_cmds"
16551 ;;
16552 cygwin* | mingw*)
16553 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16554 ;;
16555 *)
16556 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16557 ;;
16558 esac
16559
16560echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16561echo "${ECHO_T}$ld_shlibs_CXX" >&6
16562test "$ld_shlibs_CXX" = no && can_build_shared=no
16563
16564variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16565if test "$GCC" = yes; then
16566 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16567fi
16568
16569#
16570# Do we need to explicitly link libc?
16571#
16572case "x$archive_cmds_need_lc_CXX" in
16573x|xyes)
16574 # Assume -lc should be added
16575 archive_cmds_need_lc_CXX=yes
16576
16577 if test "$enable_shared" = yes && test "$GCC" = yes; then
16578 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016579 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016580 # FIXME: we may have to deal with multi-command sequences.
16581 ;;
16582 '$CC '*)
16583 # Test whether the compiler implicitly links with -lc since on some
16584 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16585 # to ld, don't add -lc before -lgcc.
16586 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16587echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16588 $rm conftest*
16589 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16590
16591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16592 (eval $ac_compile) 2>&5
16593 ac_status=$?
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } 2>conftest.err; then
16596 soname=conftest
16597 lib=conftest
16598 libobjs=conftest.$ac_objext
16599 deplibs=
16600 wl=$lt_prog_compiler_wl_CXX
16601 compiler_flags=-v
16602 linker_flags=-v
16603 verstring=
16604 output_objdir=.
16605 libname=conftest
16606 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16607 allow_undefined_flag_CXX=
16608 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16609 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16610 ac_status=$?
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }
16613 then
16614 archive_cmds_need_lc_CXX=no
16615 else
16616 archive_cmds_need_lc_CXX=yes
16617 fi
16618 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16619 else
16620 cat conftest.err 1>&5
16621 fi
16622 $rm conftest*
16623 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16624echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16625 ;;
16626 esac
16627 fi
16628 ;;
16629esac
16630
John Criswell47fdd832003-07-14 16:52:07 +000016631echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16632echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16633library_names_spec=
16634libname_spec='lib$name'
16635soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016636shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016637postinstall_cmds=
16638postuninstall_cmds=
16639finish_cmds=
16640finish_eval=
16641shlibpath_var=
16642shlibpath_overrides_runpath=unknown
16643version_type=none
16644dynamic_linker="$host_os ld.so"
16645sys_lib_dlsearch_path_spec="/lib /usr/lib"
16646if test "$GCC" = yes; then
16647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16648 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16649 # if the path contains ";" then we assume it to be the separator
16650 # otherwise default to the standard path separator (i.e. ":") - it is
16651 # assumed that no part of a normal pathname contains ";" but that should
16652 # okay in the real world where ";" in dirpaths is itself problematic.
16653 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16654 else
16655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16656 fi
16657else
16658 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16659fi
16660need_lib_prefix=unknown
16661hardcode_into_libs=no
16662
16663# when you set need_version to no, make sure it does not cause -set_version
16664# flags to be left without arguments
16665need_version=unknown
16666
16667case $host_os in
16668aix3*)
16669 version_type=linux
16670 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16671 shlibpath_var=LIBPATH
16672
16673 # AIX 3 has no versioning support, so we append a major version to the name.
16674 soname_spec='${libname}${release}${shared_ext}$major'
16675 ;;
16676
16677aix4* | aix5*)
16678 version_type=linux
16679 need_lib_prefix=no
16680 need_version=no
16681 hardcode_into_libs=yes
16682 if test "$host_cpu" = ia64; then
16683 # AIX 5 supports IA64
16684 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16685 shlibpath_var=LD_LIBRARY_PATH
16686 else
16687 # With GCC up to 2.95.x, collect2 would create an import file
16688 # for dependence libraries. The import file would start with
16689 # the line `#! .'. This would cause the generated library to
16690 # depend on `.', always an invalid library. This was fixed in
16691 # development snapshots of GCC prior to 3.0.
16692 case $host_os in
16693 aix4 | aix4.[01] | aix4.[01].*)
16694 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16695 echo ' yes '
16696 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16697 :
16698 else
16699 can_build_shared=no
16700 fi
16701 ;;
16702 esac
16703 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16704 # soname into executable. Probably we can add versioning support to
16705 # collect2, so additional links can be useful in future.
16706 if test "$aix_use_runtimelinking" = yes; then
16707 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16708 # instead of lib<name>.a to let people know that these are not
16709 # typical AIX shared libraries.
16710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16711 else
16712 # We preserve .a as extension for shared libraries through AIX4.2
16713 # and later when we are not doing run time linking.
16714 library_names_spec='${libname}${release}.a $libname.a'
16715 soname_spec='${libname}${release}${shared_ext}$major'
16716 fi
16717 shlibpath_var=LIBPATH
16718 fi
16719 ;;
16720
16721amigaos*)
16722 library_names_spec='$libname.ixlibrary $libname.a'
16723 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016724 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 +000016725 ;;
16726
16727beos*)
16728 library_names_spec='${libname}${shared_ext}'
16729 dynamic_linker="$host_os ld.so"
16730 shlibpath_var=LIBRARY_PATH
16731 ;;
16732
Reid Spencer2706f8c2004-09-19 23:53:36 +000016733bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016734 version_type=linux
16735 need_version=no
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16741 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16742 # the default ld.so.conf also contains /usr/contrib/lib and
16743 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16744 # libtool to hard-code these into programs
16745 ;;
16746
16747cygwin* | mingw* | pw32*)
16748 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016749 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016750 need_version=no
16751 need_lib_prefix=no
16752
16753 case $GCC,$host_os in
16754 yes,cygwin* | yes,mingw* | yes,pw32*)
16755 library_names_spec='$libname.dll.a'
16756 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016757 postinstall_cmds='base_file=`basename \${file}`~
16758 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16759 dldir=$destdir/`dirname \$dlpath`~
16760 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016761 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16763 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016764 $rm \$dlpath'
16765 shlibpath_overrides_runpath=yes
16766
16767 case $host_os in
16768 cygwin*)
16769 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16770 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 +000016771 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016772 ;;
16773 mingw*)
16774 # MinGW DLLs use traditional 'lib' prefix
16775 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16776 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16777 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16778 # It is most probably a Windows format PATH printed by
16779 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16780 # path with ; separators, and with drive letters. We can handle the
16781 # drive letters (cygwin fileutils understands them), so leave them,
16782 # especially as we might pass files found there to a mingw objdump,
16783 # which wouldn't understand a cygwinified path. Ahh.
16784 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16785 else
16786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16787 fi
16788 ;;
16789 pw32*)
16790 # pw32 DLLs use 'pw' prefix rather than 'lib'
16791 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16792 ;;
16793 esac
16794 ;;
16795
16796 *)
16797 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16798 ;;
16799 esac
16800 dynamic_linker='Win32 ld.exe'
16801 # FIXME: first we should search . and the directory the executable is in
16802 shlibpath_var=PATH
16803 ;;
16804
16805darwin* | rhapsody*)
16806 dynamic_linker="$host_os dyld"
16807 version_type=darwin
16808 need_lib_prefix=no
16809 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016810 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016811 soname_spec='${libname}${release}${major}$shared_ext'
16812 shlibpath_overrides_runpath=yes
16813 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016814 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016815 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016816 if test "$GCC" = yes; then
16817 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"`
16818 else
16819 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016820 fi
16821 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16822 ;;
16823
16824dgux*)
16825 version_type=linux
16826 need_lib_prefix=no
16827 need_version=no
16828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16829 soname_spec='${libname}${release}${shared_ext}$major'
16830 shlibpath_var=LD_LIBRARY_PATH
16831 ;;
16832
16833freebsd1*)
16834 dynamic_linker=no
16835 ;;
16836
Reid Spencer2706f8c2004-09-19 23:53:36 +000016837kfreebsd*-gnu)
16838 version_type=linux
16839 need_lib_prefix=no
16840 need_version=no
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 shlibpath_overrides_runpath=no
16845 hardcode_into_libs=yes
16846 dynamic_linker='GNU ld.so'
16847 ;;
16848
John Criswell47fdd832003-07-14 16:52:07 +000016849freebsd*)
16850 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16851 version_type=freebsd-$objformat
16852 case $version_type in
16853 freebsd-elf*)
16854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16855 need_version=no
16856 need_lib_prefix=no
16857 ;;
16858 freebsd-*)
16859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16860 need_version=yes
16861 ;;
16862 esac
16863 shlibpath_var=LD_LIBRARY_PATH
16864 case $host_os in
16865 freebsd2*)
16866 shlibpath_overrides_runpath=yes
16867 ;;
16868 freebsd3.01* | freebsdelf3.01*)
16869 shlibpath_overrides_runpath=yes
16870 hardcode_into_libs=yes
16871 ;;
16872 *) # from 3.2 on
16873 shlibpath_overrides_runpath=no
16874 hardcode_into_libs=yes
16875 ;;
16876 esac
16877 ;;
16878
16879gnu*)
16880 version_type=linux
16881 need_lib_prefix=no
16882 need_version=no
16883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 shlibpath_var=LD_LIBRARY_PATH
16886 hardcode_into_libs=yes
16887 ;;
16888
16889hpux9* | hpux10* | hpux11*)
16890 # Give a soname corresponding to the major version so that dld.sl refuses to
16891 # link against other versions.
16892 version_type=sunos
16893 need_lib_prefix=no
16894 need_version=no
16895 case "$host_cpu" in
16896 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016897 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016898 hardcode_into_libs=yes
16899 dynamic_linker="$host_os dld.so"
16900 shlibpath_var=LD_LIBRARY_PATH
16901 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903 soname_spec='${libname}${release}${shared_ext}$major'
16904 if test "X$HPUX_IA64_MODE" = X32; then
16905 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16906 else
16907 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16908 fi
16909 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16910 ;;
16911 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016912 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016913 hardcode_into_libs=yes
16914 dynamic_linker="$host_os dld.sl"
16915 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16916 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16920 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16921 ;;
16922 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016923 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016924 dynamic_linker="$host_os dld.sl"
16925 shlibpath_var=SHLIB_PATH
16926 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16928 soname_spec='${libname}${release}${shared_ext}$major'
16929 ;;
16930 esac
16931 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16932 postinstall_cmds='chmod 555 $lib'
16933 ;;
16934
16935irix5* | irix6* | nonstopux*)
16936 case $host_os in
16937 nonstopux*) version_type=nonstopux ;;
16938 *)
16939 if test "$lt_cv_prog_gnu_ld" = yes; then
16940 version_type=linux
16941 else
16942 version_type=irix
16943 fi ;;
16944 esac
16945 need_lib_prefix=no
16946 need_version=no
16947 soname_spec='${libname}${release}${shared_ext}$major'
16948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16949 case $host_os in
16950 irix5* | nonstopux*)
16951 libsuff= shlibsuff=
16952 ;;
16953 *)
16954 case $LD in # libtool.m4 will add one of these switches to LD
16955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16956 libsuff= shlibsuff= libmagic=32-bit;;
16957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16958 libsuff=32 shlibsuff=N32 libmagic=N32;;
16959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16961 *) libsuff= shlibsuff= libmagic=never-match;;
16962 esac
16963 ;;
16964 esac
16965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16966 shlibpath_overrides_runpath=no
16967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16969 hardcode_into_libs=yes
16970 ;;
16971
16972# No shared lib support for Linux oldld, aout, or coff.
16973linux*oldld* | linux*aout* | linux*coff*)
16974 dynamic_linker=no
16975 ;;
16976
16977# This must be Linux ELF.
16978linux*)
16979 version_type=linux
16980 need_lib_prefix=no
16981 need_version=no
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16983 soname_spec='${libname}${release}${shared_ext}$major'
16984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16985 shlibpath_var=LD_LIBRARY_PATH
16986 shlibpath_overrides_runpath=no
16987 # This implies no fast_install, which is unacceptable.
16988 # Some rework will be needed to allow for fast_install
16989 # before this can be enabled.
16990 hardcode_into_libs=yes
16991
Reid Spencer2706f8c2004-09-19 23:53:36 +000016992 # Append ld.so.conf contents to the search path
16993 if test -f /etc/ld.so.conf; then
16994 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16995 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16996 fi
16997
John Criswell47fdd832003-07-14 16:52:07 +000016998 # We used to test for /lib/ld.so.1 and disable shared libraries on
16999 # powerpc, because MkLinux only supported shared libraries with the
17000 # GNU dynamic linker. Since this was broken with cross compilers,
17001 # most powerpc-linux boxes support dynamic linking these days and
17002 # people can always --disable-shared, the test was removed, and we
17003 # assume the GNU/Linux dynamic linker is in use.
17004 dynamic_linker='GNU/Linux ld.so'
17005 ;;
17006
Reid Spencer2706f8c2004-09-19 23:53:36 +000017007knetbsd*-gnu)
17008 version_type=linux
17009 need_lib_prefix=no
17010 need_version=no
17011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17012 soname_spec='${libname}${release}${shared_ext}$major'
17013 shlibpath_var=LD_LIBRARY_PATH
17014 shlibpath_overrides_runpath=no
17015 hardcode_into_libs=yes
17016 dynamic_linker='GNU ld.so'
17017 ;;
17018
John Criswell47fdd832003-07-14 16:52:07 +000017019netbsd*)
17020 version_type=sunos
17021 need_lib_prefix=no
17022 need_version=no
17023 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17026 dynamic_linker='NetBSD (a.out) ld.so'
17027 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017029 soname_spec='${libname}${release}${shared_ext}$major'
17030 dynamic_linker='NetBSD ld.elf_so'
17031 fi
17032 shlibpath_var=LD_LIBRARY_PATH
17033 shlibpath_overrides_runpath=yes
17034 hardcode_into_libs=yes
17035 ;;
17036
17037newsos6)
17038 version_type=linux
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040 shlibpath_var=LD_LIBRARY_PATH
17041 shlibpath_overrides_runpath=yes
17042 ;;
17043
Reid Spencer2706f8c2004-09-19 23:53:36 +000017044nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017045 version_type=linux
17046 need_lib_prefix=no
17047 need_version=no
17048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17049 soname_spec='${libname}${release}${shared_ext}$major'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 shlibpath_overrides_runpath=yes
17052 ;;
17053
17054openbsd*)
17055 version_type=sunos
17056 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017057 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17059 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17060 shlibpath_var=LD_LIBRARY_PATH
17061 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17062 case $host_os in
17063 openbsd2.[89] | openbsd2.[89].*)
17064 shlibpath_overrides_runpath=no
17065 ;;
17066 *)
17067 shlibpath_overrides_runpath=yes
17068 ;;
17069 esac
17070 else
17071 shlibpath_overrides_runpath=yes
17072 fi
17073 ;;
17074
17075os2*)
17076 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017077 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017078 need_lib_prefix=no
17079 library_names_spec='$libname${shared_ext} $libname.a'
17080 dynamic_linker='OS/2 ld.exe'
17081 shlibpath_var=LIBPATH
17082 ;;
17083
17084osf3* | osf4* | osf5*)
17085 version_type=osf
17086 need_lib_prefix=no
17087 need_version=no
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 shlibpath_var=LD_LIBRARY_PATH
17091 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17092 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17093 ;;
17094
17095sco3.2v5*)
17096 version_type=osf
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099 shlibpath_var=LD_LIBRARY_PATH
17100 ;;
17101
17102solaris*)
17103 version_type=linux
17104 need_lib_prefix=no
17105 need_version=no
17106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17107 soname_spec='${libname}${release}${shared_ext}$major'
17108 shlibpath_var=LD_LIBRARY_PATH
17109 shlibpath_overrides_runpath=yes
17110 hardcode_into_libs=yes
17111 # ldd complains unless libraries are executable
17112 postinstall_cmds='chmod +x $lib'
17113 ;;
17114
17115sunos4*)
17116 version_type=sunos
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17118 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17119 shlibpath_var=LD_LIBRARY_PATH
17120 shlibpath_overrides_runpath=yes
17121 if test "$with_gnu_ld" = yes; then
17122 need_lib_prefix=no
17123 fi
17124 need_version=yes
17125 ;;
17126
17127sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17128 version_type=linux
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 shlibpath_var=LD_LIBRARY_PATH
17132 case $host_vendor in
17133 sni)
17134 shlibpath_overrides_runpath=no
17135 need_lib_prefix=no
17136 export_dynamic_flag_spec='${wl}-Blargedynsym'
17137 runpath_var=LD_RUN_PATH
17138 ;;
17139 siemens)
17140 need_lib_prefix=no
17141 ;;
17142 motorola)
17143 need_lib_prefix=no
17144 need_version=no
17145 shlibpath_overrides_runpath=no
17146 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17147 ;;
17148 esac
17149 ;;
17150
17151sysv4*MP*)
17152 if test -d /usr/nec ;then
17153 version_type=linux
17154 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17155 soname_spec='$libname${shared_ext}.$major'
17156 shlibpath_var=LD_LIBRARY_PATH
17157 fi
17158 ;;
17159
17160uts4*)
17161 version_type=linux
17162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163 soname_spec='${libname}${release}${shared_ext}$major'
17164 shlibpath_var=LD_LIBRARY_PATH
17165 ;;
17166
17167*)
17168 dynamic_linker=no
17169 ;;
17170esac
17171echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17172echo "${ECHO_T}$dynamic_linker" >&6
17173test "$dynamic_linker" = no && can_build_shared=no
17174
Reid Spencer2706f8c2004-09-19 23:53:36 +000017175echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17176echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17177hardcode_action_CXX=
17178if test -n "$hardcode_libdir_flag_spec_CXX" || \
17179 test -n "$runpath_var_CXX" || \
17180 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17181
17182 # We can hardcode non-existant directories.
17183 if test "$hardcode_direct_CXX" != no &&
17184 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17185 # have to relink, otherwise we might link with an installed library
17186 # when we should be linking with a yet-to-be-installed one
17187 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17188 test "$hardcode_minus_L_CXX" != no; then
17189 # Linking always hardcodes the temporary library directory.
17190 hardcode_action_CXX=relink
17191 else
17192 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17193 hardcode_action_CXX=immediate
17194 fi
17195else
17196 # We cannot hardcode anything, or else we can only hardcode existing
17197 # directories.
17198 hardcode_action_CXX=unsupported
17199fi
17200echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17201echo "${ECHO_T}$hardcode_action_CXX" >&6
17202
17203if test "$hardcode_action_CXX" = relink; then
17204 # Fast installation is not supported
17205 enable_fast_install=no
17206elif test "$shlibpath_overrides_runpath" = yes ||
17207 test "$enable_shared" = no; then
17208 # Fast installation is not necessary
17209 enable_fast_install=needless
17210fi
17211
17212striplib=
17213old_striplib=
17214echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17215echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17216if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17217 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17218 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17219 echo "$as_me:$LINENO: result: yes" >&5
17220echo "${ECHO_T}yes" >&6
17221else
17222# FIXME - insert some real tests, host_os isn't really good enough
17223 case $host_os in
17224 darwin*)
17225 if test -n "$STRIP" ; then
17226 striplib="$STRIP -x"
17227 echo "$as_me:$LINENO: result: yes" >&5
17228echo "${ECHO_T}yes" >&6
17229 else
17230 echo "$as_me:$LINENO: result: no" >&5
17231echo "${ECHO_T}no" >&6
17232fi
17233 ;;
17234 *)
17235 echo "$as_me:$LINENO: result: no" >&5
17236echo "${ECHO_T}no" >&6
17237 ;;
17238 esac
17239fi
17240
John Criswell47fdd832003-07-14 16:52:07 +000017241if test "x$enable_dlopen" != xyes; then
17242 enable_dlopen=unknown
17243 enable_dlopen_self=unknown
17244 enable_dlopen_self_static=unknown
17245else
17246 lt_cv_dlopen=no
17247 lt_cv_dlopen_libs=
17248
17249 case $host_os in
17250 beos*)
17251 lt_cv_dlopen="load_add_on"
17252 lt_cv_dlopen_libs=
17253 lt_cv_dlopen_self=yes
17254 ;;
17255
17256 mingw* | pw32*)
17257 lt_cv_dlopen="LoadLibrary"
17258 lt_cv_dlopen_libs=
17259 ;;
17260
17261 cygwin*)
17262 lt_cv_dlopen="dlopen"
17263 lt_cv_dlopen_libs=
17264 ;;
17265
17266 darwin*)
17267 # if libdl is installed we need to link against it
17268 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17269echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17270if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17272else
17273 ac_check_lib_save_LIBS=$LIBS
17274LIBS="-ldl $LIBS"
17275cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017276/* confdefs.h. */
17277_ACEOF
17278cat confdefs.h >>conftest.$ac_ext
17279cat >>conftest.$ac_ext <<_ACEOF
17280/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017281
17282/* Override any gcc2 internal prototype to avoid an error. */
17283#ifdef __cplusplus
17284extern "C"
17285#endif
17286/* We use char because int might match the return type of a gcc2
17287 builtin and then its argument prototype would still apply. */
17288char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017289int
17290main ()
17291{
17292dlopen ();
17293 ;
17294 return 0;
17295}
17296_ACEOF
17297rm -f conftest.$ac_objext conftest$ac_exeext
17298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017299 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017300 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017306 { ac_try='test -z "$ac_cxx_werror_flag"
17307 || test ! -s conftest.err'
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; } &&
17313 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17315 (eval $ac_try) 2>&5
17316 ac_status=$?
17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17318 (exit $ac_status); }; }; then
17319 ac_cv_lib_dl_dlopen=yes
17320else
17321 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017322sed 's/^/| /' conftest.$ac_ext >&5
17323
John Criswell47fdd832003-07-14 16:52:07 +000017324ac_cv_lib_dl_dlopen=no
17325fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017326rm -f conftest.err conftest.$ac_objext \
17327 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017328LIBS=$ac_check_lib_save_LIBS
17329fi
17330echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17331echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17332if test $ac_cv_lib_dl_dlopen = yes; then
17333 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17334else
17335
17336 lt_cv_dlopen="dyld"
17337 lt_cv_dlopen_libs=
17338 lt_cv_dlopen_self=yes
17339
17340fi
17341
17342 ;;
17343
17344 *)
17345 echo "$as_me:$LINENO: checking for shl_load" >&5
17346echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17347if test "${ac_cv_func_shl_load+set}" = set; then
17348 echo $ECHO_N "(cached) $ECHO_C" >&6
17349else
17350 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017351/* confdefs.h. */
17352_ACEOF
17353cat confdefs.h >>conftest.$ac_ext
17354cat >>conftest.$ac_ext <<_ACEOF
17355/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017356/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17358#define shl_load innocuous_shl_load
17359
John Criswell47fdd832003-07-14 16:52:07 +000017360/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017361 which can conflict with char shl_load (); below.
17362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17363 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017364
John Criswell0c38eaf2003-09-10 15:17:25 +000017365#ifdef __STDC__
17366# include <limits.h>
17367#else
17368# include <assert.h>
17369#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017370
17371#undef shl_load
17372
John Criswell47fdd832003-07-14 16:52:07 +000017373/* Override any gcc2 internal prototype to avoid an error. */
17374#ifdef __cplusplus
17375extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017376{
John Criswell47fdd832003-07-14 16:52:07 +000017377#endif
17378/* We use char because int might match the return type of a gcc2
17379 builtin and then its argument prototype would still apply. */
17380char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017381/* The GNU C library defines this for functions which it implements
17382 to always fail with ENOSYS. Some functions are actually named
17383 something starting with __ and the normal name is an alias. */
17384#if defined (__stub_shl_load) || defined (__stub___shl_load)
17385choke me
17386#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017387char (*f) () = shl_load;
17388#endif
17389#ifdef __cplusplus
17390}
John Criswell47fdd832003-07-14 16:52:07 +000017391#endif
17392
John Criswell0c38eaf2003-09-10 15:17:25 +000017393int
17394main ()
17395{
17396return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017397 ;
17398 return 0;
17399}
17400_ACEOF
17401rm -f conftest.$ac_objext conftest$ac_exeext
17402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017403 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017404 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017405 grep -v '^ *+' conftest.er1 >conftest.err
17406 rm -f conftest.er1
17407 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017410 { ac_try='test -z "$ac_cxx_werror_flag"
17411 || test ! -s conftest.err'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017418 { (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); }; }; then
17423 ac_cv_func_shl_load=yes
17424else
17425 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017426sed 's/^/| /' conftest.$ac_ext >&5
17427
John Criswell47fdd832003-07-14 16:52:07 +000017428ac_cv_func_shl_load=no
17429fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017430rm -f conftest.err conftest.$ac_objext \
17431 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017432fi
17433echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17434echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17435if test $ac_cv_func_shl_load = yes; then
17436 lt_cv_dlopen="shl_load"
17437else
17438 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17439echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17440if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17442else
17443 ac_check_lib_save_LIBS=$LIBS
17444LIBS="-ldld $LIBS"
17445cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017446/* confdefs.h. */
17447_ACEOF
17448cat confdefs.h >>conftest.$ac_ext
17449cat >>conftest.$ac_ext <<_ACEOF
17450/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017451
17452/* Override any gcc2 internal prototype to avoid an error. */
17453#ifdef __cplusplus
17454extern "C"
17455#endif
17456/* We use char because int might match the return type of a gcc2
17457 builtin and then its argument prototype would still apply. */
17458char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017459int
17460main ()
17461{
17462shl_load ();
17463 ;
17464 return 0;
17465}
17466_ACEOF
17467rm -f conftest.$ac_objext conftest$ac_exeext
17468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017469 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017470 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017471 grep -v '^ *+' conftest.er1 >conftest.err
17472 rm -f conftest.er1
17473 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017476 { ac_try='test -z "$ac_cxx_werror_flag"
17477 || test ! -s conftest.err'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17480 ac_status=$?
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 ac_cv_lib_dld_shl_load=yes
17490else
17491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017492sed 's/^/| /' conftest.$ac_ext >&5
17493
John Criswell47fdd832003-07-14 16:52:07 +000017494ac_cv_lib_dld_shl_load=no
17495fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017496rm -f conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017498LIBS=$ac_check_lib_save_LIBS
17499fi
17500echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17501echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17502if test $ac_cv_lib_dld_shl_load = yes; then
17503 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17504else
17505 echo "$as_me:$LINENO: checking for dlopen" >&5
17506echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17507if test "${ac_cv_func_dlopen+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17509else
17510 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017511/* confdefs.h. */
17512_ACEOF
17513cat confdefs.h >>conftest.$ac_ext
17514cat >>conftest.$ac_ext <<_ACEOF
17515/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017516/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17518#define dlopen innocuous_dlopen
17519
John Criswell47fdd832003-07-14 16:52:07 +000017520/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017521 which can conflict with char dlopen (); below.
17522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17523 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017524
John Criswell0c38eaf2003-09-10 15:17:25 +000017525#ifdef __STDC__
17526# include <limits.h>
17527#else
17528# include <assert.h>
17529#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017530
17531#undef dlopen
17532
John Criswell47fdd832003-07-14 16:52:07 +000017533/* Override any gcc2 internal prototype to avoid an error. */
17534#ifdef __cplusplus
17535extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017536{
John Criswell47fdd832003-07-14 16:52:07 +000017537#endif
17538/* We use char because int might match the return type of a gcc2
17539 builtin and then its argument prototype would still apply. */
17540char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017541/* The GNU C library defines this for functions which it implements
17542 to always fail with ENOSYS. Some functions are actually named
17543 something starting with __ and the normal name is an alias. */
17544#if defined (__stub_dlopen) || defined (__stub___dlopen)
17545choke me
17546#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017547char (*f) () = dlopen;
17548#endif
17549#ifdef __cplusplus
17550}
John Criswell47fdd832003-07-14 16:52:07 +000017551#endif
17552
John Criswell0c38eaf2003-09-10 15:17:25 +000017553int
17554main ()
17555{
17556return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017557 ;
17558 return 0;
17559}
17560_ACEOF
17561rm -f conftest.$ac_objext conftest$ac_exeext
17562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017563 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017564 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017565 grep -v '^ *+' conftest.er1 >conftest.err
17566 rm -f conftest.er1
17567 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017570 { ac_try='test -z "$ac_cxx_werror_flag"
17571 || test ! -s conftest.err'
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; } &&
17577 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17579 (eval $ac_try) 2>&5
17580 ac_status=$?
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 ac_cv_func_dlopen=yes
17584else
17585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017586sed 's/^/| /' conftest.$ac_ext >&5
17587
John Criswell47fdd832003-07-14 16:52:07 +000017588ac_cv_func_dlopen=no
17589fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017590rm -f conftest.err conftest.$ac_objext \
17591 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017592fi
17593echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17594echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17595if test $ac_cv_func_dlopen = yes; then
17596 lt_cv_dlopen="dlopen"
17597else
17598 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17599echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17600if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17602else
17603 ac_check_lib_save_LIBS=$LIBS
17604LIBS="-ldl $LIBS"
17605cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017606/* confdefs.h. */
17607_ACEOF
17608cat confdefs.h >>conftest.$ac_ext
17609cat >>conftest.$ac_ext <<_ACEOF
17610/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017611
17612/* Override any gcc2 internal prototype to avoid an error. */
17613#ifdef __cplusplus
17614extern "C"
17615#endif
17616/* We use char because int might match the return type of a gcc2
17617 builtin and then its argument prototype would still apply. */
17618char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017619int
17620main ()
17621{
17622dlopen ();
17623 ;
17624 return 0;
17625}
17626_ACEOF
17627rm -f conftest.$ac_objext conftest$ac_exeext
17628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017629 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017630 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017631 grep -v '^ *+' conftest.er1 >conftest.err
17632 rm -f conftest.er1
17633 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017636 { ac_try='test -z "$ac_cxx_werror_flag"
17637 || test ! -s conftest.err'
17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639 (eval $ac_try) 2>&5
17640 ac_status=$?
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); }; } &&
17643 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645 (eval $ac_try) 2>&5
17646 ac_status=$?
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }; }; then
17649 ac_cv_lib_dl_dlopen=yes
17650else
17651 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017652sed 's/^/| /' conftest.$ac_ext >&5
17653
John Criswell47fdd832003-07-14 16:52:07 +000017654ac_cv_lib_dl_dlopen=no
17655fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017656rm -f conftest.err conftest.$ac_objext \
17657 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017658LIBS=$ac_check_lib_save_LIBS
17659fi
17660echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17661echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17662if test $ac_cv_lib_dl_dlopen = yes; then
17663 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17664else
17665 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17666echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17667if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17668 echo $ECHO_N "(cached) $ECHO_C" >&6
17669else
17670 ac_check_lib_save_LIBS=$LIBS
17671LIBS="-lsvld $LIBS"
17672cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017673/* confdefs.h. */
17674_ACEOF
17675cat confdefs.h >>conftest.$ac_ext
17676cat >>conftest.$ac_ext <<_ACEOF
17677/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017678
17679/* Override any gcc2 internal prototype to avoid an error. */
17680#ifdef __cplusplus
17681extern "C"
17682#endif
17683/* We use char because int might match the return type of a gcc2
17684 builtin and then its argument prototype would still apply. */
17685char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017686int
17687main ()
17688{
17689dlopen ();
17690 ;
17691 return 0;
17692}
17693_ACEOF
17694rm -f conftest.$ac_objext conftest$ac_exeext
17695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017696 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017697 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017698 grep -v '^ *+' conftest.er1 >conftest.err
17699 rm -f conftest.er1
17700 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017703 { ac_try='test -z "$ac_cxx_werror_flag"
17704 || test ! -s conftest.err'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; } &&
17710 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; }; then
17716 ac_cv_lib_svld_dlopen=yes
17717else
17718 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017719sed 's/^/| /' conftest.$ac_ext >&5
17720
John Criswell47fdd832003-07-14 16:52:07 +000017721ac_cv_lib_svld_dlopen=no
17722fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017723rm -f conftest.err conftest.$ac_objext \
17724 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017725LIBS=$ac_check_lib_save_LIBS
17726fi
17727echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17728echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17729if test $ac_cv_lib_svld_dlopen = yes; then
17730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17731else
17732 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17733echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17734if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17736else
17737 ac_check_lib_save_LIBS=$LIBS
17738LIBS="-ldld $LIBS"
17739cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017740/* confdefs.h. */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017745
17746/* Override any gcc2 internal prototype to avoid an error. */
17747#ifdef __cplusplus
17748extern "C"
17749#endif
17750/* We use char because int might match the return type of a gcc2
17751 builtin and then its argument prototype would still apply. */
17752char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017753int
17754main ()
17755{
17756dld_link ();
17757 ;
17758 return 0;
17759}
17760_ACEOF
17761rm -f conftest.$ac_objext conftest$ac_exeext
17762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017763 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017764 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017765 grep -v '^ *+' conftest.er1 >conftest.err
17766 rm -f conftest.er1
17767 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017770 { ac_try='test -z "$ac_cxx_werror_flag"
17771 || test ! -s conftest.err'
17772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773 (eval $ac_try) 2>&5
17774 ac_status=$?
17775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); }; } &&
17777 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17780 ac_status=$?
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; }; then
17783 ac_cv_lib_dld_dld_link=yes
17784else
17785 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017786sed 's/^/| /' conftest.$ac_ext >&5
17787
John Criswell47fdd832003-07-14 16:52:07 +000017788ac_cv_lib_dld_dld_link=no
17789fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017790rm -f conftest.err conftest.$ac_objext \
17791 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017792LIBS=$ac_check_lib_save_LIBS
17793fi
17794echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17795echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17796if test $ac_cv_lib_dld_dld_link = yes; then
17797 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17798fi
17799
17800
17801fi
17802
17803
17804fi
17805
17806
17807fi
17808
17809
17810fi
17811
17812
17813fi
17814
17815 ;;
17816 esac
17817
17818 if test "x$lt_cv_dlopen" != xno; then
17819 enable_dlopen=yes
17820 else
17821 enable_dlopen=no
17822 fi
17823
17824 case $lt_cv_dlopen in
17825 dlopen)
17826 save_CPPFLAGS="$CPPFLAGS"
17827 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17828
17829 save_LDFLAGS="$LDFLAGS"
17830 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17831
17832 save_LIBS="$LIBS"
17833 LIBS="$lt_cv_dlopen_libs $LIBS"
17834
17835 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17836echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17837if test "${lt_cv_dlopen_self+set}" = set; then
17838 echo $ECHO_N "(cached) $ECHO_C" >&6
17839else
17840 if test "$cross_compiling" = yes; then :
17841 lt_cv_dlopen_self=cross
17842else
17843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17844 lt_status=$lt_dlunknown
17845 cat > conftest.$ac_ext <<EOF
Reid Spencer86901802004-12-08 23:07:27 +000017846#line 17846 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017847#include "confdefs.h"
17848
17849#if HAVE_DLFCN_H
17850#include <dlfcn.h>
17851#endif
17852
17853#include <stdio.h>
17854
17855#ifdef RTLD_GLOBAL
17856# define LT_DLGLOBAL RTLD_GLOBAL
17857#else
17858# ifdef DL_GLOBAL
17859# define LT_DLGLOBAL DL_GLOBAL
17860# else
17861# define LT_DLGLOBAL 0
17862# endif
17863#endif
17864
17865/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17866 find out it does not work in some platform. */
17867#ifndef LT_DLLAZY_OR_NOW
17868# ifdef RTLD_LAZY
17869# define LT_DLLAZY_OR_NOW RTLD_LAZY
17870# else
17871# ifdef DL_LAZY
17872# define LT_DLLAZY_OR_NOW DL_LAZY
17873# else
17874# ifdef RTLD_NOW
17875# define LT_DLLAZY_OR_NOW RTLD_NOW
17876# else
17877# ifdef DL_NOW
17878# define LT_DLLAZY_OR_NOW DL_NOW
17879# else
17880# define LT_DLLAZY_OR_NOW 0
17881# endif
17882# endif
17883# endif
17884# endif
17885#endif
17886
17887#ifdef __cplusplus
17888extern "C" void exit (int);
17889#endif
17890
17891void fnord() { int i=42;}
17892int main ()
17893{
17894 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17895 int status = $lt_dlunknown;
17896
17897 if (self)
17898 {
17899 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17900 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17901 /* dlclose (self); */
17902 }
17903
17904 exit (status);
17905}
17906EOF
17907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17908 (eval $ac_link) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17912 (./conftest; exit; ) 2>/dev/null
17913 lt_status=$?
17914 case x$lt_status in
17915 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17916 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17917 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17918 esac
17919 else :
17920 # compilation failed
17921 lt_cv_dlopen_self=no
17922 fi
17923fi
17924rm -fr conftest*
17925
17926
17927fi
17928echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17929echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17930
17931 if test "x$lt_cv_dlopen_self" = xyes; then
17932 LDFLAGS="$LDFLAGS $link_static_flag"
17933 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17934echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17935if test "${lt_cv_dlopen_self_static+set}" = set; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17937else
17938 if test "$cross_compiling" = yes; then :
17939 lt_cv_dlopen_self_static=cross
17940else
17941 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17942 lt_status=$lt_dlunknown
17943 cat > conftest.$ac_ext <<EOF
Reid Spencer86901802004-12-08 23:07:27 +000017944#line 17944 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017945#include "confdefs.h"
17946
17947#if HAVE_DLFCN_H
17948#include <dlfcn.h>
17949#endif
17950
17951#include <stdio.h>
17952
17953#ifdef RTLD_GLOBAL
17954# define LT_DLGLOBAL RTLD_GLOBAL
17955#else
17956# ifdef DL_GLOBAL
17957# define LT_DLGLOBAL DL_GLOBAL
17958# else
17959# define LT_DLGLOBAL 0
17960# endif
17961#endif
17962
17963/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17964 find out it does not work in some platform. */
17965#ifndef LT_DLLAZY_OR_NOW
17966# ifdef RTLD_LAZY
17967# define LT_DLLAZY_OR_NOW RTLD_LAZY
17968# else
17969# ifdef DL_LAZY
17970# define LT_DLLAZY_OR_NOW DL_LAZY
17971# else
17972# ifdef RTLD_NOW
17973# define LT_DLLAZY_OR_NOW RTLD_NOW
17974# else
17975# ifdef DL_NOW
17976# define LT_DLLAZY_OR_NOW DL_NOW
17977# else
17978# define LT_DLLAZY_OR_NOW 0
17979# endif
17980# endif
17981# endif
17982# endif
17983#endif
17984
17985#ifdef __cplusplus
17986extern "C" void exit (int);
17987#endif
17988
17989void fnord() { int i=42;}
17990int main ()
17991{
17992 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17993 int status = $lt_dlunknown;
17994
17995 if (self)
17996 {
17997 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17998 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17999 /* dlclose (self); */
18000 }
18001
18002 exit (status);
18003}
18004EOF
18005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18006 (eval $ac_link) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18010 (./conftest; exit; ) 2>/dev/null
18011 lt_status=$?
18012 case x$lt_status in
18013 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18014 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18015 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18016 esac
18017 else :
18018 # compilation failed
18019 lt_cv_dlopen_self_static=no
18020 fi
18021fi
18022rm -fr conftest*
18023
18024
18025fi
18026echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18027echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18028 fi
18029
18030 CPPFLAGS="$save_CPPFLAGS"
18031 LDFLAGS="$save_LDFLAGS"
18032 LIBS="$save_LIBS"
18033 ;;
18034 esac
18035
18036 case $lt_cv_dlopen_self in
18037 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18038 *) enable_dlopen_self=unknown ;;
18039 esac
18040
18041 case $lt_cv_dlopen_self_static in
18042 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18043 *) enable_dlopen_self_static=unknown ;;
18044 esac
18045fi
18046
18047
18048# The else clause should only fire when bootstrapping the
18049# libtool distribution, otherwise you forgot to ship ltmain.sh
18050# with your package, and you will get complaints that there are
18051# no rules to generate ltmain.sh.
18052if test -f "$ltmain"; then
18053 # See if we are running on zsh, and set the options which allow our commands through
18054 # without removal of \ escapes.
18055 if test -n "${ZSH_VERSION+set}" ; then
18056 setopt NO_GLOB_SUBST
18057 fi
18058 # Now quote all the things that may contain metacharacters while being
18059 # careful not to overquote the AC_SUBSTed values. We take copies of the
18060 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018061 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18062 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018063 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18064 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18065 deplibs_check_method reload_flag reload_cmds need_locks \
18066 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18067 lt_cv_sys_global_symbol_to_c_name_address \
18068 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18069 old_postinstall_cmds old_postuninstall_cmds \
18070 compiler_CXX \
18071 CC_CXX \
18072 LD_CXX \
18073 lt_prog_compiler_wl_CXX \
18074 lt_prog_compiler_pic_CXX \
18075 lt_prog_compiler_static_CXX \
18076 lt_prog_compiler_no_builtin_flag_CXX \
18077 export_dynamic_flag_spec_CXX \
18078 thread_safe_flag_spec_CXX \
18079 whole_archive_flag_spec_CXX \
18080 enable_shared_with_static_runtimes_CXX \
18081 old_archive_cmds_CXX \
18082 old_archive_from_new_cmds_CXX \
18083 predep_objects_CXX \
18084 postdep_objects_CXX \
18085 predeps_CXX \
18086 postdeps_CXX \
18087 compiler_lib_search_path_CXX \
18088 archive_cmds_CXX \
18089 archive_expsym_cmds_CXX \
18090 postinstall_cmds_CXX \
18091 postuninstall_cmds_CXX \
18092 old_archive_from_expsyms_cmds_CXX \
18093 allow_undefined_flag_CXX \
18094 no_undefined_flag_CXX \
18095 export_symbols_cmds_CXX \
18096 hardcode_libdir_flag_spec_CXX \
18097 hardcode_libdir_flag_spec_ld_CXX \
18098 hardcode_libdir_separator_CXX \
18099 hardcode_automatic_CXX \
18100 module_cmds_CXX \
18101 module_expsym_cmds_CXX \
18102 lt_cv_prog_compiler_c_o_CXX \
18103 exclude_expsyms_CXX \
18104 include_expsyms_CXX; do
18105
18106 case $var in
18107 old_archive_cmds_CXX | \
18108 old_archive_from_new_cmds_CXX | \
18109 archive_cmds_CXX | \
18110 archive_expsym_cmds_CXX | \
18111 module_cmds_CXX | \
18112 module_expsym_cmds_CXX | \
18113 old_archive_from_expsyms_cmds_CXX | \
18114 export_symbols_cmds_CXX | \
18115 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18116 postinstall_cmds | postuninstall_cmds | \
18117 old_postinstall_cmds | old_postuninstall_cmds | \
18118 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18119 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018120 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 +000018121 ;;
18122 *)
18123 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18124 ;;
18125 esac
18126 done
18127
18128 case $lt_echo in
18129 *'\$0 --fallback-echo"')
18130 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18131 ;;
18132 esac
18133
18134cfgfile="$ofile"
18135
18136 cat <<__EOF__ >> "$cfgfile"
18137# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18138
18139# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18140
18141# Shell to use when invoking shell scripts.
18142SHELL=$lt_SHELL
18143
18144# Whether or not to build shared libraries.
18145build_libtool_libs=$enable_shared
18146
18147# Whether or not to build static libraries.
18148build_old_libs=$enable_static
18149
18150# Whether or not to add -lc for building shared libraries.
18151build_libtool_need_lc=$archive_cmds_need_lc_CXX
18152
18153# Whether or not to disallow shared libs when runtime libs are static
18154allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18155
18156# Whether or not to optimize for fast installation.
18157fast_install=$enable_fast_install
18158
18159# The host system.
18160host_alias=$host_alias
18161host=$host
18162
18163# An echo program that does not interpret backslashes.
18164echo=$lt_echo
18165
18166# The archiver.
18167AR=$lt_AR
18168AR_FLAGS=$lt_AR_FLAGS
18169
18170# A C compiler.
18171LTCC=$lt_LTCC
18172
18173# A language-specific compiler.
18174CC=$lt_compiler_CXX
18175
18176# Is the compiler the GNU C compiler?
18177with_gcc=$GCC_CXX
18178
18179# An ERE matcher.
18180EGREP=$lt_EGREP
18181
18182# The linker used to build libraries.
18183LD=$lt_LD_CXX
18184
18185# Whether we need hard or soft links.
18186LN_S=$lt_LN_S
18187
18188# A BSD-compatible nm program.
18189NM=$lt_NM
18190
18191# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018192STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018193
18194# Used to examine libraries when file_magic_cmd begins "file"
18195MAGIC_CMD=$MAGIC_CMD
18196
18197# Used on cygwin: DLL creation program.
18198DLLTOOL="$DLLTOOL"
18199
18200# Used on cygwin: object dumper.
18201OBJDUMP="$OBJDUMP"
18202
18203# Used on cygwin: assembler.
18204AS="$AS"
18205
18206# The name of the directory that contains temporary libtool files.
18207objdir=$objdir
18208
18209# How to create reloadable object files.
18210reload_flag=$lt_reload_flag
18211reload_cmds=$lt_reload_cmds
18212
18213# How to pass a linker flag through the compiler.
18214wl=$lt_lt_prog_compiler_wl_CXX
18215
18216# Object file suffix (normally "o").
18217objext="$ac_objext"
18218
18219# Old archive suffix (normally "a").
18220libext="$libext"
18221
18222# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018223shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018224
18225# Executable file suffix (normally "").
18226exeext="$exeext"
18227
18228# Additional compiler flags for building library objects.
18229pic_flag=$lt_lt_prog_compiler_pic_CXX
18230pic_mode=$pic_mode
18231
18232# What is the maximum length of a command?
18233max_cmd_len=$lt_cv_sys_max_cmd_len
18234
18235# Does compiler simultaneously support -c and -o options?
18236compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18237
18238# Must we lock files when doing compilation ?
18239need_locks=$lt_need_locks
18240
18241# Do we need the lib prefix for modules?
18242need_lib_prefix=$need_lib_prefix
18243
18244# Do we need a version for libraries?
18245need_version=$need_version
18246
18247# Whether dlopen is supported.
18248dlopen_support=$enable_dlopen
18249
18250# Whether dlopen of programs is supported.
18251dlopen_self=$enable_dlopen_self
18252
18253# Whether dlopen of statically linked programs is supported.
18254dlopen_self_static=$enable_dlopen_self_static
18255
18256# Compiler flag to prevent dynamic linking.
18257link_static_flag=$lt_lt_prog_compiler_static_CXX
18258
18259# Compiler flag to turn off builtin functions.
18260no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18261
18262# Compiler flag to allow reflexive dlopens.
18263export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18264
18265# Compiler flag to generate shared objects directly from archives.
18266whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18267
18268# Compiler flag to generate thread-safe objects.
18269thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18270
18271# Library versioning type.
18272version_type=$version_type
18273
18274# Format of library name prefix.
18275libname_spec=$lt_libname_spec
18276
18277# List of archive names. First name is the real one, the rest are links.
18278# The last name is the one that the linker finds with -lNAME.
18279library_names_spec=$lt_library_names_spec
18280
18281# The coded name of the library, if different from the real name.
18282soname_spec=$lt_soname_spec
18283
18284# Commands used to build and install an old-style archive.
18285RANLIB=$lt_RANLIB
18286old_archive_cmds=$lt_old_archive_cmds_CXX
18287old_postinstall_cmds=$lt_old_postinstall_cmds
18288old_postuninstall_cmds=$lt_old_postuninstall_cmds
18289
18290# Create an old-style archive from a shared archive.
18291old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18292
18293# Create a temporary old-style archive to link instead of a shared archive.
18294old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18295
18296# Commands used to build and install a shared archive.
18297archive_cmds=$lt_archive_cmds_CXX
18298archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18299postinstall_cmds=$lt_postinstall_cmds
18300postuninstall_cmds=$lt_postuninstall_cmds
18301
18302# Commands used to build a loadable module (assumed same as above if empty)
18303module_cmds=$lt_module_cmds_CXX
18304module_expsym_cmds=$lt_module_expsym_cmds_CXX
18305
18306# Commands to strip libraries.
18307old_striplib=$lt_old_striplib
18308striplib=$lt_striplib
18309
18310# Dependencies to place before the objects being linked to create a
18311# shared library.
18312predep_objects=$lt_predep_objects_CXX
18313
18314# Dependencies to place after the objects being linked to create a
18315# shared library.
18316postdep_objects=$lt_postdep_objects_CXX
18317
18318# Dependencies to place before the objects being linked to create a
18319# shared library.
18320predeps=$lt_predeps_CXX
18321
18322# Dependencies to place after the objects being linked to create a
18323# shared library.
18324postdeps=$lt_postdeps_CXX
18325
18326# The library search path used internally by the compiler when linking
18327# a shared library.
18328compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18329
18330# Method to check whether dependent libraries are shared objects.
18331deplibs_check_method=$lt_deplibs_check_method
18332
18333# Command to use when deplibs_check_method == file_magic.
18334file_magic_cmd=$lt_file_magic_cmd
18335
18336# Flag that allows shared libraries with undefined symbols to be built.
18337allow_undefined_flag=$lt_allow_undefined_flag_CXX
18338
18339# Flag that forces no undefined symbols.
18340no_undefined_flag=$lt_no_undefined_flag_CXX
18341
18342# Commands used to finish a libtool library installation in a directory.
18343finish_cmds=$lt_finish_cmds
18344
18345# Same as above, but a single script fragment to be evaled but not shown.
18346finish_eval=$lt_finish_eval
18347
18348# Take the output of nm and produce a listing of raw symbols and C names.
18349global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18350
18351# Transform the output of nm in a proper C declaration
18352global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18353
18354# Transform the output of nm in a C name address pair
18355global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18356
18357# This is the shared library runtime path variable.
18358runpath_var=$runpath_var
18359
18360# This is the shared library path variable.
18361shlibpath_var=$shlibpath_var
18362
18363# Is shlibpath searched before the hard-coded library search path?
18364shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18365
18366# How to hardcode a shared library path into an executable.
18367hardcode_action=$hardcode_action_CXX
18368
18369# Whether we should hardcode library paths into libraries.
18370hardcode_into_libs=$hardcode_into_libs
18371
18372# Flag to hardcode \$libdir into a binary during linking.
18373# This must work even if \$libdir does not exist.
18374hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18375
18376# If ld is used when linking, flag to hardcode \$libdir into
18377# a binary during linking. This must work even if \$libdir does
18378# not exist.
18379hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18380
18381# Whether we need a single -rpath flag with a separated argument.
18382hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18383
18384# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18385# resulting binary.
18386hardcode_direct=$hardcode_direct_CXX
18387
18388# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18389# resulting binary.
18390hardcode_minus_L=$hardcode_minus_L_CXX
18391
18392# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18393# the resulting binary.
18394hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18395
18396# Set to yes if building a shared library automatically hardcodes DIR into the library
18397# and all subsequent libraries and executables linked against it.
18398hardcode_automatic=$hardcode_automatic_CXX
18399
18400# Variables whose values should be saved in libtool wrapper scripts and
18401# restored at relink time.
18402variables_saved_for_relink="$variables_saved_for_relink"
18403
18404# Whether libtool must link a program against all its dependency libraries.
18405link_all_deplibs=$link_all_deplibs_CXX
18406
18407# Compile-time system search path for libraries
18408sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18409
18410# Run-time system search path for libraries
18411sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18412
18413# Fix the shell variable \$srcfile for the compiler.
18414fix_srcfile_path="$fix_srcfile_path_CXX"
18415
18416# Set to yes if exported symbols are required.
18417always_export_symbols=$always_export_symbols_CXX
18418
18419# The commands to list exported symbols.
18420export_symbols_cmds=$lt_export_symbols_cmds_CXX
18421
18422# The commands to extract the exported symbol list from a shared archive.
18423extract_expsyms_cmds=$lt_extract_expsyms_cmds
18424
18425# Symbols that should not be listed in the preloaded symbols.
18426exclude_expsyms=$lt_exclude_expsyms_CXX
18427
18428# Symbols that must always be exported.
18429include_expsyms=$lt_include_expsyms_CXX
18430
18431# ### END LIBTOOL TAG CONFIG: $tagname
18432
18433__EOF__
18434
18435
18436else
18437 # If there is no Makefile yet, we rely on a make rule to execute
18438 # `config.status --recheck' to rerun these tests and create the
18439 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018440 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18441 if test -f "$ltmain_in"; then
18442 test -f Makefile && make "$ltmain"
18443 fi
John Criswell47fdd832003-07-14 16:52:07 +000018444fi
18445
18446
18447ac_ext=c
18448ac_cpp='$CPP $CPPFLAGS'
18449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18451ac_compiler_gnu=$ac_cv_c_compiler_gnu
18452
18453CC=$lt_save_CC
18454LDCXX=$LD
18455LD=$lt_save_LD
18456GCC=$lt_save_GCC
18457with_gnu_ldcxx=$with_gnu_ld
18458with_gnu_ld=$lt_save_with_gnu_ld
18459lt_cv_path_LDCXX=$lt_cv_path_LD
18460lt_cv_path_LD=$lt_save_path_LD
18461lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18462lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18463
18464 else
18465 tagname=""
18466 fi
18467 ;;
18468
18469 F77)
18470 if test -n "$F77" && test "X$F77" != "Xno"; then
18471
18472ac_ext=f
18473ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18474ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18475ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18476
18477
18478archive_cmds_need_lc_F77=no
18479allow_undefined_flag_F77=
18480always_export_symbols_F77=no
18481archive_expsym_cmds_F77=
18482export_dynamic_flag_spec_F77=
18483hardcode_direct_F77=no
18484hardcode_libdir_flag_spec_F77=
18485hardcode_libdir_flag_spec_ld_F77=
18486hardcode_libdir_separator_F77=
18487hardcode_minus_L_F77=no
18488hardcode_automatic_F77=no
18489module_cmds_F77=
18490module_expsym_cmds_F77=
18491link_all_deplibs_F77=unknown
18492old_archive_cmds_F77=$old_archive_cmds
18493no_undefined_flag_F77=
18494whole_archive_flag_spec_F77=
18495enable_shared_with_static_runtimes_F77=no
18496
18497# Source file extension for f77 test sources.
18498ac_ext=f
18499
18500# Object file extension for compiled f77 test sources.
18501objext=o
18502objext_F77=$objext
18503
18504# Code to be used in simple compile tests
18505lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18506
18507# Code to be used in simple link tests
18508lt_simple_link_test_code=" program t\n end\n"
18509
18510# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18511
18512# If no C compiler was specified, use CC.
18513LTCC=${LTCC-"$CC"}
18514
18515# Allow CC to be a program name with arguments.
18516compiler=$CC
18517
18518
18519# Allow CC to be a program name with arguments.
18520lt_save_CC="$CC"
18521CC=${F77-"f77"}
18522compiler=$CC
18523compiler_F77=$CC
18524cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18525
18526echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18527echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18528echo "$as_me:$LINENO: result: $can_build_shared" >&5
18529echo "${ECHO_T}$can_build_shared" >&6
18530
18531echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18532echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18533test "$can_build_shared" = "no" && enable_shared=no
18534
18535# On AIX, shared libraries and static libraries use the same namespace, and
18536# are all built from PIC.
18537case "$host_os" in
18538aix3*)
18539 test "$enable_shared" = yes && enable_static=no
18540 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018541 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018542 postinstall_cmds='$RANLIB $lib'
18543 fi
18544 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018545aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018546 test "$enable_shared" = yes && enable_static=no
18547 ;;
18548esac
18549echo "$as_me:$LINENO: result: $enable_shared" >&5
18550echo "${ECHO_T}$enable_shared" >&6
18551
18552echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18553echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18554# Make sure either enable_shared or enable_static is yes.
18555test "$enable_shared" = yes || enable_static=yes
18556echo "$as_me:$LINENO: result: $enable_static" >&5
18557echo "${ECHO_T}$enable_static" >&6
18558
18559test "$ld_shlibs_F77" = no && can_build_shared=no
18560
18561GCC_F77="$G77"
18562LD_F77="$LD"
18563
18564lt_prog_compiler_wl_F77=
18565lt_prog_compiler_pic_F77=
18566lt_prog_compiler_static_F77=
18567
18568echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18569echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18570
18571 if test "$GCC" = yes; then
18572 lt_prog_compiler_wl_F77='-Wl,'
18573 lt_prog_compiler_static_F77='-static'
18574
18575 case $host_os in
18576 aix*)
18577 # All AIX code is PIC.
18578 if test "$host_cpu" = ia64; then
18579 # AIX 5 now supports IA64 processor
18580 lt_prog_compiler_static_F77='-Bstatic'
18581 fi
18582 ;;
18583
18584 amigaos*)
18585 # FIXME: we need at least 68020 code to build shared libraries, but
18586 # adding the `-m68020' flag to GCC prevents building anything better,
18587 # like `-m68040'.
18588 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18589 ;;
18590
18591 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18592 # PIC is the default for these OSes.
18593 ;;
18594
18595 mingw* | pw32* | os2*)
18596 # This hack is so that the source file can tell whether it is being
18597 # built for inclusion in a dll (and should export symbols for example).
18598 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18599 ;;
18600
18601 darwin* | rhapsody*)
18602 # PIC is the default on this platform
18603 # Common symbols not allowed in MH_DYLIB files
18604 lt_prog_compiler_pic_F77='-fno-common'
18605 ;;
18606
18607 msdosdjgpp*)
18608 # Just because we use GCC doesn't mean we suddenly get shared libraries
18609 # on systems that don't support them.
18610 lt_prog_compiler_can_build_shared_F77=no
18611 enable_shared=no
18612 ;;
18613
18614 sysv4*MP*)
18615 if test -d /usr/nec; then
18616 lt_prog_compiler_pic_F77=-Kconform_pic
18617 fi
18618 ;;
18619
18620 hpux*)
18621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18622 # not for PA HP-UX.
18623 case "$host_cpu" in
18624 hppa*64*|ia64*)
18625 # +Z the default
18626 ;;
18627 *)
18628 lt_prog_compiler_pic_F77='-fPIC'
18629 ;;
18630 esac
18631 ;;
18632
18633 *)
18634 lt_prog_compiler_pic_F77='-fPIC'
18635 ;;
18636 esac
18637 else
18638 # PORTME Check for flag to pass linker flags through the system compiler.
18639 case $host_os in
18640 aix*)
18641 lt_prog_compiler_wl_F77='-Wl,'
18642 if test "$host_cpu" = ia64; then
18643 # AIX 5 now supports IA64 processor
18644 lt_prog_compiler_static_F77='-Bstatic'
18645 else
18646 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18647 fi
18648 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018649 darwin*)
18650 # PIC is the default on this platform
18651 # Common symbols not allowed in MH_DYLIB files
18652 case "$cc_basename" in
18653 xlc*)
18654 lt_prog_compiler_pic_F77='-qnocommon'
18655 lt_prog_compiler_wl_F77='-Wl,'
18656 ;;
18657 esac
18658 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018659
18660 mingw* | pw32* | os2*)
18661 # This hack is so that the source file can tell whether it is being
18662 # built for inclusion in a dll (and should export symbols for example).
18663 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18664 ;;
18665
18666 hpux9* | hpux10* | hpux11*)
18667 lt_prog_compiler_wl_F77='-Wl,'
18668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18669 # not for PA HP-UX.
18670 case "$host_cpu" in
18671 hppa*64*|ia64*)
18672 # +Z the default
18673 ;;
18674 *)
18675 lt_prog_compiler_pic_F77='+Z'
18676 ;;
18677 esac
18678 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18679 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18680 ;;
18681
18682 irix5* | irix6* | nonstopux*)
18683 lt_prog_compiler_wl_F77='-Wl,'
18684 # PIC (with -KPIC) is the default.
18685 lt_prog_compiler_static_F77='-non_shared'
18686 ;;
18687
18688 newsos6)
18689 lt_prog_compiler_pic_F77='-KPIC'
18690 lt_prog_compiler_static_F77='-Bstatic'
18691 ;;
18692
18693 linux*)
18694 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018695 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018696 lt_prog_compiler_wl_F77='-Wl,'
18697 lt_prog_compiler_pic_F77='-KPIC'
18698 lt_prog_compiler_static_F77='-static'
18699 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018700 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018701 lt_prog_compiler_wl_F77='-Wl,'
18702 # All Alpha code is PIC.
18703 lt_prog_compiler_static_F77='-non_shared'
18704 ;;
18705 esac
18706 ;;
18707
18708 osf3* | osf4* | osf5*)
18709 lt_prog_compiler_wl_F77='-Wl,'
18710 # All OSF/1 code is PIC.
18711 lt_prog_compiler_static_F77='-non_shared'
18712 ;;
18713
18714 sco3.2v5*)
18715 lt_prog_compiler_pic_F77='-Kpic'
18716 lt_prog_compiler_static_F77='-dn'
18717 ;;
18718
18719 solaris*)
18720 lt_prog_compiler_wl_F77='-Wl,'
18721 lt_prog_compiler_pic_F77='-KPIC'
18722 lt_prog_compiler_static_F77='-Bstatic'
18723 ;;
18724
18725 sunos4*)
18726 lt_prog_compiler_wl_F77='-Qoption ld '
18727 lt_prog_compiler_pic_F77='-PIC'
18728 lt_prog_compiler_static_F77='-Bstatic'
18729 ;;
18730
18731 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18732 lt_prog_compiler_wl_F77='-Wl,'
18733 lt_prog_compiler_pic_F77='-KPIC'
18734 lt_prog_compiler_static_F77='-Bstatic'
18735 ;;
18736
18737 sysv4*MP*)
18738 if test -d /usr/nec ;then
18739 lt_prog_compiler_pic_F77='-Kconform_pic'
18740 lt_prog_compiler_static_F77='-Bstatic'
18741 fi
18742 ;;
18743
18744 uts4*)
18745 lt_prog_compiler_pic_F77='-pic'
18746 lt_prog_compiler_static_F77='-Bstatic'
18747 ;;
18748
18749 *)
18750 lt_prog_compiler_can_build_shared_F77=no
18751 ;;
18752 esac
18753 fi
18754
18755echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18756echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18757
18758#
18759# Check to make sure the PIC flag actually works.
18760#
18761if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018762
18763echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018764echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18765if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18767else
18768 lt_prog_compiler_pic_works_F77=no
18769 ac_outfile=conftest.$ac_objext
18770 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18771 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18772 # Insert the option either (1) after the last *FLAGS variable, or
18773 # (2) before a word containing "conftest.", or (3) at the end.
18774 # Note that $ac_compile itself does not contain backslashes and begins
18775 # with a dollar sign (not a hyphen), so the echo should work correctly.
18776 # The option is referenced via a variable to avoid confusing sed.
18777 lt_compile=`echo "$ac_compile" | $SED \
18778 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18780 -e 's:$: $lt_compiler_flag:'`
Reid Spencer86901802004-12-08 23:07:27 +000018781 (eval echo "\"\$as_me:18781: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018782 (eval "$lt_compile" 2>conftest.err)
18783 ac_status=$?
18784 cat conftest.err >&5
Reid Spencer86901802004-12-08 23:07:27 +000018785 echo "$as_me:18785: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018786 if (exit $ac_status) && test -s "$ac_outfile"; then
18787 # The compiler can only warn and ignore the option if not recognized
18788 # So say no if there are warnings
18789 if test ! -s conftest.err; then
18790 lt_prog_compiler_pic_works_F77=yes
18791 fi
18792 fi
18793 $rm conftest*
18794
18795fi
18796echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18797echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18798
18799if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18800 case $lt_prog_compiler_pic_F77 in
18801 "" | " "*) ;;
18802 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18803 esac
18804else
18805 lt_prog_compiler_pic_F77=
18806 lt_prog_compiler_can_build_shared_F77=no
18807fi
18808
18809fi
18810case "$host_os" in
18811 # For platforms which do not support PIC, -DPIC is meaningless:
18812 *djgpp*)
18813 lt_prog_compiler_pic_F77=
18814 ;;
18815 *)
18816 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18817 ;;
18818esac
18819
18820echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18821echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18822if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18823 echo $ECHO_N "(cached) $ECHO_C" >&6
18824else
18825 lt_cv_prog_compiler_c_o_F77=no
18826 $rm -r conftest 2>/dev/null
18827 mkdir conftest
18828 cd conftest
18829 mkdir out
18830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18831
John Criswell47fdd832003-07-14 16:52:07 +000018832 lt_compiler_flag="-o out/conftest2.$ac_objext"
18833 # Insert the option either (1) after the last *FLAGS variable, or
18834 # (2) before a word containing "conftest.", or (3) at the end.
18835 # Note that $ac_compile itself does not contain backslashes and begins
18836 # with a dollar sign (not a hyphen), so the echo should work correctly.
18837 lt_compile=`echo "$ac_compile" | $SED \
18838 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18840 -e 's:$: $lt_compiler_flag:'`
Reid Spencer86901802004-12-08 23:07:27 +000018841 (eval echo "\"\$as_me:18841: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018842 (eval "$lt_compile" 2>out/conftest.err)
18843 ac_status=$?
18844 cat out/conftest.err >&5
Reid Spencer86901802004-12-08 23:07:27 +000018845 echo "$as_me:18845: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18847 then
18848 # The compiler can only warn and ignore the option if not recognized
18849 # So say no if there are warnings
18850 if test ! -s out/conftest.err; then
18851 lt_cv_prog_compiler_c_o_F77=yes
18852 fi
18853 fi
18854 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018855 $rm conftest*
18856 # SGI C++ compiler will create directory out/ii_files/ for
18857 # template instantiation
18858 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18859 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018860 cd ..
18861 rmdir conftest
18862 $rm conftest*
18863
18864fi
18865echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18866echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18867
18868
18869hard_links="nottested"
18870if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18871 # do not overwrite the value of need_locks provided by the user
18872 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18873echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18874 hard_links=yes
18875 $rm conftest*
18876 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18877 touch conftest.a
18878 ln conftest.a conftest.b 2>&5 || hard_links=no
18879 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18880 echo "$as_me:$LINENO: result: $hard_links" >&5
18881echo "${ECHO_T}$hard_links" >&6
18882 if test "$hard_links" = no; then
18883 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18884echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18885 need_locks=warn
18886 fi
18887else
18888 need_locks=no
18889fi
18890
18891echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18892echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18893
18894 runpath_var=
18895 allow_undefined_flag_F77=
18896 enable_shared_with_static_runtimes_F77=no
18897 archive_cmds_F77=
18898 archive_expsym_cmds_F77=
18899 old_archive_From_new_cmds_F77=
18900 old_archive_from_expsyms_cmds_F77=
18901 export_dynamic_flag_spec_F77=
18902 whole_archive_flag_spec_F77=
18903 thread_safe_flag_spec_F77=
18904 hardcode_libdir_flag_spec_F77=
18905 hardcode_libdir_flag_spec_ld_F77=
18906 hardcode_libdir_separator_F77=
18907 hardcode_direct_F77=no
18908 hardcode_minus_L_F77=no
18909 hardcode_shlibpath_var_F77=unsupported
18910 link_all_deplibs_F77=unknown
18911 hardcode_automatic_F77=no
18912 module_cmds_F77=
18913 module_expsym_cmds_F77=
18914 always_export_symbols_F77=no
18915 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18916 # include_expsyms should be a list of space-separated symbols to be *always*
18917 # included in the symbol list
18918 include_expsyms_F77=
18919 # exclude_expsyms can be an extended regexp of symbols to exclude
18920 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18921 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18922 # as well as any symbol that contains `d'.
18923 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
18924 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18925 # platforms (ab)use it in PIC code, but their linkers get confused if
18926 # the symbol is explicitly referenced. Since portable code cannot
18927 # rely on this symbol name, it's probably fine to never include it in
18928 # preloaded symbol tables.
18929 extract_expsyms_cmds=
18930
18931 case $host_os in
18932 cygwin* | mingw* | pw32*)
18933 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18934 # When not using gcc, we currently assume that we are using
18935 # Microsoft Visual C++.
18936 if test "$GCC" != yes; then
18937 with_gnu_ld=no
18938 fi
18939 ;;
18940 openbsd*)
18941 with_gnu_ld=no
18942 ;;
18943 esac
18944
18945 ld_shlibs_F77=yes
18946 if test "$with_gnu_ld" = yes; then
18947 # If archive_cmds runs LD, not CC, wlarc should be empty
18948 wlarc='${wl}'
18949
18950 # See if GNU ld supports shared libraries.
18951 case $host_os in
18952 aix3* | aix4* | aix5*)
18953 # On AIX/PPC, the GNU linker is very broken
18954 if test "$host_cpu" != ia64; then
18955 ld_shlibs_F77=no
18956 cat <<EOF 1>&2
18957
18958*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18959*** to be unable to reliably create shared libraries on AIX.
18960*** Therefore, libtool is disabling shared libraries support. If you
18961*** really care for shared libraries, you may want to modify your PATH
18962*** so that a non-GNU linker is found, and then restart.
18963
18964EOF
18965 fi
18966 ;;
18967
18968 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018969 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 +000018970 hardcode_libdir_flag_spec_F77='-L$libdir'
18971 hardcode_minus_L_F77=yes
18972
18973 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18974 # that the semantics of dynamic libraries on AmigaOS, at least up
18975 # to version 4, is to share data among multiple programs linked
18976 # with the same dynamic library. Since this doesn't match the
18977 # behavior of shared libraries on other platforms, we can't use
18978 # them.
18979 ld_shlibs_F77=no
18980 ;;
18981
18982 beos*)
18983 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18984 allow_undefined_flag_F77=unsupported
18985 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18986 # support --undefined. This deserves some investigation. FIXME
18987 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18988 else
18989 ld_shlibs_F77=no
18990 fi
18991 ;;
18992
18993 cygwin* | mingw* | pw32*)
18994 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18995 # as there is no search path for DLLs.
18996 hardcode_libdir_flag_spec_F77='-L$libdir'
18997 allow_undefined_flag_F77=unsupported
18998 always_export_symbols_F77=no
18999 enable_shared_with_static_runtimes_F77=yes
19000 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19001
19002 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19003 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19004 # If the export-symbols file already is a .def file (1st line
19005 # is EXPORTS), use it as is; otherwise, prepend...
19006 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19007 cp $export_symbols $output_objdir/$soname.def;
19008 else
19009 echo EXPORTS > $output_objdir/$soname.def;
19010 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019011 fi~
19012 $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 +000019013 else
19014 ld_shlibs=no
19015 fi
19016 ;;
19017
19018 netbsd*)
19019 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19020 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19021 wlarc=
19022 else
19023 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19024 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19025 fi
19026 ;;
19027
19028 solaris* | sysv5*)
19029 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19030 ld_shlibs_F77=no
19031 cat <<EOF 1>&2
19032
19033*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19034*** create shared libraries on Solaris systems. Therefore, libtool
19035*** is disabling shared libraries support. We urge you to upgrade GNU
19036*** binutils to release 2.9.1 or newer. Another option is to modify
19037*** your PATH or compiler configuration so that the native linker is
19038*** used, and then restart.
19039
19040EOF
19041 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19042 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19043 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19044 else
19045 ld_shlibs_F77=no
19046 fi
19047 ;;
19048
19049 sunos4*)
19050 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19051 wlarc=
19052 hardcode_direct_F77=yes
19053 hardcode_shlibpath_var_F77=no
19054 ;;
19055
Reid Spencer2706f8c2004-09-19 23:53:36 +000019056 linux*)
19057 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19058 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19059 archive_cmds_F77="$tmp_archive_cmds"
19060 supports_anon_versioning=no
19061 case `$LD -v 2>/dev/null` in
19062 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19063 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19064 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19065 *\ 2.11.*) ;; # other 2.11 versions
19066 *) supports_anon_versioning=yes ;;
19067 esac
19068 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019069 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19070cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19071$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019072 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19073 else
19074 archive_expsym_cmds_F77="$tmp_archive_cmds"
19075 fi
19076 else
19077 ld_shlibs_F77=no
19078 fi
19079 ;;
19080
John Criswell47fdd832003-07-14 16:52:07 +000019081 *)
19082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19083 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19084 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19085 else
19086 ld_shlibs_F77=no
19087 fi
19088 ;;
19089 esac
19090
19091 if test "$ld_shlibs_F77" = yes; then
19092 runpath_var=LD_RUN_PATH
19093 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19094 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19095 # ancient GNU ld didn't support --whole-archive et. al.
19096 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19097 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19098 else
19099 whole_archive_flag_spec_F77=
19100 fi
19101 fi
19102 else
19103 # PORTME fill in a description of your system's linker (not GNU ld)
19104 case $host_os in
19105 aix3*)
19106 allow_undefined_flag_F77=unsupported
19107 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019108 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 +000019109 # Note: this linker hardcodes the directories in LIBPATH if there
19110 # are no directories specified by -L.
19111 hardcode_minus_L_F77=yes
19112 if test "$GCC" = yes && test -z "$link_static_flag"; then
19113 # Neither direct hardcoding nor static linking is supported with a
19114 # broken collect2.
19115 hardcode_direct_F77=unsupported
19116 fi
19117 ;;
19118
19119 aix4* | aix5*)
19120 if test "$host_cpu" = ia64; then
19121 # On IA64, the linker does run time linking by default, so we don't
19122 # have to do anything special.
19123 aix_use_runtimelinking=no
19124 exp_sym_flag='-Bexport'
19125 no_entry_flag=""
19126 else
19127 # If we're using GNU nm, then we don't want the "-C" option.
19128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19129 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19130 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'
19131 else
19132 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'
19133 fi
19134 aix_use_runtimelinking=no
19135
19136 # Test if we are trying to use run time linking or normal
19137 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19138 # need to do runtime linking.
19139 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19140 for ld_flag in $LDFLAGS; do
19141 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19142 aix_use_runtimelinking=yes
19143 break
19144 fi
19145 done
19146 esac
19147
19148 exp_sym_flag='-bexport'
19149 no_entry_flag='-bnoentry'
19150 fi
19151
19152 # When large executables or shared objects are built, AIX ld can
19153 # have problems creating the table of contents. If linking a library
19154 # or program results in "error TOC overflow" add -mminimal-toc to
19155 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19156 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19157
19158 archive_cmds_F77=''
19159 hardcode_direct_F77=yes
19160 hardcode_libdir_separator_F77=':'
19161 link_all_deplibs_F77=yes
19162
19163 if test "$GCC" = yes; then
19164 case $host_os in aix4.012|aix4.012.*)
19165 # We only want to do this on AIX 4.2 and lower, the check
19166 # below for broken collect2 doesn't work under 4.3+
19167 collect2name=`${CC} -print-prog-name=collect2`
19168 if test -f "$collect2name" && \
19169 strings "$collect2name" | grep resolve_lib_name >/dev/null
19170 then
19171 # We have reworked collect2
19172 hardcode_direct_F77=yes
19173 else
19174 # We have old collect2
19175 hardcode_direct_F77=unsupported
19176 # It fails to find uninstalled libraries when the uninstalled
19177 # path is not listed in the libpath. Setting hardcode_minus_L
19178 # to unsupported forces relinking
19179 hardcode_minus_L_F77=yes
19180 hardcode_libdir_flag_spec_F77='-L$libdir'
19181 hardcode_libdir_separator_F77=
19182 fi
19183 esac
19184 shared_flag='-shared'
19185 else
19186 # not using gcc
19187 if test "$host_cpu" = ia64; then
19188 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19189 # chokes on -Wl,-G. The following line is correct:
19190 shared_flag='-G'
19191 else
19192 if test "$aix_use_runtimelinking" = yes; then
19193 shared_flag='${wl}-G'
19194 else
19195 shared_flag='${wl}-bM:SRE'
19196 fi
19197 fi
19198 fi
19199
19200 # It seems that -bexpall does not export symbols beginning with
19201 # underscore (_), so it is better to generate a list of symbols to export.
19202 always_export_symbols_F77=yes
19203 if test "$aix_use_runtimelinking" = yes; then
19204 # Warning - without using the other runtime loading flags (-brtl),
19205 # -berok will link without error, but may produce a broken library.
19206 allow_undefined_flag_F77='-berok'
19207 # Determine the default libpath from the value encoded in an empty executable.
19208 cat >conftest.$ac_ext <<_ACEOF
19209 program main
19210
19211 end
19212_ACEOF
19213rm -f conftest.$ac_objext conftest$ac_exeext
19214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019215 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019216 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019217 grep -v '^ *+' conftest.er1 >conftest.err
19218 rm -f conftest.er1
19219 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019222 { ac_try='test -z "$ac_f77_werror_flag"
19223 || test ! -s conftest.err'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19235
19236aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19237}'`
19238# Check for a 64-bit object if we didn't find anything.
19239if 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; }
19240}'`; fi
19241else
19242 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019243sed 's/^/| /' conftest.$ac_ext >&5
19244
John Criswell47fdd832003-07-14 16:52:07 +000019245fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019246rm -f conftest.err conftest.$ac_objext \
19247 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019248if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19249
19250 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19251 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"
19252 else
19253 if test "$host_cpu" = ia64; then
19254 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19255 allow_undefined_flag_F77="-z nodefs"
19256 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"
19257 else
19258 # Determine the default libpath from the value encoded in an empty executable.
19259 cat >conftest.$ac_ext <<_ACEOF
19260 program main
19261
19262 end
19263_ACEOF
19264rm -f conftest.$ac_objext conftest$ac_exeext
19265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019266 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019267 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019268 grep -v '^ *+' conftest.er1 >conftest.err
19269 rm -f conftest.er1
19270 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019273 { ac_try='test -z "$ac_f77_werror_flag"
19274 || test ! -s conftest.err'
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19277 ac_status=$?
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; } &&
19280 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19282 (eval $ac_try) 2>&5
19283 ac_status=$?
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); }; }; then
19286
19287aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19288}'`
19289# Check for a 64-bit object if we didn't find anything.
19290if 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; }
19291}'`; fi
19292else
19293 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019294sed 's/^/| /' conftest.$ac_ext >&5
19295
John Criswell47fdd832003-07-14 16:52:07 +000019296fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019297rm -f conftest.err conftest.$ac_objext \
19298 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019299if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19300
19301 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19302 # Warning - without using the other run time loading flags,
19303 # -berok will link without error, but may produce a broken library.
19304 no_undefined_flag_F77=' ${wl}-bernotok'
19305 allow_undefined_flag_F77=' ${wl}-berok'
19306 # -bexpall does not export symbols beginning with underscore (_)
19307 always_export_symbols_F77=yes
19308 # Exported symbols can be pulled into shared objects from archives
19309 whole_archive_flag_spec_F77=' '
19310 archive_cmds_need_lc_F77=yes
19311 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019312 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 +000019313 fi
19314 fi
19315 ;;
19316
19317 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019318 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 +000019319 hardcode_libdir_flag_spec_F77='-L$libdir'
19320 hardcode_minus_L_F77=yes
19321 # see comment about different semantics on the GNU ld section
19322 ld_shlibs_F77=no
19323 ;;
19324
Reid Spencer2706f8c2004-09-19 23:53:36 +000019325 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019326 export_dynamic_flag_spec_F77=-rdynamic
19327 ;;
19328
19329 cygwin* | mingw* | pw32*)
19330 # When not using gcc, we currently assume that we are using
19331 # Microsoft Visual C++.
19332 # hardcode_libdir_flag_spec is actually meaningless, as there is
19333 # no search path for DLLs.
19334 hardcode_libdir_flag_spec_F77=' '
19335 allow_undefined_flag_F77=unsupported
19336 # Tell ltmain to make .lib files, not .a files.
19337 libext=lib
19338 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019339 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019340 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019341 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 +000019342 # The linker will automatically build a .lib file if we build a DLL.
19343 old_archive_From_new_cmds_F77='true'
19344 # FIXME: Should let the user specify the lib program.
19345 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19346 fix_srcfile_path='`cygpath -w "$srcfile"`'
19347 enable_shared_with_static_runtimes_F77=yes
19348 ;;
19349
19350 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019351 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019352 rhapsody* | darwin1.[012])
19353 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19354 ;;
19355 *) # Darwin 1.3 on
19356 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19357 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19358 else
19359 case ${MACOSX_DEPLOYMENT_TARGET} in
19360 10.[012])
19361 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19362 ;;
19363 10.*)
19364 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19365 ;;
19366 esac
19367 fi
19368 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019369 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019370 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019371 hardcode_direct_F77=no
19372 hardcode_automatic_F77=yes
19373 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019374 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019375 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019376 if test "$GCC" = yes ; then
19377 output_verbose_link_cmd='echo'
19378 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19379 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19380 # 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 +000019381 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}'
19382 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 +000019383 else
19384 case "$cc_basename" in
19385 xlc*)
19386 output_verbose_link_cmd='echo'
19387 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19388 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19389 # 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 +000019390 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}'
19391 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 +000019392 ;;
19393 *)
19394 ld_shlibs_F77=no
19395 ;;
19396 esac
John Criswell47fdd832003-07-14 16:52:07 +000019397 fi
19398 ;;
19399
19400 dgux*)
19401 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19402 hardcode_libdir_flag_spec_F77='-L$libdir'
19403 hardcode_shlibpath_var_F77=no
19404 ;;
19405
19406 freebsd1*)
19407 ld_shlibs_F77=no
19408 ;;
19409
19410 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19411 # support. Future versions do this automatically, but an explicit c++rt0.o
19412 # does not break anything, and helps significantly (at the cost of a little
19413 # extra space).
19414 freebsd2.2*)
19415 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19416 hardcode_libdir_flag_spec_F77='-R$libdir'
19417 hardcode_direct_F77=yes
19418 hardcode_shlibpath_var_F77=no
19419 ;;
19420
19421 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19422 freebsd2*)
19423 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19424 hardcode_direct_F77=yes
19425 hardcode_minus_L_F77=yes
19426 hardcode_shlibpath_var_F77=no
19427 ;;
19428
19429 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019430 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019431 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19432 hardcode_libdir_flag_spec_F77='-R$libdir'
19433 hardcode_direct_F77=yes
19434 hardcode_shlibpath_var_F77=no
19435 ;;
19436
19437 hpux9*)
19438 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019439 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 +000019440 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019441 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 +000019442 fi
19443 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19444 hardcode_libdir_separator_F77=:
19445 hardcode_direct_F77=yes
19446
19447 # hardcode_minus_L: Not really in the search PATH,
19448 # but as the default location of the library.
19449 hardcode_minus_L_F77=yes
19450 export_dynamic_flag_spec_F77='${wl}-E'
19451 ;;
19452
19453 hpux10* | hpux11*)
19454 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19455 case "$host_cpu" in
19456 hppa*64*|ia64*)
19457 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19458 ;;
19459 *)
19460 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19461 ;;
19462 esac
19463 else
19464 case "$host_cpu" in
19465 hppa*64*|ia64*)
19466 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19467 ;;
19468 *)
19469 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19470 ;;
19471 esac
19472 fi
19473 if test "$with_gnu_ld" = no; then
19474 case "$host_cpu" in
19475 hppa*64*)
19476 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19477 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19478 hardcode_libdir_separator_F77=:
19479 hardcode_direct_F77=no
19480 hardcode_shlibpath_var_F77=no
19481 ;;
19482 ia64*)
19483 hardcode_libdir_flag_spec_F77='-L$libdir'
19484 hardcode_direct_F77=no
19485 hardcode_shlibpath_var_F77=no
19486
19487 # hardcode_minus_L: Not really in the search PATH,
19488 # but as the default location of the library.
19489 hardcode_minus_L_F77=yes
19490 ;;
19491 *)
19492 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19493 hardcode_libdir_separator_F77=:
19494 hardcode_direct_F77=yes
19495 export_dynamic_flag_spec_F77='${wl}-E'
19496
19497 # hardcode_minus_L: Not really in the search PATH,
19498 # but as the default location of the library.
19499 hardcode_minus_L_F77=yes
19500 ;;
19501 esac
19502 fi
19503 ;;
19504
19505 irix5* | irix6* | nonstopux*)
19506 if test "$GCC" = yes; then
19507 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'
19508 else
19509 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'
19510 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19511 fi
19512 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19513 hardcode_libdir_separator_F77=:
19514 link_all_deplibs_F77=yes
19515 ;;
19516
19517 netbsd*)
19518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19519 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19520 else
19521 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19522 fi
19523 hardcode_libdir_flag_spec_F77='-R$libdir'
19524 hardcode_direct_F77=yes
19525 hardcode_shlibpath_var_F77=no
19526 ;;
19527
19528 newsos6)
19529 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19530 hardcode_direct_F77=yes
19531 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19532 hardcode_libdir_separator_F77=:
19533 hardcode_shlibpath_var_F77=no
19534 ;;
19535
19536 openbsd*)
19537 hardcode_direct_F77=yes
19538 hardcode_shlibpath_var_F77=no
19539 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19540 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019541 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 +000019542 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19543 export_dynamic_flag_spec_F77='${wl}-E'
19544 else
19545 case $host_os in
19546 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19547 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19548 hardcode_libdir_flag_spec_F77='-R$libdir'
19549 ;;
19550 *)
19551 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19552 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19553 ;;
19554 esac
19555 fi
19556 ;;
19557
19558 os2*)
19559 hardcode_libdir_flag_spec_F77='-L$libdir'
19560 hardcode_minus_L_F77=yes
19561 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019562 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 +000019563 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19564 ;;
19565
19566 osf3*)
19567 if test "$GCC" = yes; then
19568 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19569 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'
19570 else
19571 allow_undefined_flag_F77=' -expect_unresolved \*'
19572 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'
19573 fi
19574 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19575 hardcode_libdir_separator_F77=:
19576 ;;
19577
19578 osf4* | osf5*) # as osf3* with the addition of -msym flag
19579 if test "$GCC" = yes; then
19580 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19581 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'
19582 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19583 else
19584 allow_undefined_flag_F77=' -expect_unresolved \*'
19585 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 +000019586 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~
19587 $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'
19588
John Criswell47fdd832003-07-14 16:52:07 +000019589 # Both c and cxx compiler support -rpath directly
19590 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19591 fi
19592 hardcode_libdir_separator_F77=:
19593 ;;
19594
19595 sco3.2v5*)
19596 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19597 hardcode_shlibpath_var_F77=no
19598 export_dynamic_flag_spec_F77='${wl}-Bexport'
19599 runpath_var=LD_RUN_PATH
19600 hardcode_runpath_var=yes
19601 ;;
19602
19603 solaris*)
19604 no_undefined_flag_F77=' -z text'
19605 if test "$GCC" = yes; then
19606 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019607 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19608 $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 +000019609 else
19610 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019611 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19612 $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 +000019613 fi
19614 hardcode_libdir_flag_spec_F77='-R$libdir'
19615 hardcode_shlibpath_var_F77=no
19616 case $host_os in
19617 solaris2.[0-5] | solaris2.[0-5].*) ;;
19618 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19619 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19620 esac
19621 link_all_deplibs_F77=yes
19622 ;;
19623
19624 sunos4*)
19625 if test "x$host_vendor" = xsequent; then
19626 # Use $CC to link under sequent, because it throws in some extra .o
19627 # files that make .init and .fini sections work.
19628 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19629 else
19630 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19631 fi
19632 hardcode_libdir_flag_spec_F77='-L$libdir'
19633 hardcode_direct_F77=yes
19634 hardcode_minus_L_F77=yes
19635 hardcode_shlibpath_var_F77=no
19636 ;;
19637
19638 sysv4)
19639 case $host_vendor in
19640 sni)
19641 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19642 hardcode_direct_F77=yes # is this really true???
19643 ;;
19644 siemens)
19645 ## LD is ld it makes a PLAMLIB
19646 ## CC just makes a GrossModule.
19647 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19648 reload_cmds_F77='$CC -r -o $output$reload_objs'
19649 hardcode_direct_F77=no
19650 ;;
19651 motorola)
19652 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19653 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19654 ;;
19655 esac
19656 runpath_var='LD_RUN_PATH'
19657 hardcode_shlibpath_var_F77=no
19658 ;;
19659
19660 sysv4.3*)
19661 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19662 hardcode_shlibpath_var_F77=no
19663 export_dynamic_flag_spec_F77='-Bexport'
19664 ;;
19665
19666 sysv4*MP*)
19667 if test -d /usr/nec; then
19668 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19669 hardcode_shlibpath_var_F77=no
19670 runpath_var=LD_RUN_PATH
19671 hardcode_runpath_var=yes
19672 ld_shlibs_F77=yes
19673 fi
19674 ;;
19675
19676 sysv4.2uw2*)
19677 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19678 hardcode_direct_F77=yes
19679 hardcode_minus_L_F77=no
19680 hardcode_shlibpath_var_F77=no
19681 hardcode_runpath_var=yes
19682 runpath_var=LD_RUN_PATH
19683 ;;
19684
19685 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19686 no_undefined_flag_F77='${wl}-z ${wl}text'
19687 if test "$GCC" = yes; then
19688 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19689 else
19690 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19691 fi
19692 runpath_var='LD_RUN_PATH'
19693 hardcode_shlibpath_var_F77=no
19694 ;;
19695
19696 sysv5*)
19697 no_undefined_flag_F77=' -z text'
19698 # $CC -shared without GNU ld will not create a library from C++
19699 # object files and a static libstdc++, better avoid it by now
19700 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019701 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19702 $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 +000019703 hardcode_libdir_flag_spec_F77=
19704 hardcode_shlibpath_var_F77=no
19705 runpath_var='LD_RUN_PATH'
19706 ;;
19707
19708 uts4*)
19709 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19710 hardcode_libdir_flag_spec_F77='-L$libdir'
19711 hardcode_shlibpath_var_F77=no
19712 ;;
19713
19714 *)
19715 ld_shlibs_F77=no
19716 ;;
19717 esac
19718 fi
19719
19720echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19721echo "${ECHO_T}$ld_shlibs_F77" >&6
19722test "$ld_shlibs_F77" = no && can_build_shared=no
19723
19724variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19725if test "$GCC" = yes; then
19726 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19727fi
19728
19729#
19730# Do we need to explicitly link libc?
19731#
19732case "x$archive_cmds_need_lc_F77" in
19733x|xyes)
19734 # Assume -lc should be added
19735 archive_cmds_need_lc_F77=yes
19736
19737 if test "$enable_shared" = yes && test "$GCC" = yes; then
19738 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019739 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019740 # FIXME: we may have to deal with multi-command sequences.
19741 ;;
19742 '$CC '*)
19743 # Test whether the compiler implicitly links with -lc since on some
19744 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19745 # to ld, don't add -lc before -lgcc.
19746 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19747echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19748 $rm conftest*
19749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19750
19751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19752 (eval $ac_compile) 2>&5
19753 ac_status=$?
19754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } 2>conftest.err; then
19756 soname=conftest
19757 lib=conftest
19758 libobjs=conftest.$ac_objext
19759 deplibs=
19760 wl=$lt_prog_compiler_wl_F77
19761 compiler_flags=-v
19762 linker_flags=-v
19763 verstring=
19764 output_objdir=.
19765 libname=conftest
19766 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19767 allow_undefined_flag_F77=
19768 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19769 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19770 ac_status=$?
19771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772 (exit $ac_status); }
19773 then
19774 archive_cmds_need_lc_F77=no
19775 else
19776 archive_cmds_need_lc_F77=yes
19777 fi
19778 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19779 else
19780 cat conftest.err 1>&5
19781 fi
19782 $rm conftest*
19783 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19784echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19785 ;;
19786 esac
19787 fi
19788 ;;
19789esac
19790
John Criswell47fdd832003-07-14 16:52:07 +000019791echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19792echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19793library_names_spec=
19794libname_spec='lib$name'
19795soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019796shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019797postinstall_cmds=
19798postuninstall_cmds=
19799finish_cmds=
19800finish_eval=
19801shlibpath_var=
19802shlibpath_overrides_runpath=unknown
19803version_type=none
19804dynamic_linker="$host_os ld.so"
19805sys_lib_dlsearch_path_spec="/lib /usr/lib"
19806if test "$GCC" = yes; then
19807 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19808 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19809 # if the path contains ";" then we assume it to be the separator
19810 # otherwise default to the standard path separator (i.e. ":") - it is
19811 # assumed that no part of a normal pathname contains ";" but that should
19812 # okay in the real world where ";" in dirpaths is itself problematic.
19813 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19814 else
19815 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19816 fi
19817else
19818 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19819fi
19820need_lib_prefix=unknown
19821hardcode_into_libs=no
19822
19823# when you set need_version to no, make sure it does not cause -set_version
19824# flags to be left without arguments
19825need_version=unknown
19826
19827case $host_os in
19828aix3*)
19829 version_type=linux
19830 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19831 shlibpath_var=LIBPATH
19832
19833 # AIX 3 has no versioning support, so we append a major version to the name.
19834 soname_spec='${libname}${release}${shared_ext}$major'
19835 ;;
19836
19837aix4* | aix5*)
19838 version_type=linux
19839 need_lib_prefix=no
19840 need_version=no
19841 hardcode_into_libs=yes
19842 if test "$host_cpu" = ia64; then
19843 # AIX 5 supports IA64
19844 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19845 shlibpath_var=LD_LIBRARY_PATH
19846 else
19847 # With GCC up to 2.95.x, collect2 would create an import file
19848 # for dependence libraries. The import file would start with
19849 # the line `#! .'. This would cause the generated library to
19850 # depend on `.', always an invalid library. This was fixed in
19851 # development snapshots of GCC prior to 3.0.
19852 case $host_os in
19853 aix4 | aix4.[01] | aix4.[01].*)
19854 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19855 echo ' yes '
19856 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19857 :
19858 else
19859 can_build_shared=no
19860 fi
19861 ;;
19862 esac
19863 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19864 # soname into executable. Probably we can add versioning support to
19865 # collect2, so additional links can be useful in future.
19866 if test "$aix_use_runtimelinking" = yes; then
19867 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19868 # instead of lib<name>.a to let people know that these are not
19869 # typical AIX shared libraries.
19870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19871 else
19872 # We preserve .a as extension for shared libraries through AIX4.2
19873 # and later when we are not doing run time linking.
19874 library_names_spec='${libname}${release}.a $libname.a'
19875 soname_spec='${libname}${release}${shared_ext}$major'
19876 fi
19877 shlibpath_var=LIBPATH
19878 fi
19879 ;;
19880
19881amigaos*)
19882 library_names_spec='$libname.ixlibrary $libname.a'
19883 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019884 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 +000019885 ;;
19886
19887beos*)
19888 library_names_spec='${libname}${shared_ext}'
19889 dynamic_linker="$host_os ld.so"
19890 shlibpath_var=LIBRARY_PATH
19891 ;;
19892
Reid Spencer2706f8c2004-09-19 23:53:36 +000019893bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019894 version_type=linux
19895 need_version=no
19896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19897 soname_spec='${libname}${release}${shared_ext}$major'
19898 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19899 shlibpath_var=LD_LIBRARY_PATH
19900 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19901 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19902 # the default ld.so.conf also contains /usr/contrib/lib and
19903 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19904 # libtool to hard-code these into programs
19905 ;;
19906
19907cygwin* | mingw* | pw32*)
19908 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019909 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019910 need_version=no
19911 need_lib_prefix=no
19912
19913 case $GCC,$host_os in
19914 yes,cygwin* | yes,mingw* | yes,pw32*)
19915 library_names_spec='$libname.dll.a'
19916 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019917 postinstall_cmds='base_file=`basename \${file}`~
19918 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19919 dldir=$destdir/`dirname \$dlpath`~
19920 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000019921 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019922 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19923 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019924 $rm \$dlpath'
19925 shlibpath_overrides_runpath=yes
19926
19927 case $host_os in
19928 cygwin*)
19929 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19930 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 +000019931 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019932 ;;
19933 mingw*)
19934 # MinGW DLLs use traditional 'lib' prefix
19935 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19936 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19937 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19938 # It is most probably a Windows format PATH printed by
19939 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19940 # path with ; separators, and with drive letters. We can handle the
19941 # drive letters (cygwin fileutils understands them), so leave them,
19942 # especially as we might pass files found there to a mingw objdump,
19943 # which wouldn't understand a cygwinified path. Ahh.
19944 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19945 else
19946 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19947 fi
19948 ;;
19949 pw32*)
19950 # pw32 DLLs use 'pw' prefix rather than 'lib'
19951 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19952 ;;
19953 esac
19954 ;;
19955
19956 *)
19957 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19958 ;;
19959 esac
19960 dynamic_linker='Win32 ld.exe'
19961 # FIXME: first we should search . and the directory the executable is in
19962 shlibpath_var=PATH
19963 ;;
19964
19965darwin* | rhapsody*)
19966 dynamic_linker="$host_os dyld"
19967 version_type=darwin
19968 need_lib_prefix=no
19969 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019970 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019971 soname_spec='${libname}${release}${major}$shared_ext'
19972 shlibpath_overrides_runpath=yes
19973 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000019974 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000019975 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019976 if test "$GCC" = yes; then
19977 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"`
19978 else
19979 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019980 fi
19981 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19982 ;;
19983
19984dgux*)
19985 version_type=linux
19986 need_lib_prefix=no
19987 need_version=no
19988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19989 soname_spec='${libname}${release}${shared_ext}$major'
19990 shlibpath_var=LD_LIBRARY_PATH
19991 ;;
19992
19993freebsd1*)
19994 dynamic_linker=no
19995 ;;
19996
Reid Spencer2706f8c2004-09-19 23:53:36 +000019997kfreebsd*-gnu)
19998 version_type=linux
19999 need_lib_prefix=no
20000 need_version=no
20001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20002 soname_spec='${libname}${release}${shared_ext}$major'
20003 shlibpath_var=LD_LIBRARY_PATH
20004 shlibpath_overrides_runpath=no
20005 hardcode_into_libs=yes
20006 dynamic_linker='GNU ld.so'
20007 ;;
20008
John Criswell47fdd832003-07-14 16:52:07 +000020009freebsd*)
20010 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20011 version_type=freebsd-$objformat
20012 case $version_type in
20013 freebsd-elf*)
20014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20015 need_version=no
20016 need_lib_prefix=no
20017 ;;
20018 freebsd-*)
20019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20020 need_version=yes
20021 ;;
20022 esac
20023 shlibpath_var=LD_LIBRARY_PATH
20024 case $host_os in
20025 freebsd2*)
20026 shlibpath_overrides_runpath=yes
20027 ;;
20028 freebsd3.01* | freebsdelf3.01*)
20029 shlibpath_overrides_runpath=yes
20030 hardcode_into_libs=yes
20031 ;;
20032 *) # from 3.2 on
20033 shlibpath_overrides_runpath=no
20034 hardcode_into_libs=yes
20035 ;;
20036 esac
20037 ;;
20038
20039gnu*)
20040 version_type=linux
20041 need_lib_prefix=no
20042 need_version=no
20043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20044 soname_spec='${libname}${release}${shared_ext}$major'
20045 shlibpath_var=LD_LIBRARY_PATH
20046 hardcode_into_libs=yes
20047 ;;
20048
20049hpux9* | hpux10* | hpux11*)
20050 # Give a soname corresponding to the major version so that dld.sl refuses to
20051 # link against other versions.
20052 version_type=sunos
20053 need_lib_prefix=no
20054 need_version=no
20055 case "$host_cpu" in
20056 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020057 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020058 hardcode_into_libs=yes
20059 dynamic_linker="$host_os dld.so"
20060 shlibpath_var=LD_LIBRARY_PATH
20061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20063 soname_spec='${libname}${release}${shared_ext}$major'
20064 if test "X$HPUX_IA64_MODE" = X32; then
20065 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20066 else
20067 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20068 fi
20069 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20070 ;;
20071 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020072 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020073 hardcode_into_libs=yes
20074 dynamic_linker="$host_os dld.sl"
20075 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20076 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20078 soname_spec='${libname}${release}${shared_ext}$major'
20079 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20080 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20081 ;;
20082 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020083 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020084 dynamic_linker="$host_os dld.sl"
20085 shlibpath_var=SHLIB_PATH
20086 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20088 soname_spec='${libname}${release}${shared_ext}$major'
20089 ;;
20090 esac
20091 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20092 postinstall_cmds='chmod 555 $lib'
20093 ;;
20094
20095irix5* | irix6* | nonstopux*)
20096 case $host_os in
20097 nonstopux*) version_type=nonstopux ;;
20098 *)
20099 if test "$lt_cv_prog_gnu_ld" = yes; then
20100 version_type=linux
20101 else
20102 version_type=irix
20103 fi ;;
20104 esac
20105 need_lib_prefix=no
20106 need_version=no
20107 soname_spec='${libname}${release}${shared_ext}$major'
20108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20109 case $host_os in
20110 irix5* | nonstopux*)
20111 libsuff= shlibsuff=
20112 ;;
20113 *)
20114 case $LD in # libtool.m4 will add one of these switches to LD
20115 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20116 libsuff= shlibsuff= libmagic=32-bit;;
20117 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20118 libsuff=32 shlibsuff=N32 libmagic=N32;;
20119 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20120 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20121 *) libsuff= shlibsuff= libmagic=never-match;;
20122 esac
20123 ;;
20124 esac
20125 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20126 shlibpath_overrides_runpath=no
20127 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20128 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20129 hardcode_into_libs=yes
20130 ;;
20131
20132# No shared lib support for Linux oldld, aout, or coff.
20133linux*oldld* | linux*aout* | linux*coff*)
20134 dynamic_linker=no
20135 ;;
20136
20137# This must be Linux ELF.
20138linux*)
20139 version_type=linux
20140 need_lib_prefix=no
20141 need_version=no
20142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20143 soname_spec='${libname}${release}${shared_ext}$major'
20144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20145 shlibpath_var=LD_LIBRARY_PATH
20146 shlibpath_overrides_runpath=no
20147 # This implies no fast_install, which is unacceptable.
20148 # Some rework will be needed to allow for fast_install
20149 # before this can be enabled.
20150 hardcode_into_libs=yes
20151
Reid Spencer2706f8c2004-09-19 23:53:36 +000020152 # Append ld.so.conf contents to the search path
20153 if test -f /etc/ld.so.conf; then
20154 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20155 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20156 fi
20157
John Criswell47fdd832003-07-14 16:52:07 +000020158 # We used to test for /lib/ld.so.1 and disable shared libraries on
20159 # powerpc, because MkLinux only supported shared libraries with the
20160 # GNU dynamic linker. Since this was broken with cross compilers,
20161 # most powerpc-linux boxes support dynamic linking these days and
20162 # people can always --disable-shared, the test was removed, and we
20163 # assume the GNU/Linux dynamic linker is in use.
20164 dynamic_linker='GNU/Linux ld.so'
20165 ;;
20166
Reid Spencer2706f8c2004-09-19 23:53:36 +000020167knetbsd*-gnu)
20168 version_type=linux
20169 need_lib_prefix=no
20170 need_version=no
20171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20172 soname_spec='${libname}${release}${shared_ext}$major'
20173 shlibpath_var=LD_LIBRARY_PATH
20174 shlibpath_overrides_runpath=no
20175 hardcode_into_libs=yes
20176 dynamic_linker='GNU ld.so'
20177 ;;
20178
John Criswell47fdd832003-07-14 16:52:07 +000020179netbsd*)
20180 version_type=sunos
20181 need_lib_prefix=no
20182 need_version=no
20183 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20186 dynamic_linker='NetBSD (a.out) ld.so'
20187 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020189 soname_spec='${libname}${release}${shared_ext}$major'
20190 dynamic_linker='NetBSD ld.elf_so'
20191 fi
20192 shlibpath_var=LD_LIBRARY_PATH
20193 shlibpath_overrides_runpath=yes
20194 hardcode_into_libs=yes
20195 ;;
20196
20197newsos6)
20198 version_type=linux
20199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20200 shlibpath_var=LD_LIBRARY_PATH
20201 shlibpath_overrides_runpath=yes
20202 ;;
20203
Reid Spencer2706f8c2004-09-19 23:53:36 +000020204nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020205 version_type=linux
20206 need_lib_prefix=no
20207 need_version=no
20208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20209 soname_spec='${libname}${release}${shared_ext}$major'
20210 shlibpath_var=LD_LIBRARY_PATH
20211 shlibpath_overrides_runpath=yes
20212 ;;
20213
20214openbsd*)
20215 version_type=sunos
20216 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020217 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20219 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20220 shlibpath_var=LD_LIBRARY_PATH
20221 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20222 case $host_os in
20223 openbsd2.[89] | openbsd2.[89].*)
20224 shlibpath_overrides_runpath=no
20225 ;;
20226 *)
20227 shlibpath_overrides_runpath=yes
20228 ;;
20229 esac
20230 else
20231 shlibpath_overrides_runpath=yes
20232 fi
20233 ;;
20234
20235os2*)
20236 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020237 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020238 need_lib_prefix=no
20239 library_names_spec='$libname${shared_ext} $libname.a'
20240 dynamic_linker='OS/2 ld.exe'
20241 shlibpath_var=LIBPATH
20242 ;;
20243
20244osf3* | osf4* | osf5*)
20245 version_type=osf
20246 need_lib_prefix=no
20247 need_version=no
20248 soname_spec='${libname}${release}${shared_ext}$major'
20249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20250 shlibpath_var=LD_LIBRARY_PATH
20251 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20252 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20253 ;;
20254
20255sco3.2v5*)
20256 version_type=osf
20257 soname_spec='${libname}${release}${shared_ext}$major'
20258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20259 shlibpath_var=LD_LIBRARY_PATH
20260 ;;
20261
20262solaris*)
20263 version_type=linux
20264 need_lib_prefix=no
20265 need_version=no
20266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20267 soname_spec='${libname}${release}${shared_ext}$major'
20268 shlibpath_var=LD_LIBRARY_PATH
20269 shlibpath_overrides_runpath=yes
20270 hardcode_into_libs=yes
20271 # ldd complains unless libraries are executable
20272 postinstall_cmds='chmod +x $lib'
20273 ;;
20274
20275sunos4*)
20276 version_type=sunos
20277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20278 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20279 shlibpath_var=LD_LIBRARY_PATH
20280 shlibpath_overrides_runpath=yes
20281 if test "$with_gnu_ld" = yes; then
20282 need_lib_prefix=no
20283 fi
20284 need_version=yes
20285 ;;
20286
20287sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20288 version_type=linux
20289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20290 soname_spec='${libname}${release}${shared_ext}$major'
20291 shlibpath_var=LD_LIBRARY_PATH
20292 case $host_vendor in
20293 sni)
20294 shlibpath_overrides_runpath=no
20295 need_lib_prefix=no
20296 export_dynamic_flag_spec='${wl}-Blargedynsym'
20297 runpath_var=LD_RUN_PATH
20298 ;;
20299 siemens)
20300 need_lib_prefix=no
20301 ;;
20302 motorola)
20303 need_lib_prefix=no
20304 need_version=no
20305 shlibpath_overrides_runpath=no
20306 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20307 ;;
20308 esac
20309 ;;
20310
20311sysv4*MP*)
20312 if test -d /usr/nec ;then
20313 version_type=linux
20314 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20315 soname_spec='$libname${shared_ext}.$major'
20316 shlibpath_var=LD_LIBRARY_PATH
20317 fi
20318 ;;
20319
20320uts4*)
20321 version_type=linux
20322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20323 soname_spec='${libname}${release}${shared_ext}$major'
20324 shlibpath_var=LD_LIBRARY_PATH
20325 ;;
20326
20327*)
20328 dynamic_linker=no
20329 ;;
20330esac
20331echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20332echo "${ECHO_T}$dynamic_linker" >&6
20333test "$dynamic_linker" = no && can_build_shared=no
20334
Reid Spencer2706f8c2004-09-19 23:53:36 +000020335echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20336echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20337hardcode_action_F77=
20338if test -n "$hardcode_libdir_flag_spec_F77" || \
20339 test -n "$runpath_var_F77" || \
20340 test "X$hardcode_automatic_F77" = "Xyes" ; then
20341
20342 # We can hardcode non-existant directories.
20343 if test "$hardcode_direct_F77" != no &&
20344 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20345 # have to relink, otherwise we might link with an installed library
20346 # when we should be linking with a yet-to-be-installed one
20347 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20348 test "$hardcode_minus_L_F77" != no; then
20349 # Linking always hardcodes the temporary library directory.
20350 hardcode_action_F77=relink
20351 else
20352 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20353 hardcode_action_F77=immediate
20354 fi
20355else
20356 # We cannot hardcode anything, or else we can only hardcode existing
20357 # directories.
20358 hardcode_action_F77=unsupported
20359fi
20360echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20361echo "${ECHO_T}$hardcode_action_F77" >&6
20362
20363if test "$hardcode_action_F77" = relink; then
20364 # Fast installation is not supported
20365 enable_fast_install=no
20366elif test "$shlibpath_overrides_runpath" = yes ||
20367 test "$enable_shared" = no; then
20368 # Fast installation is not necessary
20369 enable_fast_install=needless
20370fi
20371
20372striplib=
20373old_striplib=
20374echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20375echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20376if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20378 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20379 echo "$as_me:$LINENO: result: yes" >&5
20380echo "${ECHO_T}yes" >&6
20381else
20382# FIXME - insert some real tests, host_os isn't really good enough
20383 case $host_os in
20384 darwin*)
20385 if test -n "$STRIP" ; then
20386 striplib="$STRIP -x"
20387 echo "$as_me:$LINENO: result: yes" >&5
20388echo "${ECHO_T}yes" >&6
20389 else
20390 echo "$as_me:$LINENO: result: no" >&5
20391echo "${ECHO_T}no" >&6
20392fi
20393 ;;
20394 *)
20395 echo "$as_me:$LINENO: result: no" >&5
20396echo "${ECHO_T}no" >&6
20397 ;;
20398 esac
20399fi
20400
20401
John Criswell47fdd832003-07-14 16:52:07 +000020402
20403# The else clause should only fire when bootstrapping the
20404# libtool distribution, otherwise you forgot to ship ltmain.sh
20405# with your package, and you will get complaints that there are
20406# no rules to generate ltmain.sh.
20407if test -f "$ltmain"; then
20408 # See if we are running on zsh, and set the options which allow our commands through
20409 # without removal of \ escapes.
20410 if test -n "${ZSH_VERSION+set}" ; then
20411 setopt NO_GLOB_SUBST
20412 fi
20413 # Now quote all the things that may contain metacharacters while being
20414 # careful not to overquote the AC_SUBSTed values. We take copies of the
20415 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020416 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20417 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020418 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20419 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20420 deplibs_check_method reload_flag reload_cmds need_locks \
20421 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20422 lt_cv_sys_global_symbol_to_c_name_address \
20423 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20424 old_postinstall_cmds old_postuninstall_cmds \
20425 compiler_F77 \
20426 CC_F77 \
20427 LD_F77 \
20428 lt_prog_compiler_wl_F77 \
20429 lt_prog_compiler_pic_F77 \
20430 lt_prog_compiler_static_F77 \
20431 lt_prog_compiler_no_builtin_flag_F77 \
20432 export_dynamic_flag_spec_F77 \
20433 thread_safe_flag_spec_F77 \
20434 whole_archive_flag_spec_F77 \
20435 enable_shared_with_static_runtimes_F77 \
20436 old_archive_cmds_F77 \
20437 old_archive_from_new_cmds_F77 \
20438 predep_objects_F77 \
20439 postdep_objects_F77 \
20440 predeps_F77 \
20441 postdeps_F77 \
20442 compiler_lib_search_path_F77 \
20443 archive_cmds_F77 \
20444 archive_expsym_cmds_F77 \
20445 postinstall_cmds_F77 \
20446 postuninstall_cmds_F77 \
20447 old_archive_from_expsyms_cmds_F77 \
20448 allow_undefined_flag_F77 \
20449 no_undefined_flag_F77 \
20450 export_symbols_cmds_F77 \
20451 hardcode_libdir_flag_spec_F77 \
20452 hardcode_libdir_flag_spec_ld_F77 \
20453 hardcode_libdir_separator_F77 \
20454 hardcode_automatic_F77 \
20455 module_cmds_F77 \
20456 module_expsym_cmds_F77 \
20457 lt_cv_prog_compiler_c_o_F77 \
20458 exclude_expsyms_F77 \
20459 include_expsyms_F77; do
20460
20461 case $var in
20462 old_archive_cmds_F77 | \
20463 old_archive_from_new_cmds_F77 | \
20464 archive_cmds_F77 | \
20465 archive_expsym_cmds_F77 | \
20466 module_cmds_F77 | \
20467 module_expsym_cmds_F77 | \
20468 old_archive_from_expsyms_cmds_F77 | \
20469 export_symbols_cmds_F77 | \
20470 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20471 postinstall_cmds | postuninstall_cmds | \
20472 old_postinstall_cmds | old_postuninstall_cmds | \
20473 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20474 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020475 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 +000020476 ;;
20477 *)
20478 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20479 ;;
20480 esac
20481 done
20482
20483 case $lt_echo in
20484 *'\$0 --fallback-echo"')
20485 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20486 ;;
20487 esac
20488
20489cfgfile="$ofile"
20490
20491 cat <<__EOF__ >> "$cfgfile"
20492# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20493
20494# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20495
20496# Shell to use when invoking shell scripts.
20497SHELL=$lt_SHELL
20498
20499# Whether or not to build shared libraries.
20500build_libtool_libs=$enable_shared
20501
20502# Whether or not to build static libraries.
20503build_old_libs=$enable_static
20504
20505# Whether or not to add -lc for building shared libraries.
20506build_libtool_need_lc=$archive_cmds_need_lc_F77
20507
20508# Whether or not to disallow shared libs when runtime libs are static
20509allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20510
20511# Whether or not to optimize for fast installation.
20512fast_install=$enable_fast_install
20513
20514# The host system.
20515host_alias=$host_alias
20516host=$host
20517
20518# An echo program that does not interpret backslashes.
20519echo=$lt_echo
20520
20521# The archiver.
20522AR=$lt_AR
20523AR_FLAGS=$lt_AR_FLAGS
20524
20525# A C compiler.
20526LTCC=$lt_LTCC
20527
20528# A language-specific compiler.
20529CC=$lt_compiler_F77
20530
20531# Is the compiler the GNU C compiler?
20532with_gcc=$GCC_F77
20533
20534# An ERE matcher.
20535EGREP=$lt_EGREP
20536
20537# The linker used to build libraries.
20538LD=$lt_LD_F77
20539
20540# Whether we need hard or soft links.
20541LN_S=$lt_LN_S
20542
20543# A BSD-compatible nm program.
20544NM=$lt_NM
20545
20546# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020547STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020548
20549# Used to examine libraries when file_magic_cmd begins "file"
20550MAGIC_CMD=$MAGIC_CMD
20551
20552# Used on cygwin: DLL creation program.
20553DLLTOOL="$DLLTOOL"
20554
20555# Used on cygwin: object dumper.
20556OBJDUMP="$OBJDUMP"
20557
20558# Used on cygwin: assembler.
20559AS="$AS"
20560
20561# The name of the directory that contains temporary libtool files.
20562objdir=$objdir
20563
20564# How to create reloadable object files.
20565reload_flag=$lt_reload_flag
20566reload_cmds=$lt_reload_cmds
20567
20568# How to pass a linker flag through the compiler.
20569wl=$lt_lt_prog_compiler_wl_F77
20570
20571# Object file suffix (normally "o").
20572objext="$ac_objext"
20573
20574# Old archive suffix (normally "a").
20575libext="$libext"
20576
20577# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020578shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020579
20580# Executable file suffix (normally "").
20581exeext="$exeext"
20582
20583# Additional compiler flags for building library objects.
20584pic_flag=$lt_lt_prog_compiler_pic_F77
20585pic_mode=$pic_mode
20586
20587# What is the maximum length of a command?
20588max_cmd_len=$lt_cv_sys_max_cmd_len
20589
20590# Does compiler simultaneously support -c and -o options?
20591compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20592
20593# Must we lock files when doing compilation ?
20594need_locks=$lt_need_locks
20595
20596# Do we need the lib prefix for modules?
20597need_lib_prefix=$need_lib_prefix
20598
20599# Do we need a version for libraries?
20600need_version=$need_version
20601
20602# Whether dlopen is supported.
20603dlopen_support=$enable_dlopen
20604
20605# Whether dlopen of programs is supported.
20606dlopen_self=$enable_dlopen_self
20607
20608# Whether dlopen of statically linked programs is supported.
20609dlopen_self_static=$enable_dlopen_self_static
20610
20611# Compiler flag to prevent dynamic linking.
20612link_static_flag=$lt_lt_prog_compiler_static_F77
20613
20614# Compiler flag to turn off builtin functions.
20615no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20616
20617# Compiler flag to allow reflexive dlopens.
20618export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20619
20620# Compiler flag to generate shared objects directly from archives.
20621whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20622
20623# Compiler flag to generate thread-safe objects.
20624thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20625
20626# Library versioning type.
20627version_type=$version_type
20628
20629# Format of library name prefix.
20630libname_spec=$lt_libname_spec
20631
20632# List of archive names. First name is the real one, the rest are links.
20633# The last name is the one that the linker finds with -lNAME.
20634library_names_spec=$lt_library_names_spec
20635
20636# The coded name of the library, if different from the real name.
20637soname_spec=$lt_soname_spec
20638
20639# Commands used to build and install an old-style archive.
20640RANLIB=$lt_RANLIB
20641old_archive_cmds=$lt_old_archive_cmds_F77
20642old_postinstall_cmds=$lt_old_postinstall_cmds
20643old_postuninstall_cmds=$lt_old_postuninstall_cmds
20644
20645# Create an old-style archive from a shared archive.
20646old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20647
20648# Create a temporary old-style archive to link instead of a shared archive.
20649old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20650
20651# Commands used to build and install a shared archive.
20652archive_cmds=$lt_archive_cmds_F77
20653archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20654postinstall_cmds=$lt_postinstall_cmds
20655postuninstall_cmds=$lt_postuninstall_cmds
20656
20657# Commands used to build a loadable module (assumed same as above if empty)
20658module_cmds=$lt_module_cmds_F77
20659module_expsym_cmds=$lt_module_expsym_cmds_F77
20660
20661# Commands to strip libraries.
20662old_striplib=$lt_old_striplib
20663striplib=$lt_striplib
20664
20665# Dependencies to place before the objects being linked to create a
20666# shared library.
20667predep_objects=$lt_predep_objects_F77
20668
20669# Dependencies to place after the objects being linked to create a
20670# shared library.
20671postdep_objects=$lt_postdep_objects_F77
20672
20673# Dependencies to place before the objects being linked to create a
20674# shared library.
20675predeps=$lt_predeps_F77
20676
20677# Dependencies to place after the objects being linked to create a
20678# shared library.
20679postdeps=$lt_postdeps_F77
20680
20681# The library search path used internally by the compiler when linking
20682# a shared library.
20683compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20684
20685# Method to check whether dependent libraries are shared objects.
20686deplibs_check_method=$lt_deplibs_check_method
20687
20688# Command to use when deplibs_check_method == file_magic.
20689file_magic_cmd=$lt_file_magic_cmd
20690
20691# Flag that allows shared libraries with undefined symbols to be built.
20692allow_undefined_flag=$lt_allow_undefined_flag_F77
20693
20694# Flag that forces no undefined symbols.
20695no_undefined_flag=$lt_no_undefined_flag_F77
20696
20697# Commands used to finish a libtool library installation in a directory.
20698finish_cmds=$lt_finish_cmds
20699
20700# Same as above, but a single script fragment to be evaled but not shown.
20701finish_eval=$lt_finish_eval
20702
20703# Take the output of nm and produce a listing of raw symbols and C names.
20704global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20705
20706# Transform the output of nm in a proper C declaration
20707global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20708
20709# Transform the output of nm in a C name address pair
20710global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20711
20712# This is the shared library runtime path variable.
20713runpath_var=$runpath_var
20714
20715# This is the shared library path variable.
20716shlibpath_var=$shlibpath_var
20717
20718# Is shlibpath searched before the hard-coded library search path?
20719shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20720
20721# How to hardcode a shared library path into an executable.
20722hardcode_action=$hardcode_action_F77
20723
20724# Whether we should hardcode library paths into libraries.
20725hardcode_into_libs=$hardcode_into_libs
20726
20727# Flag to hardcode \$libdir into a binary during linking.
20728# This must work even if \$libdir does not exist.
20729hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20730
20731# If ld is used when linking, flag to hardcode \$libdir into
20732# a binary during linking. This must work even if \$libdir does
20733# not exist.
20734hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20735
20736# Whether we need a single -rpath flag with a separated argument.
20737hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20738
20739# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20740# resulting binary.
20741hardcode_direct=$hardcode_direct_F77
20742
20743# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20744# resulting binary.
20745hardcode_minus_L=$hardcode_minus_L_F77
20746
20747# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20748# the resulting binary.
20749hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20750
20751# Set to yes if building a shared library automatically hardcodes DIR into the library
20752# and all subsequent libraries and executables linked against it.
20753hardcode_automatic=$hardcode_automatic_F77
20754
20755# Variables whose values should be saved in libtool wrapper scripts and
20756# restored at relink time.
20757variables_saved_for_relink="$variables_saved_for_relink"
20758
20759# Whether libtool must link a program against all its dependency libraries.
20760link_all_deplibs=$link_all_deplibs_F77
20761
20762# Compile-time system search path for libraries
20763sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20764
20765# Run-time system search path for libraries
20766sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20767
20768# Fix the shell variable \$srcfile for the compiler.
20769fix_srcfile_path="$fix_srcfile_path_F77"
20770
20771# Set to yes if exported symbols are required.
20772always_export_symbols=$always_export_symbols_F77
20773
20774# The commands to list exported symbols.
20775export_symbols_cmds=$lt_export_symbols_cmds_F77
20776
20777# The commands to extract the exported symbol list from a shared archive.
20778extract_expsyms_cmds=$lt_extract_expsyms_cmds
20779
20780# Symbols that should not be listed in the preloaded symbols.
20781exclude_expsyms=$lt_exclude_expsyms_F77
20782
20783# Symbols that must always be exported.
20784include_expsyms=$lt_include_expsyms_F77
20785
20786# ### END LIBTOOL TAG CONFIG: $tagname
20787
20788__EOF__
20789
20790
20791else
20792 # If there is no Makefile yet, we rely on a make rule to execute
20793 # `config.status --recheck' to rerun these tests and create the
20794 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020795 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20796 if test -f "$ltmain_in"; then
20797 test -f Makefile && make "$ltmain"
20798 fi
John Criswell47fdd832003-07-14 16:52:07 +000020799fi
20800
20801
20802ac_ext=c
20803ac_cpp='$CPP $CPPFLAGS'
20804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20806ac_compiler_gnu=$ac_cv_c_compiler_gnu
20807
20808CC="$lt_save_CC"
20809
20810 else
20811 tagname=""
20812 fi
20813 ;;
20814
20815 GCJ)
20816 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020817 ac_ext=c
20818ac_cpp='$CPP $CPPFLAGS'
20819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20821ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020822
20823
20824# Source file extension for Java test sources.
20825ac_ext=java
20826
20827# Object file extension for compiled Java test sources.
20828objext=o
20829objext_GCJ=$objext
20830
20831# Code to be used in simple compile tests
20832lt_simple_compile_test_code="class foo {}\n"
20833
20834# Code to be used in simple link tests
20835lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20836
20837# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20838
20839# If no C compiler was specified, use CC.
20840LTCC=${LTCC-"$CC"}
20841
20842# Allow CC to be a program name with arguments.
20843compiler=$CC
20844
20845
20846# Allow CC to be a program name with arguments.
20847lt_save_CC="$CC"
20848CC=${GCJ-"gcj"}
20849compiler=$CC
20850compiler_GCJ=$CC
20851
20852# GCJ did not exist at the time GCC didn't implicitly link libc in.
20853archive_cmds_need_lc_GCJ=no
20854
John Criswell47fdd832003-07-14 16:52:07 +000020855
20856lt_prog_compiler_no_builtin_flag_GCJ=
20857
20858if test "$GCC" = yes; then
20859 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20860
Reid Spencer2706f8c2004-09-19 23:53:36 +000020861
20862echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020863echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20864if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866else
20867 lt_cv_prog_compiler_rtti_exceptions=no
20868 ac_outfile=conftest.$ac_objext
20869 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20870 lt_compiler_flag="-fno-rtti -fno-exceptions"
20871 # Insert the option either (1) after the last *FLAGS variable, or
20872 # (2) before a word containing "conftest.", or (3) at the end.
20873 # Note that $ac_compile itself does not contain backslashes and begins
20874 # with a dollar sign (not a hyphen), so the echo should work correctly.
20875 # The option is referenced via a variable to avoid confusing sed.
20876 lt_compile=`echo "$ac_compile" | $SED \
20877 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20879 -e 's:$: $lt_compiler_flag:'`
Reid Spencer86901802004-12-08 23:07:27 +000020880 (eval echo "\"\$as_me:20880: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020881 (eval "$lt_compile" 2>conftest.err)
20882 ac_status=$?
20883 cat conftest.err >&5
Reid Spencer86901802004-12-08 23:07:27 +000020884 echo "$as_me:20884: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020885 if (exit $ac_status) && test -s "$ac_outfile"; then
20886 # The compiler can only warn and ignore the option if not recognized
20887 # So say no if there are warnings
20888 if test ! -s conftest.err; then
20889 lt_cv_prog_compiler_rtti_exceptions=yes
20890 fi
20891 fi
20892 $rm conftest*
20893
20894fi
20895echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20896echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20897
20898if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20899 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20900else
20901 :
20902fi
20903
20904fi
20905
20906lt_prog_compiler_wl_GCJ=
20907lt_prog_compiler_pic_GCJ=
20908lt_prog_compiler_static_GCJ=
20909
20910echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20911echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20912
20913 if test "$GCC" = yes; then
20914 lt_prog_compiler_wl_GCJ='-Wl,'
20915 lt_prog_compiler_static_GCJ='-static'
20916
20917 case $host_os in
20918 aix*)
20919 # All AIX code is PIC.
20920 if test "$host_cpu" = ia64; then
20921 # AIX 5 now supports IA64 processor
20922 lt_prog_compiler_static_GCJ='-Bstatic'
20923 fi
20924 ;;
20925
20926 amigaos*)
20927 # FIXME: we need at least 68020 code to build shared libraries, but
20928 # adding the `-m68020' flag to GCC prevents building anything better,
20929 # like `-m68040'.
20930 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20931 ;;
20932
20933 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20934 # PIC is the default for these OSes.
20935 ;;
20936
20937 mingw* | pw32* | os2*)
20938 # This hack is so that the source file can tell whether it is being
20939 # built for inclusion in a dll (and should export symbols for example).
20940 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20941 ;;
20942
20943 darwin* | rhapsody*)
20944 # PIC is the default on this platform
20945 # Common symbols not allowed in MH_DYLIB files
20946 lt_prog_compiler_pic_GCJ='-fno-common'
20947 ;;
20948
20949 msdosdjgpp*)
20950 # Just because we use GCC doesn't mean we suddenly get shared libraries
20951 # on systems that don't support them.
20952 lt_prog_compiler_can_build_shared_GCJ=no
20953 enable_shared=no
20954 ;;
20955
20956 sysv4*MP*)
20957 if test -d /usr/nec; then
20958 lt_prog_compiler_pic_GCJ=-Kconform_pic
20959 fi
20960 ;;
20961
20962 hpux*)
20963 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20964 # not for PA HP-UX.
20965 case "$host_cpu" in
20966 hppa*64*|ia64*)
20967 # +Z the default
20968 ;;
20969 *)
20970 lt_prog_compiler_pic_GCJ='-fPIC'
20971 ;;
20972 esac
20973 ;;
20974
20975 *)
20976 lt_prog_compiler_pic_GCJ='-fPIC'
20977 ;;
20978 esac
20979 else
20980 # PORTME Check for flag to pass linker flags through the system compiler.
20981 case $host_os in
20982 aix*)
20983 lt_prog_compiler_wl_GCJ='-Wl,'
20984 if test "$host_cpu" = ia64; then
20985 # AIX 5 now supports IA64 processor
20986 lt_prog_compiler_static_GCJ='-Bstatic'
20987 else
20988 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20989 fi
20990 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020991 darwin*)
20992 # PIC is the default on this platform
20993 # Common symbols not allowed in MH_DYLIB files
20994 case "$cc_basename" in
20995 xlc*)
20996 lt_prog_compiler_pic_GCJ='-qnocommon'
20997 lt_prog_compiler_wl_GCJ='-Wl,'
20998 ;;
20999 esac
21000 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021001
21002 mingw* | pw32* | os2*)
21003 # This hack is so that the source file can tell whether it is being
21004 # built for inclusion in a dll (and should export symbols for example).
21005 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21006 ;;
21007
21008 hpux9* | hpux10* | hpux11*)
21009 lt_prog_compiler_wl_GCJ='-Wl,'
21010 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21011 # not for PA HP-UX.
21012 case "$host_cpu" in
21013 hppa*64*|ia64*)
21014 # +Z the default
21015 ;;
21016 *)
21017 lt_prog_compiler_pic_GCJ='+Z'
21018 ;;
21019 esac
21020 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21021 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21022 ;;
21023
21024 irix5* | irix6* | nonstopux*)
21025 lt_prog_compiler_wl_GCJ='-Wl,'
21026 # PIC (with -KPIC) is the default.
21027 lt_prog_compiler_static_GCJ='-non_shared'
21028 ;;
21029
21030 newsos6)
21031 lt_prog_compiler_pic_GCJ='-KPIC'
21032 lt_prog_compiler_static_GCJ='-Bstatic'
21033 ;;
21034
21035 linux*)
21036 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021037 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021038 lt_prog_compiler_wl_GCJ='-Wl,'
21039 lt_prog_compiler_pic_GCJ='-KPIC'
21040 lt_prog_compiler_static_GCJ='-static'
21041 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021042 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021043 lt_prog_compiler_wl_GCJ='-Wl,'
21044 # All Alpha code is PIC.
21045 lt_prog_compiler_static_GCJ='-non_shared'
21046 ;;
21047 esac
21048 ;;
21049
21050 osf3* | osf4* | osf5*)
21051 lt_prog_compiler_wl_GCJ='-Wl,'
21052 # All OSF/1 code is PIC.
21053 lt_prog_compiler_static_GCJ='-non_shared'
21054 ;;
21055
21056 sco3.2v5*)
21057 lt_prog_compiler_pic_GCJ='-Kpic'
21058 lt_prog_compiler_static_GCJ='-dn'
21059 ;;
21060
21061 solaris*)
21062 lt_prog_compiler_wl_GCJ='-Wl,'
21063 lt_prog_compiler_pic_GCJ='-KPIC'
21064 lt_prog_compiler_static_GCJ='-Bstatic'
21065 ;;
21066
21067 sunos4*)
21068 lt_prog_compiler_wl_GCJ='-Qoption ld '
21069 lt_prog_compiler_pic_GCJ='-PIC'
21070 lt_prog_compiler_static_GCJ='-Bstatic'
21071 ;;
21072
21073 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21074 lt_prog_compiler_wl_GCJ='-Wl,'
21075 lt_prog_compiler_pic_GCJ='-KPIC'
21076 lt_prog_compiler_static_GCJ='-Bstatic'
21077 ;;
21078
21079 sysv4*MP*)
21080 if test -d /usr/nec ;then
21081 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21082 lt_prog_compiler_static_GCJ='-Bstatic'
21083 fi
21084 ;;
21085
21086 uts4*)
21087 lt_prog_compiler_pic_GCJ='-pic'
21088 lt_prog_compiler_static_GCJ='-Bstatic'
21089 ;;
21090
21091 *)
21092 lt_prog_compiler_can_build_shared_GCJ=no
21093 ;;
21094 esac
21095 fi
21096
21097echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21098echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21099
21100#
21101# Check to make sure the PIC flag actually works.
21102#
21103if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021104
21105echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021106echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21107if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21109else
21110 lt_prog_compiler_pic_works_GCJ=no
21111 ac_outfile=conftest.$ac_objext
21112 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21113 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21114 # Insert the option either (1) after the last *FLAGS variable, or
21115 # (2) before a word containing "conftest.", or (3) at the end.
21116 # Note that $ac_compile itself does not contain backslashes and begins
21117 # with a dollar sign (not a hyphen), so the echo should work correctly.
21118 # The option is referenced via a variable to avoid confusing sed.
21119 lt_compile=`echo "$ac_compile" | $SED \
21120 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21122 -e 's:$: $lt_compiler_flag:'`
Reid Spencer86901802004-12-08 23:07:27 +000021123 (eval echo "\"\$as_me:21123: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021124 (eval "$lt_compile" 2>conftest.err)
21125 ac_status=$?
21126 cat conftest.err >&5
Reid Spencer86901802004-12-08 23:07:27 +000021127 echo "$as_me:21127: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021128 if (exit $ac_status) && test -s "$ac_outfile"; then
21129 # The compiler can only warn and ignore the option if not recognized
21130 # So say no if there are warnings
21131 if test ! -s conftest.err; then
21132 lt_prog_compiler_pic_works_GCJ=yes
21133 fi
21134 fi
21135 $rm conftest*
21136
21137fi
21138echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21139echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21140
21141if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21142 case $lt_prog_compiler_pic_GCJ in
21143 "" | " "*) ;;
21144 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21145 esac
21146else
21147 lt_prog_compiler_pic_GCJ=
21148 lt_prog_compiler_can_build_shared_GCJ=no
21149fi
21150
21151fi
21152case "$host_os" in
21153 # For platforms which do not support PIC, -DPIC is meaningless:
21154 *djgpp*)
21155 lt_prog_compiler_pic_GCJ=
21156 ;;
21157 *)
21158 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21159 ;;
21160esac
21161
21162echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21163echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21164if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21166else
21167 lt_cv_prog_compiler_c_o_GCJ=no
21168 $rm -r conftest 2>/dev/null
21169 mkdir conftest
21170 cd conftest
21171 mkdir out
21172 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21173
John Criswell47fdd832003-07-14 16:52:07 +000021174 lt_compiler_flag="-o out/conftest2.$ac_objext"
21175 # Insert the option either (1) after the last *FLAGS variable, or
21176 # (2) before a word containing "conftest.", or (3) at the end.
21177 # Note that $ac_compile itself does not contain backslashes and begins
21178 # with a dollar sign (not a hyphen), so the echo should work correctly.
21179 lt_compile=`echo "$ac_compile" | $SED \
21180 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21182 -e 's:$: $lt_compiler_flag:'`
Reid Spencer86901802004-12-08 23:07:27 +000021183 (eval echo "\"\$as_me:21183: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021184 (eval "$lt_compile" 2>out/conftest.err)
21185 ac_status=$?
21186 cat out/conftest.err >&5
Reid Spencer86901802004-12-08 23:07:27 +000021187 echo "$as_me:21187: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21189 then
21190 # The compiler can only warn and ignore the option if not recognized
21191 # So say no if there are warnings
21192 if test ! -s out/conftest.err; then
21193 lt_cv_prog_compiler_c_o_GCJ=yes
21194 fi
21195 fi
21196 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021197 $rm conftest*
21198 # SGI C++ compiler will create directory out/ii_files/ for
21199 # template instantiation
21200 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21201 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021202 cd ..
21203 rmdir conftest
21204 $rm conftest*
21205
21206fi
21207echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21208echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21209
21210
21211hard_links="nottested"
21212if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21213 # do not overwrite the value of need_locks provided by the user
21214 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21215echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21216 hard_links=yes
21217 $rm conftest*
21218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21219 touch conftest.a
21220 ln conftest.a conftest.b 2>&5 || hard_links=no
21221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21222 echo "$as_me:$LINENO: result: $hard_links" >&5
21223echo "${ECHO_T}$hard_links" >&6
21224 if test "$hard_links" = no; then
21225 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21226echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21227 need_locks=warn
21228 fi
21229else
21230 need_locks=no
21231fi
21232
21233echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21234echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21235
21236 runpath_var=
21237 allow_undefined_flag_GCJ=
21238 enable_shared_with_static_runtimes_GCJ=no
21239 archive_cmds_GCJ=
21240 archive_expsym_cmds_GCJ=
21241 old_archive_From_new_cmds_GCJ=
21242 old_archive_from_expsyms_cmds_GCJ=
21243 export_dynamic_flag_spec_GCJ=
21244 whole_archive_flag_spec_GCJ=
21245 thread_safe_flag_spec_GCJ=
21246 hardcode_libdir_flag_spec_GCJ=
21247 hardcode_libdir_flag_spec_ld_GCJ=
21248 hardcode_libdir_separator_GCJ=
21249 hardcode_direct_GCJ=no
21250 hardcode_minus_L_GCJ=no
21251 hardcode_shlibpath_var_GCJ=unsupported
21252 link_all_deplibs_GCJ=unknown
21253 hardcode_automatic_GCJ=no
21254 module_cmds_GCJ=
21255 module_expsym_cmds_GCJ=
21256 always_export_symbols_GCJ=no
21257 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21258 # include_expsyms should be a list of space-separated symbols to be *always*
21259 # included in the symbol list
21260 include_expsyms_GCJ=
21261 # exclude_expsyms can be an extended regexp of symbols to exclude
21262 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21263 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21264 # as well as any symbol that contains `d'.
21265 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21266 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21267 # platforms (ab)use it in PIC code, but their linkers get confused if
21268 # the symbol is explicitly referenced. Since portable code cannot
21269 # rely on this symbol name, it's probably fine to never include it in
21270 # preloaded symbol tables.
21271 extract_expsyms_cmds=
21272
21273 case $host_os in
21274 cygwin* | mingw* | pw32*)
21275 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21276 # When not using gcc, we currently assume that we are using
21277 # Microsoft Visual C++.
21278 if test "$GCC" != yes; then
21279 with_gnu_ld=no
21280 fi
21281 ;;
21282 openbsd*)
21283 with_gnu_ld=no
21284 ;;
21285 esac
21286
21287 ld_shlibs_GCJ=yes
21288 if test "$with_gnu_ld" = yes; then
21289 # If archive_cmds runs LD, not CC, wlarc should be empty
21290 wlarc='${wl}'
21291
21292 # See if GNU ld supports shared libraries.
21293 case $host_os in
21294 aix3* | aix4* | aix5*)
21295 # On AIX/PPC, the GNU linker is very broken
21296 if test "$host_cpu" != ia64; then
21297 ld_shlibs_GCJ=no
21298 cat <<EOF 1>&2
21299
21300*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21301*** to be unable to reliably create shared libraries on AIX.
21302*** Therefore, libtool is disabling shared libraries support. If you
21303*** really care for shared libraries, you may want to modify your PATH
21304*** so that a non-GNU linker is found, and then restart.
21305
21306EOF
21307 fi
21308 ;;
21309
21310 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021311 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 +000021312 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21313 hardcode_minus_L_GCJ=yes
21314
21315 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21316 # that the semantics of dynamic libraries on AmigaOS, at least up
21317 # to version 4, is to share data among multiple programs linked
21318 # with the same dynamic library. Since this doesn't match the
21319 # behavior of shared libraries on other platforms, we can't use
21320 # them.
21321 ld_shlibs_GCJ=no
21322 ;;
21323
21324 beos*)
21325 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21326 allow_undefined_flag_GCJ=unsupported
21327 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21328 # support --undefined. This deserves some investigation. FIXME
21329 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21330 else
21331 ld_shlibs_GCJ=no
21332 fi
21333 ;;
21334
21335 cygwin* | mingw* | pw32*)
21336 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21337 # as there is no search path for DLLs.
21338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21339 allow_undefined_flag_GCJ=unsupported
21340 always_export_symbols_GCJ=no
21341 enable_shared_with_static_runtimes_GCJ=yes
21342 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21343
21344 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21345 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21346 # If the export-symbols file already is a .def file (1st line
21347 # is EXPORTS), use it as is; otherwise, prepend...
21348 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21349 cp $export_symbols $output_objdir/$soname.def;
21350 else
21351 echo EXPORTS > $output_objdir/$soname.def;
21352 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021353 fi~
21354 $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 +000021355 else
21356 ld_shlibs=no
21357 fi
21358 ;;
21359
21360 netbsd*)
21361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21362 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21363 wlarc=
21364 else
21365 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21366 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21367 fi
21368 ;;
21369
21370 solaris* | sysv5*)
21371 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21372 ld_shlibs_GCJ=no
21373 cat <<EOF 1>&2
21374
21375*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21376*** create shared libraries on Solaris systems. Therefore, libtool
21377*** is disabling shared libraries support. We urge you to upgrade GNU
21378*** binutils to release 2.9.1 or newer. Another option is to modify
21379*** your PATH or compiler configuration so that the native linker is
21380*** used, and then restart.
21381
21382EOF
21383 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21384 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21385 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21386 else
21387 ld_shlibs_GCJ=no
21388 fi
21389 ;;
21390
21391 sunos4*)
21392 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21393 wlarc=
21394 hardcode_direct_GCJ=yes
21395 hardcode_shlibpath_var_GCJ=no
21396 ;;
21397
Reid Spencer2706f8c2004-09-19 23:53:36 +000021398 linux*)
21399 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21400 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21401 archive_cmds_GCJ="$tmp_archive_cmds"
21402 supports_anon_versioning=no
21403 case `$LD -v 2>/dev/null` in
21404 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21405 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21406 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21407 *\ 2.11.*) ;; # other 2.11 versions
21408 *) supports_anon_versioning=yes ;;
21409 esac
21410 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021411 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21412cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21413$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021414 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21415 else
21416 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21417 fi
21418 else
21419 ld_shlibs_GCJ=no
21420 fi
21421 ;;
21422
John Criswell47fdd832003-07-14 16:52:07 +000021423 *)
21424 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21425 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21426 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21427 else
21428 ld_shlibs_GCJ=no
21429 fi
21430 ;;
21431 esac
21432
21433 if test "$ld_shlibs_GCJ" = yes; then
21434 runpath_var=LD_RUN_PATH
21435 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21436 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21437 # ancient GNU ld didn't support --whole-archive et. al.
21438 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21439 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21440 else
21441 whole_archive_flag_spec_GCJ=
21442 fi
21443 fi
21444 else
21445 # PORTME fill in a description of your system's linker (not GNU ld)
21446 case $host_os in
21447 aix3*)
21448 allow_undefined_flag_GCJ=unsupported
21449 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021450 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 +000021451 # Note: this linker hardcodes the directories in LIBPATH if there
21452 # are no directories specified by -L.
21453 hardcode_minus_L_GCJ=yes
21454 if test "$GCC" = yes && test -z "$link_static_flag"; then
21455 # Neither direct hardcoding nor static linking is supported with a
21456 # broken collect2.
21457 hardcode_direct_GCJ=unsupported
21458 fi
21459 ;;
21460
21461 aix4* | aix5*)
21462 if test "$host_cpu" = ia64; then
21463 # On IA64, the linker does run time linking by default, so we don't
21464 # have to do anything special.
21465 aix_use_runtimelinking=no
21466 exp_sym_flag='-Bexport'
21467 no_entry_flag=""
21468 else
21469 # If we're using GNU nm, then we don't want the "-C" option.
21470 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21471 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21472 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'
21473 else
21474 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'
21475 fi
21476 aix_use_runtimelinking=no
21477
21478 # Test if we are trying to use run time linking or normal
21479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21480 # need to do runtime linking.
21481 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21482 for ld_flag in $LDFLAGS; do
21483 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21484 aix_use_runtimelinking=yes
21485 break
21486 fi
21487 done
21488 esac
21489
21490 exp_sym_flag='-bexport'
21491 no_entry_flag='-bnoentry'
21492 fi
21493
21494 # When large executables or shared objects are built, AIX ld can
21495 # have problems creating the table of contents. If linking a library
21496 # or program results in "error TOC overflow" add -mminimal-toc to
21497 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21498 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21499
21500 archive_cmds_GCJ=''
21501 hardcode_direct_GCJ=yes
21502 hardcode_libdir_separator_GCJ=':'
21503 link_all_deplibs_GCJ=yes
21504
21505 if test "$GCC" = yes; then
21506 case $host_os in aix4.012|aix4.012.*)
21507 # We only want to do this on AIX 4.2 and lower, the check
21508 # below for broken collect2 doesn't work under 4.3+
21509 collect2name=`${CC} -print-prog-name=collect2`
21510 if test -f "$collect2name" && \
21511 strings "$collect2name" | grep resolve_lib_name >/dev/null
21512 then
21513 # We have reworked collect2
21514 hardcode_direct_GCJ=yes
21515 else
21516 # We have old collect2
21517 hardcode_direct_GCJ=unsupported
21518 # It fails to find uninstalled libraries when the uninstalled
21519 # path is not listed in the libpath. Setting hardcode_minus_L
21520 # to unsupported forces relinking
21521 hardcode_minus_L_GCJ=yes
21522 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21523 hardcode_libdir_separator_GCJ=
21524 fi
21525 esac
21526 shared_flag='-shared'
21527 else
21528 # not using gcc
21529 if test "$host_cpu" = ia64; then
21530 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21531 # chokes on -Wl,-G. The following line is correct:
21532 shared_flag='-G'
21533 else
21534 if test "$aix_use_runtimelinking" = yes; then
21535 shared_flag='${wl}-G'
21536 else
21537 shared_flag='${wl}-bM:SRE'
21538 fi
21539 fi
21540 fi
21541
21542 # It seems that -bexpall does not export symbols beginning with
21543 # underscore (_), so it is better to generate a list of symbols to export.
21544 always_export_symbols_GCJ=yes
21545 if test "$aix_use_runtimelinking" = yes; then
21546 # Warning - without using the other runtime loading flags (-brtl),
21547 # -berok will link without error, but may produce a broken library.
21548 allow_undefined_flag_GCJ='-berok'
21549 # Determine the default libpath from the value encoded in an empty executable.
21550 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021551/* confdefs.h. */
21552_ACEOF
21553cat confdefs.h >>conftest.$ac_ext
21554cat >>conftest.$ac_ext <<_ACEOF
21555/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021556
John Criswell47fdd832003-07-14 16:52:07 +000021557int
21558main ()
21559{
21560
21561 ;
21562 return 0;
21563}
21564_ACEOF
21565rm -f conftest.$ac_objext conftest$ac_exeext
21566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021567 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021568 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021569 grep -v '^ *+' conftest.er1 >conftest.err
21570 rm -f conftest.er1
21571 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021574 { ac_try='test -z "$ac_c_werror_flag"
21575 || test ! -s conftest.err'
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21578 ac_status=$?
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; } &&
21581 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21584 ac_status=$?
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587
21588aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21589}'`
21590# Check for a 64-bit object if we didn't find anything.
21591if 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; }
21592}'`; fi
21593else
21594 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021595sed 's/^/| /' conftest.$ac_ext >&5
21596
John Criswell47fdd832003-07-14 16:52:07 +000021597fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021598rm -f conftest.err conftest.$ac_objext \
21599 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021600if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21601
21602 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21603 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"
21604 else
21605 if test "$host_cpu" = ia64; then
21606 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21607 allow_undefined_flag_GCJ="-z nodefs"
21608 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"
21609 else
21610 # Determine the default libpath from the value encoded in an empty executable.
21611 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021612/* confdefs.h. */
21613_ACEOF
21614cat confdefs.h >>conftest.$ac_ext
21615cat >>conftest.$ac_ext <<_ACEOF
21616/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021617
John Criswell47fdd832003-07-14 16:52:07 +000021618int
21619main ()
21620{
21621
21622 ;
21623 return 0;
21624}
21625_ACEOF
21626rm -f conftest.$ac_objext conftest$ac_exeext
21627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021628 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021629 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021630 grep -v '^ *+' conftest.er1 >conftest.err
21631 rm -f conftest.er1
21632 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021635 { ac_try='test -z "$ac_c_werror_flag"
21636 || test ! -s conftest.err'
21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21638 (eval $ac_try) 2>&5
21639 ac_status=$?
21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641 (exit $ac_status); }; } &&
21642 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21644 (eval $ac_try) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); }; }; then
21648
21649aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21650}'`
21651# Check for a 64-bit object if we didn't find anything.
21652if 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; }
21653}'`; fi
21654else
21655 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021656sed 's/^/| /' conftest.$ac_ext >&5
21657
John Criswell47fdd832003-07-14 16:52:07 +000021658fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021659rm -f conftest.err conftest.$ac_objext \
21660 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021661if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21662
21663 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21664 # Warning - without using the other run time loading flags,
21665 # -berok will link without error, but may produce a broken library.
21666 no_undefined_flag_GCJ=' ${wl}-bernotok'
21667 allow_undefined_flag_GCJ=' ${wl}-berok'
21668 # -bexpall does not export symbols beginning with underscore (_)
21669 always_export_symbols_GCJ=yes
21670 # Exported symbols can be pulled into shared objects from archives
21671 whole_archive_flag_spec_GCJ=' '
21672 archive_cmds_need_lc_GCJ=yes
21673 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021674 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 +000021675 fi
21676 fi
21677 ;;
21678
21679 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021680 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 +000021681 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21682 hardcode_minus_L_GCJ=yes
21683 # see comment about different semantics on the GNU ld section
21684 ld_shlibs_GCJ=no
21685 ;;
21686
Reid Spencer2706f8c2004-09-19 23:53:36 +000021687 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021688 export_dynamic_flag_spec_GCJ=-rdynamic
21689 ;;
21690
21691 cygwin* | mingw* | pw32*)
21692 # When not using gcc, we currently assume that we are using
21693 # Microsoft Visual C++.
21694 # hardcode_libdir_flag_spec is actually meaningless, as there is
21695 # no search path for DLLs.
21696 hardcode_libdir_flag_spec_GCJ=' '
21697 allow_undefined_flag_GCJ=unsupported
21698 # Tell ltmain to make .lib files, not .a files.
21699 libext=lib
21700 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021701 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021702 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021703 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 +000021704 # The linker will automatically build a .lib file if we build a DLL.
21705 old_archive_From_new_cmds_GCJ='true'
21706 # FIXME: Should let the user specify the lib program.
21707 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21708 fix_srcfile_path='`cygpath -w "$srcfile"`'
21709 enable_shared_with_static_runtimes_GCJ=yes
21710 ;;
21711
21712 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021713 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021714 rhapsody* | darwin1.[012])
21715 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21716 ;;
21717 *) # Darwin 1.3 on
21718 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21719 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21720 else
21721 case ${MACOSX_DEPLOYMENT_TARGET} in
21722 10.[012])
21723 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21724 ;;
21725 10.*)
21726 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21727 ;;
21728 esac
21729 fi
21730 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021731 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021732 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021733 hardcode_direct_GCJ=no
21734 hardcode_automatic_GCJ=yes
21735 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021736 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021737 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021738 if test "$GCC" = yes ; then
21739 output_verbose_link_cmd='echo'
21740 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21741 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21742 # 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 +000021743 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}'
21744 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 +000021745 else
21746 case "$cc_basename" in
21747 xlc*)
21748 output_verbose_link_cmd='echo'
21749 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21750 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21751 # 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 +000021752 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}'
21753 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 +000021754 ;;
21755 *)
21756 ld_shlibs_GCJ=no
21757 ;;
21758 esac
John Criswell47fdd832003-07-14 16:52:07 +000021759 fi
21760 ;;
21761
21762 dgux*)
21763 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21764 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21765 hardcode_shlibpath_var_GCJ=no
21766 ;;
21767
21768 freebsd1*)
21769 ld_shlibs_GCJ=no
21770 ;;
21771
21772 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21773 # support. Future versions do this automatically, but an explicit c++rt0.o
21774 # does not break anything, and helps significantly (at the cost of a little
21775 # extra space).
21776 freebsd2.2*)
21777 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21778 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21779 hardcode_direct_GCJ=yes
21780 hardcode_shlibpath_var_GCJ=no
21781 ;;
21782
21783 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21784 freebsd2*)
21785 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21786 hardcode_direct_GCJ=yes
21787 hardcode_minus_L_GCJ=yes
21788 hardcode_shlibpath_var_GCJ=no
21789 ;;
21790
21791 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021792 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021793 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21794 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21795 hardcode_direct_GCJ=yes
21796 hardcode_shlibpath_var_GCJ=no
21797 ;;
21798
21799 hpux9*)
21800 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021801 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 +000021802 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021803 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 +000021804 fi
21805 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21806 hardcode_libdir_separator_GCJ=:
21807 hardcode_direct_GCJ=yes
21808
21809 # hardcode_minus_L: Not really in the search PATH,
21810 # but as the default location of the library.
21811 hardcode_minus_L_GCJ=yes
21812 export_dynamic_flag_spec_GCJ='${wl}-E'
21813 ;;
21814
21815 hpux10* | hpux11*)
21816 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21817 case "$host_cpu" in
21818 hppa*64*|ia64*)
21819 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21820 ;;
21821 *)
21822 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21823 ;;
21824 esac
21825 else
21826 case "$host_cpu" in
21827 hppa*64*|ia64*)
21828 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21829 ;;
21830 *)
21831 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21832 ;;
21833 esac
21834 fi
21835 if test "$with_gnu_ld" = no; then
21836 case "$host_cpu" in
21837 hppa*64*)
21838 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21839 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21840 hardcode_libdir_separator_GCJ=:
21841 hardcode_direct_GCJ=no
21842 hardcode_shlibpath_var_GCJ=no
21843 ;;
21844 ia64*)
21845 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21846 hardcode_direct_GCJ=no
21847 hardcode_shlibpath_var_GCJ=no
21848
21849 # hardcode_minus_L: Not really in the search PATH,
21850 # but as the default location of the library.
21851 hardcode_minus_L_GCJ=yes
21852 ;;
21853 *)
21854 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21855 hardcode_libdir_separator_GCJ=:
21856 hardcode_direct_GCJ=yes
21857 export_dynamic_flag_spec_GCJ='${wl}-E'
21858
21859 # hardcode_minus_L: Not really in the search PATH,
21860 # but as the default location of the library.
21861 hardcode_minus_L_GCJ=yes
21862 ;;
21863 esac
21864 fi
21865 ;;
21866
21867 irix5* | irix6* | nonstopux*)
21868 if test "$GCC" = yes; then
21869 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'
21870 else
21871 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'
21872 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21873 fi
21874 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21875 hardcode_libdir_separator_GCJ=:
21876 link_all_deplibs_GCJ=yes
21877 ;;
21878
21879 netbsd*)
21880 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21881 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21882 else
21883 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21884 fi
21885 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21886 hardcode_direct_GCJ=yes
21887 hardcode_shlibpath_var_GCJ=no
21888 ;;
21889
21890 newsos6)
21891 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21892 hardcode_direct_GCJ=yes
21893 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21894 hardcode_libdir_separator_GCJ=:
21895 hardcode_shlibpath_var_GCJ=no
21896 ;;
21897
21898 openbsd*)
21899 hardcode_direct_GCJ=yes
21900 hardcode_shlibpath_var_GCJ=no
21901 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21902 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021903 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 +000021904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21905 export_dynamic_flag_spec_GCJ='${wl}-E'
21906 else
21907 case $host_os in
21908 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21909 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21910 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21911 ;;
21912 *)
21913 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21914 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21915 ;;
21916 esac
21917 fi
21918 ;;
21919
21920 os2*)
21921 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21922 hardcode_minus_L_GCJ=yes
21923 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000021924 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 +000021925 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21926 ;;
21927
21928 osf3*)
21929 if test "$GCC" = yes; then
21930 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21931 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'
21932 else
21933 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21934 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'
21935 fi
21936 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21937 hardcode_libdir_separator_GCJ=:
21938 ;;
21939
21940 osf4* | osf5*) # as osf3* with the addition of -msym flag
21941 if test "$GCC" = yes; then
21942 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21943 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'
21944 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21945 else
21946 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21947 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 +000021948 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~
21949 $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'
21950
John Criswell47fdd832003-07-14 16:52:07 +000021951 # Both c and cxx compiler support -rpath directly
21952 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21953 fi
21954 hardcode_libdir_separator_GCJ=:
21955 ;;
21956
21957 sco3.2v5*)
21958 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21959 hardcode_shlibpath_var_GCJ=no
21960 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21961 runpath_var=LD_RUN_PATH
21962 hardcode_runpath_var=yes
21963 ;;
21964
21965 solaris*)
21966 no_undefined_flag_GCJ=' -z text'
21967 if test "$GCC" = yes; then
21968 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021969 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21970 $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 +000021971 else
21972 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021973 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21974 $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 +000021975 fi
21976 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21977 hardcode_shlibpath_var_GCJ=no
21978 case $host_os in
21979 solaris2.[0-5] | solaris2.[0-5].*) ;;
21980 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
21981 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
21982 esac
21983 link_all_deplibs_GCJ=yes
21984 ;;
21985
21986 sunos4*)
21987 if test "x$host_vendor" = xsequent; then
21988 # Use $CC to link under sequent, because it throws in some extra .o
21989 # files that make .init and .fini sections work.
21990 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21991 else
21992 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21993 fi
21994 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21995 hardcode_direct_GCJ=yes
21996 hardcode_minus_L_GCJ=yes
21997 hardcode_shlibpath_var_GCJ=no
21998 ;;
21999
22000 sysv4)
22001 case $host_vendor in
22002 sni)
22003 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22004 hardcode_direct_GCJ=yes # is this really true???
22005 ;;
22006 siemens)
22007 ## LD is ld it makes a PLAMLIB
22008 ## CC just makes a GrossModule.
22009 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22010 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22011 hardcode_direct_GCJ=no
22012 ;;
22013 motorola)
22014 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22015 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22016 ;;
22017 esac
22018 runpath_var='LD_RUN_PATH'
22019 hardcode_shlibpath_var_GCJ=no
22020 ;;
22021
22022 sysv4.3*)
22023 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22024 hardcode_shlibpath_var_GCJ=no
22025 export_dynamic_flag_spec_GCJ='-Bexport'
22026 ;;
22027
22028 sysv4*MP*)
22029 if test -d /usr/nec; then
22030 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22031 hardcode_shlibpath_var_GCJ=no
22032 runpath_var=LD_RUN_PATH
22033 hardcode_runpath_var=yes
22034 ld_shlibs_GCJ=yes
22035 fi
22036 ;;
22037
22038 sysv4.2uw2*)
22039 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22040 hardcode_direct_GCJ=yes
22041 hardcode_minus_L_GCJ=no
22042 hardcode_shlibpath_var_GCJ=no
22043 hardcode_runpath_var=yes
22044 runpath_var=LD_RUN_PATH
22045 ;;
22046
22047 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22048 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22049 if test "$GCC" = yes; then
22050 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22051 else
22052 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22053 fi
22054 runpath_var='LD_RUN_PATH'
22055 hardcode_shlibpath_var_GCJ=no
22056 ;;
22057
22058 sysv5*)
22059 no_undefined_flag_GCJ=' -z text'
22060 # $CC -shared without GNU ld will not create a library from C++
22061 # object files and a static libstdc++, better avoid it by now
22062 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022063 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22064 $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 +000022065 hardcode_libdir_flag_spec_GCJ=
22066 hardcode_shlibpath_var_GCJ=no
22067 runpath_var='LD_RUN_PATH'
22068 ;;
22069
22070 uts4*)
22071 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22072 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22073 hardcode_shlibpath_var_GCJ=no
22074 ;;
22075
22076 *)
22077 ld_shlibs_GCJ=no
22078 ;;
22079 esac
22080 fi
22081
22082echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22083echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22084test "$ld_shlibs_GCJ" = no && can_build_shared=no
22085
22086variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22087if test "$GCC" = yes; then
22088 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22089fi
22090
22091#
22092# Do we need to explicitly link libc?
22093#
22094case "x$archive_cmds_need_lc_GCJ" in
22095x|xyes)
22096 # Assume -lc should be added
22097 archive_cmds_need_lc_GCJ=yes
22098
22099 if test "$enable_shared" = yes && test "$GCC" = yes; then
22100 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022101 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022102 # FIXME: we may have to deal with multi-command sequences.
22103 ;;
22104 '$CC '*)
22105 # Test whether the compiler implicitly links with -lc since on some
22106 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22107 # to ld, don't add -lc before -lgcc.
22108 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22109echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22110 $rm conftest*
22111 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22112
22113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22114 (eval $ac_compile) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } 2>conftest.err; then
22118 soname=conftest
22119 lib=conftest
22120 libobjs=conftest.$ac_objext
22121 deplibs=
22122 wl=$lt_prog_compiler_wl_GCJ
22123 compiler_flags=-v
22124 linker_flags=-v
22125 verstring=
22126 output_objdir=.
22127 libname=conftest
22128 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22129 allow_undefined_flag_GCJ=
22130 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22131 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22132 ac_status=$?
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }
22135 then
22136 archive_cmds_need_lc_GCJ=no
22137 else
22138 archive_cmds_need_lc_GCJ=yes
22139 fi
22140 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22141 else
22142 cat conftest.err 1>&5
22143 fi
22144 $rm conftest*
22145 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22146echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22147 ;;
22148 esac
22149 fi
22150 ;;
22151esac
22152
John Criswell47fdd832003-07-14 16:52:07 +000022153echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22154echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22155library_names_spec=
22156libname_spec='lib$name'
22157soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022158shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022159postinstall_cmds=
22160postuninstall_cmds=
22161finish_cmds=
22162finish_eval=
22163shlibpath_var=
22164shlibpath_overrides_runpath=unknown
22165version_type=none
22166dynamic_linker="$host_os ld.so"
22167sys_lib_dlsearch_path_spec="/lib /usr/lib"
22168if test "$GCC" = yes; then
22169 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22170 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22171 # if the path contains ";" then we assume it to be the separator
22172 # otherwise default to the standard path separator (i.e. ":") - it is
22173 # assumed that no part of a normal pathname contains ";" but that should
22174 # okay in the real world where ";" in dirpaths is itself problematic.
22175 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22176 else
22177 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22178 fi
22179else
22180 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22181fi
22182need_lib_prefix=unknown
22183hardcode_into_libs=no
22184
22185# when you set need_version to no, make sure it does not cause -set_version
22186# flags to be left without arguments
22187need_version=unknown
22188
22189case $host_os in
22190aix3*)
22191 version_type=linux
22192 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22193 shlibpath_var=LIBPATH
22194
22195 # AIX 3 has no versioning support, so we append a major version to the name.
22196 soname_spec='${libname}${release}${shared_ext}$major'
22197 ;;
22198
22199aix4* | aix5*)
22200 version_type=linux
22201 need_lib_prefix=no
22202 need_version=no
22203 hardcode_into_libs=yes
22204 if test "$host_cpu" = ia64; then
22205 # AIX 5 supports IA64
22206 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22207 shlibpath_var=LD_LIBRARY_PATH
22208 else
22209 # With GCC up to 2.95.x, collect2 would create an import file
22210 # for dependence libraries. The import file would start with
22211 # the line `#! .'. This would cause the generated library to
22212 # depend on `.', always an invalid library. This was fixed in
22213 # development snapshots of GCC prior to 3.0.
22214 case $host_os in
22215 aix4 | aix4.[01] | aix4.[01].*)
22216 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22217 echo ' yes '
22218 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22219 :
22220 else
22221 can_build_shared=no
22222 fi
22223 ;;
22224 esac
22225 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22226 # soname into executable. Probably we can add versioning support to
22227 # collect2, so additional links can be useful in future.
22228 if test "$aix_use_runtimelinking" = yes; then
22229 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22230 # instead of lib<name>.a to let people know that these are not
22231 # typical AIX shared libraries.
22232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22233 else
22234 # We preserve .a as extension for shared libraries through AIX4.2
22235 # and later when we are not doing run time linking.
22236 library_names_spec='${libname}${release}.a $libname.a'
22237 soname_spec='${libname}${release}${shared_ext}$major'
22238 fi
22239 shlibpath_var=LIBPATH
22240 fi
22241 ;;
22242
22243amigaos*)
22244 library_names_spec='$libname.ixlibrary $libname.a'
22245 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022246 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 +000022247 ;;
22248
22249beos*)
22250 library_names_spec='${libname}${shared_ext}'
22251 dynamic_linker="$host_os ld.so"
22252 shlibpath_var=LIBRARY_PATH
22253 ;;
22254
Reid Spencer2706f8c2004-09-19 23:53:36 +000022255bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022256 version_type=linux
22257 need_version=no
22258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22259 soname_spec='${libname}${release}${shared_ext}$major'
22260 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22261 shlibpath_var=LD_LIBRARY_PATH
22262 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22263 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22264 # the default ld.so.conf also contains /usr/contrib/lib and
22265 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22266 # libtool to hard-code these into programs
22267 ;;
22268
22269cygwin* | mingw* | pw32*)
22270 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022271 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022272 need_version=no
22273 need_lib_prefix=no
22274
22275 case $GCC,$host_os in
22276 yes,cygwin* | yes,mingw* | yes,pw32*)
22277 library_names_spec='$libname.dll.a'
22278 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022279 postinstall_cmds='base_file=`basename \${file}`~
22280 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22281 dldir=$destdir/`dirname \$dlpath`~
22282 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022283 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022284 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22285 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022286 $rm \$dlpath'
22287 shlibpath_overrides_runpath=yes
22288
22289 case $host_os in
22290 cygwin*)
22291 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22292 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 +000022293 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022294 ;;
22295 mingw*)
22296 # MinGW DLLs use traditional 'lib' prefix
22297 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22298 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22299 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22300 # It is most probably a Windows format PATH printed by
22301 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22302 # path with ; separators, and with drive letters. We can handle the
22303 # drive letters (cygwin fileutils understands them), so leave them,
22304 # especially as we might pass files found there to a mingw objdump,
22305 # which wouldn't understand a cygwinified path. Ahh.
22306 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22307 else
22308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22309 fi
22310 ;;
22311 pw32*)
22312 # pw32 DLLs use 'pw' prefix rather than 'lib'
22313 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22314 ;;
22315 esac
22316 ;;
22317
22318 *)
22319 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22320 ;;
22321 esac
22322 dynamic_linker='Win32 ld.exe'
22323 # FIXME: first we should search . and the directory the executable is in
22324 shlibpath_var=PATH
22325 ;;
22326
22327darwin* | rhapsody*)
22328 dynamic_linker="$host_os dyld"
22329 version_type=darwin
22330 need_lib_prefix=no
22331 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022332 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022333 soname_spec='${libname}${release}${major}$shared_ext'
22334 shlibpath_overrides_runpath=yes
22335 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022336 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022337 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022338 if test "$GCC" = yes; then
22339 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"`
22340 else
22341 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022342 fi
22343 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22344 ;;
22345
22346dgux*)
22347 version_type=linux
22348 need_lib_prefix=no
22349 need_version=no
22350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22351 soname_spec='${libname}${release}${shared_ext}$major'
22352 shlibpath_var=LD_LIBRARY_PATH
22353 ;;
22354
22355freebsd1*)
22356 dynamic_linker=no
22357 ;;
22358
Reid Spencer2706f8c2004-09-19 23:53:36 +000022359kfreebsd*-gnu)
22360 version_type=linux
22361 need_lib_prefix=no
22362 need_version=no
22363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22364 soname_spec='${libname}${release}${shared_ext}$major'
22365 shlibpath_var=LD_LIBRARY_PATH
22366 shlibpath_overrides_runpath=no
22367 hardcode_into_libs=yes
22368 dynamic_linker='GNU ld.so'
22369 ;;
22370
John Criswell47fdd832003-07-14 16:52:07 +000022371freebsd*)
22372 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22373 version_type=freebsd-$objformat
22374 case $version_type in
22375 freebsd-elf*)
22376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22377 need_version=no
22378 need_lib_prefix=no
22379 ;;
22380 freebsd-*)
22381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22382 need_version=yes
22383 ;;
22384 esac
22385 shlibpath_var=LD_LIBRARY_PATH
22386 case $host_os in
22387 freebsd2*)
22388 shlibpath_overrides_runpath=yes
22389 ;;
22390 freebsd3.01* | freebsdelf3.01*)
22391 shlibpath_overrides_runpath=yes
22392 hardcode_into_libs=yes
22393 ;;
22394 *) # from 3.2 on
22395 shlibpath_overrides_runpath=no
22396 hardcode_into_libs=yes
22397 ;;
22398 esac
22399 ;;
22400
22401gnu*)
22402 version_type=linux
22403 need_lib_prefix=no
22404 need_version=no
22405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22406 soname_spec='${libname}${release}${shared_ext}$major'
22407 shlibpath_var=LD_LIBRARY_PATH
22408 hardcode_into_libs=yes
22409 ;;
22410
22411hpux9* | hpux10* | hpux11*)
22412 # Give a soname corresponding to the major version so that dld.sl refuses to
22413 # link against other versions.
22414 version_type=sunos
22415 need_lib_prefix=no
22416 need_version=no
22417 case "$host_cpu" in
22418 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022419 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022420 hardcode_into_libs=yes
22421 dynamic_linker="$host_os dld.so"
22422 shlibpath_var=LD_LIBRARY_PATH
22423 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22425 soname_spec='${libname}${release}${shared_ext}$major'
22426 if test "X$HPUX_IA64_MODE" = X32; then
22427 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22428 else
22429 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22430 fi
22431 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22432 ;;
22433 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022434 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022435 hardcode_into_libs=yes
22436 dynamic_linker="$host_os dld.sl"
22437 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22438 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22440 soname_spec='${libname}${release}${shared_ext}$major'
22441 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22442 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22443 ;;
22444 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022445 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022446 dynamic_linker="$host_os dld.sl"
22447 shlibpath_var=SHLIB_PATH
22448 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22450 soname_spec='${libname}${release}${shared_ext}$major'
22451 ;;
22452 esac
22453 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22454 postinstall_cmds='chmod 555 $lib'
22455 ;;
22456
22457irix5* | irix6* | nonstopux*)
22458 case $host_os in
22459 nonstopux*) version_type=nonstopux ;;
22460 *)
22461 if test "$lt_cv_prog_gnu_ld" = yes; then
22462 version_type=linux
22463 else
22464 version_type=irix
22465 fi ;;
22466 esac
22467 need_lib_prefix=no
22468 need_version=no
22469 soname_spec='${libname}${release}${shared_ext}$major'
22470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22471 case $host_os in
22472 irix5* | nonstopux*)
22473 libsuff= shlibsuff=
22474 ;;
22475 *)
22476 case $LD in # libtool.m4 will add one of these switches to LD
22477 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22478 libsuff= shlibsuff= libmagic=32-bit;;
22479 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22480 libsuff=32 shlibsuff=N32 libmagic=N32;;
22481 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22482 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22483 *) libsuff= shlibsuff= libmagic=never-match;;
22484 esac
22485 ;;
22486 esac
22487 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22488 shlibpath_overrides_runpath=no
22489 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22490 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22491 hardcode_into_libs=yes
22492 ;;
22493
22494# No shared lib support for Linux oldld, aout, or coff.
22495linux*oldld* | linux*aout* | linux*coff*)
22496 dynamic_linker=no
22497 ;;
22498
22499# This must be Linux ELF.
22500linux*)
22501 version_type=linux
22502 need_lib_prefix=no
22503 need_version=no
22504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22505 soname_spec='${libname}${release}${shared_ext}$major'
22506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22507 shlibpath_var=LD_LIBRARY_PATH
22508 shlibpath_overrides_runpath=no
22509 # This implies no fast_install, which is unacceptable.
22510 # Some rework will be needed to allow for fast_install
22511 # before this can be enabled.
22512 hardcode_into_libs=yes
22513
Reid Spencer2706f8c2004-09-19 23:53:36 +000022514 # Append ld.so.conf contents to the search path
22515 if test -f /etc/ld.so.conf; then
22516 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22517 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22518 fi
22519
John Criswell47fdd832003-07-14 16:52:07 +000022520 # We used to test for /lib/ld.so.1 and disable shared libraries on
22521 # powerpc, because MkLinux only supported shared libraries with the
22522 # GNU dynamic linker. Since this was broken with cross compilers,
22523 # most powerpc-linux boxes support dynamic linking these days and
22524 # people can always --disable-shared, the test was removed, and we
22525 # assume the GNU/Linux dynamic linker is in use.
22526 dynamic_linker='GNU/Linux ld.so'
22527 ;;
22528
Reid Spencer2706f8c2004-09-19 23:53:36 +000022529knetbsd*-gnu)
22530 version_type=linux
22531 need_lib_prefix=no
22532 need_version=no
22533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22534 soname_spec='${libname}${release}${shared_ext}$major'
22535 shlibpath_var=LD_LIBRARY_PATH
22536 shlibpath_overrides_runpath=no
22537 hardcode_into_libs=yes
22538 dynamic_linker='GNU ld.so'
22539 ;;
22540
John Criswell47fdd832003-07-14 16:52:07 +000022541netbsd*)
22542 version_type=sunos
22543 need_lib_prefix=no
22544 need_version=no
22545 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22547 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22548 dynamic_linker='NetBSD (a.out) ld.so'
22549 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022551 soname_spec='${libname}${release}${shared_ext}$major'
22552 dynamic_linker='NetBSD ld.elf_so'
22553 fi
22554 shlibpath_var=LD_LIBRARY_PATH
22555 shlibpath_overrides_runpath=yes
22556 hardcode_into_libs=yes
22557 ;;
22558
22559newsos6)
22560 version_type=linux
22561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22562 shlibpath_var=LD_LIBRARY_PATH
22563 shlibpath_overrides_runpath=yes
22564 ;;
22565
Reid Spencer2706f8c2004-09-19 23:53:36 +000022566nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022567 version_type=linux
22568 need_lib_prefix=no
22569 need_version=no
22570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22571 soname_spec='${libname}${release}${shared_ext}$major'
22572 shlibpath_var=LD_LIBRARY_PATH
22573 shlibpath_overrides_runpath=yes
22574 ;;
22575
22576openbsd*)
22577 version_type=sunos
22578 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022579 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22581 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22582 shlibpath_var=LD_LIBRARY_PATH
22583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22584 case $host_os in
22585 openbsd2.[89] | openbsd2.[89].*)
22586 shlibpath_overrides_runpath=no
22587 ;;
22588 *)
22589 shlibpath_overrides_runpath=yes
22590 ;;
22591 esac
22592 else
22593 shlibpath_overrides_runpath=yes
22594 fi
22595 ;;
22596
22597os2*)
22598 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022599 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022600 need_lib_prefix=no
22601 library_names_spec='$libname${shared_ext} $libname.a'
22602 dynamic_linker='OS/2 ld.exe'
22603 shlibpath_var=LIBPATH
22604 ;;
22605
22606osf3* | osf4* | osf5*)
22607 version_type=osf
22608 need_lib_prefix=no
22609 need_version=no
22610 soname_spec='${libname}${release}${shared_ext}$major'
22611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22612 shlibpath_var=LD_LIBRARY_PATH
22613 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22614 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22615 ;;
22616
22617sco3.2v5*)
22618 version_type=osf
22619 soname_spec='${libname}${release}${shared_ext}$major'
22620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22621 shlibpath_var=LD_LIBRARY_PATH
22622 ;;
22623
22624solaris*)
22625 version_type=linux
22626 need_lib_prefix=no
22627 need_version=no
22628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22629 soname_spec='${libname}${release}${shared_ext}$major'
22630 shlibpath_var=LD_LIBRARY_PATH
22631 shlibpath_overrides_runpath=yes
22632 hardcode_into_libs=yes
22633 # ldd complains unless libraries are executable
22634 postinstall_cmds='chmod +x $lib'
22635 ;;
22636
22637sunos4*)
22638 version_type=sunos
22639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22640 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22641 shlibpath_var=LD_LIBRARY_PATH
22642 shlibpath_overrides_runpath=yes
22643 if test "$with_gnu_ld" = yes; then
22644 need_lib_prefix=no
22645 fi
22646 need_version=yes
22647 ;;
22648
22649sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22650 version_type=linux
22651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22652 soname_spec='${libname}${release}${shared_ext}$major'
22653 shlibpath_var=LD_LIBRARY_PATH
22654 case $host_vendor in
22655 sni)
22656 shlibpath_overrides_runpath=no
22657 need_lib_prefix=no
22658 export_dynamic_flag_spec='${wl}-Blargedynsym'
22659 runpath_var=LD_RUN_PATH
22660 ;;
22661 siemens)
22662 need_lib_prefix=no
22663 ;;
22664 motorola)
22665 need_lib_prefix=no
22666 need_version=no
22667 shlibpath_overrides_runpath=no
22668 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22669 ;;
22670 esac
22671 ;;
22672
22673sysv4*MP*)
22674 if test -d /usr/nec ;then
22675 version_type=linux
22676 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22677 soname_spec='$libname${shared_ext}.$major'
22678 shlibpath_var=LD_LIBRARY_PATH
22679 fi
22680 ;;
22681
22682uts4*)
22683 version_type=linux
22684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22685 soname_spec='${libname}${release}${shared_ext}$major'
22686 shlibpath_var=LD_LIBRARY_PATH
22687 ;;
22688
22689*)
22690 dynamic_linker=no
22691 ;;
22692esac
22693echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22694echo "${ECHO_T}$dynamic_linker" >&6
22695test "$dynamic_linker" = no && can_build_shared=no
22696
Reid Spencer2706f8c2004-09-19 23:53:36 +000022697echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22698echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22699hardcode_action_GCJ=
22700if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22701 test -n "$runpath_var_GCJ" || \
22702 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22703
22704 # We can hardcode non-existant directories.
22705 if test "$hardcode_direct_GCJ" != no &&
22706 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22707 # have to relink, otherwise we might link with an installed library
22708 # when we should be linking with a yet-to-be-installed one
22709 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22710 test "$hardcode_minus_L_GCJ" != no; then
22711 # Linking always hardcodes the temporary library directory.
22712 hardcode_action_GCJ=relink
22713 else
22714 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22715 hardcode_action_GCJ=immediate
22716 fi
22717else
22718 # We cannot hardcode anything, or else we can only hardcode existing
22719 # directories.
22720 hardcode_action_GCJ=unsupported
22721fi
22722echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22723echo "${ECHO_T}$hardcode_action_GCJ" >&6
22724
22725if test "$hardcode_action_GCJ" = relink; then
22726 # Fast installation is not supported
22727 enable_fast_install=no
22728elif test "$shlibpath_overrides_runpath" = yes ||
22729 test "$enable_shared" = no; then
22730 # Fast installation is not necessary
22731 enable_fast_install=needless
22732fi
22733
22734striplib=
22735old_striplib=
22736echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22737echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22738if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22739 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22740 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22741 echo "$as_me:$LINENO: result: yes" >&5
22742echo "${ECHO_T}yes" >&6
22743else
22744# FIXME - insert some real tests, host_os isn't really good enough
22745 case $host_os in
22746 darwin*)
22747 if test -n "$STRIP" ; then
22748 striplib="$STRIP -x"
22749 echo "$as_me:$LINENO: result: yes" >&5
22750echo "${ECHO_T}yes" >&6
22751 else
22752 echo "$as_me:$LINENO: result: no" >&5
22753echo "${ECHO_T}no" >&6
22754fi
22755 ;;
22756 *)
22757 echo "$as_me:$LINENO: result: no" >&5
22758echo "${ECHO_T}no" >&6
22759 ;;
22760 esac
22761fi
22762
John Criswell47fdd832003-07-14 16:52:07 +000022763if test "x$enable_dlopen" != xyes; then
22764 enable_dlopen=unknown
22765 enable_dlopen_self=unknown
22766 enable_dlopen_self_static=unknown
22767else
22768 lt_cv_dlopen=no
22769 lt_cv_dlopen_libs=
22770
22771 case $host_os in
22772 beos*)
22773 lt_cv_dlopen="load_add_on"
22774 lt_cv_dlopen_libs=
22775 lt_cv_dlopen_self=yes
22776 ;;
22777
22778 mingw* | pw32*)
22779 lt_cv_dlopen="LoadLibrary"
22780 lt_cv_dlopen_libs=
22781 ;;
22782
22783 cygwin*)
22784 lt_cv_dlopen="dlopen"
22785 lt_cv_dlopen_libs=
22786 ;;
22787
22788 darwin*)
22789 # if libdl is installed we need to link against it
22790 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22791echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22792if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22793 echo $ECHO_N "(cached) $ECHO_C" >&6
22794else
22795 ac_check_lib_save_LIBS=$LIBS
22796LIBS="-ldl $LIBS"
22797cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022798/* confdefs.h. */
22799_ACEOF
22800cat confdefs.h >>conftest.$ac_ext
22801cat >>conftest.$ac_ext <<_ACEOF
22802/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022803
22804/* Override any gcc2 internal prototype to avoid an error. */
22805#ifdef __cplusplus
22806extern "C"
22807#endif
22808/* We use char because int might match the return type of a gcc2
22809 builtin and then its argument prototype would still apply. */
22810char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022811int
22812main ()
22813{
22814dlopen ();
22815 ;
22816 return 0;
22817}
22818_ACEOF
22819rm -f conftest.$ac_objext conftest$ac_exeext
22820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022821 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022822 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022823 grep -v '^ *+' conftest.er1 >conftest.err
22824 rm -f conftest.er1
22825 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022828 { ac_try='test -z "$ac_c_werror_flag"
22829 || test ! -s conftest.err'
22830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22831 (eval $ac_try) 2>&5
22832 ac_status=$?
22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834 (exit $ac_status); }; } &&
22835 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22837 (eval $ac_try) 2>&5
22838 ac_status=$?
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; }; then
22841 ac_cv_lib_dl_dlopen=yes
22842else
22843 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022844sed 's/^/| /' conftest.$ac_ext >&5
22845
John Criswell47fdd832003-07-14 16:52:07 +000022846ac_cv_lib_dl_dlopen=no
22847fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022848rm -f conftest.err conftest.$ac_objext \
22849 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022850LIBS=$ac_check_lib_save_LIBS
22851fi
22852echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22853echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22854if test $ac_cv_lib_dl_dlopen = yes; then
22855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22856else
22857
22858 lt_cv_dlopen="dyld"
22859 lt_cv_dlopen_libs=
22860 lt_cv_dlopen_self=yes
22861
22862fi
22863
22864 ;;
22865
22866 *)
22867 echo "$as_me:$LINENO: checking for shl_load" >&5
22868echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22869if test "${ac_cv_func_shl_load+set}" = set; then
22870 echo $ECHO_N "(cached) $ECHO_C" >&6
22871else
22872 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022873/* confdefs.h. */
22874_ACEOF
22875cat confdefs.h >>conftest.$ac_ext
22876cat >>conftest.$ac_ext <<_ACEOF
22877/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022878/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22880#define shl_load innocuous_shl_load
22881
John Criswell47fdd832003-07-14 16:52:07 +000022882/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022883 which can conflict with char shl_load (); below.
22884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22885 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022886
John Criswell0c38eaf2003-09-10 15:17:25 +000022887#ifdef __STDC__
22888# include <limits.h>
22889#else
22890# include <assert.h>
22891#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022892
22893#undef shl_load
22894
John Criswell47fdd832003-07-14 16:52:07 +000022895/* Override any gcc2 internal prototype to avoid an error. */
22896#ifdef __cplusplus
22897extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022898{
John Criswell47fdd832003-07-14 16:52:07 +000022899#endif
22900/* We use char because int might match the return type of a gcc2
22901 builtin and then its argument prototype would still apply. */
22902char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000022903/* The GNU C library defines this for functions which it implements
22904 to always fail with ENOSYS. Some functions are actually named
22905 something starting with __ and the normal name is an alias. */
22906#if defined (__stub_shl_load) || defined (__stub___shl_load)
22907choke me
22908#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022909char (*f) () = shl_load;
22910#endif
22911#ifdef __cplusplus
22912}
John Criswell47fdd832003-07-14 16:52:07 +000022913#endif
22914
John Criswell0c38eaf2003-09-10 15:17:25 +000022915int
22916main ()
22917{
22918return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000022919 ;
22920 return 0;
22921}
22922_ACEOF
22923rm -f conftest.$ac_objext conftest$ac_exeext
22924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022925 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022926 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022927 grep -v '^ *+' conftest.er1 >conftest.err
22928 rm -f conftest.er1
22929 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022932 { ac_try='test -z "$ac_c_werror_flag"
22933 || test ! -s conftest.err'
22934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22935 (eval $ac_try) 2>&5
22936 ac_status=$?
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); }; } &&
22939 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022940 { (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); }; }; then
22945 ac_cv_func_shl_load=yes
22946else
22947 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022948sed 's/^/| /' conftest.$ac_ext >&5
22949
John Criswell47fdd832003-07-14 16:52:07 +000022950ac_cv_func_shl_load=no
22951fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022952rm -f conftest.err conftest.$ac_objext \
22953 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022954fi
22955echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22956echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22957if test $ac_cv_func_shl_load = yes; then
22958 lt_cv_dlopen="shl_load"
22959else
22960 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22961echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22962if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22964else
22965 ac_check_lib_save_LIBS=$LIBS
22966LIBS="-ldld $LIBS"
22967cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022968/* confdefs.h. */
22969_ACEOF
22970cat confdefs.h >>conftest.$ac_ext
22971cat >>conftest.$ac_ext <<_ACEOF
22972/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022973
22974/* Override any gcc2 internal prototype to avoid an error. */
22975#ifdef __cplusplus
22976extern "C"
22977#endif
22978/* We use char because int might match the return type of a gcc2
22979 builtin and then its argument prototype would still apply. */
22980char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000022981int
22982main ()
22983{
22984shl_load ();
22985 ;
22986 return 0;
22987}
22988_ACEOF
22989rm -f conftest.$ac_objext conftest$ac_exeext
22990if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022991 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022992 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022993 grep -v '^ *+' conftest.er1 >conftest.err
22994 rm -f conftest.er1
22995 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022998 { ac_try='test -z "$ac_c_werror_flag"
22999 || test ! -s conftest.err'
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001 (eval $ac_try) 2>&5
23002 ac_status=$?
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); }; } &&
23005 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23008 ac_status=$?
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; }; then
23011 ac_cv_lib_dld_shl_load=yes
23012else
23013 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023014sed 's/^/| /' conftest.$ac_ext >&5
23015
John Criswell47fdd832003-07-14 16:52:07 +000023016ac_cv_lib_dld_shl_load=no
23017fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023018rm -f conftest.err conftest.$ac_objext \
23019 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023020LIBS=$ac_check_lib_save_LIBS
23021fi
23022echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23023echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23024if test $ac_cv_lib_dld_shl_load = yes; then
23025 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23026else
23027 echo "$as_me:$LINENO: checking for dlopen" >&5
23028echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23029if test "${ac_cv_func_dlopen+set}" = set; then
23030 echo $ECHO_N "(cached) $ECHO_C" >&6
23031else
23032 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023033/* confdefs.h. */
23034_ACEOF
23035cat confdefs.h >>conftest.$ac_ext
23036cat >>conftest.$ac_ext <<_ACEOF
23037/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023038/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23040#define dlopen innocuous_dlopen
23041
John Criswell47fdd832003-07-14 16:52:07 +000023042/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023043 which can conflict with char dlopen (); below.
23044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23045 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023046
John Criswell0c38eaf2003-09-10 15:17:25 +000023047#ifdef __STDC__
23048# include <limits.h>
23049#else
23050# include <assert.h>
23051#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023052
23053#undef dlopen
23054
John Criswell47fdd832003-07-14 16:52:07 +000023055/* Override any gcc2 internal prototype to avoid an error. */
23056#ifdef __cplusplus
23057extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023058{
John Criswell47fdd832003-07-14 16:52:07 +000023059#endif
23060/* We use char because int might match the return type of a gcc2
23061 builtin and then its argument prototype would still apply. */
23062char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023063/* The GNU C library defines this for functions which it implements
23064 to always fail with ENOSYS. Some functions are actually named
23065 something starting with __ and the normal name is an alias. */
23066#if defined (__stub_dlopen) || defined (__stub___dlopen)
23067choke me
23068#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023069char (*f) () = dlopen;
23070#endif
23071#ifdef __cplusplus
23072}
John Criswell47fdd832003-07-14 16:52:07 +000023073#endif
23074
John Criswell0c38eaf2003-09-10 15:17:25 +000023075int
23076main ()
23077{
23078return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023079 ;
23080 return 0;
23081}
23082_ACEOF
23083rm -f conftest.$ac_objext conftest$ac_exeext
23084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023085 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023087 grep -v '^ *+' conftest.er1 >conftest.err
23088 rm -f conftest.er1
23089 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023092 { ac_try='test -z "$ac_c_werror_flag"
23093 || test ! -s conftest.err'
23094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23095 (eval $ac_try) 2>&5
23096 ac_status=$?
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); }; } &&
23099 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23101 (eval $ac_try) 2>&5
23102 ac_status=$?
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); }; }; then
23105 ac_cv_func_dlopen=yes
23106else
23107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023108sed 's/^/| /' conftest.$ac_ext >&5
23109
John Criswell47fdd832003-07-14 16:52:07 +000023110ac_cv_func_dlopen=no
23111fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023112rm -f conftest.err conftest.$ac_objext \
23113 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023114fi
23115echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23116echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23117if test $ac_cv_func_dlopen = yes; then
23118 lt_cv_dlopen="dlopen"
23119else
23120 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23121echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23122if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23124else
23125 ac_check_lib_save_LIBS=$LIBS
23126LIBS="-ldl $LIBS"
23127cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023128/* confdefs.h. */
23129_ACEOF
23130cat confdefs.h >>conftest.$ac_ext
23131cat >>conftest.$ac_ext <<_ACEOF
23132/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023133
23134/* Override any gcc2 internal prototype to avoid an error. */
23135#ifdef __cplusplus
23136extern "C"
23137#endif
23138/* We use char because int might match the return type of a gcc2
23139 builtin and then its argument prototype would still apply. */
23140char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023141int
23142main ()
23143{
23144dlopen ();
23145 ;
23146 return 0;
23147}
23148_ACEOF
23149rm -f conftest.$ac_objext conftest$ac_exeext
23150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023151 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023152 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023153 grep -v '^ *+' conftest.er1 >conftest.err
23154 rm -f conftest.er1
23155 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023158 { ac_try='test -z "$ac_c_werror_flag"
23159 || test ! -s conftest.err'
23160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23161 (eval $ac_try) 2>&5
23162 ac_status=$?
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); }; } &&
23165 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23167 (eval $ac_try) 2>&5
23168 ac_status=$?
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); }; }; then
23171 ac_cv_lib_dl_dlopen=yes
23172else
23173 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023174sed 's/^/| /' conftest.$ac_ext >&5
23175
John Criswell47fdd832003-07-14 16:52:07 +000023176ac_cv_lib_dl_dlopen=no
23177fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023178rm -f conftest.err conftest.$ac_objext \
23179 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023180LIBS=$ac_check_lib_save_LIBS
23181fi
23182echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23183echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23184if test $ac_cv_lib_dl_dlopen = yes; then
23185 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23186else
23187 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23188echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23189if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23190 echo $ECHO_N "(cached) $ECHO_C" >&6
23191else
23192 ac_check_lib_save_LIBS=$LIBS
23193LIBS="-lsvld $LIBS"
23194cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023195/* confdefs.h. */
23196_ACEOF
23197cat confdefs.h >>conftest.$ac_ext
23198cat >>conftest.$ac_ext <<_ACEOF
23199/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023200
23201/* Override any gcc2 internal prototype to avoid an error. */
23202#ifdef __cplusplus
23203extern "C"
23204#endif
23205/* We use char because int might match the return type of a gcc2
23206 builtin and then its argument prototype would still apply. */
23207char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023208int
23209main ()
23210{
23211dlopen ();
23212 ;
23213 return 0;
23214}
23215_ACEOF
23216rm -f conftest.$ac_objext conftest$ac_exeext
23217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023218 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023219 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023220 grep -v '^ *+' conftest.er1 >conftest.err
23221 rm -f conftest.er1
23222 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023225 { ac_try='test -z "$ac_c_werror_flag"
23226 || test ! -s conftest.err'
23227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228 (eval $ac_try) 2>&5
23229 ac_status=$?
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; } &&
23232 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23234 (eval $ac_try) 2>&5
23235 ac_status=$?
23236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237 (exit $ac_status); }; }; then
23238 ac_cv_lib_svld_dlopen=yes
23239else
23240 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023241sed 's/^/| /' conftest.$ac_ext >&5
23242
John Criswell47fdd832003-07-14 16:52:07 +000023243ac_cv_lib_svld_dlopen=no
23244fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023245rm -f conftest.err conftest.$ac_objext \
23246 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023247LIBS=$ac_check_lib_save_LIBS
23248fi
23249echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23250echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23251if test $ac_cv_lib_svld_dlopen = yes; then
23252 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23253else
23254 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23255echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23256if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23257 echo $ECHO_N "(cached) $ECHO_C" >&6
23258else
23259 ac_check_lib_save_LIBS=$LIBS
23260LIBS="-ldld $LIBS"
23261cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023262/* confdefs.h. */
23263_ACEOF
23264cat confdefs.h >>conftest.$ac_ext
23265cat >>conftest.$ac_ext <<_ACEOF
23266/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023267
23268/* Override any gcc2 internal prototype to avoid an error. */
23269#ifdef __cplusplus
23270extern "C"
23271#endif
23272/* We use char because int might match the return type of a gcc2
23273 builtin and then its argument prototype would still apply. */
23274char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023275int
23276main ()
23277{
23278dld_link ();
23279 ;
23280 return 0;
23281}
23282_ACEOF
23283rm -f conftest.$ac_objext conftest$ac_exeext
23284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023285 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023286 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023287 grep -v '^ *+' conftest.er1 >conftest.err
23288 rm -f conftest.er1
23289 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023292 { ac_try='test -z "$ac_c_werror_flag"
23293 || test ! -s conftest.err'
23294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295 (eval $ac_try) 2>&5
23296 ac_status=$?
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; } &&
23299 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23301 (eval $ac_try) 2>&5
23302 ac_status=$?
23303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304 (exit $ac_status); }; }; then
23305 ac_cv_lib_dld_dld_link=yes
23306else
23307 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023308sed 's/^/| /' conftest.$ac_ext >&5
23309
John Criswell47fdd832003-07-14 16:52:07 +000023310ac_cv_lib_dld_dld_link=no
23311fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023312rm -f conftest.err conftest.$ac_objext \
23313 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023314LIBS=$ac_check_lib_save_LIBS
23315fi
23316echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23317echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23318if test $ac_cv_lib_dld_dld_link = yes; then
23319 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23320fi
23321
23322
23323fi
23324
23325
23326fi
23327
23328
23329fi
23330
23331
23332fi
23333
23334
23335fi
23336
23337 ;;
23338 esac
23339
23340 if test "x$lt_cv_dlopen" != xno; then
23341 enable_dlopen=yes
23342 else
23343 enable_dlopen=no
23344 fi
23345
23346 case $lt_cv_dlopen in
23347 dlopen)
23348 save_CPPFLAGS="$CPPFLAGS"
23349 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23350
23351 save_LDFLAGS="$LDFLAGS"
23352 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23353
23354 save_LIBS="$LIBS"
23355 LIBS="$lt_cv_dlopen_libs $LIBS"
23356
23357 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23358echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23359if test "${lt_cv_dlopen_self+set}" = set; then
23360 echo $ECHO_N "(cached) $ECHO_C" >&6
23361else
23362 if test "$cross_compiling" = yes; then :
23363 lt_cv_dlopen_self=cross
23364else
23365 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23366 lt_status=$lt_dlunknown
23367 cat > conftest.$ac_ext <<EOF
Reid Spencer86901802004-12-08 23:07:27 +000023368#line 23368 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023369#include "confdefs.h"
23370
23371#if HAVE_DLFCN_H
23372#include <dlfcn.h>
23373#endif
23374
23375#include <stdio.h>
23376
23377#ifdef RTLD_GLOBAL
23378# define LT_DLGLOBAL RTLD_GLOBAL
23379#else
23380# ifdef DL_GLOBAL
23381# define LT_DLGLOBAL DL_GLOBAL
23382# else
23383# define LT_DLGLOBAL 0
23384# endif
23385#endif
23386
23387/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23388 find out it does not work in some platform. */
23389#ifndef LT_DLLAZY_OR_NOW
23390# ifdef RTLD_LAZY
23391# define LT_DLLAZY_OR_NOW RTLD_LAZY
23392# else
23393# ifdef DL_LAZY
23394# define LT_DLLAZY_OR_NOW DL_LAZY
23395# else
23396# ifdef RTLD_NOW
23397# define LT_DLLAZY_OR_NOW RTLD_NOW
23398# else
23399# ifdef DL_NOW
23400# define LT_DLLAZY_OR_NOW DL_NOW
23401# else
23402# define LT_DLLAZY_OR_NOW 0
23403# endif
23404# endif
23405# endif
23406# endif
23407#endif
23408
23409#ifdef __cplusplus
23410extern "C" void exit (int);
23411#endif
23412
23413void fnord() { int i=42;}
23414int main ()
23415{
23416 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23417 int status = $lt_dlunknown;
23418
23419 if (self)
23420 {
23421 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23422 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23423 /* dlclose (self); */
23424 }
23425
23426 exit (status);
23427}
23428EOF
23429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23430 (eval $ac_link) 2>&5
23431 ac_status=$?
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23434 (./conftest; exit; ) 2>/dev/null
23435 lt_status=$?
23436 case x$lt_status in
23437 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23438 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23439 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23440 esac
23441 else :
23442 # compilation failed
23443 lt_cv_dlopen_self=no
23444 fi
23445fi
23446rm -fr conftest*
23447
23448
23449fi
23450echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23451echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23452
23453 if test "x$lt_cv_dlopen_self" = xyes; then
23454 LDFLAGS="$LDFLAGS $link_static_flag"
23455 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23456echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23457if test "${lt_cv_dlopen_self_static+set}" = set; then
23458 echo $ECHO_N "(cached) $ECHO_C" >&6
23459else
23460 if test "$cross_compiling" = yes; then :
23461 lt_cv_dlopen_self_static=cross
23462else
23463 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23464 lt_status=$lt_dlunknown
23465 cat > conftest.$ac_ext <<EOF
Reid Spencer86901802004-12-08 23:07:27 +000023466#line 23466 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023467#include "confdefs.h"
23468
23469#if HAVE_DLFCN_H
23470#include <dlfcn.h>
23471#endif
23472
23473#include <stdio.h>
23474
23475#ifdef RTLD_GLOBAL
23476# define LT_DLGLOBAL RTLD_GLOBAL
23477#else
23478# ifdef DL_GLOBAL
23479# define LT_DLGLOBAL DL_GLOBAL
23480# else
23481# define LT_DLGLOBAL 0
23482# endif
23483#endif
23484
23485/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23486 find out it does not work in some platform. */
23487#ifndef LT_DLLAZY_OR_NOW
23488# ifdef RTLD_LAZY
23489# define LT_DLLAZY_OR_NOW RTLD_LAZY
23490# else
23491# ifdef DL_LAZY
23492# define LT_DLLAZY_OR_NOW DL_LAZY
23493# else
23494# ifdef RTLD_NOW
23495# define LT_DLLAZY_OR_NOW RTLD_NOW
23496# else
23497# ifdef DL_NOW
23498# define LT_DLLAZY_OR_NOW DL_NOW
23499# else
23500# define LT_DLLAZY_OR_NOW 0
23501# endif
23502# endif
23503# endif
23504# endif
23505#endif
23506
23507#ifdef __cplusplus
23508extern "C" void exit (int);
23509#endif
23510
23511void fnord() { int i=42;}
23512int main ()
23513{
23514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23515 int status = $lt_dlunknown;
23516
23517 if (self)
23518 {
23519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23520 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23521 /* dlclose (self); */
23522 }
23523
23524 exit (status);
23525}
23526EOF
23527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23528 (eval $ac_link) 2>&5
23529 ac_status=$?
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23532 (./conftest; exit; ) 2>/dev/null
23533 lt_status=$?
23534 case x$lt_status in
23535 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23536 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23537 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23538 esac
23539 else :
23540 # compilation failed
23541 lt_cv_dlopen_self_static=no
23542 fi
23543fi
23544rm -fr conftest*
23545
23546
23547fi
23548echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23549echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23550 fi
23551
23552 CPPFLAGS="$save_CPPFLAGS"
23553 LDFLAGS="$save_LDFLAGS"
23554 LIBS="$save_LIBS"
23555 ;;
23556 esac
23557
23558 case $lt_cv_dlopen_self in
23559 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23560 *) enable_dlopen_self=unknown ;;
23561 esac
23562
23563 case $lt_cv_dlopen_self_static in
23564 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23565 *) enable_dlopen_self_static=unknown ;;
23566 esac
23567fi
23568
23569
23570# The else clause should only fire when bootstrapping the
23571# libtool distribution, otherwise you forgot to ship ltmain.sh
23572# with your package, and you will get complaints that there are
23573# no rules to generate ltmain.sh.
23574if test -f "$ltmain"; then
23575 # See if we are running on zsh, and set the options which allow our commands through
23576 # without removal of \ escapes.
23577 if test -n "${ZSH_VERSION+set}" ; then
23578 setopt NO_GLOB_SUBST
23579 fi
23580 # Now quote all the things that may contain metacharacters while being
23581 # careful not to overquote the AC_SUBSTed values. We take copies of the
23582 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023583 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23584 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023585 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23586 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23587 deplibs_check_method reload_flag reload_cmds need_locks \
23588 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23589 lt_cv_sys_global_symbol_to_c_name_address \
23590 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23591 old_postinstall_cmds old_postuninstall_cmds \
23592 compiler_GCJ \
23593 CC_GCJ \
23594 LD_GCJ \
23595 lt_prog_compiler_wl_GCJ \
23596 lt_prog_compiler_pic_GCJ \
23597 lt_prog_compiler_static_GCJ \
23598 lt_prog_compiler_no_builtin_flag_GCJ \
23599 export_dynamic_flag_spec_GCJ \
23600 thread_safe_flag_spec_GCJ \
23601 whole_archive_flag_spec_GCJ \
23602 enable_shared_with_static_runtimes_GCJ \
23603 old_archive_cmds_GCJ \
23604 old_archive_from_new_cmds_GCJ \
23605 predep_objects_GCJ \
23606 postdep_objects_GCJ \
23607 predeps_GCJ \
23608 postdeps_GCJ \
23609 compiler_lib_search_path_GCJ \
23610 archive_cmds_GCJ \
23611 archive_expsym_cmds_GCJ \
23612 postinstall_cmds_GCJ \
23613 postuninstall_cmds_GCJ \
23614 old_archive_from_expsyms_cmds_GCJ \
23615 allow_undefined_flag_GCJ \
23616 no_undefined_flag_GCJ \
23617 export_symbols_cmds_GCJ \
23618 hardcode_libdir_flag_spec_GCJ \
23619 hardcode_libdir_flag_spec_ld_GCJ \
23620 hardcode_libdir_separator_GCJ \
23621 hardcode_automatic_GCJ \
23622 module_cmds_GCJ \
23623 module_expsym_cmds_GCJ \
23624 lt_cv_prog_compiler_c_o_GCJ \
23625 exclude_expsyms_GCJ \
23626 include_expsyms_GCJ; do
23627
23628 case $var in
23629 old_archive_cmds_GCJ | \
23630 old_archive_from_new_cmds_GCJ | \
23631 archive_cmds_GCJ | \
23632 archive_expsym_cmds_GCJ | \
23633 module_cmds_GCJ | \
23634 module_expsym_cmds_GCJ | \
23635 old_archive_from_expsyms_cmds_GCJ | \
23636 export_symbols_cmds_GCJ | \
23637 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23638 postinstall_cmds | postuninstall_cmds | \
23639 old_postinstall_cmds | old_postuninstall_cmds | \
23640 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23641 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023642 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 +000023643 ;;
23644 *)
23645 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23646 ;;
23647 esac
23648 done
23649
23650 case $lt_echo in
23651 *'\$0 --fallback-echo"')
23652 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23653 ;;
23654 esac
23655
23656cfgfile="$ofile"
23657
23658 cat <<__EOF__ >> "$cfgfile"
23659# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23660
23661# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23662
23663# Shell to use when invoking shell scripts.
23664SHELL=$lt_SHELL
23665
23666# Whether or not to build shared libraries.
23667build_libtool_libs=$enable_shared
23668
23669# Whether or not to build static libraries.
23670build_old_libs=$enable_static
23671
23672# Whether or not to add -lc for building shared libraries.
23673build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23674
23675# Whether or not to disallow shared libs when runtime libs are static
23676allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23677
23678# Whether or not to optimize for fast installation.
23679fast_install=$enable_fast_install
23680
23681# The host system.
23682host_alias=$host_alias
23683host=$host
23684
23685# An echo program that does not interpret backslashes.
23686echo=$lt_echo
23687
23688# The archiver.
23689AR=$lt_AR
23690AR_FLAGS=$lt_AR_FLAGS
23691
23692# A C compiler.
23693LTCC=$lt_LTCC
23694
23695# A language-specific compiler.
23696CC=$lt_compiler_GCJ
23697
23698# Is the compiler the GNU C compiler?
23699with_gcc=$GCC_GCJ
23700
23701# An ERE matcher.
23702EGREP=$lt_EGREP
23703
23704# The linker used to build libraries.
23705LD=$lt_LD_GCJ
23706
23707# Whether we need hard or soft links.
23708LN_S=$lt_LN_S
23709
23710# A BSD-compatible nm program.
23711NM=$lt_NM
23712
23713# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023714STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023715
23716# Used to examine libraries when file_magic_cmd begins "file"
23717MAGIC_CMD=$MAGIC_CMD
23718
23719# Used on cygwin: DLL creation program.
23720DLLTOOL="$DLLTOOL"
23721
23722# Used on cygwin: object dumper.
23723OBJDUMP="$OBJDUMP"
23724
23725# Used on cygwin: assembler.
23726AS="$AS"
23727
23728# The name of the directory that contains temporary libtool files.
23729objdir=$objdir
23730
23731# How to create reloadable object files.
23732reload_flag=$lt_reload_flag
23733reload_cmds=$lt_reload_cmds
23734
23735# How to pass a linker flag through the compiler.
23736wl=$lt_lt_prog_compiler_wl_GCJ
23737
23738# Object file suffix (normally "o").
23739objext="$ac_objext"
23740
23741# Old archive suffix (normally "a").
23742libext="$libext"
23743
23744# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023745shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023746
23747# Executable file suffix (normally "").
23748exeext="$exeext"
23749
23750# Additional compiler flags for building library objects.
23751pic_flag=$lt_lt_prog_compiler_pic_GCJ
23752pic_mode=$pic_mode
23753
23754# What is the maximum length of a command?
23755max_cmd_len=$lt_cv_sys_max_cmd_len
23756
23757# Does compiler simultaneously support -c and -o options?
23758compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23759
23760# Must we lock files when doing compilation ?
23761need_locks=$lt_need_locks
23762
23763# Do we need the lib prefix for modules?
23764need_lib_prefix=$need_lib_prefix
23765
23766# Do we need a version for libraries?
23767need_version=$need_version
23768
23769# Whether dlopen is supported.
23770dlopen_support=$enable_dlopen
23771
23772# Whether dlopen of programs is supported.
23773dlopen_self=$enable_dlopen_self
23774
23775# Whether dlopen of statically linked programs is supported.
23776dlopen_self_static=$enable_dlopen_self_static
23777
23778# Compiler flag to prevent dynamic linking.
23779link_static_flag=$lt_lt_prog_compiler_static_GCJ
23780
23781# Compiler flag to turn off builtin functions.
23782no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23783
23784# Compiler flag to allow reflexive dlopens.
23785export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23786
23787# Compiler flag to generate shared objects directly from archives.
23788whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23789
23790# Compiler flag to generate thread-safe objects.
23791thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23792
23793# Library versioning type.
23794version_type=$version_type
23795
23796# Format of library name prefix.
23797libname_spec=$lt_libname_spec
23798
23799# List of archive names. First name is the real one, the rest are links.
23800# The last name is the one that the linker finds with -lNAME.
23801library_names_spec=$lt_library_names_spec
23802
23803# The coded name of the library, if different from the real name.
23804soname_spec=$lt_soname_spec
23805
23806# Commands used to build and install an old-style archive.
23807RANLIB=$lt_RANLIB
23808old_archive_cmds=$lt_old_archive_cmds_GCJ
23809old_postinstall_cmds=$lt_old_postinstall_cmds
23810old_postuninstall_cmds=$lt_old_postuninstall_cmds
23811
23812# Create an old-style archive from a shared archive.
23813old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23814
23815# Create a temporary old-style archive to link instead of a shared archive.
23816old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23817
23818# Commands used to build and install a shared archive.
23819archive_cmds=$lt_archive_cmds_GCJ
23820archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23821postinstall_cmds=$lt_postinstall_cmds
23822postuninstall_cmds=$lt_postuninstall_cmds
23823
23824# Commands used to build a loadable module (assumed same as above if empty)
23825module_cmds=$lt_module_cmds_GCJ
23826module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23827
23828# Commands to strip libraries.
23829old_striplib=$lt_old_striplib
23830striplib=$lt_striplib
23831
23832# Dependencies to place before the objects being linked to create a
23833# shared library.
23834predep_objects=$lt_predep_objects_GCJ
23835
23836# Dependencies to place after the objects being linked to create a
23837# shared library.
23838postdep_objects=$lt_postdep_objects_GCJ
23839
23840# Dependencies to place before the objects being linked to create a
23841# shared library.
23842predeps=$lt_predeps_GCJ
23843
23844# Dependencies to place after the objects being linked to create a
23845# shared library.
23846postdeps=$lt_postdeps_GCJ
23847
23848# The library search path used internally by the compiler when linking
23849# a shared library.
23850compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23851
23852# Method to check whether dependent libraries are shared objects.
23853deplibs_check_method=$lt_deplibs_check_method
23854
23855# Command to use when deplibs_check_method == file_magic.
23856file_magic_cmd=$lt_file_magic_cmd
23857
23858# Flag that allows shared libraries with undefined symbols to be built.
23859allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23860
23861# Flag that forces no undefined symbols.
23862no_undefined_flag=$lt_no_undefined_flag_GCJ
23863
23864# Commands used to finish a libtool library installation in a directory.
23865finish_cmds=$lt_finish_cmds
23866
23867# Same as above, but a single script fragment to be evaled but not shown.
23868finish_eval=$lt_finish_eval
23869
23870# Take the output of nm and produce a listing of raw symbols and C names.
23871global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23872
23873# Transform the output of nm in a proper C declaration
23874global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23875
23876# Transform the output of nm in a C name address pair
23877global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23878
23879# This is the shared library runtime path variable.
23880runpath_var=$runpath_var
23881
23882# This is the shared library path variable.
23883shlibpath_var=$shlibpath_var
23884
23885# Is shlibpath searched before the hard-coded library search path?
23886shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23887
23888# How to hardcode a shared library path into an executable.
23889hardcode_action=$hardcode_action_GCJ
23890
23891# Whether we should hardcode library paths into libraries.
23892hardcode_into_libs=$hardcode_into_libs
23893
23894# Flag to hardcode \$libdir into a binary during linking.
23895# This must work even if \$libdir does not exist.
23896hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23897
23898# If ld is used when linking, flag to hardcode \$libdir into
23899# a binary during linking. This must work even if \$libdir does
23900# not exist.
23901hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23902
23903# Whether we need a single -rpath flag with a separated argument.
23904hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23905
23906# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23907# resulting binary.
23908hardcode_direct=$hardcode_direct_GCJ
23909
23910# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23911# resulting binary.
23912hardcode_minus_L=$hardcode_minus_L_GCJ
23913
23914# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23915# the resulting binary.
23916hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23917
23918# Set to yes if building a shared library automatically hardcodes DIR into the library
23919# and all subsequent libraries and executables linked against it.
23920hardcode_automatic=$hardcode_automatic_GCJ
23921
23922# Variables whose values should be saved in libtool wrapper scripts and
23923# restored at relink time.
23924variables_saved_for_relink="$variables_saved_for_relink"
23925
23926# Whether libtool must link a program against all its dependency libraries.
23927link_all_deplibs=$link_all_deplibs_GCJ
23928
23929# Compile-time system search path for libraries
23930sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23931
23932# Run-time system search path for libraries
23933sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23934
23935# Fix the shell variable \$srcfile for the compiler.
23936fix_srcfile_path="$fix_srcfile_path_GCJ"
23937
23938# Set to yes if exported symbols are required.
23939always_export_symbols=$always_export_symbols_GCJ
23940
23941# The commands to list exported symbols.
23942export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23943
23944# The commands to extract the exported symbol list from a shared archive.
23945extract_expsyms_cmds=$lt_extract_expsyms_cmds
23946
23947# Symbols that should not be listed in the preloaded symbols.
23948exclude_expsyms=$lt_exclude_expsyms_GCJ
23949
23950# Symbols that must always be exported.
23951include_expsyms=$lt_include_expsyms_GCJ
23952
23953# ### END LIBTOOL TAG CONFIG: $tagname
23954
23955__EOF__
23956
23957
23958else
23959 # If there is no Makefile yet, we rely on a make rule to execute
23960 # `config.status --recheck' to rerun these tests and create the
23961 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023962 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23963 if test -f "$ltmain_in"; then
23964 test -f Makefile && make "$ltmain"
23965 fi
John Criswell47fdd832003-07-14 16:52:07 +000023966fi
23967
23968
23969ac_ext=c
23970ac_cpp='$CPP $CPPFLAGS'
23971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23973ac_compiler_gnu=$ac_cv_c_compiler_gnu
23974
23975CC="$lt_save_CC"
23976
23977 else
23978 tagname=""
23979 fi
23980 ;;
23981
23982 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023983 ac_ext=c
23984ac_cpp='$CPP $CPPFLAGS'
23985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23987ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023988
23989
23990# Source file extension for RC test sources.
23991ac_ext=rc
23992
23993# Object file extension for compiled RC test sources.
23994objext=o
23995objext_RC=$objext
23996
23997# Code to be used in simple compile tests
23998lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
23999
24000# Code to be used in simple link tests
24001lt_simple_link_test_code="$lt_simple_compile_test_code"
24002
24003# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24004
24005# If no C compiler was specified, use CC.
24006LTCC=${LTCC-"$CC"}
24007
24008# Allow CC to be a program name with arguments.
24009compiler=$CC
24010
24011
24012# Allow CC to be a program name with arguments.
24013lt_save_CC="$CC"
24014CC=${RC-"windres"}
24015compiler=$CC
24016compiler_RC=$CC
24017lt_cv_prog_compiler_c_o_RC=yes
24018
24019# The else clause should only fire when bootstrapping the
24020# libtool distribution, otherwise you forgot to ship ltmain.sh
24021# with your package, and you will get complaints that there are
24022# no rules to generate ltmain.sh.
24023if test -f "$ltmain"; then
24024 # See if we are running on zsh, and set the options which allow our commands through
24025 # without removal of \ escapes.
24026 if test -n "${ZSH_VERSION+set}" ; then
24027 setopt NO_GLOB_SUBST
24028 fi
24029 # Now quote all the things that may contain metacharacters while being
24030 # careful not to overquote the AC_SUBSTed values. We take copies of the
24031 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024032 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24033 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024034 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24035 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24036 deplibs_check_method reload_flag reload_cmds need_locks \
24037 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24038 lt_cv_sys_global_symbol_to_c_name_address \
24039 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24040 old_postinstall_cmds old_postuninstall_cmds \
24041 compiler_RC \
24042 CC_RC \
24043 LD_RC \
24044 lt_prog_compiler_wl_RC \
24045 lt_prog_compiler_pic_RC \
24046 lt_prog_compiler_static_RC \
24047 lt_prog_compiler_no_builtin_flag_RC \
24048 export_dynamic_flag_spec_RC \
24049 thread_safe_flag_spec_RC \
24050 whole_archive_flag_spec_RC \
24051 enable_shared_with_static_runtimes_RC \
24052 old_archive_cmds_RC \
24053 old_archive_from_new_cmds_RC \
24054 predep_objects_RC \
24055 postdep_objects_RC \
24056 predeps_RC \
24057 postdeps_RC \
24058 compiler_lib_search_path_RC \
24059 archive_cmds_RC \
24060 archive_expsym_cmds_RC \
24061 postinstall_cmds_RC \
24062 postuninstall_cmds_RC \
24063 old_archive_from_expsyms_cmds_RC \
24064 allow_undefined_flag_RC \
24065 no_undefined_flag_RC \
24066 export_symbols_cmds_RC \
24067 hardcode_libdir_flag_spec_RC \
24068 hardcode_libdir_flag_spec_ld_RC \
24069 hardcode_libdir_separator_RC \
24070 hardcode_automatic_RC \
24071 module_cmds_RC \
24072 module_expsym_cmds_RC \
24073 lt_cv_prog_compiler_c_o_RC \
24074 exclude_expsyms_RC \
24075 include_expsyms_RC; do
24076
24077 case $var in
24078 old_archive_cmds_RC | \
24079 old_archive_from_new_cmds_RC | \
24080 archive_cmds_RC | \
24081 archive_expsym_cmds_RC | \
24082 module_cmds_RC | \
24083 module_expsym_cmds_RC | \
24084 old_archive_from_expsyms_cmds_RC | \
24085 export_symbols_cmds_RC | \
24086 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24087 postinstall_cmds | postuninstall_cmds | \
24088 old_postinstall_cmds | old_postuninstall_cmds | \
24089 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24090 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024091 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 +000024092 ;;
24093 *)
24094 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24095 ;;
24096 esac
24097 done
24098
24099 case $lt_echo in
24100 *'\$0 --fallback-echo"')
24101 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24102 ;;
24103 esac
24104
24105cfgfile="$ofile"
24106
24107 cat <<__EOF__ >> "$cfgfile"
24108# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24109
24110# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24111
24112# Shell to use when invoking shell scripts.
24113SHELL=$lt_SHELL
24114
24115# Whether or not to build shared libraries.
24116build_libtool_libs=$enable_shared
24117
24118# Whether or not to build static libraries.
24119build_old_libs=$enable_static
24120
24121# Whether or not to add -lc for building shared libraries.
24122build_libtool_need_lc=$archive_cmds_need_lc_RC
24123
24124# Whether or not to disallow shared libs when runtime libs are static
24125allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24126
24127# Whether or not to optimize for fast installation.
24128fast_install=$enable_fast_install
24129
24130# The host system.
24131host_alias=$host_alias
24132host=$host
24133
24134# An echo program that does not interpret backslashes.
24135echo=$lt_echo
24136
24137# The archiver.
24138AR=$lt_AR
24139AR_FLAGS=$lt_AR_FLAGS
24140
24141# A C compiler.
24142LTCC=$lt_LTCC
24143
24144# A language-specific compiler.
24145CC=$lt_compiler_RC
24146
24147# Is the compiler the GNU C compiler?
24148with_gcc=$GCC_RC
24149
24150# An ERE matcher.
24151EGREP=$lt_EGREP
24152
24153# The linker used to build libraries.
24154LD=$lt_LD_RC
24155
24156# Whether we need hard or soft links.
24157LN_S=$lt_LN_S
24158
24159# A BSD-compatible nm program.
24160NM=$lt_NM
24161
24162# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024163STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024164
24165# Used to examine libraries when file_magic_cmd begins "file"
24166MAGIC_CMD=$MAGIC_CMD
24167
24168# Used on cygwin: DLL creation program.
24169DLLTOOL="$DLLTOOL"
24170
24171# Used on cygwin: object dumper.
24172OBJDUMP="$OBJDUMP"
24173
24174# Used on cygwin: assembler.
24175AS="$AS"
24176
24177# The name of the directory that contains temporary libtool files.
24178objdir=$objdir
24179
24180# How to create reloadable object files.
24181reload_flag=$lt_reload_flag
24182reload_cmds=$lt_reload_cmds
24183
24184# How to pass a linker flag through the compiler.
24185wl=$lt_lt_prog_compiler_wl_RC
24186
24187# Object file suffix (normally "o").
24188objext="$ac_objext"
24189
24190# Old archive suffix (normally "a").
24191libext="$libext"
24192
24193# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024194shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024195
24196# Executable file suffix (normally "").
24197exeext="$exeext"
24198
24199# Additional compiler flags for building library objects.
24200pic_flag=$lt_lt_prog_compiler_pic_RC
24201pic_mode=$pic_mode
24202
24203# What is the maximum length of a command?
24204max_cmd_len=$lt_cv_sys_max_cmd_len
24205
24206# Does compiler simultaneously support -c and -o options?
24207compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24208
24209# Must we lock files when doing compilation ?
24210need_locks=$lt_need_locks
24211
24212# Do we need the lib prefix for modules?
24213need_lib_prefix=$need_lib_prefix
24214
24215# Do we need a version for libraries?
24216need_version=$need_version
24217
24218# Whether dlopen is supported.
24219dlopen_support=$enable_dlopen
24220
24221# Whether dlopen of programs is supported.
24222dlopen_self=$enable_dlopen_self
24223
24224# Whether dlopen of statically linked programs is supported.
24225dlopen_self_static=$enable_dlopen_self_static
24226
24227# Compiler flag to prevent dynamic linking.
24228link_static_flag=$lt_lt_prog_compiler_static_RC
24229
24230# Compiler flag to turn off builtin functions.
24231no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24232
24233# Compiler flag to allow reflexive dlopens.
24234export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24235
24236# Compiler flag to generate shared objects directly from archives.
24237whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24238
24239# Compiler flag to generate thread-safe objects.
24240thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24241
24242# Library versioning type.
24243version_type=$version_type
24244
24245# Format of library name prefix.
24246libname_spec=$lt_libname_spec
24247
24248# List of archive names. First name is the real one, the rest are links.
24249# The last name is the one that the linker finds with -lNAME.
24250library_names_spec=$lt_library_names_spec
24251
24252# The coded name of the library, if different from the real name.
24253soname_spec=$lt_soname_spec
24254
24255# Commands used to build and install an old-style archive.
24256RANLIB=$lt_RANLIB
24257old_archive_cmds=$lt_old_archive_cmds_RC
24258old_postinstall_cmds=$lt_old_postinstall_cmds
24259old_postuninstall_cmds=$lt_old_postuninstall_cmds
24260
24261# Create an old-style archive from a shared archive.
24262old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24263
24264# Create a temporary old-style archive to link instead of a shared archive.
24265old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24266
24267# Commands used to build and install a shared archive.
24268archive_cmds=$lt_archive_cmds_RC
24269archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24270postinstall_cmds=$lt_postinstall_cmds
24271postuninstall_cmds=$lt_postuninstall_cmds
24272
24273# Commands used to build a loadable module (assumed same as above if empty)
24274module_cmds=$lt_module_cmds_RC
24275module_expsym_cmds=$lt_module_expsym_cmds_RC
24276
24277# Commands to strip libraries.
24278old_striplib=$lt_old_striplib
24279striplib=$lt_striplib
24280
24281# Dependencies to place before the objects being linked to create a
24282# shared library.
24283predep_objects=$lt_predep_objects_RC
24284
24285# Dependencies to place after the objects being linked to create a
24286# shared library.
24287postdep_objects=$lt_postdep_objects_RC
24288
24289# Dependencies to place before the objects being linked to create a
24290# shared library.
24291predeps=$lt_predeps_RC
24292
24293# Dependencies to place after the objects being linked to create a
24294# shared library.
24295postdeps=$lt_postdeps_RC
24296
24297# The library search path used internally by the compiler when linking
24298# a shared library.
24299compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24300
24301# Method to check whether dependent libraries are shared objects.
24302deplibs_check_method=$lt_deplibs_check_method
24303
24304# Command to use when deplibs_check_method == file_magic.
24305file_magic_cmd=$lt_file_magic_cmd
24306
24307# Flag that allows shared libraries with undefined symbols to be built.
24308allow_undefined_flag=$lt_allow_undefined_flag_RC
24309
24310# Flag that forces no undefined symbols.
24311no_undefined_flag=$lt_no_undefined_flag_RC
24312
24313# Commands used to finish a libtool library installation in a directory.
24314finish_cmds=$lt_finish_cmds
24315
24316# Same as above, but a single script fragment to be evaled but not shown.
24317finish_eval=$lt_finish_eval
24318
24319# Take the output of nm and produce a listing of raw symbols and C names.
24320global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24321
24322# Transform the output of nm in a proper C declaration
24323global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24324
24325# Transform the output of nm in a C name address pair
24326global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24327
24328# This is the shared library runtime path variable.
24329runpath_var=$runpath_var
24330
24331# This is the shared library path variable.
24332shlibpath_var=$shlibpath_var
24333
24334# Is shlibpath searched before the hard-coded library search path?
24335shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24336
24337# How to hardcode a shared library path into an executable.
24338hardcode_action=$hardcode_action_RC
24339
24340# Whether we should hardcode library paths into libraries.
24341hardcode_into_libs=$hardcode_into_libs
24342
24343# Flag to hardcode \$libdir into a binary during linking.
24344# This must work even if \$libdir does not exist.
24345hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24346
24347# If ld is used when linking, flag to hardcode \$libdir into
24348# a binary during linking. This must work even if \$libdir does
24349# not exist.
24350hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24351
24352# Whether we need a single -rpath flag with a separated argument.
24353hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24354
24355# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24356# resulting binary.
24357hardcode_direct=$hardcode_direct_RC
24358
24359# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24360# resulting binary.
24361hardcode_minus_L=$hardcode_minus_L_RC
24362
24363# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24364# the resulting binary.
24365hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24366
24367# Set to yes if building a shared library automatically hardcodes DIR into the library
24368# and all subsequent libraries and executables linked against it.
24369hardcode_automatic=$hardcode_automatic_RC
24370
24371# Variables whose values should be saved in libtool wrapper scripts and
24372# restored at relink time.
24373variables_saved_for_relink="$variables_saved_for_relink"
24374
24375# Whether libtool must link a program against all its dependency libraries.
24376link_all_deplibs=$link_all_deplibs_RC
24377
24378# Compile-time system search path for libraries
24379sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24380
24381# Run-time system search path for libraries
24382sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24383
24384# Fix the shell variable \$srcfile for the compiler.
24385fix_srcfile_path="$fix_srcfile_path_RC"
24386
24387# Set to yes if exported symbols are required.
24388always_export_symbols=$always_export_symbols_RC
24389
24390# The commands to list exported symbols.
24391export_symbols_cmds=$lt_export_symbols_cmds_RC
24392
24393# The commands to extract the exported symbol list from a shared archive.
24394extract_expsyms_cmds=$lt_extract_expsyms_cmds
24395
24396# Symbols that should not be listed in the preloaded symbols.
24397exclude_expsyms=$lt_exclude_expsyms_RC
24398
24399# Symbols that must always be exported.
24400include_expsyms=$lt_include_expsyms_RC
24401
24402# ### END LIBTOOL TAG CONFIG: $tagname
24403
24404__EOF__
24405
24406
24407else
24408 # If there is no Makefile yet, we rely on a make rule to execute
24409 # `config.status --recheck' to rerun these tests and create the
24410 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024411 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24412 if test -f "$ltmain_in"; then
24413 test -f Makefile && make "$ltmain"
24414 fi
John Criswell47fdd832003-07-14 16:52:07 +000024415fi
24416
24417
24418ac_ext=c
24419ac_cpp='$CPP $CPPFLAGS'
24420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24422ac_compiler_gnu=$ac_cv_c_compiler_gnu
24423
24424CC="$lt_save_CC"
24425
24426 ;;
24427
24428 *)
24429 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24430echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24431 { (exit 1); exit 1; }; }
24432 ;;
24433 esac
24434
24435 # Append the new tag name to the list of available tags.
24436 if test -n "$tagname" ; then
24437 available_tags="$available_tags $tagname"
24438 fi
24439 fi
24440 done
24441 IFS="$lt_save_ifs"
24442
24443 # Now substitute the updated list of available tags.
24444 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24445 mv "${ofile}T" "$ofile"
24446 chmod +x "$ofile"
24447 else
24448 rm -f "${ofile}T"
24449 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24450echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24451 { (exit 1); exit 1; }; }
24452 fi
24453fi
John Criswell7a73b802003-06-30 21:59:07 +000024454
24455
24456
24457# This can be used to rebuild libtool when needed
24458LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24459
24460# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024461LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024462
24463# Prevent multiple expansion
24464
24465
24466
John Criswell47fdd832003-07-14 16:52:07 +000024467
24468
24469
24470
24471
24472
24473
24474
24475
24476
24477
24478
24479
24480
24481
24482
24483
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024484
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024485etags_version=`$ETAGS --version 2>&1`
24486case "$etags_version" in
24487 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24488 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24489 *) ETAGSFLAGS="" ;;
24490esac
24491ETAGSFLAGS=$ETAGSFLAGS
24492
24493
24494echo "$as_me:$LINENO: checking tool compatibility" >&5
24495echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24496
Reid Spencer86901802004-12-08 23:07:27 +000024497ICC=no
24498IXX=no
24499case $CC in
24500 icc*|icpc*)
24501 ICC=yes
24502 IXX=yes
24503 ;;
24504 *)
24505 ;;
24506esac
24507
24508if test "$GCC" != "yes" && test "$ICC" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024509then
Reid Spencer86901802004-12-08 23:07:27 +000024510 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24511echo "$as_me: error: gcc|icc required but not found" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024512 { (exit 1); exit 1; }; }
24513fi
24514
Reid Spencer86901802004-12-08 23:07:27 +000024515if test "$GXX" != "yes" && test "$IXX" != "yes"
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024516then
Reid Spencer86901802004-12-08 23:07:27 +000024517 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24518echo "$as_me: error: g++|icc required but not found" >&2;}
24519 { (exit 1); exit 1; }; }
24520fi
24521
24522if test "$GCC" = "yes"
24523then
24524 gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24525 if test "$gccmajor" -lt "3"
24526 then
24527 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024528echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24529 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024530 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024531fi
24532
24533if test -z "$llvm_cv_gnu_make_command"
24534then
24535 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24536echo "$as_me: error: GNU Make required but not found" >&2;}
24537 { (exit 1); exit 1; }; }
24538fi
24539
24540echo "$as_me:$LINENO: result: ok" >&5
24541echo "${ECHO_T}ok" >&6
24542
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024543
John Criswell7a73b802003-06-30 21:59:07 +000024544
John Criswell7a73b802003-06-30 21:59:07 +000024545echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24546echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24547if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24548 echo $ECHO_N "(cached) $ECHO_C" >&6
24549else
24550 ac_check_lib_save_LIBS=$LIBS
24551LIBS="-lelf $LIBS"
24552cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024553/* confdefs.h. */
24554_ACEOF
24555cat confdefs.h >>conftest.$ac_ext
24556cat >>conftest.$ac_ext <<_ACEOF
24557/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024558
24559/* Override any gcc2 internal prototype to avoid an error. */
24560#ifdef __cplusplus
24561extern "C"
24562#endif
24563/* We use char because int might match the return type of a gcc2
24564 builtin and then its argument prototype would still apply. */
24565char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024566int
24567main ()
24568{
24569elf_begin ();
24570 ;
24571 return 0;
24572}
24573_ACEOF
24574rm -f conftest.$ac_objext conftest$ac_exeext
24575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024576 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024577 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024578 grep -v '^ *+' conftest.er1 >conftest.err
24579 rm -f conftest.er1
24580 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024583 { ac_try='test -z "$ac_c_werror_flag"
24584 || test ! -s conftest.err'
24585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24586 (eval $ac_try) 2>&5
24587 ac_status=$?
24588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 (exit $ac_status); }; } &&
24590 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592 (eval $ac_try) 2>&5
24593 ac_status=$?
24594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); }; }; then
24596 ac_cv_lib_elf_elf_begin=yes
24597else
24598 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024599sed 's/^/| /' conftest.$ac_ext >&5
24600
John Criswell7a73b802003-06-30 21:59:07 +000024601ac_cv_lib_elf_elf_begin=no
24602fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024603rm -f conftest.err conftest.$ac_objext \
24604 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024605LIBS=$ac_check_lib_save_LIBS
24606fi
24607echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24608echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24609if test $ac_cv_lib_elf_elf_begin = yes; then
24610 cat >>confdefs.h <<_ACEOF
24611#define HAVE_LIBELF 1
24612_ACEOF
24613
24614 LIBS="-lelf $LIBS"
24615
24616fi
24617
24618
Reid Spencer17795972004-11-18 09:47:37 +000024619echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24620echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24621if test "${ac_cv_search_lt_dlopen+set}" = set; then
24622 echo $ECHO_N "(cached) $ECHO_C" >&6
24623else
24624 ac_func_search_save_LIBS=$LIBS
24625ac_cv_search_lt_dlopen=no
24626cat >conftest.$ac_ext <<_ACEOF
24627/* confdefs.h. */
24628_ACEOF
24629cat confdefs.h >>conftest.$ac_ext
24630cat >>conftest.$ac_ext <<_ACEOF
24631/* end confdefs.h. */
24632
24633/* Override any gcc2 internal prototype to avoid an error. */
24634#ifdef __cplusplus
24635extern "C"
24636#endif
24637/* We use char because int might match the return type of a gcc2
24638 builtin and then its argument prototype would still apply. */
24639char lt_dlopen ();
24640int
24641main ()
24642{
24643lt_dlopen ();
24644 ;
24645 return 0;
24646}
24647_ACEOF
24648rm -f conftest.$ac_objext conftest$ac_exeext
24649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24650 (eval $ac_link) 2>conftest.er1
24651 ac_status=$?
24652 grep -v '^ *+' conftest.er1 >conftest.err
24653 rm -f conftest.er1
24654 cat conftest.err >&5
24655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 (exit $ac_status); } &&
24657 { ac_try='test -z "$ac_c_werror_flag"
24658 || test ! -s conftest.err'
24659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24660 (eval $ac_try) 2>&5
24661 ac_status=$?
24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24663 (exit $ac_status); }; } &&
24664 { ac_try='test -s conftest$ac_exeext'
24665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24666 (eval $ac_try) 2>&5
24667 ac_status=$?
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); }; }; then
24670 ac_cv_search_lt_dlopen="none required"
24671else
24672 echo "$as_me: failed program was:" >&5
24673sed 's/^/| /' conftest.$ac_ext >&5
24674
24675fi
24676rm -f conftest.err conftest.$ac_objext \
24677 conftest$ac_exeext conftest.$ac_ext
24678if test "$ac_cv_search_lt_dlopen" = no; then
24679 for ac_lib in ltdl; do
24680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24681 cat >conftest.$ac_ext <<_ACEOF
24682/* confdefs.h. */
24683_ACEOF
24684cat confdefs.h >>conftest.$ac_ext
24685cat >>conftest.$ac_ext <<_ACEOF
24686/* end confdefs.h. */
24687
24688/* Override any gcc2 internal prototype to avoid an error. */
24689#ifdef __cplusplus
24690extern "C"
24691#endif
24692/* We use char because int might match the return type of a gcc2
24693 builtin and then its argument prototype would still apply. */
24694char lt_dlopen ();
24695int
24696main ()
24697{
24698lt_dlopen ();
24699 ;
24700 return 0;
24701}
24702_ACEOF
24703rm -f conftest.$ac_objext conftest$ac_exeext
24704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24705 (eval $ac_link) 2>conftest.er1
24706 ac_status=$?
24707 grep -v '^ *+' conftest.er1 >conftest.err
24708 rm -f conftest.er1
24709 cat conftest.err >&5
24710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } &&
24712 { ac_try='test -z "$ac_c_werror_flag"
24713 || test ! -s conftest.err'
24714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24715 (eval $ac_try) 2>&5
24716 ac_status=$?
24717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24718 (exit $ac_status); }; } &&
24719 { ac_try='test -s conftest$ac_exeext'
24720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24721 (eval $ac_try) 2>&5
24722 ac_status=$?
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); }; }; then
24725 ac_cv_search_lt_dlopen="-l$ac_lib"
24726break
24727else
24728 echo "$as_me: failed program was:" >&5
24729sed 's/^/| /' conftest.$ac_ext >&5
24730
24731fi
24732rm -f conftest.err conftest.$ac_objext \
24733 conftest$ac_exeext conftest.$ac_ext
24734 done
24735fi
24736LIBS=$ac_func_search_save_LIBS
24737fi
24738echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24739echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24740if test "$ac_cv_search_lt_dlopen" != no; then
24741 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24742
24743cat >>confdefs.h <<\_ACEOF
24744#define HAVE_LT_DLOPEN 1
24745_ACEOF
24746
24747else
24748 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24749 not be available" >&5
24750echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24751 not be available" >&2;}
24752fi
24753
24754
John Criswell7a73b802003-06-30 21:59:07 +000024755echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24756echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24757if test "${ac_cv_search_dlopen+set}" = set; then
24758 echo $ECHO_N "(cached) $ECHO_C" >&6
24759else
24760 ac_func_search_save_LIBS=$LIBS
24761ac_cv_search_dlopen=no
24762cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024763/* confdefs.h. */
24764_ACEOF
24765cat confdefs.h >>conftest.$ac_ext
24766cat >>conftest.$ac_ext <<_ACEOF
24767/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024768
24769/* Override any gcc2 internal prototype to avoid an error. */
24770#ifdef __cplusplus
24771extern "C"
24772#endif
24773/* We use char because int might match the return type of a gcc2
24774 builtin and then its argument prototype would still apply. */
24775char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024776int
24777main ()
24778{
24779dlopen ();
24780 ;
24781 return 0;
24782}
24783_ACEOF
24784rm -f conftest.$ac_objext conftest$ac_exeext
24785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024786 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024787 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024788 grep -v '^ *+' conftest.er1 >conftest.err
24789 rm -f conftest.er1
24790 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24792 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024793 { ac_try='test -z "$ac_c_werror_flag"
24794 || test ! -s conftest.err'
24795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24796 (eval $ac_try) 2>&5
24797 ac_status=$?
24798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799 (exit $ac_status); }; } &&
24800 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24802 (eval $ac_try) 2>&5
24803 ac_status=$?
24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); }; }; then
24806 ac_cv_search_dlopen="none required"
24807else
24808 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024809sed 's/^/| /' conftest.$ac_ext >&5
24810
John Criswell7a73b802003-06-30 21:59:07 +000024811fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024812rm -f conftest.err conftest.$ac_objext \
24813 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024814if test "$ac_cv_search_dlopen" = no; then
24815 for ac_lib in dl; do
24816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24817 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024818/* confdefs.h. */
24819_ACEOF
24820cat confdefs.h >>conftest.$ac_ext
24821cat >>conftest.$ac_ext <<_ACEOF
24822/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024823
24824/* Override any gcc2 internal prototype to avoid an error. */
24825#ifdef __cplusplus
24826extern "C"
24827#endif
24828/* We use char because int might match the return type of a gcc2
24829 builtin and then its argument prototype would still apply. */
24830char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024831int
24832main ()
24833{
24834dlopen ();
24835 ;
24836 return 0;
24837}
24838_ACEOF
24839rm -f conftest.$ac_objext conftest$ac_exeext
24840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024841 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024842 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024843 grep -v '^ *+' conftest.er1 >conftest.err
24844 rm -f conftest.er1
24845 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024848 { ac_try='test -z "$ac_c_werror_flag"
24849 || test ! -s conftest.err'
24850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24851 (eval $ac_try) 2>&5
24852 ac_status=$?
24853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854 (exit $ac_status); }; } &&
24855 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24857 (eval $ac_try) 2>&5
24858 ac_status=$?
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); }; }; then
24861 ac_cv_search_dlopen="-l$ac_lib"
24862break
24863else
24864 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024865sed 's/^/| /' conftest.$ac_ext >&5
24866
John Criswell7a73b802003-06-30 21:59:07 +000024867fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024868rm -f conftest.err conftest.$ac_objext \
24869 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024870 done
24871fi
24872LIBS=$ac_func_search_save_LIBS
24873fi
24874echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24875echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24876if test "$ac_cv_search_dlopen" != no; then
24877 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000024878
24879cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000024880#define HAVE_DLOPEN 1
24881_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024882
24883else
Brian Gaekec45be042003-10-07 06:01:34 +000024884 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24885echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000024886fi
24887
24888
24889echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24890echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24891if test "${ac_cv_search_mallinfo+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24893else
24894 ac_func_search_save_LIBS=$LIBS
24895ac_cv_search_mallinfo=no
24896cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024897/* confdefs.h. */
24898_ACEOF
24899cat confdefs.h >>conftest.$ac_ext
24900cat >>conftest.$ac_ext <<_ACEOF
24901/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024902
24903/* Override any gcc2 internal prototype to avoid an error. */
24904#ifdef __cplusplus
24905extern "C"
24906#endif
24907/* We use char because int might match the return type of a gcc2
24908 builtin and then its argument prototype would still apply. */
24909char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000024910int
24911main ()
24912{
24913mallinfo ();
24914 ;
24915 return 0;
24916}
24917_ACEOF
24918rm -f conftest.$ac_objext conftest$ac_exeext
24919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024920 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024921 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024922 grep -v '^ *+' conftest.er1 >conftest.err
24923 rm -f conftest.er1
24924 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024927 { ac_try='test -z "$ac_c_werror_flag"
24928 || test ! -s conftest.err'
24929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24930 (eval $ac_try) 2>&5
24931 ac_status=$?
24932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933 (exit $ac_status); }; } &&
24934 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24936 (eval $ac_try) 2>&5
24937 ac_status=$?
24938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); }; }; then
24940 ac_cv_search_mallinfo="none required"
24941else
24942 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024943sed 's/^/| /' conftest.$ac_ext >&5
24944
John Criswell7a73b802003-06-30 21:59:07 +000024945fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024946rm -f conftest.err conftest.$ac_objext \
24947 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024948if test "$ac_cv_search_mallinfo" = no; then
24949 for ac_lib in malloc; do
24950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24951 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024952/* confdefs.h. */
24953_ACEOF
24954cat confdefs.h >>conftest.$ac_ext
24955cat >>conftest.$ac_ext <<_ACEOF
24956/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024957
24958/* Override any gcc2 internal prototype to avoid an error. */
24959#ifdef __cplusplus
24960extern "C"
24961#endif
24962/* We use char because int might match the return type of a gcc2
24963 builtin and then its argument prototype would still apply. */
24964char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000024965int
24966main ()
24967{
24968mallinfo ();
24969 ;
24970 return 0;
24971}
24972_ACEOF
24973rm -f conftest.$ac_objext conftest$ac_exeext
24974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024975 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024976 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024977 grep -v '^ *+' conftest.er1 >conftest.err
24978 rm -f conftest.er1
24979 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024982 { ac_try='test -z "$ac_c_werror_flag"
24983 || test ! -s conftest.err'
24984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985 (eval $ac_try) 2>&5
24986 ac_status=$?
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }; } &&
24989 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991 (eval $ac_try) 2>&5
24992 ac_status=$?
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); }; }; then
24995 ac_cv_search_mallinfo="-l$ac_lib"
24996break
24997else
24998 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024999sed 's/^/| /' conftest.$ac_ext >&5
25000
John Criswell7a73b802003-06-30 21:59:07 +000025001fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025002rm -f conftest.err conftest.$ac_objext \
25003 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025004 done
25005fi
25006LIBS=$ac_func_search_save_LIBS
25007fi
25008echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25009echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25010if test "$ac_cv_search_mallinfo" != no; then
25011 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025012
25013cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025014#define HAVE_MALLINFO 1
25015_ACEOF
25016
25017fi
25018
25019
Brian Gaeke5f268f72003-12-05 19:29:01 +000025020echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25021echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25022if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25023 echo $ECHO_N "(cached) $ECHO_C" >&6
25024else
25025 ac_func_search_save_LIBS=$LIBS
25026ac_cv_search_pthread_mutex_lock=no
25027cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025028/* confdefs.h. */
25029_ACEOF
25030cat confdefs.h >>conftest.$ac_ext
25031cat >>conftest.$ac_ext <<_ACEOF
25032/* end confdefs.h. */
25033
25034/* Override any gcc2 internal prototype to avoid an error. */
25035#ifdef __cplusplus
25036extern "C"
25037#endif
25038/* We use char because int might match the return type of a gcc2
25039 builtin and then its argument prototype would still apply. */
25040char pthread_mutex_lock ();
25041int
25042main ()
25043{
25044pthread_mutex_lock ();
25045 ;
25046 return 0;
25047}
25048_ACEOF
25049rm -f conftest.$ac_objext conftest$ac_exeext
25050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025051 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025052 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025053 grep -v '^ *+' conftest.er1 >conftest.err
25054 rm -f conftest.er1
25055 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025058 { ac_try='test -z "$ac_c_werror_flag"
25059 || test ! -s conftest.err'
25060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25061 (eval $ac_try) 2>&5
25062 ac_status=$?
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); }; } &&
25065 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25067 (eval $ac_try) 2>&5
25068 ac_status=$?
25069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070 (exit $ac_status); }; }; then
25071 ac_cv_search_pthread_mutex_lock="none required"
25072else
25073 echo "$as_me: failed program was:" >&5
25074sed 's/^/| /' conftest.$ac_ext >&5
25075
25076fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025077rm -f conftest.err conftest.$ac_objext \
25078 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025079if test "$ac_cv_search_pthread_mutex_lock" = no; then
25080 for ac_lib in pthread; do
25081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25082 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025083/* confdefs.h. */
25084_ACEOF
25085cat confdefs.h >>conftest.$ac_ext
25086cat >>conftest.$ac_ext <<_ACEOF
25087/* end confdefs.h. */
25088
25089/* Override any gcc2 internal prototype to avoid an error. */
25090#ifdef __cplusplus
25091extern "C"
25092#endif
25093/* We use char because int might match the return type of a gcc2
25094 builtin and then its argument prototype would still apply. */
25095char pthread_mutex_lock ();
25096int
25097main ()
25098{
25099pthread_mutex_lock ();
25100 ;
25101 return 0;
25102}
25103_ACEOF
25104rm -f conftest.$ac_objext conftest$ac_exeext
25105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025106 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025107 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025108 grep -v '^ *+' conftest.er1 >conftest.err
25109 rm -f conftest.er1
25110 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025113 { ac_try='test -z "$ac_c_werror_flag"
25114 || test ! -s conftest.err'
25115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25116 (eval $ac_try) 2>&5
25117 ac_status=$?
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); }; } &&
25120 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25122 (eval $ac_try) 2>&5
25123 ac_status=$?
25124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25125 (exit $ac_status); }; }; then
25126 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25127break
25128else
25129 echo "$as_me: failed program was:" >&5
25130sed 's/^/| /' conftest.$ac_ext >&5
25131
25132fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025133rm -f conftest.err conftest.$ac_objext \
25134 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025135 done
25136fi
25137LIBS=$ac_func_search_save_LIBS
25138fi
25139echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25140echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25141if test "$ac_cv_search_pthread_mutex_lock" != no; then
25142 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025143
John Criswell40468462004-09-24 21:19:06 +000025144cat >>confdefs.h <<\_ACEOF
25145#define HAVE_PTHREAD_MUTEX_LOCK 1
25146_ACEOF
25147
25148fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025149
Brian Gaekec9a410c2004-02-23 21:30:37 +000025150
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025151
John Criswell7a73b802003-06-30 21:59:07 +000025152echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25153echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25154if test "${ac_cv_header_stdc+set}" = set; then
25155 echo $ECHO_N "(cached) $ECHO_C" >&6
25156else
25157 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025158/* confdefs.h. */
25159_ACEOF
25160cat confdefs.h >>conftest.$ac_ext
25161cat >>conftest.$ac_ext <<_ACEOF
25162/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025163#include <stdlib.h>
25164#include <stdarg.h>
25165#include <string.h>
25166#include <float.h>
25167
John Criswell0c38eaf2003-09-10 15:17:25 +000025168int
25169main ()
25170{
25171
25172 ;
25173 return 0;
25174}
John Criswell7a73b802003-06-30 21:59:07 +000025175_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025176rm -f conftest.$ac_objext
25177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025178 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025179 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025180 grep -v '^ *+' conftest.er1 >conftest.err
25181 rm -f conftest.er1
25182 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025184 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025185 { ac_try='test -z "$ac_c_werror_flag"
25186 || test ! -s conftest.err'
25187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25188 (eval $ac_try) 2>&5
25189 ac_status=$?
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); }; } &&
25192 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25194 (eval $ac_try) 2>&5
25195 ac_status=$?
25196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025198 ac_cv_header_stdc=yes
25199else
25200 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025201sed 's/^/| /' conftest.$ac_ext >&5
25202
25203ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025204fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025206
25207if test $ac_cv_header_stdc = yes; then
25208 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25209 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025210/* confdefs.h. */
25211_ACEOF
25212cat confdefs.h >>conftest.$ac_ext
25213cat >>conftest.$ac_ext <<_ACEOF
25214/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025215#include <string.h>
25216
25217_ACEOF
25218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025219 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025220 :
25221else
25222 ac_cv_header_stdc=no
25223fi
25224rm -f conftest*
25225
25226fi
25227
25228if test $ac_cv_header_stdc = yes; then
25229 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25230 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025231/* confdefs.h. */
25232_ACEOF
25233cat confdefs.h >>conftest.$ac_ext
25234cat >>conftest.$ac_ext <<_ACEOF
25235/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025236#include <stdlib.h>
25237
25238_ACEOF
25239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025240 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025241 :
25242else
25243 ac_cv_header_stdc=no
25244fi
25245rm -f conftest*
25246
25247fi
25248
25249if test $ac_cv_header_stdc = yes; then
25250 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25251 if test "$cross_compiling" = yes; then
25252 :
25253else
25254 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025255/* confdefs.h. */
25256_ACEOF
25257cat confdefs.h >>conftest.$ac_ext
25258cat >>conftest.$ac_ext <<_ACEOF
25259/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025260#include <ctype.h>
25261#if ((' ' & 0x0FF) == 0x020)
25262# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25263# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25264#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025265# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025266 (('a' <= (c) && (c) <= 'i') \
25267 || ('j' <= (c) && (c) <= 'r') \
25268 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025269# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25270#endif
25271
25272#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25273int
25274main ()
25275{
25276 int i;
25277 for (i = 0; i < 256; i++)
25278 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025279 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025280 exit(2);
25281 exit (0);
25282}
25283_ACEOF
25284rm -f conftest$ac_exeext
25285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25286 (eval $ac_link) 2>&5
25287 ac_status=$?
25288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25291 (eval $ac_try) 2>&5
25292 ac_status=$?
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); }; }; then
25295 :
25296else
25297 echo "$as_me: program exited with status $ac_status" >&5
25298echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025299sed 's/^/| /' conftest.$ac_ext >&5
25300
John Criswell7a73b802003-06-30 21:59:07 +000025301( exit $ac_status )
25302ac_cv_header_stdc=no
25303fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025304rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025305fi
25306fi
25307fi
25308echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25309echo "${ECHO_T}$ac_cv_header_stdc" >&6
25310if test $ac_cv_header_stdc = yes; then
25311
25312cat >>confdefs.h <<\_ACEOF
25313#define STDC_HEADERS 1
25314_ACEOF
25315
25316fi
25317
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025318
John Criswell7a73b802003-06-30 21:59:07 +000025319echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25320echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25321if test "${ac_cv_header_sys_wait_h+set}" = set; then
25322 echo $ECHO_N "(cached) $ECHO_C" >&6
25323else
25324 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025325/* confdefs.h. */
25326_ACEOF
25327cat confdefs.h >>conftest.$ac_ext
25328cat >>conftest.$ac_ext <<_ACEOF
25329/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025330#include <sys/types.h>
25331#include <sys/wait.h>
25332#ifndef WEXITSTATUS
25333# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25334#endif
25335#ifndef WIFEXITED
25336# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25337#endif
25338
John Criswell7a73b802003-06-30 21:59:07 +000025339int
25340main ()
25341{
25342 int s;
25343 wait (&s);
25344 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25345 ;
25346 return 0;
25347}
25348_ACEOF
25349rm -f conftest.$ac_objext
25350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025351 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025352 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025353 grep -v '^ *+' conftest.er1 >conftest.err
25354 rm -f conftest.er1
25355 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025358 { ac_try='test -z "$ac_c_werror_flag"
25359 || test ! -s conftest.err'
25360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25361 (eval $ac_try) 2>&5
25362 ac_status=$?
25363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); }; } &&
25365 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25367 (eval $ac_try) 2>&5
25368 ac_status=$?
25369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25370 (exit $ac_status); }; }; then
25371 ac_cv_header_sys_wait_h=yes
25372else
25373 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025374sed 's/^/| /' conftest.$ac_ext >&5
25375
John Criswell7a73b802003-06-30 21:59:07 +000025376ac_cv_header_sys_wait_h=no
25377fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025379fi
25380echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25381echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25382if test $ac_cv_header_sys_wait_h = yes; then
25383
25384cat >>confdefs.h <<\_ACEOF
25385#define HAVE_SYS_WAIT_H 1
25386_ACEOF
25387
25388fi
25389
25390
25391
25392
25393
25394
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025395for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
John Criswell7a73b802003-06-30 21:59:07 +000025396do
25397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25398if eval "test \"\${$as_ac_Header+set}\" = set"; then
25399 echo "$as_me:$LINENO: checking for $ac_header" >&5
25400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25401if eval "test \"\${$as_ac_Header+set}\" = set"; then
25402 echo $ECHO_N "(cached) $ECHO_C" >&6
25403fi
25404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25406else
25407 # Is the header compilable?
25408echo "$as_me:$LINENO: checking $ac_header usability" >&5
25409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25410cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025411/* confdefs.h. */
25412_ACEOF
25413cat confdefs.h >>conftest.$ac_ext
25414cat >>conftest.$ac_ext <<_ACEOF
25415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025416$ac_includes_default
25417#include <$ac_header>
25418_ACEOF
25419rm -f conftest.$ac_objext
25420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025421 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025422 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025423 grep -v '^ *+' conftest.er1 >conftest.err
25424 rm -f conftest.er1
25425 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025428 { ac_try='test -z "$ac_c_werror_flag"
25429 || test ! -s conftest.err'
25430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25431 (eval $ac_try) 2>&5
25432 ac_status=$?
25433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434 (exit $ac_status); }; } &&
25435 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25437 (eval $ac_try) 2>&5
25438 ac_status=$?
25439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25440 (exit $ac_status); }; }; then
25441 ac_header_compiler=yes
25442else
25443 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025444sed 's/^/| /' conftest.$ac_ext >&5
25445
John Criswell7a73b802003-06-30 21:59:07 +000025446ac_header_compiler=no
25447fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25450echo "${ECHO_T}$ac_header_compiler" >&6
25451
25452# Is the header present?
25453echo "$as_me:$LINENO: checking $ac_header presence" >&5
25454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25455cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025456/* confdefs.h. */
25457_ACEOF
25458cat confdefs.h >>conftest.$ac_ext
25459cat >>conftest.$ac_ext <<_ACEOF
25460/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025461#include <$ac_header>
25462_ACEOF
25463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25465 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000025466 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000025467 rm -f conftest.er1
25468 cat conftest.err >&5
25469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470 (exit $ac_status); } >/dev/null; then
25471 if test -s conftest.err; then
25472 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000025473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000025474 else
25475 ac_cpp_err=
25476 fi
25477else
25478 ac_cpp_err=yes
25479fi
25480if test -z "$ac_cpp_err"; then
25481 ac_header_preproc=yes
25482else
25483 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025484sed 's/^/| /' conftest.$ac_ext >&5
25485
John Criswell7a73b802003-06-30 21:59:07 +000025486 ac_header_preproc=no
25487fi
25488rm -f conftest.err conftest.$ac_ext
25489echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25490echo "${ECHO_T}$ac_header_preproc" >&6
25491
25492# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25494 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000025495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25498echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25499 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000025500 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000025501 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000025502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25505echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25507echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25509echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25513echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025514 (
25515 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000025516## ----------------------------------- ##
25517## Report this to llvmbugs@cs.uiuc.edu ##
25518## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000025519_ASBOX
25520 ) |
25521 sed "s/^/$as_me: WARNING: /" >&2
25522 ;;
John Criswell7a73b802003-06-30 21:59:07 +000025523esac
25524echo "$as_me:$LINENO: checking for $ac_header" >&5
25525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25526if eval "test \"\${$as_ac_Header+set}\" = set"; then
25527 echo $ECHO_N "(cached) $ECHO_C" >&6
25528else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025529 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000025530fi
25531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25533
25534fi
25535if test `eval echo '${'$as_ac_Header'}'` = yes; then
25536 cat >>confdefs.h <<_ACEOF
25537#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25538_ACEOF
25539
25540fi
25541
25542done
25543
25544
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025545
25546
25547
25548
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025549for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025550do
25551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25552if eval "test \"\${$as_ac_Header+set}\" = set"; then
25553 echo "$as_me:$LINENO: checking for $ac_header" >&5
25554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25555if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025556 echo $ECHO_N "(cached) $ECHO_C" >&6
25557fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025558echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25559echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025560else
25561 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025562echo "$as_me:$LINENO: checking $ac_header usability" >&5
25563echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025564cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025565/* confdefs.h. */
25566_ACEOF
25567cat confdefs.h >>conftest.$ac_ext
25568cat >>conftest.$ac_ext <<_ACEOF
25569/* end confdefs.h. */
25570$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025571#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025572_ACEOF
25573rm -f conftest.$ac_objext
25574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025575 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025576 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025577 grep -v '^ *+' conftest.er1 >conftest.err
25578 rm -f conftest.er1
25579 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025582 { ac_try='test -z "$ac_c_werror_flag"
25583 || test ! -s conftest.err'
25584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25585 (eval $ac_try) 2>&5
25586 ac_status=$?
25587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588 (exit $ac_status); }; } &&
25589 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25591 (eval $ac_try) 2>&5
25592 ac_status=$?
25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594 (exit $ac_status); }; }; then
25595 ac_header_compiler=yes
25596else
25597 echo "$as_me: failed program was:" >&5
25598sed 's/^/| /' conftest.$ac_ext >&5
25599
25600ac_header_compiler=no
25601fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025603echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25604echo "${ECHO_T}$ac_header_compiler" >&6
25605
25606# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025607echo "$as_me:$LINENO: checking $ac_header presence" >&5
25608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025609cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025610/* confdefs.h. */
25611_ACEOF
25612cat confdefs.h >>conftest.$ac_ext
25613cat >>conftest.$ac_ext <<_ACEOF
25614/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025615#include <$ac_header>
25616_ACEOF
25617if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25618 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25619 ac_status=$?
25620 grep -v '^ *+' conftest.er1 >conftest.err
25621 rm -f conftest.er1
25622 cat conftest.err >&5
25623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25624 (exit $ac_status); } >/dev/null; then
25625 if test -s conftest.err; then
25626 ac_cpp_err=$ac_c_preproc_warn_flag
25627 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25628 else
25629 ac_cpp_err=
25630 fi
25631else
25632 ac_cpp_err=yes
25633fi
25634if test -z "$ac_cpp_err"; then
25635 ac_header_preproc=yes
25636else
25637 echo "$as_me: failed program was:" >&5
25638sed 's/^/| /' conftest.$ac_ext >&5
25639
25640 ac_header_preproc=no
25641fi
25642rm -f conftest.err conftest.$ac_ext
25643echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25644echo "${ECHO_T}$ac_header_preproc" >&6
25645
25646# So? What about this header?
25647case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25648 yes:no: )
25649 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25650echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25651 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25652echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25653 ac_header_preproc=yes
25654 ;;
25655 no:yes:* )
25656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25657echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25659echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25660 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25661echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25662 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25663echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25665echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25666 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25667echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25668 (
25669 cat <<\_ASBOX
25670## ----------------------------------- ##
25671## Report this to llvmbugs@cs.uiuc.edu ##
25672## ----------------------------------- ##
25673_ASBOX
25674 ) |
25675 sed "s/^/$as_me: WARNING: /" >&2
25676 ;;
25677esac
25678echo "$as_me:$LINENO: checking for $ac_header" >&5
25679echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25680if eval "test \"\${$as_ac_Header+set}\" = set"; then
25681 echo $ECHO_N "(cached) $ECHO_C" >&6
25682else
25683 eval "$as_ac_Header=\$ac_header_preproc"
25684fi
25685echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25686echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25687
25688fi
25689if test `eval echo '${'$as_ac_Header'}'` = yes; then
25690 cat >>confdefs.h <<_ACEOF
25691#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25692_ACEOF
25693
25694fi
25695
25696done
25697
25698
25699
25700
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025701for ac_header in malloc.h unistd.h windows.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025702do
25703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25704if eval "test \"\${$as_ac_Header+set}\" = set"; then
25705 echo "$as_me:$LINENO: checking for $ac_header" >&5
25706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25707if eval "test \"\${$as_ac_Header+set}\" = set"; then
25708 echo $ECHO_N "(cached) $ECHO_C" >&6
25709fi
25710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25712else
25713 # Is the header compilable?
25714echo "$as_me:$LINENO: checking $ac_header usability" >&5
25715echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25716cat >conftest.$ac_ext <<_ACEOF
25717/* confdefs.h. */
25718_ACEOF
25719cat confdefs.h >>conftest.$ac_ext
25720cat >>conftest.$ac_ext <<_ACEOF
25721/* end confdefs.h. */
25722$ac_includes_default
25723#include <$ac_header>
25724_ACEOF
25725rm -f conftest.$ac_objext
25726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25727 (eval $ac_compile) 2>conftest.er1
25728 ac_status=$?
25729 grep -v '^ *+' conftest.er1 >conftest.err
25730 rm -f conftest.er1
25731 cat conftest.err >&5
25732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25733 (exit $ac_status); } &&
25734 { ac_try='test -z "$ac_c_werror_flag"
25735 || test ! -s conftest.err'
25736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737 (eval $ac_try) 2>&5
25738 ac_status=$?
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); }; } &&
25741 { ac_try='test -s conftest.$ac_objext'
25742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25743 (eval $ac_try) 2>&5
25744 ac_status=$?
25745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 (exit $ac_status); }; }; then
25747 ac_header_compiler=yes
25748else
25749 echo "$as_me: failed program was:" >&5
25750sed 's/^/| /' conftest.$ac_ext >&5
25751
25752ac_header_compiler=no
25753fi
25754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25755echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25756echo "${ECHO_T}$ac_header_compiler" >&6
25757
25758# Is the header present?
25759echo "$as_me:$LINENO: checking $ac_header presence" >&5
25760echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25761cat >conftest.$ac_ext <<_ACEOF
25762/* confdefs.h. */
25763_ACEOF
25764cat confdefs.h >>conftest.$ac_ext
25765cat >>conftest.$ac_ext <<_ACEOF
25766/* end confdefs.h. */
25767#include <$ac_header>
25768_ACEOF
25769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25771 ac_status=$?
25772 grep -v '^ *+' conftest.er1 >conftest.err
25773 rm -f conftest.er1
25774 cat conftest.err >&5
25775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776 (exit $ac_status); } >/dev/null; then
25777 if test -s conftest.err; then
25778 ac_cpp_err=$ac_c_preproc_warn_flag
25779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25780 else
25781 ac_cpp_err=
25782 fi
25783else
25784 ac_cpp_err=yes
25785fi
25786if test -z "$ac_cpp_err"; then
25787 ac_header_preproc=yes
25788else
25789 echo "$as_me: failed program was:" >&5
25790sed 's/^/| /' conftest.$ac_ext >&5
25791
25792 ac_header_preproc=no
25793fi
25794rm -f conftest.err conftest.$ac_ext
25795echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25796echo "${ECHO_T}$ac_header_preproc" >&6
25797
25798# So? What about this header?
25799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25800 yes:no: )
25801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25802echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25804echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25805 ac_header_preproc=yes
25806 ;;
25807 no:yes:* )
25808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25809echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25811echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25813echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25815echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25819echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25820 (
25821 cat <<\_ASBOX
25822## ----------------------------------- ##
25823## Report this to llvmbugs@cs.uiuc.edu ##
25824## ----------------------------------- ##
25825_ASBOX
25826 ) |
25827 sed "s/^/$as_me: WARNING: /" >&2
25828 ;;
25829esac
25830echo "$as_me:$LINENO: checking for $ac_header" >&5
25831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25832if eval "test \"\${$as_ac_Header+set}\" = set"; then
25833 echo $ECHO_N "(cached) $ECHO_C" >&6
25834else
25835 eval "$as_ac_Header=\$ac_header_preproc"
25836fi
25837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25838echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25839
25840fi
25841if test `eval echo '${'$as_ac_Header'}'` = yes; then
25842 cat >>confdefs.h <<_ACEOF
25843#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25844_ACEOF
25845
25846fi
25847
25848done
25849
25850echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25851echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25852if test "${ac_cv_header_time+set}" = set; then
25853 echo $ECHO_N "(cached) $ECHO_C" >&6
25854else
25855 cat >conftest.$ac_ext <<_ACEOF
25856/* confdefs.h. */
25857_ACEOF
25858cat confdefs.h >>conftest.$ac_ext
25859cat >>conftest.$ac_ext <<_ACEOF
25860/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025861#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025862#include <sys/time.h>
25863#include <time.h>
25864
25865int
25866main ()
25867{
25868if ((struct tm *) 0)
25869return 0;
25870 ;
25871 return 0;
25872}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025873_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025874rm -f conftest.$ac_objext
25875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25876 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025877 ac_status=$?
25878 grep -v '^ *+' conftest.er1 >conftest.err
25879 rm -f conftest.er1
25880 cat conftest.err >&5
25881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025882 (exit $ac_status); } &&
25883 { ac_try='test -z "$ac_c_werror_flag"
25884 || test ! -s conftest.err'
25885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886 (eval $ac_try) 2>&5
25887 ac_status=$?
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); }; } &&
25890 { ac_try='test -s conftest.$ac_objext'
25891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892 (eval $ac_try) 2>&5
25893 ac_status=$?
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); }; }; then
25896 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025897else
25898 echo "$as_me: failed program was:" >&5
25899sed 's/^/| /' conftest.$ac_ext >&5
25900
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025901ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025902fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25904fi
25905echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25906echo "${ECHO_T}$ac_cv_header_time" >&6
25907if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025908
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025909cat >>confdefs.h <<\_ACEOF
25910#define TIME_WITH_SYS_TIME 1
25911_ACEOF
25912
25913fi
25914
25915echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25916echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25917if test "${ac_cv_header_mmap_anon+set}" = set; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025918 echo $ECHO_N "(cached) $ECHO_C" >&6
25919else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025920 ac_ext=c
25921ac_cpp='$CPP $CPPFLAGS'
25922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25924ac_compiler_gnu=$ac_cv_c_compiler_gnu
25925
25926 cat >conftest.$ac_ext <<_ACEOF
25927/* confdefs.h. */
25928_ACEOF
25929cat confdefs.h >>conftest.$ac_ext
25930cat >>conftest.$ac_ext <<_ACEOF
25931/* end confdefs.h. */
25932#include <sys/mman.h>
25933#include <unistd.h>
25934#include <fcntl.h>
25935int
25936main ()
25937{
25938mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25939 ;
25940 return 0;
25941}
25942_ACEOF
25943rm -f conftest.$ac_objext
25944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25945 (eval $ac_compile) 2>conftest.er1
25946 ac_status=$?
25947 grep -v '^ *+' conftest.er1 >conftest.err
25948 rm -f conftest.er1
25949 cat conftest.err >&5
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); } &&
25952 { ac_try='test -z "$ac_c_werror_flag"
25953 || test ! -s conftest.err'
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); }; } &&
25959 { ac_try='test -s conftest.$ac_objext'
25960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25961 (eval $ac_try) 2>&5
25962 ac_status=$?
25963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 (exit $ac_status); }; }; then
25965 ac_cv_header_mmap_anon=yes
25966else
25967 echo "$as_me: failed program was:" >&5
25968sed 's/^/| /' conftest.$ac_ext >&5
25969
25970ac_cv_header_mmap_anon=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025971fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25973 ac_ext=c
25974ac_cpp='$CPP $CPPFLAGS'
25975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25977ac_compiler_gnu=$ac_cv_c_compiler_gnu
25978
25979
25980fi
25981echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25982echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25983if test "$ac_cv_header_mmap_anon" = yes; then
25984
25985cat >>confdefs.h <<\_ACEOF
25986#define HAVE_MMAP_ANONYMOUS
25987_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025988
25989fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025990
25991
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025992
25993
25994for ac_header in inttypes.h stdint.h
25995do
25996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25997if eval "test \"\${$as_ac_Header+set}\" = set"; then
25998 echo "$as_me:$LINENO: checking for $ac_header" >&5
25999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26000if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026001 echo $ECHO_N "(cached) $ECHO_C" >&6
26002fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26004echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026005else
26006 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026007echo "$as_me:$LINENO: checking $ac_header usability" >&5
26008echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026009cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026010/* confdefs.h. */
26011_ACEOF
26012cat confdefs.h >>conftest.$ac_ext
26013cat >>conftest.$ac_ext <<_ACEOF
26014/* end confdefs.h. */
26015$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026016#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026017_ACEOF
26018rm -f conftest.$ac_objext
26019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026020 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026021 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026022 grep -v '^ *+' conftest.er1 >conftest.err
26023 rm -f conftest.er1
26024 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026027 { ac_try='test -z "$ac_c_werror_flag"
26028 || test ! -s conftest.err'
26029 { (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); }; } &&
26034 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036 (eval $ac_try) 2>&5
26037 ac_status=$?
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); }; }; then
26040 ac_header_compiler=yes
26041else
26042 echo "$as_me: failed program was:" >&5
26043sed 's/^/| /' conftest.$ac_ext >&5
26044
26045ac_header_compiler=no
26046fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026048echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26049echo "${ECHO_T}$ac_header_compiler" >&6
26050
26051# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026052echo "$as_me:$LINENO: checking $ac_header presence" >&5
26053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026054cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026055/* confdefs.h. */
26056_ACEOF
26057cat confdefs.h >>conftest.$ac_ext
26058cat >>conftest.$ac_ext <<_ACEOF
26059/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026060#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026061_ACEOF
26062if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26064 ac_status=$?
26065 grep -v '^ *+' conftest.er1 >conftest.err
26066 rm -f conftest.er1
26067 cat conftest.err >&5
26068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26069 (exit $ac_status); } >/dev/null; then
26070 if test -s conftest.err; then
26071 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026072 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026073 else
26074 ac_cpp_err=
26075 fi
26076else
26077 ac_cpp_err=yes
26078fi
26079if test -z "$ac_cpp_err"; then
26080 ac_header_preproc=yes
26081else
26082 echo "$as_me: failed program was:" >&5
26083sed 's/^/| /' conftest.$ac_ext >&5
26084
26085 ac_header_preproc=no
26086fi
26087rm -f conftest.err conftest.$ac_ext
26088echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26089echo "${ECHO_T}$ac_header_preproc" >&6
26090
26091# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026092case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26093 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26095echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26097echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026098 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026099 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026100 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26102echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26104echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26106echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26108echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26110echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26112echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026113 (
26114 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026115## ----------------------------------- ##
26116## Report this to llvmbugs@cs.uiuc.edu ##
26117## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026118_ASBOX
26119 ) |
26120 sed "s/^/$as_me: WARNING: /" >&2
26121 ;;
26122esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026123echo "$as_me:$LINENO: checking for $ac_header" >&5
26124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26125if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026126 echo $ECHO_N "(cached) $ECHO_C" >&6
26127else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026128 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026129fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026132
26133fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026134if test `eval echo '${'$as_ac_Header'}'` = yes; then
26135 cat >>confdefs.h <<_ACEOF
26136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026137_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026138
26139fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026140
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026141done
26142
John Criswell7ed43ad2004-07-19 16:12:29 +000026143
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026144
John Criswell7a73b802003-06-30 21:59:07 +000026145echo "$as_me:$LINENO: checking for pid_t" >&5
26146echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26147if test "${ac_cv_type_pid_t+set}" = set; then
26148 echo $ECHO_N "(cached) $ECHO_C" >&6
26149else
26150 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026151/* confdefs.h. */
26152_ACEOF
26153cat confdefs.h >>conftest.$ac_ext
26154cat >>conftest.$ac_ext <<_ACEOF
26155/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026156$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026157int
26158main ()
26159{
26160if ((pid_t *) 0)
26161 return 0;
26162if (sizeof (pid_t))
26163 return 0;
26164 ;
26165 return 0;
26166}
26167_ACEOF
26168rm -f conftest.$ac_objext
26169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026170 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026171 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026172 grep -v '^ *+' conftest.er1 >conftest.err
26173 rm -f conftest.er1
26174 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026177 { ac_try='test -z "$ac_c_werror_flag"
26178 || test ! -s conftest.err'
26179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26180 (eval $ac_try) 2>&5
26181 ac_status=$?
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); }; } &&
26184 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26186 (eval $ac_try) 2>&5
26187 ac_status=$?
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); }; }; then
26190 ac_cv_type_pid_t=yes
26191else
26192 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026193sed 's/^/| /' conftest.$ac_ext >&5
26194
John Criswell7a73b802003-06-30 21:59:07 +000026195ac_cv_type_pid_t=no
26196fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026198fi
26199echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26200echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26201if test $ac_cv_type_pid_t = yes; then
26202 :
26203else
26204
26205cat >>confdefs.h <<_ACEOF
26206#define pid_t int
26207_ACEOF
26208
26209fi
26210
26211echo "$as_me:$LINENO: checking for size_t" >&5
26212echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26213if test "${ac_cv_type_size_t+set}" = set; then
26214 echo $ECHO_N "(cached) $ECHO_C" >&6
26215else
26216 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026217/* confdefs.h. */
26218_ACEOF
26219cat confdefs.h >>conftest.$ac_ext
26220cat >>conftest.$ac_ext <<_ACEOF
26221/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026222$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026223int
26224main ()
26225{
26226if ((size_t *) 0)
26227 return 0;
26228if (sizeof (size_t))
26229 return 0;
26230 ;
26231 return 0;
26232}
26233_ACEOF
26234rm -f conftest.$ac_objext
26235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026236 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026237 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026238 grep -v '^ *+' conftest.er1 >conftest.err
26239 rm -f conftest.er1
26240 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026243 { ac_try='test -z "$ac_c_werror_flag"
26244 || test ! -s conftest.err'
26245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26246 (eval $ac_try) 2>&5
26247 ac_status=$?
26248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26249 (exit $ac_status); }; } &&
26250 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26252 (eval $ac_try) 2>&5
26253 ac_status=$?
26254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26255 (exit $ac_status); }; }; then
26256 ac_cv_type_size_t=yes
26257else
26258 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026259sed 's/^/| /' conftest.$ac_ext >&5
26260
John Criswell7a73b802003-06-30 21:59:07 +000026261ac_cv_type_size_t=no
26262fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026264fi
26265echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26266echo "${ECHO_T}$ac_cv_type_size_t" >&6
26267if test $ac_cv_type_size_t = yes; then
26268 :
26269else
26270
26271cat >>confdefs.h <<_ACEOF
26272#define size_t unsigned
26273_ACEOF
26274
26275fi
26276
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026277echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26278echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26279if test "${ac_cv_type_signal+set}" = set; then
26280 echo $ECHO_N "(cached) $ECHO_C" >&6
26281else
26282 cat >conftest.$ac_ext <<_ACEOF
26283/* confdefs.h. */
26284_ACEOF
26285cat confdefs.h >>conftest.$ac_ext
26286cat >>conftest.$ac_ext <<_ACEOF
26287/* end confdefs.h. */
26288#include <sys/types.h>
26289#include <signal.h>
26290#ifdef signal
26291# undef signal
26292#endif
26293#ifdef __cplusplus
26294extern "C" void (*signal (int, void (*)(int)))(int);
26295#else
26296void (*signal ()) ();
26297#endif
26298
26299int
26300main ()
26301{
26302int i;
26303 ;
26304 return 0;
26305}
26306_ACEOF
26307rm -f conftest.$ac_objext
26308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26309 (eval $ac_compile) 2>conftest.er1
26310 ac_status=$?
26311 grep -v '^ *+' conftest.er1 >conftest.err
26312 rm -f conftest.er1
26313 cat conftest.err >&5
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); } &&
26316 { ac_try='test -z "$ac_c_werror_flag"
26317 || test ! -s conftest.err'
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319 (eval $ac_try) 2>&5
26320 ac_status=$?
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); }; } &&
26323 { ac_try='test -s conftest.$ac_objext'
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26326 ac_status=$?
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; }; then
26329 ac_cv_type_signal=void
26330else
26331 echo "$as_me: failed program was:" >&5
26332sed 's/^/| /' conftest.$ac_ext >&5
26333
26334ac_cv_type_signal=int
26335fi
26336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26337fi
26338echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26339echo "${ECHO_T}$ac_cv_type_signal" >&6
26340
26341cat >>confdefs.h <<_ACEOF
26342#define RETSIGTYPE $ac_cv_type_signal
26343_ACEOF
26344
26345
26346echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26347echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26348if test "${ac_cv_struct_tm+set}" = set; then
26349 echo $ECHO_N "(cached) $ECHO_C" >&6
26350else
26351 cat >conftest.$ac_ext <<_ACEOF
26352/* confdefs.h. */
26353_ACEOF
26354cat confdefs.h >>conftest.$ac_ext
26355cat >>conftest.$ac_ext <<_ACEOF
26356/* end confdefs.h. */
26357#include <sys/types.h>
26358#include <time.h>
26359
26360int
26361main ()
26362{
26363struct tm *tp; tp->tm_sec;
26364 ;
26365 return 0;
26366}
26367_ACEOF
26368rm -f conftest.$ac_objext
26369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26370 (eval $ac_compile) 2>conftest.er1
26371 ac_status=$?
26372 grep -v '^ *+' conftest.er1 >conftest.err
26373 rm -f conftest.er1
26374 cat conftest.err >&5
26375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26376 (exit $ac_status); } &&
26377 { ac_try='test -z "$ac_c_werror_flag"
26378 || test ! -s conftest.err'
26379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26380 (eval $ac_try) 2>&5
26381 ac_status=$?
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); }; } &&
26384 { ac_try='test -s conftest.$ac_objext'
26385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26386 (eval $ac_try) 2>&5
26387 ac_status=$?
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); }; }; then
26390 ac_cv_struct_tm=time.h
26391else
26392 echo "$as_me: failed program was:" >&5
26393sed 's/^/| /' conftest.$ac_ext >&5
26394
26395ac_cv_struct_tm=sys/time.h
26396fi
26397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26398fi
26399echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26400echo "${ECHO_T}$ac_cv_struct_tm" >&6
26401if test $ac_cv_struct_tm = sys/time.h; then
26402
26403cat >>confdefs.h <<\_ACEOF
26404#define TM_IN_SYS_TIME 1
26405_ACEOF
26406
26407fi
26408
John Criswell7a73b802003-06-30 21:59:07 +000026409echo "$as_me:$LINENO: checking for int64_t" >&5
26410echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26411if test "${ac_cv_type_int64_t+set}" = set; then
26412 echo $ECHO_N "(cached) $ECHO_C" >&6
26413else
26414 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026415/* confdefs.h. */
26416_ACEOF
26417cat confdefs.h >>conftest.$ac_ext
26418cat >>conftest.$ac_ext <<_ACEOF
26419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026420$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026421int
26422main ()
26423{
26424if ((int64_t *) 0)
26425 return 0;
26426if (sizeof (int64_t))
26427 return 0;
26428 ;
26429 return 0;
26430}
26431_ACEOF
26432rm -f conftest.$ac_objext
26433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026434 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026435 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026436 grep -v '^ *+' conftest.er1 >conftest.err
26437 rm -f conftest.er1
26438 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26440 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026441 { ac_try='test -z "$ac_c_werror_flag"
26442 || test ! -s conftest.err'
26443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26444 (eval $ac_try) 2>&5
26445 ac_status=$?
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); }; } &&
26448 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26450 (eval $ac_try) 2>&5
26451 ac_status=$?
26452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453 (exit $ac_status); }; }; then
26454 ac_cv_type_int64_t=yes
26455else
26456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026457sed 's/^/| /' conftest.$ac_ext >&5
26458
John Criswell7a73b802003-06-30 21:59:07 +000026459ac_cv_type_int64_t=no
26460fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026462fi
26463echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26464echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26465if test $ac_cv_type_int64_t = yes; then
26466
26467cat >>confdefs.h <<_ACEOF
26468#define HAVE_INT64_T 1
26469_ACEOF
26470
26471
26472else
26473 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26474echo "$as_me: error: Type int64_t required but not found" >&2;}
26475 { (exit 1); exit 1; }; }
26476fi
26477
26478echo "$as_me:$LINENO: checking for uint64_t" >&5
26479echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26480if test "${ac_cv_type_uint64_t+set}" = set; then
26481 echo $ECHO_N "(cached) $ECHO_C" >&6
26482else
26483 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026484/* confdefs.h. */
26485_ACEOF
26486cat confdefs.h >>conftest.$ac_ext
26487cat >>conftest.$ac_ext <<_ACEOF
26488/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026489$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026490int
26491main ()
26492{
26493if ((uint64_t *) 0)
26494 return 0;
26495if (sizeof (uint64_t))
26496 return 0;
26497 ;
26498 return 0;
26499}
26500_ACEOF
26501rm -f conftest.$ac_objext
26502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026503 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026504 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026505 grep -v '^ *+' conftest.er1 >conftest.err
26506 rm -f conftest.er1
26507 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026510 { ac_try='test -z "$ac_c_werror_flag"
26511 || test ! -s conftest.err'
26512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26513 (eval $ac_try) 2>&5
26514 ac_status=$?
26515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); }; } &&
26517 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26519 (eval $ac_try) 2>&5
26520 ac_status=$?
26521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26522 (exit $ac_status); }; }; then
26523 ac_cv_type_uint64_t=yes
26524else
26525 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026526sed 's/^/| /' conftest.$ac_ext >&5
26527
John Criswell7a73b802003-06-30 21:59:07 +000026528ac_cv_type_uint64_t=no
26529fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026531fi
26532echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26533echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26534if test $ac_cv_type_uint64_t = yes; then
26535
26536cat >>confdefs.h <<_ACEOF
26537#define HAVE_UINT64_T 1
26538_ACEOF
26539
26540
26541else
Misha Brukmanceca9042004-09-02 23:02:30 +000026542 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000026543echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26544if test "${ac_cv_type_u_int64_t+set}" = set; then
26545 echo $ECHO_N "(cached) $ECHO_C" >&6
26546else
26547 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000026548/* confdefs.h. */
26549_ACEOF
26550cat confdefs.h >>conftest.$ac_ext
26551cat >>conftest.$ac_ext <<_ACEOF
26552/* end confdefs.h. */
26553$ac_includes_default
26554int
26555main ()
26556{
26557if ((u_int64_t *) 0)
26558 return 0;
26559if (sizeof (u_int64_t))
26560 return 0;
26561 ;
26562 return 0;
26563}
26564_ACEOF
26565rm -f conftest.$ac_objext
26566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026567 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000026568 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026569 grep -v '^ *+' conftest.er1 >conftest.err
26570 rm -f conftest.er1
26571 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000026572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026574 { ac_try='test -z "$ac_c_werror_flag"
26575 || test ! -s conftest.err'
26576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26577 (eval $ac_try) 2>&5
26578 ac_status=$?
26579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580 (exit $ac_status); }; } &&
26581 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000026582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26583 (eval $ac_try) 2>&5
26584 ac_status=$?
26585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26586 (exit $ac_status); }; }; then
26587 ac_cv_type_u_int64_t=yes
26588else
26589 echo "$as_me: failed program was:" >&5
26590sed 's/^/| /' conftest.$ac_ext >&5
26591
26592ac_cv_type_u_int64_t=no
26593fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000026595fi
26596echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26597echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26598if test $ac_cv_type_u_int64_t = yes; then
26599
26600cat >>confdefs.h <<_ACEOF
26601#define HAVE_U_INT64_T 1
26602_ACEOF
26603
26604
Misha Brukmanceca9042004-09-02 23:02:30 +000026605else
26606 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26607echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26608 { (exit 1); exit 1; }; }
26609fi
26610
John Criswell679ff312004-09-02 18:44:44 +000026611fi
26612
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026613
26614
26615
26616
26617
26618
26619
26620
26621for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
26622do
26623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26624echo "$as_me:$LINENO: checking for $ac_func" >&5
26625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26626if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026627 echo $ECHO_N "(cached) $ECHO_C" >&6
26628else
26629 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026630/* confdefs.h. */
26631_ACEOF
26632cat confdefs.h >>conftest.$ac_ext
26633cat >>conftest.$ac_ext <<_ACEOF
26634/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26637#define $ac_func innocuous_$ac_func
26638
26639/* System header to define __stub macros and hopefully few prototypes,
26640 which can conflict with char $ac_func (); below.
26641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26642 <limits.h> exists even on freestanding compilers. */
26643
26644#ifdef __STDC__
26645# include <limits.h>
26646#else
26647# include <assert.h>
26648#endif
26649
26650#undef $ac_func
26651
26652/* Override any gcc2 internal prototype to avoid an error. */
26653#ifdef __cplusplus
26654extern "C"
26655{
26656#endif
26657/* We use char because int might match the return type of a gcc2
26658 builtin and then its argument prototype would still apply. */
26659char $ac_func ();
26660/* The GNU C library defines this for functions which it implements
26661 to always fail with ENOSYS. Some functions are actually named
26662 something starting with __ and the normal name is an alias. */
26663#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26664choke me
26665#else
26666char (*f) () = $ac_func;
26667#endif
26668#ifdef __cplusplus
26669}
26670#endif
John Criswell7a73b802003-06-30 21:59:07 +000026671
John Criswell7a73b802003-06-30 21:59:07 +000026672int
26673main ()
26674{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026675return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026676 ;
26677 return 0;
26678}
26679_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026680rm -f conftest.$ac_objext conftest$ac_exeext
26681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26682 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026684 grep -v '^ *+' conftest.er1 >conftest.err
26685 rm -f conftest.er1
26686 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26688 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026689 { ac_try='test -z "$ac_c_werror_flag"
26690 || test ! -s conftest.err'
26691 { (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); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026696 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26698 (eval $ac_try) 2>&5
26699 ac_status=$?
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026702 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026703else
26704 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026705sed 's/^/| /' conftest.$ac_ext >&5
26706
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026707eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026708fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026709rm -f conftest.err conftest.$ac_objext \
26710 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026711fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26713echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26714if test `eval echo '${'$as_ac_var'}'` = yes; then
26715 cat >>confdefs.h <<_ACEOF
26716#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026717_ACEOF
26718
26719fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026720done
John Criswell7a73b802003-06-30 21:59:07 +000026721
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026722
26723
26724
26725for ac_func in strdup strtoq strtoll
26726do
26727as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26728echo "$as_me:$LINENO: checking for $ac_func" >&5
26729echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26730if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026731 echo $ECHO_N "(cached) $ECHO_C" >&6
26732else
26733 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026734/* confdefs.h. */
26735_ACEOF
26736cat confdefs.h >>conftest.$ac_ext
26737cat >>conftest.$ac_ext <<_ACEOF
26738/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026739/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26741#define $ac_func innocuous_$ac_func
26742
26743/* System header to define __stub macros and hopefully few prototypes,
26744 which can conflict with char $ac_func (); below.
26745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26746 <limits.h> exists even on freestanding compilers. */
26747
26748#ifdef __STDC__
26749# include <limits.h>
26750#else
26751# include <assert.h>
26752#endif
26753
26754#undef $ac_func
26755
26756/* Override any gcc2 internal prototype to avoid an error. */
26757#ifdef __cplusplus
26758extern "C"
26759{
26760#endif
26761/* We use char because int might match the return type of a gcc2
26762 builtin and then its argument prototype would still apply. */
26763char $ac_func ();
26764/* The GNU C library defines this for functions which it implements
26765 to always fail with ENOSYS. Some functions are actually named
26766 something starting with __ and the normal name is an alias. */
26767#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26768choke me
26769#else
26770char (*f) () = $ac_func;
26771#endif
26772#ifdef __cplusplus
26773}
26774#endif
John Criswell7a73b802003-06-30 21:59:07 +000026775
John Criswell7a73b802003-06-30 21:59:07 +000026776int
26777main ()
26778{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026779return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026780 ;
26781 return 0;
26782}
26783_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026784rm -f conftest.$ac_objext conftest$ac_exeext
26785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26786 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026787 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026788 grep -v '^ *+' conftest.er1 >conftest.err
26789 rm -f conftest.er1
26790 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026793 { ac_try='test -z "$ac_c_werror_flag"
26794 || test ! -s conftest.err'
26795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26796 (eval $ac_try) 2>&5
26797 ac_status=$?
26798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026800 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26802 (eval $ac_try) 2>&5
26803 ac_status=$?
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026806 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026807else
26808 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026809sed 's/^/| /' conftest.$ac_ext >&5
26810
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026811eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026812fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026813rm -f conftest.err conftest.$ac_objext \
26814 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026815fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26817echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26818if test `eval echo '${'$as_ac_var'}'` = yes; then
26819 cat >>confdefs.h <<_ACEOF
26820#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026821_ACEOF
26822
26823fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026824done
John Criswell7a73b802003-06-30 21:59:07 +000026825
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026826echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26827echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000026828if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026829 echo $ECHO_N "(cached) $ECHO_C" >&6
26830else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026831 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000026832ac_cpp='$CPP $CPPFLAGS'
26833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26835ac_compiler_gnu=$ac_cv_c_compiler_gnu
26836
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026837 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000026838 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000026839else
26840 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000026841
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026842 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000026843_ACEOF
26844cat confdefs.h >>conftest.$ac_ext
26845cat >>conftest.$ac_ext <<_ACEOF
26846/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000026847
John Criswella0137d32003-10-13 16:22:01 +000026848#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000026849#include <stdlib.h>
26850
John Criswella0137d32003-10-13 16:22:01 +000026851int
26852main ()
26853{
26854
Reid Spencer2706f8c2004-09-19 23:53:36 +000026855volatile double A, B;
26856char Buffer[100];
26857A = 1;
26858A /= 10.0;
26859sprintf(Buffer, "%a", A);
26860B = atof(Buffer);
26861if (A != B)
26862 return (1);
26863if (A != 0x1.999999999999ap-4)
26864 return (1);
26865return (0);
John Criswella0137d32003-10-13 16:22:01 +000026866 ;
26867 return 0;
26868}
26869_ACEOF
26870rm -f conftest$ac_exeext
26871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26872 (eval $ac_link) 2>&5
26873 ac_status=$?
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26877 (eval $ac_try) 2>&5
26878 ac_status=$?
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000026881 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000026882else
26883 echo "$as_me: program exited with status $ac_status" >&5
26884echo "$as_me: failed program was:" >&5
26885sed 's/^/| /' conftest.$ac_ext >&5
26886
26887( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000026888llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000026889fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026890rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000026891fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026892 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000026893ac_cpp='$CPP $CPPFLAGS'
26894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26896ac_compiler_gnu=$ac_cv_c_compiler_gnu
26897
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026898fi
Reid Spencer3be58f92004-11-27 22:01:43 +000026899echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
26900echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
26901 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000026902
26903cat >>confdefs.h <<\_ACEOF
26904#define HAVE_PRINTF_A 1
26905_ACEOF
26906
Reid Spencer2706f8c2004-09-19 23:53:36 +000026907 fi
John Criswella0137d32003-10-13 16:22:01 +000026908
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026909# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26910# for constant arguments. Useless!
26911echo "$as_me:$LINENO: checking for working alloca.h" >&5
26912echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26913if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000026914 echo $ECHO_N "(cached) $ECHO_C" >&6
26915else
John Criswell0021c312004-02-13 21:57:29 +000026916 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000026917/* confdefs.h. */
26918_ACEOF
26919cat confdefs.h >>conftest.$ac_ext
26920cat >>conftest.$ac_ext <<_ACEOF
26921/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026922#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000026923int
26924main ()
26925{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026926char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000026927 ;
26928 return 0;
26929}
26930_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026931rm -f conftest.$ac_objext conftest$ac_exeext
26932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26933 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000026934 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026935 grep -v '^ *+' conftest.er1 >conftest.err
26936 rm -f conftest.er1
26937 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000026938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026940 { ac_try='test -z "$ac_c_werror_flag"
26941 || test ! -s conftest.err'
26942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26943 (eval $ac_try) 2>&5
26944 ac_status=$?
26945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026947 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000026948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26949 (eval $ac_try) 2>&5
26950 ac_status=$?
26951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26952 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026953 ac_cv_working_alloca_h=yes
26954else
26955 echo "$as_me: failed program was:" >&5
26956sed 's/^/| /' conftest.$ac_ext >&5
26957
26958ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000026959fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026960rm -f conftest.err conftest.$ac_objext \
26961 conftest$ac_exeext conftest.$ac_ext
26962fi
26963echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
26964echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
26965if test $ac_cv_working_alloca_h = yes; then
26966
26967cat >>confdefs.h <<\_ACEOF
26968#define HAVE_ALLOCA_H 1
26969_ACEOF
26970
26971fi
26972
26973echo "$as_me:$LINENO: checking for alloca" >&5
26974echo $ECHO_N "checking for alloca... $ECHO_C" >&6
26975if test "${ac_cv_func_alloca_works+set}" = set; then
26976 echo $ECHO_N "(cached) $ECHO_C" >&6
26977else
26978 cat >conftest.$ac_ext <<_ACEOF
26979/* confdefs.h. */
26980_ACEOF
26981cat confdefs.h >>conftest.$ac_ext
26982cat >>conftest.$ac_ext <<_ACEOF
26983/* end confdefs.h. */
26984#ifdef __GNUC__
26985# define alloca __builtin_alloca
26986#else
26987# ifdef _MSC_VER
26988# include <malloc.h>
26989# define alloca _alloca
26990# else
26991# if HAVE_ALLOCA_H
26992# include <alloca.h>
26993# else
26994# ifdef _AIX
26995 #pragma alloca
26996# else
26997# ifndef alloca /* predefined by HP cc +Olibcalls */
26998char *alloca ();
26999# endif
27000# endif
27001# endif
27002# endif
27003#endif
27004
27005int
27006main ()
27007{
27008char *p = (char *) alloca (1);
27009 ;
27010 return 0;
27011}
27012_ACEOF
27013rm -f conftest.$ac_objext conftest$ac_exeext
27014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27015 (eval $ac_link) 2>conftest.er1
27016 ac_status=$?
27017 grep -v '^ *+' conftest.er1 >conftest.err
27018 rm -f conftest.er1
27019 cat conftest.err >&5
27020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27021 (exit $ac_status); } &&
27022 { ac_try='test -z "$ac_c_werror_flag"
27023 || test ! -s conftest.err'
27024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27025 (eval $ac_try) 2>&5
27026 ac_status=$?
27027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); }; } &&
27029 { ac_try='test -s conftest$ac_exeext'
27030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27031 (eval $ac_try) 2>&5
27032 ac_status=$?
27033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034 (exit $ac_status); }; }; then
27035 ac_cv_func_alloca_works=yes
27036else
27037 echo "$as_me: failed program was:" >&5
27038sed 's/^/| /' conftest.$ac_ext >&5
27039
27040ac_cv_func_alloca_works=no
27041fi
27042rm -f conftest.err conftest.$ac_objext \
27043 conftest$ac_exeext conftest.$ac_ext
27044fi
27045echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27046echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27047
27048if test $ac_cv_func_alloca_works = yes; then
27049
27050cat >>confdefs.h <<\_ACEOF
27051#define HAVE_ALLOCA 1
27052_ACEOF
27053
27054else
27055 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27056# that cause trouble. Some versions do not even contain alloca or
27057# contain a buggy version. If you still want to use their alloca,
27058# use ar to extract alloca.o from them instead of compiling alloca.c.
27059
27060ALLOCA=alloca.$ac_objext
27061
27062cat >>confdefs.h <<\_ACEOF
27063#define C_ALLOCA 1
27064_ACEOF
27065
27066
27067echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27068echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27069if test "${ac_cv_os_cray+set}" = set; then
27070 echo $ECHO_N "(cached) $ECHO_C" >&6
27071else
27072 cat >conftest.$ac_ext <<_ACEOF
27073/* confdefs.h. */
27074_ACEOF
27075cat confdefs.h >>conftest.$ac_ext
27076cat >>conftest.$ac_ext <<_ACEOF
27077/* end confdefs.h. */
27078#if defined(CRAY) && ! defined(CRAY2)
27079webecray
27080#else
27081wenotbecray
27082#endif
27083
27084_ACEOF
27085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27086 $EGREP "webecray" >/dev/null 2>&1; then
27087 ac_cv_os_cray=yes
27088else
27089 ac_cv_os_cray=no
27090fi
27091rm -f conftest*
27092
27093fi
27094echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27095echo "${ECHO_T}$ac_cv_os_cray" >&6
27096if test $ac_cv_os_cray = yes; then
27097 for ac_func in _getb67 GETB67 getb67; do
27098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27099echo "$as_me:$LINENO: checking for $ac_func" >&5
27100echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27101if eval "test \"\${$as_ac_var+set}\" = set"; then
27102 echo $ECHO_N "(cached) $ECHO_C" >&6
27103else
27104 cat >conftest.$ac_ext <<_ACEOF
27105/* confdefs.h. */
27106_ACEOF
27107cat confdefs.h >>conftest.$ac_ext
27108cat >>conftest.$ac_ext <<_ACEOF
27109/* end confdefs.h. */
27110/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27112#define $ac_func innocuous_$ac_func
27113
27114/* System header to define __stub macros and hopefully few prototypes,
27115 which can conflict with char $ac_func (); below.
27116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27117 <limits.h> exists even on freestanding compilers. */
27118
27119#ifdef __STDC__
27120# include <limits.h>
27121#else
27122# include <assert.h>
27123#endif
27124
27125#undef $ac_func
27126
27127/* Override any gcc2 internal prototype to avoid an error. */
27128#ifdef __cplusplus
27129extern "C"
27130{
27131#endif
27132/* We use char because int might match the return type of a gcc2
27133 builtin and then its argument prototype would still apply. */
27134char $ac_func ();
27135/* The GNU C library defines this for functions which it implements
27136 to always fail with ENOSYS. Some functions are actually named
27137 something starting with __ and the normal name is an alias. */
27138#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27139choke me
27140#else
27141char (*f) () = $ac_func;
27142#endif
27143#ifdef __cplusplus
27144}
27145#endif
27146
27147int
27148main ()
27149{
27150return f != $ac_func;
27151 ;
27152 return 0;
27153}
27154_ACEOF
27155rm -f conftest.$ac_objext conftest$ac_exeext
27156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27157 (eval $ac_link) 2>conftest.er1
27158 ac_status=$?
27159 grep -v '^ *+' conftest.er1 >conftest.err
27160 rm -f conftest.er1
27161 cat conftest.err >&5
27162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27163 (exit $ac_status); } &&
27164 { ac_try='test -z "$ac_c_werror_flag"
27165 || test ! -s conftest.err'
27166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27167 (eval $ac_try) 2>&5
27168 ac_status=$?
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); }; } &&
27171 { ac_try='test -s conftest$ac_exeext'
27172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27173 (eval $ac_try) 2>&5
27174 ac_status=$?
27175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27176 (exit $ac_status); }; }; then
27177 eval "$as_ac_var=yes"
27178else
27179 echo "$as_me: failed program was:" >&5
27180sed 's/^/| /' conftest.$ac_ext >&5
27181
27182eval "$as_ac_var=no"
27183fi
27184rm -f conftest.err conftest.$ac_objext \
27185 conftest$ac_exeext conftest.$ac_ext
27186fi
27187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27188echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27189if test `eval echo '${'$as_ac_var'}'` = yes; then
27190
27191cat >>confdefs.h <<_ACEOF
27192#define CRAY_STACKSEG_END $ac_func
27193_ACEOF
27194
27195 break
27196fi
27197
27198 done
27199fi
27200
27201echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27202echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27203if test "${ac_cv_c_stack_direction+set}" = set; then
27204 echo $ECHO_N "(cached) $ECHO_C" >&6
27205else
27206 if test "$cross_compiling" = yes; then
27207 ac_cv_c_stack_direction=0
27208else
27209 cat >conftest.$ac_ext <<_ACEOF
27210/* confdefs.h. */
27211_ACEOF
27212cat confdefs.h >>conftest.$ac_ext
27213cat >>conftest.$ac_ext <<_ACEOF
27214/* end confdefs.h. */
27215int
27216find_stack_direction ()
27217{
27218 static char *addr = 0;
27219 auto char dummy;
27220 if (addr == 0)
27221 {
27222 addr = &dummy;
27223 return find_stack_direction ();
27224 }
John Criswell0021c312004-02-13 21:57:29 +000027225 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027226 return (&dummy > addr) ? 1 : -1;
27227}
John Criswell0021c312004-02-13 21:57:29 +000027228
John Criswell0021c312004-02-13 21:57:29 +000027229int
27230main ()
27231{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027232 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000027233}
27234_ACEOF
27235rm -f conftest$ac_exeext
27236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27237 (eval $ac_link) 2>&5
27238 ac_status=$?
27239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27241 { (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 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000027247else
27248 echo "$as_me: program exited with status $ac_status" >&5
27249echo "$as_me: failed program was:" >&5
27250sed 's/^/| /' conftest.$ac_ext >&5
27251
27252( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027253ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000027254fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027255rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000027256fi
27257fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027258echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27259echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27260
27261cat >>confdefs.h <<_ACEOF
27262#define STACK_DIRECTION $ac_cv_c_stack_direction
27263_ACEOF
27264
27265
John Criswell0021c312004-02-13 21:57:29 +000027266fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027267
27268
27269echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27270echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27271if test "${ac_cv_func_rand48+set}" = set; then
27272 echo $ECHO_N "(cached) $ECHO_C" >&6
27273else
27274 ac_ext=cc
27275ac_cpp='$CXXCPP $CPPFLAGS'
27276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27279
27280 cat >conftest.$ac_ext <<_ACEOF
27281/* confdefs.h. */
27282_ACEOF
27283cat confdefs.h >>conftest.$ac_ext
27284cat >>conftest.$ac_ext <<_ACEOF
27285/* end confdefs.h. */
27286#include <stdlib.h>
27287int
27288main ()
27289{
27290srand48(0);lrand48();drand48();
27291 ;
27292 return 0;
27293}
27294_ACEOF
27295rm -f conftest.$ac_objext
27296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27297 (eval $ac_compile) 2>conftest.er1
27298 ac_status=$?
27299 grep -v '^ *+' conftest.er1 >conftest.err
27300 rm -f conftest.er1
27301 cat conftest.err >&5
27302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 (exit $ac_status); } &&
27304 { ac_try='test -z "$ac_cxx_werror_flag"
27305 || test ! -s conftest.err'
27306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27307 (eval $ac_try) 2>&5
27308 ac_status=$?
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); }; } &&
27311 { ac_try='test -s conftest.$ac_objext'
27312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27313 (eval $ac_try) 2>&5
27314 ac_status=$?
27315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 (exit $ac_status); }; }; then
27317 ac_cv_func_rand48=yes
27318else
27319 echo "$as_me: failed program was:" >&5
27320sed 's/^/| /' conftest.$ac_ext >&5
27321
27322ac_cv_func_rand48=no
27323fi
27324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27325 ac_ext=c
27326ac_cpp='$CPP $CPPFLAGS'
27327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27329ac_compiler_gnu=$ac_cv_c_compiler_gnu
27330
27331fi
27332echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27333echo "${ECHO_T}$ac_cv_func_rand48" >&6
27334
27335if test "$ac_cv_func_rand48" = "yes" ; then
27336
27337cat >>confdefs.h <<\_ACEOF
27338#define HAVE_RAND48 1
27339_ACEOF
27340
27341fi
John Criswell0021c312004-02-13 21:57:29 +000027342
27343
John Criswell7a73b802003-06-30 21:59:07 +000027344echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27345echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27346if test "${ac_cv_cxx_namespaces+set}" = set; then
27347 echo $ECHO_N "(cached) $ECHO_C" >&6
27348else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027349 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000027350ac_cpp='$CXXCPP $CPPFLAGS'
27351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27354
27355 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027356/* confdefs.h. */
27357_ACEOF
27358cat confdefs.h >>conftest.$ac_ext
27359cat >>conftest.$ac_ext <<_ACEOF
27360/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027361namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000027362int
27363main ()
27364{
27365using namespace Outer::Inner; return i;
27366 ;
27367 return 0;
27368}
27369_ACEOF
27370rm -f conftest.$ac_objext
27371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027372 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027373 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027374 grep -v '^ *+' conftest.er1 >conftest.err
27375 rm -f conftest.er1
27376 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027379 { ac_try='test -z "$ac_cxx_werror_flag"
27380 || test ! -s conftest.err'
27381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27382 (eval $ac_try) 2>&5
27383 ac_status=$?
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); }; } &&
27386 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27388 (eval $ac_try) 2>&5
27389 ac_status=$?
27390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); }; }; then
27392 ac_cv_cxx_namespaces=yes
27393else
27394 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027395sed 's/^/| /' conftest.$ac_ext >&5
27396
John Criswell7a73b802003-06-30 21:59:07 +000027397ac_cv_cxx_namespaces=no
27398fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027400 ac_ext=c
27401ac_cpp='$CPP $CPPFLAGS'
27402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27404ac_compiler_gnu=$ac_cv_c_compiler_gnu
27405
27406
27407fi
27408echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27409echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27410if test "$ac_cv_cxx_namespaces" = yes; then
27411
27412cat >>confdefs.h <<\_ACEOF
27413#define HAVE_NAMESPACES
27414_ACEOF
27415
27416fi
27417
Brian Gaeke90583492003-11-10 03:06:28 +000027418echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27419echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27420if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027421 echo $ECHO_N "(cached) $ECHO_C" >&6
27422else
27423
John Criswell7a73b802003-06-30 21:59:07 +000027424 ac_ext=cc
27425ac_cpp='$CXXCPP $CPPFLAGS'
27426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27429
27430 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027431/* confdefs.h. */
27432_ACEOF
27433cat confdefs.h >>conftest.$ac_ext
27434cat >>conftest.$ac_ext <<_ACEOF
27435/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027436#include <ext/hash_map>
27437#ifdef HAVE_NAMESPACES
27438using namespace std;
27439#endif
John Criswell7a73b802003-06-30 21:59:07 +000027440int
27441main ()
27442{
Brian Gaeke90583492003-11-10 03:06:28 +000027443hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027444 ;
27445 return 0;
27446}
27447_ACEOF
27448rm -f conftest.$ac_objext
27449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027450 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027451 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027452 grep -v '^ *+' conftest.er1 >conftest.err
27453 rm -f conftest.er1
27454 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027457 { ac_try='test -z "$ac_cxx_werror_flag"
27458 || test ! -s conftest.err'
27459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27460 (eval $ac_try) 2>&5
27461 ac_status=$?
27462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27463 (exit $ac_status); }; } &&
27464 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27466 (eval $ac_try) 2>&5
27467 ac_status=$?
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027470 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000027471else
27472 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027473sed 's/^/| /' conftest.$ac_ext >&5
27474
Brian Gaeke90583492003-11-10 03:06:28 +000027475ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027476fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027478 ac_ext=c
27479ac_cpp='$CPP $CPPFLAGS'
27480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27482ac_compiler_gnu=$ac_cv_c_compiler_gnu
27483
John Criswell7a73b802003-06-30 21:59:07 +000027484fi
Brian Gaeke90583492003-11-10 03:06:28 +000027485echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27486echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027487 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27488 then
John Criswell9f011862004-09-24 18:28:00 +000027489
27490cat >>confdefs.h <<\_ACEOF
27491#define HAVE_STD_EXT_HASH_MAP 1
27492_ACEOF
27493
27494 else
27495
27496cat >>confdefs.h <<\_ACEOF
27497#define HAVE_STD_EXT_HASH_MAP 0
27498_ACEOF
27499
Brian Gaeke90583492003-11-10 03:06:28 +000027500 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027501
Brian Gaeke90583492003-11-10 03:06:28 +000027502 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27503echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27504if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27505 echo $ECHO_N "(cached) $ECHO_C" >&6
27506else
27507
Brian Gaeke90583492003-11-10 03:06:28 +000027508 ac_ext=cc
27509ac_cpp='$CXXCPP $CPPFLAGS'
27510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27513
27514 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027515/* confdefs.h. */
27516_ACEOF
27517cat confdefs.h >>conftest.$ac_ext
27518cat >>conftest.$ac_ext <<_ACEOF
27519/* end confdefs.h. */
27520#include <ext/hash_map>
27521#ifdef HAVE_NAMESPACES
27522using namespace __gnu_cxx;
27523#endif
27524int
27525main ()
27526{
27527hash_map<int,int> t;
27528 ;
27529 return 0;
27530}
27531_ACEOF
27532rm -f conftest.$ac_objext
27533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027534 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027535 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027536 grep -v '^ *+' conftest.er1 >conftest.err
27537 rm -f conftest.er1
27538 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27540 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027541 { ac_try='test -z "$ac_cxx_werror_flag"
27542 || test ! -s conftest.err'
27543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27544 (eval $ac_try) 2>&5
27545 ac_status=$?
27546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27547 (exit $ac_status); }; } &&
27548 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27550 (eval $ac_try) 2>&5
27551 ac_status=$?
27552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553 (exit $ac_status); }; }; then
27554 ac_cv_cxx_have_gnu_ext_hash_map=yes
27555else
27556 echo "$as_me: failed program was:" >&5
27557sed 's/^/| /' conftest.$ac_ext >&5
27558
27559ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027560fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027562 ac_ext=c
27563ac_cpp='$CPP $CPPFLAGS'
27564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27566ac_compiler_gnu=$ac_cv_c_compiler_gnu
27567
27568fi
27569echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27570echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027571 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27572 then
John Criswell9f011862004-09-24 18:28:00 +000027573
27574cat >>confdefs.h <<\_ACEOF
27575#define HAVE_GNU_EXT_HASH_MAP 1
27576_ACEOF
27577
27578 else
27579
27580cat >>confdefs.h <<\_ACEOF
27581#define HAVE_GNU_EXT_HASH_MAP 0
27582_ACEOF
27583
Brian Gaeke90583492003-11-10 03:06:28 +000027584 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027585
Brian Gaeke90583492003-11-10 03:06:28 +000027586 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27587echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27588if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27589 echo $ECHO_N "(cached) $ECHO_C" >&6
27590else
John Criswell7a73b802003-06-30 21:59:07 +000027591
Brian Gaeke90583492003-11-10 03:06:28 +000027592 ac_ext=cc
27593ac_cpp='$CXXCPP $CPPFLAGS'
27594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27597
27598 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027599/* confdefs.h. */
27600_ACEOF
27601cat confdefs.h >>conftest.$ac_ext
27602cat >>conftest.$ac_ext <<_ACEOF
27603/* end confdefs.h. */
27604#include <hash_map>
27605int
27606main ()
27607{
27608hash_map<int,int> t;
27609 ;
27610 return 0;
27611}
27612_ACEOF
27613rm -f conftest.$ac_objext
27614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027615 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027616 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027617 grep -v '^ *+' conftest.er1 >conftest.err
27618 rm -f conftest.er1
27619 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27621 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027622 { ac_try='test -z "$ac_cxx_werror_flag"
27623 || test ! -s conftest.err'
27624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27625 (eval $ac_try) 2>&5
27626 ac_status=$?
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); }; } &&
27629 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27631 (eval $ac_try) 2>&5
27632 ac_status=$?
27633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634 (exit $ac_status); }; }; then
27635 ac_cv_cxx_have_global_hash_map=yes
27636else
27637 echo "$as_me: failed program was:" >&5
27638sed 's/^/| /' conftest.$ac_ext >&5
27639
27640ac_cv_cxx_have_global_hash_map=no
27641fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027643 ac_ext=c
27644ac_cpp='$CPP $CPPFLAGS'
27645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27647ac_compiler_gnu=$ac_cv_c_compiler_gnu
27648
27649fi
27650echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27651echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027652 if test "$ac_cv_cxx_have_global_hash_map" = yes
27653 then
John Criswell9f011862004-09-24 18:28:00 +000027654
27655cat >>confdefs.h <<\_ACEOF
27656#define HAVE_GLOBAL_HASH_MAP 1
27657_ACEOF
27658
27659 else
27660
27661cat >>confdefs.h <<\_ACEOF
27662#define HAVE_GLOBAL_HASH_MAP 0
27663_ACEOF
27664
Brian Gaeke90583492003-11-10 03:06:28 +000027665 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027666
Brian Gaeke90583492003-11-10 03:06:28 +000027667echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27668echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27669if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027670 echo $ECHO_N "(cached) $ECHO_C" >&6
27671else
27672
John Criswell7a73b802003-06-30 21:59:07 +000027673 ac_ext=cc
27674ac_cpp='$CXXCPP $CPPFLAGS'
27675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27678
27679 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027680/* confdefs.h. */
27681_ACEOF
27682cat confdefs.h >>conftest.$ac_ext
27683cat >>conftest.$ac_ext <<_ACEOF
27684/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027685#include <ext/hash_set>
27686#ifdef HAVE_NAMESPACES
27687using namespace std;
27688#endif
John Criswell7a73b802003-06-30 21:59:07 +000027689int
27690main ()
27691{
Brian Gaeke90583492003-11-10 03:06:28 +000027692hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027693 ;
27694 return 0;
27695}
27696_ACEOF
27697rm -f conftest.$ac_objext
27698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027699 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027700 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027701 grep -v '^ *+' conftest.er1 >conftest.err
27702 rm -f conftest.er1
27703 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027706 { ac_try='test -z "$ac_cxx_werror_flag"
27707 || test ! -s conftest.err'
27708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27709 (eval $ac_try) 2>&5
27710 ac_status=$?
27711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712 (exit $ac_status); }; } &&
27713 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27715 (eval $ac_try) 2>&5
27716 ac_status=$?
27717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027719 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027720else
27721 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027722sed 's/^/| /' conftest.$ac_ext >&5
27723
Brian Gaeke90583492003-11-10 03:06:28 +000027724ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027725fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027727 ac_ext=c
27728ac_cpp='$CPP $CPPFLAGS'
27729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27731ac_compiler_gnu=$ac_cv_c_compiler_gnu
27732
27733fi
27734echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27735echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027736 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27737 then
John Criswell9f011862004-09-24 18:28:00 +000027738
27739cat >>confdefs.h <<\_ACEOF
27740#define HAVE_STD_EXT_HASH_SET 1
27741_ACEOF
27742
27743 else
27744
27745cat >>confdefs.h <<\_ACEOF
27746#define HAVE_STD_EXT_HASH_SET 0
27747_ACEOF
27748
Brian Gaeke90583492003-11-10 03:06:28 +000027749 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027750
Brian Gaeke90583492003-11-10 03:06:28 +000027751 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27752echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27753if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27754 echo $ECHO_N "(cached) $ECHO_C" >&6
27755else
27756
Brian Gaeke90583492003-11-10 03:06:28 +000027757 ac_ext=cc
27758ac_cpp='$CXXCPP $CPPFLAGS'
27759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27762
John Criswell7a73b802003-06-30 21:59:07 +000027763 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027764/* confdefs.h. */
27765_ACEOF
27766cat confdefs.h >>conftest.$ac_ext
27767cat >>conftest.$ac_ext <<_ACEOF
27768/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027769#include <ext/hash_set>
27770#ifdef HAVE_NAMESPACES
27771using namespace __gnu_cxx;
27772#endif
John Criswell7a73b802003-06-30 21:59:07 +000027773int
27774main ()
27775{
Brian Gaeke90583492003-11-10 03:06:28 +000027776hash_set<int> t;
27777 ;
27778 return 0;
27779}
27780_ACEOF
27781rm -f conftest.$ac_objext
27782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027783 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027784 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027785 grep -v '^ *+' conftest.er1 >conftest.err
27786 rm -f conftest.er1
27787 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027790 { ac_try='test -z "$ac_cxx_werror_flag"
27791 || test ! -s conftest.err'
27792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27793 (eval $ac_try) 2>&5
27794 ac_status=$?
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; } &&
27797 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27799 (eval $ac_try) 2>&5
27800 ac_status=$?
27801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802 (exit $ac_status); }; }; then
27803 ac_cv_cxx_have_gnu_ext_hash_set=yes
27804else
27805 echo "$as_me: failed program was:" >&5
27806sed 's/^/| /' conftest.$ac_ext >&5
27807
27808ac_cv_cxx_have_gnu_ext_hash_set=no
27809fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027811 ac_ext=c
27812ac_cpp='$CPP $CPPFLAGS'
27813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27815ac_compiler_gnu=$ac_cv_c_compiler_gnu
27816
27817fi
27818echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27819echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027820 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27821 then
John Criswell9f011862004-09-24 18:28:00 +000027822
27823cat >>confdefs.h <<\_ACEOF
27824#define HAVE_GNU_EXT_HASH_SET 1
27825_ACEOF
27826
27827 else
27828
27829cat >>confdefs.h <<\_ACEOF
27830#define HAVE_GNU_EXT_HASH_SET 0
27831_ACEOF
27832
Brian Gaeke90583492003-11-10 03:06:28 +000027833 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027834
Brian Gaeke90583492003-11-10 03:06:28 +000027835 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27836echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27837if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27838 echo $ECHO_N "(cached) $ECHO_C" >&6
27839else
27840
Brian Gaeke90583492003-11-10 03:06:28 +000027841 ac_ext=cc
27842ac_cpp='$CXXCPP $CPPFLAGS'
27843ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27844ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27845ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27846
27847 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027848/* confdefs.h. */
27849_ACEOF
27850cat confdefs.h >>conftest.$ac_ext
27851cat >>conftest.$ac_ext <<_ACEOF
27852/* end confdefs.h. */
27853#include <hash_set>
27854int
27855main ()
27856{
John Criswell7a73b802003-06-30 21:59:07 +000027857hash_set<int> t; return 0;
27858 ;
27859 return 0;
27860}
27861_ACEOF
27862rm -f conftest.$ac_objext
27863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027864 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027865 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027866 grep -v '^ *+' conftest.er1 >conftest.err
27867 rm -f conftest.er1
27868 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27870 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027871 { ac_try='test -z "$ac_cxx_werror_flag"
27872 || test ! -s conftest.err'
27873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27874 (eval $ac_try) 2>&5
27875 ac_status=$?
27876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27877 (exit $ac_status); }; } &&
27878 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27880 (eval $ac_try) 2>&5
27881 ac_status=$?
27882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27883 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027884 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027885else
27886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027887sed 's/^/| /' conftest.$ac_ext >&5
27888
Brian Gaeke90583492003-11-10 03:06:28 +000027889ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027890fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027892 ac_ext=c
27893ac_cpp='$CPP $CPPFLAGS'
27894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27896ac_compiler_gnu=$ac_cv_c_compiler_gnu
27897
John Criswell7a73b802003-06-30 21:59:07 +000027898fi
Brian Gaeke90583492003-11-10 03:06:28 +000027899echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
27900echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027901 if test "$ac_cv_cxx_have_global_hash_set" = yes
27902 then
John Criswell9f011862004-09-24 18:28:00 +000027903
27904cat >>confdefs.h <<\_ACEOF
27905#define HAVE_GLOBAL_HASH_SET 1
27906_ACEOF
27907
27908 else
27909
27910cat >>confdefs.h <<\_ACEOF
27911#define HAVE_GLOBAL_HASH_SET 0
27912_ACEOF
27913
Brian Gaeke90583492003-11-10 03:06:28 +000027914 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027915
John Criswell7a73b802003-06-30 21:59:07 +000027916echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
27917echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
27918if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
27919 echo $ECHO_N "(cached) $ECHO_C" >&6
27920else
27921
John Criswell7a73b802003-06-30 21:59:07 +000027922 ac_ext=cc
27923ac_cpp='$CXXCPP $CPPFLAGS'
27924ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27925ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27926ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27927
27928 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027929/* confdefs.h. */
27930_ACEOF
27931cat confdefs.h >>conftest.$ac_ext
27932cat >>conftest.$ac_ext <<_ACEOF
27933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027934#include <iterator>
27935#ifdef HAVE_NAMESPACES
27936using namespace std;
27937#endif
John Criswell7a73b802003-06-30 21:59:07 +000027938int
27939main ()
27940{
27941iterator<int,int,int> t; return 0;
27942 ;
27943 return 0;
27944}
27945_ACEOF
27946rm -f conftest.$ac_objext
27947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027948 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027949 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027950 grep -v '^ *+' conftest.er1 >conftest.err
27951 rm -f conftest.er1
27952 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27954 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027955 { ac_try='test -z "$ac_cxx_werror_flag"
27956 || test ! -s conftest.err'
27957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27958 (eval $ac_try) 2>&5
27959 ac_status=$?
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); }; } &&
27962 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964 (eval $ac_try) 2>&5
27965 ac_status=$?
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; }; then
27968 ac_cv_cxx_have_std_iterator=yes
27969else
27970 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027971sed 's/^/| /' conftest.$ac_ext >&5
27972
John Criswell7a73b802003-06-30 21:59:07 +000027973ac_cv_cxx_have_std_iterator=no
27974fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027976 ac_ext=c
27977ac_cpp='$CPP $CPPFLAGS'
27978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27980ac_compiler_gnu=$ac_cv_c_compiler_gnu
27981
27982
27983fi
27984echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
27985echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000027986if test "$ac_cv_cxx_have_std_iterator" = yes
27987then
John Criswell40468462004-09-24 21:19:06 +000027988
27989cat >>confdefs.h <<\_ACEOF
27990#define HAVE_STD_ITERATOR 1
27991_ACEOF
27992
27993else
27994
27995cat >>confdefs.h <<\_ACEOF
27996#define HAVE_STD_ITERATOR 0
27997_ACEOF
27998
John Criswell7a73b802003-06-30 21:59:07 +000027999fi
28000
28001echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28002echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28003if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28004 echo $ECHO_N "(cached) $ECHO_C" >&6
28005else
28006
John Criswell7a73b802003-06-30 21:59:07 +000028007 ac_ext=cc
28008ac_cpp='$CXXCPP $CPPFLAGS'
28009ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28010ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28011ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28012
28013 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028014/* confdefs.h. */
28015_ACEOF
28016cat confdefs.h >>conftest.$ac_ext
28017cat >>conftest.$ac_ext <<_ACEOF
28018/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028019#include <iterator>
28020#ifdef HAVE_NAMESPACES
28021using namespace std;
28022#endif
John Criswell7a73b802003-06-30 21:59:07 +000028023int
28024main ()
28025{
John Criswellc78022e2003-07-29 19:11:58 +000028026bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028027 ;
28028 return 0;
28029}
28030_ACEOF
28031rm -f conftest.$ac_objext
28032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028033 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028034 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028035 grep -v '^ *+' conftest.er1 >conftest.err
28036 rm -f conftest.er1
28037 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28039 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028040 { ac_try='test -z "$ac_cxx_werror_flag"
28041 || test ! -s conftest.err'
28042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28043 (eval $ac_try) 2>&5
28044 ac_status=$?
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); }; } &&
28047 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28049 (eval $ac_try) 2>&5
28050 ac_status=$?
28051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052 (exit $ac_status); }; }; then
28053 ac_cv_cxx_have_bi_iterator=yes
28054else
28055 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028056sed 's/^/| /' conftest.$ac_ext >&5
28057
John Criswell7a73b802003-06-30 21:59:07 +000028058ac_cv_cxx_have_bi_iterator=no
28059fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028061 ac_ext=c
28062ac_cpp='$CPP $CPPFLAGS'
28063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28065ac_compiler_gnu=$ac_cv_c_compiler_gnu
28066
28067
28068fi
28069echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28070echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028071if test "$ac_cv_cxx_have_bi_iterator" = yes
28072then
John Criswell40468462004-09-24 21:19:06 +000028073
28074cat >>confdefs.h <<\_ACEOF
28075#define HAVE_BI_ITERATOR 1
28076_ACEOF
28077
28078else
28079
28080cat >>confdefs.h <<\_ACEOF
28081#define HAVE_BI_ITERATOR 0
28082_ACEOF
28083
John Criswell7a73b802003-06-30 21:59:07 +000028084fi
28085
28086echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28087echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28088if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28089 echo $ECHO_N "(cached) $ECHO_C" >&6
28090else
28091
John Criswell7a73b802003-06-30 21:59:07 +000028092 ac_ext=cc
28093ac_cpp='$CXXCPP $CPPFLAGS'
28094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28097
28098 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028099/* confdefs.h. */
28100_ACEOF
28101cat confdefs.h >>conftest.$ac_ext
28102cat >>conftest.$ac_ext <<_ACEOF
28103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028104#include <iterator>
28105#ifdef HAVE_NAMESPACES
28106using namespace std;
28107#endif
John Criswell7a73b802003-06-30 21:59:07 +000028108int
28109main ()
28110{
John Criswellc78022e2003-07-29 19:11:58 +000028111forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028112 ;
28113 return 0;
28114}
28115_ACEOF
28116rm -f conftest.$ac_objext
28117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028118 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028119 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028120 grep -v '^ *+' conftest.er1 >conftest.err
28121 rm -f conftest.er1
28122 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028125 { ac_try='test -z "$ac_cxx_werror_flag"
28126 || test ! -s conftest.err'
28127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28128 (eval $ac_try) 2>&5
28129 ac_status=$?
28130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28131 (exit $ac_status); }; } &&
28132 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28134 (eval $ac_try) 2>&5
28135 ac_status=$?
28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137 (exit $ac_status); }; }; then
28138 ac_cv_cxx_have_fwd_iterator=yes
28139else
28140 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028141sed 's/^/| /' conftest.$ac_ext >&5
28142
John Criswell7a73b802003-06-30 21:59:07 +000028143ac_cv_cxx_have_fwd_iterator=no
28144fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028146 ac_ext=c
28147ac_cpp='$CPP $CPPFLAGS'
28148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28150ac_compiler_gnu=$ac_cv_c_compiler_gnu
28151
28152
28153fi
28154echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28155echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028156if test "$ac_cv_cxx_have_fwd_iterator" = yes
28157then
John Criswell40468462004-09-24 21:19:06 +000028158
28159cat >>confdefs.h <<\_ACEOF
28160#define HAVE_FWD_ITERATOR 1
28161_ACEOF
28162
28163else
28164
28165cat >>confdefs.h <<\_ACEOF
28166#define HAVE_FWD_ITERATOR 0
28167_ACEOF
28168
John Criswell7a73b802003-06-30 21:59:07 +000028169fi
28170
28171
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028172echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28173echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28174if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28175 echo $ECHO_N "(cached) $ECHO_C" >&6
28176else
28177 ac_ext=cc
28178ac_cpp='$CXXCPP $CPPFLAGS'
28179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28182
Reid Spencerabec8f92004-10-27 23:03:44 +000028183 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028184/* confdefs.h. */
28185_ACEOF
28186cat confdefs.h >>conftest.$ac_ext
28187cat >>conftest.$ac_ext <<_ACEOF
28188/* end confdefs.h. */
28189#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028190int
28191main ()
28192{
28193float f; isnan(f);
28194 ;
28195 return 0;
28196}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028197_ACEOF
28198rm -f conftest.$ac_objext
28199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028200 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028202 grep -v '^ *+' conftest.er1 >conftest.err
28203 rm -f conftest.er1
28204 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028207 { ac_try='test -z "$ac_cxx_werror_flag"
28208 || test ! -s conftest.err'
28209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28210 (eval $ac_try) 2>&5
28211 ac_status=$?
28212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); }; } &&
28214 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28216 (eval $ac_try) 2>&5
28217 ac_status=$?
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); }; }; then
28220 ac_cv_func_isnan_in_math_h=yes
28221else
28222 echo "$as_me: failed program was:" >&5
28223sed 's/^/| /' conftest.$ac_ext >&5
28224
28225ac_cv_func_isnan_in_math_h=no
28226fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028228 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028229ac_cpp='$CPP $CPPFLAGS'
28230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28232ac_compiler_gnu=$ac_cv_c_compiler_gnu
28233
28234fi
28235echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28236echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028237
28238
28239if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028240
28241cat >>confdefs.h <<\_ACEOF
28242#define HAVE_ISNAN_IN_MATH_H 1
28243_ACEOF
28244
Reid Spencerabec8f92004-10-27 23:03:44 +000028245fi
28246
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028247echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28248echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28249if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28250 echo $ECHO_N "(cached) $ECHO_C" >&6
28251else
28252 ac_ext=cc
28253ac_cpp='$CXXCPP $CPPFLAGS'
28254ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28255ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28256ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28257
Reid Spencerabec8f92004-10-27 23:03:44 +000028258 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028259/* confdefs.h. */
28260_ACEOF
28261cat confdefs.h >>conftest.$ac_ext
28262cat >>conftest.$ac_ext <<_ACEOF
28263/* end confdefs.h. */
28264#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028265int
28266main ()
28267{
28268float f; isnan(f);
28269 ;
28270 return 0;
28271}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028272_ACEOF
28273rm -f conftest.$ac_objext
28274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028275 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028276 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028277 grep -v '^ *+' conftest.er1 >conftest.err
28278 rm -f conftest.er1
28279 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028282 { ac_try='test -z "$ac_cxx_werror_flag"
28283 || test ! -s conftest.err'
28284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28285 (eval $ac_try) 2>&5
28286 ac_status=$?
28287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28288 (exit $ac_status); }; } &&
28289 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28291 (eval $ac_try) 2>&5
28292 ac_status=$?
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); }; }; then
28295 ac_cv_func_isnan_in_cmath=yes
28296else
28297 echo "$as_me: failed program was:" >&5
28298sed 's/^/| /' conftest.$ac_ext >&5
28299
28300ac_cv_func_isnan_in_cmath=no
28301fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028303 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028304ac_cpp='$CPP $CPPFLAGS'
28305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28307ac_compiler_gnu=$ac_cv_c_compiler_gnu
28308
28309fi
28310echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28311echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028312
28313if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028314
28315cat >>confdefs.h <<\_ACEOF
28316#define HAVE_ISNAN_IN_CMATH 1
28317_ACEOF
28318
Reid Spencerabec8f92004-10-27 23:03:44 +000028319fi
28320
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028321echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28322echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28323if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28324 echo $ECHO_N "(cached) $ECHO_C" >&6
28325else
28326 ac_ext=cc
28327ac_cpp='$CXXCPP $CPPFLAGS'
28328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28331
Reid Spencerabec8f92004-10-27 23:03:44 +000028332 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028333/* confdefs.h. */
28334_ACEOF
28335cat confdefs.h >>conftest.$ac_ext
28336cat >>conftest.$ac_ext <<_ACEOF
28337/* end confdefs.h. */
28338#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028339int
28340main ()
28341{
28342float f; std::isnan(f);
28343 ;
28344 return 0;
28345}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028346_ACEOF
28347rm -f conftest.$ac_objext
28348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028349 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028350 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028351 grep -v '^ *+' conftest.er1 >conftest.err
28352 rm -f conftest.er1
28353 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028356 { ac_try='test -z "$ac_cxx_werror_flag"
28357 || test ! -s conftest.err'
28358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28359 (eval $ac_try) 2>&5
28360 ac_status=$?
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); }; } &&
28363 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28365 (eval $ac_try) 2>&5
28366 ac_status=$?
28367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); }; }; then
28369 ac_cv_func_std_isnan_in_cmath=yes
28370else
28371 echo "$as_me: failed program was:" >&5
28372sed 's/^/| /' conftest.$ac_ext >&5
28373
28374ac_cv_func_std_isnan_in_cmath=no
28375fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028377 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028378ac_cpp='$CPP $CPPFLAGS'
28379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28381ac_compiler_gnu=$ac_cv_c_compiler_gnu
28382
28383fi
28384echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28385echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028386
28387if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028388
28389cat >>confdefs.h <<\_ACEOF
28390#define HAVE_STD_ISNAN_IN_CMATH 1
28391_ACEOF
28392
Reid Spencerabec8f92004-10-27 23:03:44 +000028393fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028394
28395
Brian Gaeke52a551d2004-07-21 03:14:12 +000028396echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28397echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28398if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28399 echo $ECHO_N "(cached) $ECHO_C" >&6
28400else
28401 ac_ext=cc
28402ac_cpp='$CXXCPP $CPPFLAGS'
28403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28406
Reid Spencerabec8f92004-10-27 23:03:44 +000028407 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028408/* confdefs.h. */
28409_ACEOF
28410cat confdefs.h >>conftest.$ac_ext
28411cat >>conftest.$ac_ext <<_ACEOF
28412/* end confdefs.h. */
28413#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028414int
28415main ()
28416{
28417float f; isinf(f);
28418 ;
28419 return 0;
28420}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028421_ACEOF
28422rm -f conftest.$ac_objext
28423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028424 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028425 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028426 grep -v '^ *+' conftest.er1 >conftest.err
28427 rm -f conftest.er1
28428 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028431 { ac_try='test -z "$ac_cxx_werror_flag"
28432 || test ! -s conftest.err'
28433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28434 (eval $ac_try) 2>&5
28435 ac_status=$?
28436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); }; } &&
28438 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440 (eval $ac_try) 2>&5
28441 ac_status=$?
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); }; }; then
28444 ac_cv_func_isinf_in_math_h=yes
28445else
28446 echo "$as_me: failed program was:" >&5
28447sed 's/^/| /' conftest.$ac_ext >&5
28448
28449ac_cv_func_isinf_in_math_h=no
28450fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028452 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028453ac_cpp='$CPP $CPPFLAGS'
28454ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28455ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28456ac_compiler_gnu=$ac_cv_c_compiler_gnu
28457
28458fi
28459echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28460echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028461
28462if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028463
28464cat >>confdefs.h <<\_ACEOF
28465#define HAVE_ISINF_IN_MATH_H 1
28466_ACEOF
28467
Reid Spencerabec8f92004-10-27 23:03:44 +000028468fi
28469
Brian Gaeke52a551d2004-07-21 03:14:12 +000028470echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28471echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28472if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28473 echo $ECHO_N "(cached) $ECHO_C" >&6
28474else
28475 ac_ext=cc
28476ac_cpp='$CXXCPP $CPPFLAGS'
28477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28480
Reid Spencerabec8f92004-10-27 23:03:44 +000028481 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028482/* confdefs.h. */
28483_ACEOF
28484cat confdefs.h >>conftest.$ac_ext
28485cat >>conftest.$ac_ext <<_ACEOF
28486/* end confdefs.h. */
28487#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028488int
28489main ()
28490{
28491float f; isinf(f);
28492 ;
28493 return 0;
28494}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028495_ACEOF
28496rm -f conftest.$ac_objext
28497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028498 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028499 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028500 grep -v '^ *+' conftest.er1 >conftest.err
28501 rm -f conftest.er1
28502 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028505 { ac_try='test -z "$ac_cxx_werror_flag"
28506 || test ! -s conftest.err'
28507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28508 (eval $ac_try) 2>&5
28509 ac_status=$?
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); }; } &&
28512 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514 (eval $ac_try) 2>&5
28515 ac_status=$?
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); }; }; then
28518 ac_cv_func_isinf_in_cmath=yes
28519else
28520 echo "$as_me: failed program was:" >&5
28521sed 's/^/| /' conftest.$ac_ext >&5
28522
28523ac_cv_func_isinf_in_cmath=no
28524fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028526 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028527ac_cpp='$CPP $CPPFLAGS'
28528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28530ac_compiler_gnu=$ac_cv_c_compiler_gnu
28531
28532fi
28533echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28534echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028535
28536if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028537
28538cat >>confdefs.h <<\_ACEOF
28539#define HAVE_ISINF_IN_CMATH 1
28540_ACEOF
28541
Reid Spencerabec8f92004-10-27 23:03:44 +000028542fi
28543
Brian Gaeke52a551d2004-07-21 03:14:12 +000028544echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28545echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28546if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28547 echo $ECHO_N "(cached) $ECHO_C" >&6
28548else
28549 ac_ext=cc
28550ac_cpp='$CXXCPP $CPPFLAGS'
28551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28554
Reid Spencerabec8f92004-10-27 23:03:44 +000028555 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028556/* confdefs.h. */
28557_ACEOF
28558cat confdefs.h >>conftest.$ac_ext
28559cat >>conftest.$ac_ext <<_ACEOF
28560/* end confdefs.h. */
28561#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028562int
28563main ()
28564{
28565float f; std::isinf(f)}
28566 ;
28567 return 0;
28568}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028569_ACEOF
28570rm -f conftest.$ac_objext
28571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028572 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028573 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028574 grep -v '^ *+' conftest.er1 >conftest.err
28575 rm -f conftest.er1
28576 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028579 { ac_try='test -z "$ac_cxx_werror_flag"
28580 || test ! -s conftest.err'
28581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28582 (eval $ac_try) 2>&5
28583 ac_status=$?
28584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28585 (exit $ac_status); }; } &&
28586 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28588 (eval $ac_try) 2>&5
28589 ac_status=$?
28590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591 (exit $ac_status); }; }; then
28592 ac_cv_func_std_isinf_in_cmath=yes
28593else
28594 echo "$as_me: failed program was:" >&5
28595sed 's/^/| /' conftest.$ac_ext >&5
28596
28597ac_cv_func_std_isinf_in_cmath=no
28598fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028600 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028601ac_cpp='$CPP $CPPFLAGS'
28602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28604ac_compiler_gnu=$ac_cv_c_compiler_gnu
28605
28606fi
28607echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28608echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028609
28610if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028611
28612cat >>confdefs.h <<\_ACEOF
28613#define HAVE_STD_ISINF_IN_CMATH 1
28614_ACEOF
28615
Reid Spencerabec8f92004-10-27 23:03:44 +000028616fi
28617
Brian Gaeked59a6472004-07-21 03:33:58 +000028618echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28619echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28620if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28621 echo $ECHO_N "(cached) $ECHO_C" >&6
28622else
28623 ac_ext=cc
28624ac_cpp='$CXXCPP $CPPFLAGS'
28625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28628
Reid Spencerabec8f92004-10-27 23:03:44 +000028629 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000028630/* confdefs.h. */
28631_ACEOF
28632cat confdefs.h >>conftest.$ac_ext
28633cat >>conftest.$ac_ext <<_ACEOF
28634/* end confdefs.h. */
28635#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028636int
28637main ()
28638{
28639float f; finite(f);
28640 ;
28641 return 0;
28642}
Brian Gaeked59a6472004-07-21 03:33:58 +000028643_ACEOF
28644rm -f conftest.$ac_objext
28645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028646 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000028647 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028648 grep -v '^ *+' conftest.er1 >conftest.err
28649 rm -f conftest.er1
28650 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000028651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028653 { ac_try='test -z "$ac_cxx_werror_flag"
28654 || test ! -s conftest.err'
28655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28656 (eval $ac_try) 2>&5
28657 ac_status=$?
28658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659 (exit $ac_status); }; } &&
28660 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000028661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28662 (eval $ac_try) 2>&5
28663 ac_status=$?
28664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28665 (exit $ac_status); }; }; then
28666 ac_cv_func_finite_in_ieeefp_h=yes
28667else
28668 echo "$as_me: failed program was:" >&5
28669sed 's/^/| /' conftest.$ac_ext >&5
28670
28671ac_cv_func_finite_in_ieeefp_h=no
28672fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028674 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000028675ac_cpp='$CPP $CPPFLAGS'
28676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28678ac_compiler_gnu=$ac_cv_c_compiler_gnu
28679
28680fi
28681echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28682echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028683
Brian Gaeke6802b552004-10-28 05:06:45 +000028684if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000028685
28686cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000028687#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000028688_ACEOF
28689
Reid Spencerabec8f92004-10-27 23:03:44 +000028690fi
28691
28692
28693
John Criswell7a73b802003-06-30 21:59:07 +000028694
28695
28696for ac_header in stdlib.h unistd.h
28697do
28698as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28699if eval "test \"\${$as_ac_Header+set}\" = set"; then
28700 echo "$as_me:$LINENO: checking for $ac_header" >&5
28701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28702if eval "test \"\${$as_ac_Header+set}\" = set"; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28704fi
28705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28706echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28707else
28708 # Is the header compilable?
28709echo "$as_me:$LINENO: checking $ac_header usability" >&5
28710echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28711cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028712/* confdefs.h. */
28713_ACEOF
28714cat confdefs.h >>conftest.$ac_ext
28715cat >>conftest.$ac_ext <<_ACEOF
28716/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028717$ac_includes_default
28718#include <$ac_header>
28719_ACEOF
28720rm -f conftest.$ac_objext
28721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028722 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028723 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028724 grep -v '^ *+' conftest.er1 >conftest.err
28725 rm -f conftest.er1
28726 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028729 { ac_try='test -z "$ac_c_werror_flag"
28730 || test ! -s conftest.err'
28731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28732 (eval $ac_try) 2>&5
28733 ac_status=$?
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); }; } &&
28736 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28738 (eval $ac_try) 2>&5
28739 ac_status=$?
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); }; }; then
28742 ac_header_compiler=yes
28743else
28744 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028745sed 's/^/| /' conftest.$ac_ext >&5
28746
John Criswell7a73b802003-06-30 21:59:07 +000028747ac_header_compiler=no
28748fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028750echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28751echo "${ECHO_T}$ac_header_compiler" >&6
28752
28753# Is the header present?
28754echo "$as_me:$LINENO: checking $ac_header presence" >&5
28755echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28756cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028757/* confdefs.h. */
28758_ACEOF
28759cat confdefs.h >>conftest.$ac_ext
28760cat >>conftest.$ac_ext <<_ACEOF
28761/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028762#include <$ac_header>
28763_ACEOF
28764if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28765 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28766 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000028767 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000028768 rm -f conftest.er1
28769 cat conftest.err >&5
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); } >/dev/null; then
28772 if test -s conftest.err; then
28773 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028774 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000028775 else
28776 ac_cpp_err=
28777 fi
28778else
28779 ac_cpp_err=yes
28780fi
28781if test -z "$ac_cpp_err"; then
28782 ac_header_preproc=yes
28783else
28784 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028785sed 's/^/| /' conftest.$ac_ext >&5
28786
John Criswell7a73b802003-06-30 21:59:07 +000028787 ac_header_preproc=no
28788fi
28789rm -f conftest.err conftest.$ac_ext
28790echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28791echo "${ECHO_T}$ac_header_preproc" >&6
28792
28793# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028794case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28795 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000028796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28797echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28799echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28800 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028801 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028802 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000028803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28804echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28806echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28808echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28810echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000028811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28812echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28814echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000028815 (
28816 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028817## ----------------------------------- ##
28818## Report this to llvmbugs@cs.uiuc.edu ##
28819## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000028820_ASBOX
28821 ) |
28822 sed "s/^/$as_me: WARNING: /" >&2
28823 ;;
John Criswell7a73b802003-06-30 21:59:07 +000028824esac
28825echo "$as_me:$LINENO: checking for $ac_header" >&5
28826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28827if eval "test \"\${$as_ac_Header+set}\" = set"; then
28828 echo $ECHO_N "(cached) $ECHO_C" >&6
28829else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028830 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000028831fi
28832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28834
28835fi
28836if test `eval echo '${'$as_ac_Header'}'` = yes; then
28837 cat >>confdefs.h <<_ACEOF
28838#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28839_ACEOF
28840
28841fi
28842
28843done
28844
28845
28846for ac_func in getpagesize
28847do
28848as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28849echo "$as_me:$LINENO: checking for $ac_func" >&5
28850echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28851if eval "test \"\${$as_ac_var+set}\" = set"; then
28852 echo $ECHO_N "(cached) $ECHO_C" >&6
28853else
28854 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028855/* confdefs.h. */
28856_ACEOF
28857cat confdefs.h >>conftest.$ac_ext
28858cat >>conftest.$ac_ext <<_ACEOF
28859/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028860/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28862#define $ac_func innocuous_$ac_func
28863
John Criswell7a73b802003-06-30 21:59:07 +000028864/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000028865 which can conflict with char $ac_func (); below.
28866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28867 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028868
John Criswell0c38eaf2003-09-10 15:17:25 +000028869#ifdef __STDC__
28870# include <limits.h>
28871#else
28872# include <assert.h>
28873#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000028874
28875#undef $ac_func
28876
John Criswell7a73b802003-06-30 21:59:07 +000028877/* Override any gcc2 internal prototype to avoid an error. */
28878#ifdef __cplusplus
28879extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000028880{
John Criswell7a73b802003-06-30 21:59:07 +000028881#endif
28882/* We use char because int might match the return type of a gcc2
28883 builtin and then its argument prototype would still apply. */
28884char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000028885/* The GNU C library defines this for functions which it implements
28886 to always fail with ENOSYS. Some functions are actually named
28887 something starting with __ and the normal name is an alias. */
28888#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28889choke me
28890#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028891char (*f) () = $ac_func;
28892#endif
28893#ifdef __cplusplus
28894}
John Criswell7a73b802003-06-30 21:59:07 +000028895#endif
28896
John Criswell0c38eaf2003-09-10 15:17:25 +000028897int
28898main ()
28899{
28900return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028901 ;
28902 return 0;
28903}
28904_ACEOF
28905rm -f conftest.$ac_objext conftest$ac_exeext
28906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028907 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028908 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028909 grep -v '^ *+' conftest.er1 >conftest.err
28910 rm -f conftest.er1
28911 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028914 { ac_try='test -z "$ac_c_werror_flag"
28915 || test ! -s conftest.err'
28916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28917 (eval $ac_try) 2>&5
28918 ac_status=$?
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); }; } &&
28921 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28923 (eval $ac_try) 2>&5
28924 ac_status=$?
28925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); }; }; then
28927 eval "$as_ac_var=yes"
28928else
28929 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028930sed 's/^/| /' conftest.$ac_ext >&5
28931
John Criswell7a73b802003-06-30 21:59:07 +000028932eval "$as_ac_var=no"
28933fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028934rm -f conftest.err conftest.$ac_objext \
28935 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028936fi
28937echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28938echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28939if test `eval echo '${'$as_ac_var'}'` = yes; then
28940 cat >>confdefs.h <<_ACEOF
28941#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28942_ACEOF
28943
28944fi
28945done
28946
28947echo "$as_me:$LINENO: checking for working mmap" >&5
28948echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
28949if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
28950 echo $ECHO_N "(cached) $ECHO_C" >&6
28951else
28952 if test "$cross_compiling" = yes; then
28953 ac_cv_func_mmap_fixed_mapped=no
28954else
28955 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028956/* confdefs.h. */
28957_ACEOF
28958cat confdefs.h >>conftest.$ac_ext
28959cat >>conftest.$ac_ext <<_ACEOF
28960/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028961$ac_includes_default
28962/* malloc might have been renamed as rpl_malloc. */
28963#undef malloc
28964
28965/* Thanks to Mike Haertel and Jim Avera for this test.
28966 Here is a matrix of mmap possibilities:
28967 mmap private not fixed
28968 mmap private fixed at somewhere currently unmapped
28969 mmap private fixed at somewhere already mapped
28970 mmap shared not fixed
28971 mmap shared fixed at somewhere currently unmapped
28972 mmap shared fixed at somewhere already mapped
28973 For private mappings, we should verify that changes cannot be read()
28974 back from the file, nor mmap's back from the file at a different
28975 address. (There have been systems where private was not correctly
28976 implemented like the infamous i386 svr4.0, and systems where the
28977 VM page cache was not coherent with the file system buffer cache
28978 like early versions of FreeBSD and possibly contemporary NetBSD.)
28979 For shared mappings, we should conversely verify that changes get
28980 propagated back to all the places they're supposed to be.
28981
28982 Grep wants private fixed already mapped.
28983 The main things grep needs to know about mmap are:
28984 * does it exist and is it safe to write into the mmap'd area
28985 * how to use it (BSD variants) */
28986
28987#include <fcntl.h>
28988#include <sys/mman.h>
28989
28990#if !STDC_HEADERS && !HAVE_STDLIB_H
28991char *malloc ();
28992#endif
28993
28994/* This mess was copied from the GNU getpagesize.h. */
28995#if !HAVE_GETPAGESIZE
28996/* Assume that all systems that can run configure have sys/param.h. */
28997# if !HAVE_SYS_PARAM_H
28998# define HAVE_SYS_PARAM_H 1
28999# endif
29000
29001# ifdef _SC_PAGESIZE
29002# define getpagesize() sysconf(_SC_PAGESIZE)
29003# else /* no _SC_PAGESIZE */
29004# if HAVE_SYS_PARAM_H
29005# include <sys/param.h>
29006# ifdef EXEC_PAGESIZE
29007# define getpagesize() EXEC_PAGESIZE
29008# else /* no EXEC_PAGESIZE */
29009# ifdef NBPG
29010# define getpagesize() NBPG * CLSIZE
29011# ifndef CLSIZE
29012# define CLSIZE 1
29013# endif /* no CLSIZE */
29014# else /* no NBPG */
29015# ifdef NBPC
29016# define getpagesize() NBPC
29017# else /* no NBPC */
29018# ifdef PAGESIZE
29019# define getpagesize() PAGESIZE
29020# endif /* PAGESIZE */
29021# endif /* no NBPC */
29022# endif /* no NBPG */
29023# endif /* no EXEC_PAGESIZE */
29024# else /* no HAVE_SYS_PARAM_H */
29025# define getpagesize() 8192 /* punt totally */
29026# endif /* no HAVE_SYS_PARAM_H */
29027# endif /* no _SC_PAGESIZE */
29028
29029#endif /* no HAVE_GETPAGESIZE */
29030
29031int
29032main ()
29033{
29034 char *data, *data2, *data3;
29035 int i, pagesize;
29036 int fd;
29037
29038 pagesize = getpagesize ();
29039
29040 /* First, make a file with some known garbage in it. */
29041 data = (char *) malloc (pagesize);
29042 if (!data)
29043 exit (1);
29044 for (i = 0; i < pagesize; ++i)
29045 *(data + i) = rand ();
29046 umask (0);
29047 fd = creat ("conftest.mmap", 0600);
29048 if (fd < 0)
29049 exit (1);
29050 if (write (fd, data, pagesize) != pagesize)
29051 exit (1);
29052 close (fd);
29053
29054 /* Next, try to mmap the file at a fixed address which already has
29055 something else allocated at it. If we can, also make sure that
29056 we see the same garbage. */
29057 fd = open ("conftest.mmap", O_RDWR);
29058 if (fd < 0)
29059 exit (1);
29060 data2 = (char *) malloc (2 * pagesize);
29061 if (!data2)
29062 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029063 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029064 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029065 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029066 exit (1);
29067 for (i = 0; i < pagesize; ++i)
29068 if (*(data + i) != *(data2 + i))
29069 exit (1);
29070
29071 /* Finally, make sure that changes to the mapped area do not
29072 percolate back to the file as seen by read(). (This is a bug on
29073 some variants of i386 svr4.0.) */
29074 for (i = 0; i < pagesize; ++i)
29075 *(data2 + i) = *(data2 + i) + 1;
29076 data3 = (char *) malloc (pagesize);
29077 if (!data3)
29078 exit (1);
29079 if (read (fd, data3, pagesize) != pagesize)
29080 exit (1);
29081 for (i = 0; i < pagesize; ++i)
29082 if (*(data + i) != *(data3 + i))
29083 exit (1);
29084 close (fd);
29085 exit (0);
29086}
29087_ACEOF
29088rm -f conftest$ac_exeext
29089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29090 (eval $ac_link) 2>&5
29091 ac_status=$?
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29095 (eval $ac_try) 2>&5
29096 ac_status=$?
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); }; }; then
29099 ac_cv_func_mmap_fixed_mapped=yes
29100else
29101 echo "$as_me: program exited with status $ac_status" >&5
29102echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029103sed 's/^/| /' conftest.$ac_ext >&5
29104
John Criswell7a73b802003-06-30 21:59:07 +000029105( exit $ac_status )
29106ac_cv_func_mmap_fixed_mapped=no
29107fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029108rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029109fi
29110fi
29111echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29112echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29113if test $ac_cv_func_mmap_fixed_mapped = yes; then
29114
29115cat >>confdefs.h <<\_ACEOF
29116#define HAVE_MMAP 1
29117_ACEOF
29118
29119fi
29120rm -f conftest.mmap
29121
29122echo "$as_me:$LINENO: checking for mmap of files" >&5
29123echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29124if test "${ac_cv_func_mmap_file+set}" = set; then
29125 echo $ECHO_N "(cached) $ECHO_C" >&6
29126else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029127 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029128ac_cpp='$CPP $CPPFLAGS'
29129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29131ac_compiler_gnu=$ac_cv_c_compiler_gnu
29132
29133 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029134 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029135else
29136 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029137
Reid Spencer777ce172004-09-20 04:09:56 +000029138 /* confdefs.h. */
29139_ACEOF
29140cat confdefs.h >>conftest.$ac_ext
29141cat >>conftest.$ac_ext <<_ACEOF
29142/* end confdefs.h. */
29143
John Criswell7a73b802003-06-30 21:59:07 +000029144#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029145#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029146#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029147
29148int
29149main ()
29150{
John Criswell7a73b802003-06-30 21:59:07 +000029151
29152 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029153 fd = creat ("foo",0777);
29154 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29155 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029156 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029157 ;
29158 return 0;
29159}
John Criswell7a73b802003-06-30 21:59:07 +000029160_ACEOF
29161rm -f conftest$ac_exeext
29162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29163 (eval $ac_link) 2>&5
29164 ac_status=$?
29165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29168 (eval $ac_try) 2>&5
29169 ac_status=$?
29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); }; }; then
29172 ac_cv_func_mmap_file=yes
29173else
29174 echo "$as_me: program exited with status $ac_status" >&5
29175echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029176sed 's/^/| /' conftest.$ac_ext >&5
29177
John Criswell7a73b802003-06-30 21:59:07 +000029178( exit $ac_status )
29179ac_cv_func_mmap_file=no
29180fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029181rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029182fi
29183 ac_ext=c
29184ac_cpp='$CPP $CPPFLAGS'
29185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29187ac_compiler_gnu=$ac_cv_c_compiler_gnu
29188
29189
29190fi
29191echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29192echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29193if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029194
29195cat >>confdefs.h <<\_ACEOF
29196#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029197_ACEOF
29198
29199 MMAP_FILE=yes
29200
29201fi
29202
John Criswell7a73b802003-06-30 21:59:07 +000029203echo "$as_me:$LINENO: checking for mprotect" >&5
29204echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29205if test "${ac_cv_func_mprotect+set}" = set; then
29206 echo $ECHO_N "(cached) $ECHO_C" >&6
29207else
29208 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029209/* confdefs.h. */
29210_ACEOF
29211cat confdefs.h >>conftest.$ac_ext
29212cat >>conftest.$ac_ext <<_ACEOF
29213/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029214/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29216#define mprotect innocuous_mprotect
29217
John Criswell7a73b802003-06-30 21:59:07 +000029218/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029219 which can conflict with char mprotect (); below.
29220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29221 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029222
John Criswell0c38eaf2003-09-10 15:17:25 +000029223#ifdef __STDC__
29224# include <limits.h>
29225#else
29226# include <assert.h>
29227#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029228
29229#undef mprotect
29230
John Criswell7a73b802003-06-30 21:59:07 +000029231/* Override any gcc2 internal prototype to avoid an error. */
29232#ifdef __cplusplus
29233extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029234{
John Criswell7a73b802003-06-30 21:59:07 +000029235#endif
29236/* We use char because int might match the return type of a gcc2
29237 builtin and then its argument prototype would still apply. */
29238char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000029239/* The GNU C library defines this for functions which it implements
29240 to always fail with ENOSYS. Some functions are actually named
29241 something starting with __ and the normal name is an alias. */
29242#if defined (__stub_mprotect) || defined (__stub___mprotect)
29243choke me
29244#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029245char (*f) () = mprotect;
29246#endif
29247#ifdef __cplusplus
29248}
John Criswell7a73b802003-06-30 21:59:07 +000029249#endif
29250
John Criswell0c38eaf2003-09-10 15:17:25 +000029251int
29252main ()
29253{
29254return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000029255 ;
29256 return 0;
29257}
29258_ACEOF
29259rm -f conftest.$ac_objext conftest$ac_exeext
29260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029261 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029262 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029263 grep -v '^ *+' conftest.er1 >conftest.err
29264 rm -f conftest.er1
29265 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029268 { ac_try='test -z "$ac_c_werror_flag"
29269 || test ! -s conftest.err'
29270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29271 (eval $ac_try) 2>&5
29272 ac_status=$?
29273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274 (exit $ac_status); }; } &&
29275 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29277 (eval $ac_try) 2>&5
29278 ac_status=$?
29279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29280 (exit $ac_status); }; }; then
29281 ac_cv_func_mprotect=yes
29282else
29283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029284sed 's/^/| /' conftest.$ac_ext >&5
29285
John Criswell7a73b802003-06-30 21:59:07 +000029286ac_cv_func_mprotect=no
29287fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029288rm -f conftest.err conftest.$ac_objext \
29289 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029290fi
29291echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29292echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29293if test $ac_cv_func_mprotect = yes; then
29294 :
29295else
29296 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29297echo "$as_me: error: Function mprotect() required but not found" >&2;}
29298 { (exit 1); exit 1; }; }
29299fi
29300
29301
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029302if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029303then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029304 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29305echo "$as_me: WARNING: mmap() required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029306fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029307if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029308then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029309 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29310echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029311fi
John Criswell7a73b802003-06-30 21:59:07 +000029312
29313
Brian Gaekef3b24102003-11-16 18:38:14 +000029314echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29315echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029316if test "${llvm_cv_llvmgcc+set}" = set; then
29317 echo $ECHO_N "(cached) $ECHO_C" >&6
29318else
29319 llvm_cv_llvmgcc='llvmgcc_not_found'
29320if test -d "$LLVMGCCDIR" ; then
29321 if test -x "$LLVMGCCDIR/bin/gcc" ; then
29322 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29323 fi
Brian Gaekef3b24102003-11-16 18:38:14 +000029324fi
Brian Gaekef3b24102003-11-16 18:38:14 +000029325fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029326echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29327echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29328
Brian Gaekef3b24102003-11-16 18:38:14 +000029329echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29330echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029331if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29332 echo $ECHO_N "(cached) $ECHO_C" >&6
29333else
29334 llvm_cv_llvmgcc_sanity="no"
29335if test -x "$llvm_cv_llvmgcc" ; then
29336 cp /dev/null conftest.c
29337 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29338 if test $? -eq 0 ; then
29339 llvm_cv_llvmgcc_sanity="yes"
29340 fi
29341 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000029342fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029343fi
29344echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29345echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29346
29347if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29348 LLVMGCC="$llvm_cv_llvmgcc"
29349
29350 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29351 LLVMCC1=$llvmcc1path
29352
29353 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29354 LLVMCC1PLUS=$llvmcc1pluspath
29355
Brian Gaekef3b24102003-11-16 18:38:14 +000029356fi
29357
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029358SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000029359
29360
Reid Spencere9de0912004-08-20 09:03:57 +000029361# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029362# information into substitutions that will end up in Makefile.config.in
29363# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000029364eval LLVM_PREFIX="${prefix}";
29365eval LLVM_BINDIR="${prefix}/bin";
29366eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000029367eval LLVM_DATADIR="${prefix}/share/llvm";
29368eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29369eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000029370eval LLVM_INCLUDEDIR="${prefix}/include";
29371eval LLVM_INFODIR="${prefix}/info";
29372eval LLVM_MANDIR="${prefix}/man";
29373LLVM_CONFIGTIME=`date`
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383
29384
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029385# Place the various directores into the config.h file as #defines so that we
29386# can know about the installation paths within LLVM.
29387
Reid Spencere9de0912004-08-20 09:03:57 +000029388cat >>confdefs.h <<_ACEOF
29389#define LLVM_PREFIX "$LLVM_PREFIX"
29390_ACEOF
29391
29392
29393cat >>confdefs.h <<_ACEOF
29394#define LLVM_BINDIR "$LLVM_BINDIR"
29395_ACEOF
29396
29397
29398cat >>confdefs.h <<_ACEOF
29399#define LLVM_LIBDIR "$LLVM_LIBDIR"
29400_ACEOF
29401
29402
29403cat >>confdefs.h <<_ACEOF
29404#define LLVM_DATADIR "$LLVM_DATADIR"
29405_ACEOF
29406
29407
29408cat >>confdefs.h <<_ACEOF
29409#define LLVM_DATADIR "$LLVM_DOCSDIR"
29410_ACEOF
29411
29412
29413cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000029414#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000029415_ACEOF
29416
29417
29418cat >>confdefs.h <<_ACEOF
29419#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29420_ACEOF
29421
29422
29423cat >>confdefs.h <<_ACEOF
29424#define LLVM_INFODIR "$LLVM_INFODIR"
29425_ACEOF
29426
29427
29428cat >>confdefs.h <<_ACEOF
29429#define LLVM_MANDIR "$LLVM_MANDIR"
29430_ACEOF
29431
29432
29433cat >>confdefs.h <<_ACEOF
29434#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29435_ACEOF
29436
29437
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029438
29439 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29440
29441
29442 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29443
29444 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29445
29446 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29447
29448 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29449
29450 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29451
29452
29453 ac_config_files="$ac_config_files Makefile.config"
29454
29455
29456 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29457
29458
Reid Spencer1f319422004-11-29 04:56:35 +000029459 ac_config_files="$ac_config_files docs/doxygen.cfg"
29460
29461
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029462 ac_config_commands="$ac_config_commands Makefile"
29463
29464
29465 ac_config_commands="$ac_config_commands Makefile.common"
29466
29467
29468 ac_config_commands="$ac_config_commands examples/Makefile"
29469
29470
29471 ac_config_commands="$ac_config_commands lib/Makefile"
29472
29473
29474 ac_config_commands="$ac_config_commands runtime/Makefile"
29475
29476
29477 ac_config_commands="$ac_config_commands test/Makefile"
29478
29479
29480 ac_config_commands="$ac_config_commands test/Makefile.tests"
29481
29482
29483 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
29484
29485
29486 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
29487
29488
29489 ac_config_commands="$ac_config_commands tools/Makefile"
29490
29491
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029492 ac_config_commands="$ac_config_commands utils/Makefile"
29493
29494
29495 ac_config_commands="$ac_config_commands projects/Makefile"
29496
29497
29498
John Criswell7a73b802003-06-30 21:59:07 +000029499cat >confcache <<\_ACEOF
29500# This file is a shell script that caches the results of configure
29501# tests run on this system so they can be shared between configure
29502# scripts and configure runs, see configure's option --config-cache.
29503# It is not useful on other systems. If it contains results you don't
29504# want to keep, you may remove or edit it.
29505#
29506# config.status only pays attention to the cache file if you give it
29507# the --recheck option to rerun configure.
29508#
John Criswell0c38eaf2003-09-10 15:17:25 +000029509# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000029510# loading this file, other *unset* `ac_cv_foo' will be assigned the
29511# following values.
29512
29513_ACEOF
29514
29515# The following way of writing the cache mishandles newlines in values,
29516# but we know of no workaround that is simple, portable, and efficient.
29517# So, don't put newlines in cache variables' values.
29518# Ultrix sh set writes to stderr and can't be redirected directly,
29519# and sets the high bit in the cache file unless we assign to the vars.
29520{
29521 (set) 2>&1 |
29522 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29523 *ac_space=\ *)
29524 # `set' does not quote correctly, so add quotes (double-quote
29525 # substitution turns \\\\ into \\, and sed turns \\ into \).
29526 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029527 "s/'/'\\\\''/g;
29528 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000029529 ;;
29530 *)
29531 # `set' quotes correctly as required by POSIX, so do not add quotes.
29532 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029533 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000029534 ;;
29535 esac;
29536} |
29537 sed '
29538 t clear
29539 : clear
29540 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29541 t end
29542 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29543 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000029544if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000029545 if test -w $cache_file; then
29546 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29547 cat confcache >$cache_file
29548 else
29549 echo "not updating unwritable cache $cache_file"
29550 fi
29551fi
29552rm -f confcache
29553
29554test "x$prefix" = xNONE && prefix=$ac_default_prefix
29555# Let make expand exec_prefix.
29556test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29557
29558# VPATH may cause trouble with some makes, so we remove $(srcdir),
29559# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29560# trailing colons and then remove the whole line if VPATH becomes empty
29561# (actually we leave an empty line to preserve line numbers).
29562if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000029563 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000029564s/:*\$(srcdir):*/:/;
29565s/:*\${srcdir}:*/:/;
29566s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029567s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000029568s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029569s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000029570}'
29571fi
29572
29573DEFS=-DHAVE_CONFIG_H
29574
John Criswell0c38eaf2003-09-10 15:17:25 +000029575ac_libobjs=
29576ac_ltlibobjs=
29577for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29578 # 1. Remove the extension, and $U if already installed.
29579 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000029580 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000029581 # 2. Add them.
29582 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29583 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29584done
29585LIBOBJS=$ac_libobjs
29586
29587LTLIBOBJS=$ac_ltlibobjs
29588
29589
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029590if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29591 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29592Usually this means the macro was only invoked conditionally." >&5
29593echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29594Usually this means the macro was only invoked conditionally." >&2;}
29595 { (exit 1); exit 1; }; }
29596fi
29597if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29598 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29599Usually this means the macro was only invoked conditionally." >&5
29600echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29601Usually this means the macro was only invoked conditionally." >&2;}
29602 { (exit 1); exit 1; }; }
29603fi
John Criswell7a73b802003-06-30 21:59:07 +000029604
29605: ${CONFIG_STATUS=./config.status}
29606ac_clean_files_save=$ac_clean_files
29607ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29608{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29609echo "$as_me: creating $CONFIG_STATUS" >&6;}
29610cat >$CONFIG_STATUS <<_ACEOF
29611#! $SHELL
29612# Generated by $as_me.
29613# Run this file to recreate the current configuration.
29614# Compiler output produced by configure, useful for debugging
29615# configure, is in config.log if it exists.
29616
29617debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000029618ac_cs_recheck=false
29619ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000029620SHELL=\${CONFIG_SHELL-$SHELL}
29621_ACEOF
29622
29623cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029624## --------------------- ##
29625## M4sh Initialization. ##
29626## --------------------- ##
29627
29628# Be Bourne compatible
29629if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29630 emulate sh
29631 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000029632 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29633 # is contrary to our usage. Disable this feature.
29634 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000029635elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29636 set -o posix
29637fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029638DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000029639
John Criswell7a73b802003-06-30 21:59:07 +000029640# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029641if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029642 as_unset=unset
29643else
29644 as_unset=false
29645fi
29646
John Criswell0c38eaf2003-09-10 15:17:25 +000029647
29648# Work around bugs in pre-3.0 UWIN ksh.
29649$as_unset ENV MAIL MAILPATH
29650PS1='$ '
29651PS2='> '
29652PS4='+ '
29653
29654# NLS nuisances.
29655for as_var in \
29656 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29657 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29658 LC_TELEPHONE LC_TIME
29659do
Reid Spencer2706f8c2004-09-19 23:53:36 +000029660 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000029661 eval $as_var=C; export $as_var
29662 else
29663 $as_unset $as_var
29664 fi
29665done
29666
29667# Required to use basename.
29668if expr a : '\(a\)' >/dev/null 2>&1; then
29669 as_expr=expr
29670else
29671 as_expr=false
29672fi
29673
29674if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29675 as_basename=basename
29676else
29677 as_basename=false
29678fi
John Criswell7a73b802003-06-30 21:59:07 +000029679
29680
29681# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000029682as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000029683$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29684 X"$0" : 'X\(//\)$' \| \
29685 X"$0" : 'X\(/\)$' \| \
29686 . : '\(.\)' 2>/dev/null ||
29687echo X/"$0" |
29688 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29689 /^X\/\(\/\/\)$/{ s//\1/; q; }
29690 /^X\/\(\/\).*/{ s//\1/; q; }
29691 s/.*/./; q'`
29692
John Criswell0c38eaf2003-09-10 15:17:25 +000029693
John Criswell7a73b802003-06-30 21:59:07 +000029694# PATH needs CR, and LINENO needs CR and PATH.
29695# Avoid depending upon Character Ranges.
29696as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29697as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29698as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29699as_cr_digits='0123456789'
29700as_cr_alnum=$as_cr_Letters$as_cr_digits
29701
29702# The user is always right.
29703if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029704 echo "#! /bin/sh" >conf$$.sh
29705 echo "exit 0" >>conf$$.sh
29706 chmod +x conf$$.sh
29707 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029708 PATH_SEPARATOR=';'
29709 else
29710 PATH_SEPARATOR=:
29711 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000029712 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000029713fi
29714
29715
29716 as_lineno_1=$LINENO
29717 as_lineno_2=$LINENO
29718 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29719 test "x$as_lineno_1" != "x$as_lineno_2" &&
29720 test "x$as_lineno_3" = "x$as_lineno_2" || {
29721 # Find who we are. Look in the path if we contain no path at all
29722 # relative or not.
29723 case $0 in
29724 *[\\/]* ) as_myself=$0 ;;
29725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29726for as_dir in $PATH
29727do
29728 IFS=$as_save_IFS
29729 test -z "$as_dir" && as_dir=.
29730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29731done
29732
29733 ;;
29734 esac
29735 # We did not find ourselves, most probably we were run as `sh COMMAND'
29736 # in which case we are not to be found in the path.
29737 if test "x$as_myself" = x; then
29738 as_myself=$0
29739 fi
29740 if test ! -f "$as_myself"; then
29741 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29742echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29743 { (exit 1); exit 1; }; }
29744 fi
29745 case $CONFIG_SHELL in
29746 '')
29747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29748for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29749do
29750 IFS=$as_save_IFS
29751 test -z "$as_dir" && as_dir=.
29752 for as_base in sh bash ksh sh5; do
29753 case $as_dir in
29754 /*)
29755 if ("$as_dir/$as_base" -c '
29756 as_lineno_1=$LINENO
29757 as_lineno_2=$LINENO
29758 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29759 test "x$as_lineno_1" != "x$as_lineno_2" &&
29760 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029761 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29762 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000029763 CONFIG_SHELL=$as_dir/$as_base
29764 export CONFIG_SHELL
29765 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29766 fi;;
29767 esac
29768 done
29769done
29770;;
29771 esac
29772
29773 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29774 # uniformly replaced by the line number. The first 'sed' inserts a
29775 # line-number line before each line; the second 'sed' does the real
29776 # work. The second script uses 'N' to pair each line-number line
29777 # with the numbered line, and appends trailing '-' during
29778 # substitution so that $LINENO is not a special case at line end.
29779 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29780 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29781 sed '=' <$as_myself |
29782 sed '
29783 N
29784 s,$,-,
29785 : loop
29786 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29787 t loop
29788 s,-$,,
29789 s,^['$as_cr_digits']*\n,,
29790 ' >$as_me.lineno &&
29791 chmod +x $as_me.lineno ||
29792 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29793echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29794 { (exit 1); exit 1; }; }
29795
29796 # Don't try to exec as it changes $[0], causing all sort of problems
29797 # (the dirname of $[0] is not the place where we might find the
29798 # original and so on. Autoconf is especially sensible to this).
29799 . ./$as_me.lineno
29800 # Exit status is that of the last command.
29801 exit
29802}
29803
29804
29805case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29806 *c*,-n*) ECHO_N= ECHO_C='
29807' ECHO_T=' ' ;;
29808 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29809 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29810esac
29811
29812if expr a : '\(a\)' >/dev/null 2>&1; then
29813 as_expr=expr
29814else
29815 as_expr=false
29816fi
29817
29818rm -f conf$$ conf$$.exe conf$$.file
29819echo >conf$$.file
29820if ln -s conf$$.file conf$$ 2>/dev/null; then
29821 # We could just check for DJGPP; but this test a) works b) is more generic
29822 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29823 if test -f conf$$.exe; then
29824 # Don't use ln at all; we don't have any links
29825 as_ln_s='cp -p'
29826 else
29827 as_ln_s='ln -s'
29828 fi
29829elif ln conf$$.file conf$$ 2>/dev/null; then
29830 as_ln_s=ln
29831else
29832 as_ln_s='cp -p'
29833fi
29834rm -f conf$$ conf$$.exe conf$$.file
29835
John Criswell0c38eaf2003-09-10 15:17:25 +000029836if mkdir -p . 2>/dev/null; then
29837 as_mkdir_p=:
29838else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029839 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000029840 as_mkdir_p=false
29841fi
29842
John Criswell7a73b802003-06-30 21:59:07 +000029843as_executable_p="test -f"
29844
29845# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029846as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000029847
29848# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029849as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000029850
29851
29852# IFS
29853# We need space, tab and new line, in precisely that order.
29854as_nl='
29855'
29856IFS=" $as_nl"
29857
29858# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000029859$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000029860
29861exec 6>&1
29862
29863# Open the log real soon, to keep \$[0] and so on meaningful, and to
29864# report actual input values of CONFIG_FILES etc. instead of their
29865# values after options handling. Logging --version etc. is OK.
29866exec 5>>config.log
29867{
29868 echo
29869 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29870## Running $as_me. ##
29871_ASBOX
29872} >&5
29873cat >&5 <<_CSEOF
29874
Reid Spencerabec8f92004-10-27 23:03:44 +000029875This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000029876generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000029877
29878 CONFIG_FILES = $CONFIG_FILES
29879 CONFIG_HEADERS = $CONFIG_HEADERS
29880 CONFIG_LINKS = $CONFIG_LINKS
29881 CONFIG_COMMANDS = $CONFIG_COMMANDS
29882 $ $0 $@
29883
29884_CSEOF
29885echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29886echo >&5
29887_ACEOF
29888
29889# Files that config.status was made for.
29890if test -n "$ac_config_files"; then
29891 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29892fi
29893
29894if test -n "$ac_config_headers"; then
29895 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29896fi
29897
29898if test -n "$ac_config_links"; then
29899 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29900fi
29901
29902if test -n "$ac_config_commands"; then
29903 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29904fi
29905
29906cat >>$CONFIG_STATUS <<\_ACEOF
29907
29908ac_cs_usage="\
29909\`$as_me' instantiates files from templates according to the
29910current configuration.
29911
29912Usage: $0 [OPTIONS] [FILE]...
29913
29914 -h, --help print this help, then exit
29915 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000029916 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000029917 -d, --debug don't remove temporary files
29918 --recheck update $as_me by reconfiguring in the same conditions
29919 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000029920 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000029921 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000029922 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000029923
29924Configuration files:
29925$config_files
29926
29927Configuration headers:
29928$config_headers
29929
Reid Spencerde8c47f2004-08-29 19:35:28 +000029930Configuration links:
29931$config_links
29932
John Criswellc764fbc2003-09-06 15:17:13 +000029933Configuration commands:
29934$config_commands
29935
John Criswell7a73b802003-06-30 21:59:07 +000029936Report bugs to <bug-autoconf@gnu.org>."
29937_ACEOF
29938
29939cat >>$CONFIG_STATUS <<_ACEOF
29940ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000029941llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000029942configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000029943 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29944
Reid Spencer2706f8c2004-09-19 23:53:36 +000029945Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000029946This config.status script is free software; the Free Software Foundation
29947gives unlimited permission to copy, distribute and modify it."
29948srcdir=$srcdir
29949INSTALL="$INSTALL"
29950_ACEOF
29951
29952cat >>$CONFIG_STATUS <<\_ACEOF
29953# If no file are specified by the user, then we need to provide default
29954# value. By we need to know if files were specified by the user.
29955ac_need_defaults=:
29956while test $# != 0
29957do
29958 case $1 in
29959 --*=*)
29960 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29961 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000029962 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000029963 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000029964 -*)
29965 ac_option=$1
29966 ac_optarg=$2
29967 ac_shift=shift
29968 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029969 *) # This is not an option, so the user has probably given explicit
29970 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000029971 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000029972 ac_need_defaults=false;;
29973 esac
29974
John Criswell0c38eaf2003-09-10 15:17:25 +000029975 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000029976 # Handling of the options.
29977_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000029978cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029979 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29980 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000029981 --version | --vers* | -V )
29982 echo "$ac_cs_version"; exit 0 ;;
29983 --he | --h)
29984 # Conflict between --help and --header
29985 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29986Try \`$0 --help' for more information." >&5
29987echo "$as_me: error: ambiguous option: $1
29988Try \`$0 --help' for more information." >&2;}
29989 { (exit 1); exit 1; }; };;
29990 --help | --hel | -h )
29991 echo "$ac_cs_usage"; exit 0 ;;
29992 --debug | --d* | -d )
29993 debug=: ;;
29994 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000029995 $ac_shift
29996 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000029997 ac_need_defaults=false;;
29998 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000029999 $ac_shift
30000 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030001 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30003 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30004 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030005
30006 # This is an error.
30007 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30008Try \`$0 --help' for more information." >&5
30009echo "$as_me: error: unrecognized option: $1
30010Try \`$0 --help' for more information." >&2;}
30011 { (exit 1); exit 1; }; } ;;
30012
30013 *) ac_config_targets="$ac_config_targets $1" ;;
30014
30015 esac
30016 shift
30017done
30018
John Criswell0c38eaf2003-09-10 15:17:25 +000030019ac_configure_extra_args=
30020
30021if $ac_cs_silent; then
30022 exec 6>/dev/null
30023 ac_configure_extra_args="$ac_configure_extra_args --silent"
30024fi
30025
30026_ACEOF
30027cat >>$CONFIG_STATUS <<_ACEOF
30028if \$ac_cs_recheck; then
30029 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30030 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30031fi
30032
John Criswell7a73b802003-06-30 21:59:07 +000030033_ACEOF
30034
John Criswellc764fbc2003-09-06 15:17:13 +000030035cat >>$CONFIG_STATUS <<_ACEOF
30036#
30037# INIT-COMMANDS section.
30038#
John Criswell7a73b802003-06-30 21:59:07 +000030039
John Criswellc764fbc2003-09-06 15:17:13 +000030040${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30041${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000030042${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030043${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030044${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030045${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30046${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000030047${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
30048${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000030049${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000030050${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030051${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030052
30053_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030054
30055
30056
30057cat >>$CONFIG_STATUS <<\_ACEOF
30058for ac_config_target in $ac_config_targets
30059do
30060 case "$ac_config_target" in
30061 # Handling of arguments.
30062 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030063 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30064 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30065 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30066 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030067 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spenceredd01b92004-11-25 06:03:14 +000030068 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030069 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30070 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030071 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030072 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030073 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030074 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30075 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000030076 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
30077 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030078 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030079 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030080 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030081 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030082 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030083 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30084 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030085 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30086 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030087 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30088echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30089 { (exit 1); exit 1; }; };;
30090 esac
30091done
30092
30093# If the user did not use the arguments to specify the items to instantiate,
30094# then the envvar interface is used. Set only those that are not.
30095# We use the long form for the default assignment because of an extremely
30096# bizarre bug on SunOS 4.1.3.
30097if $ac_need_defaults; then
30098 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30099 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000030100 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000030101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030102fi
30103
John Criswell0c38eaf2003-09-10 15:17:25 +000030104# Have a temporary directory for convenience. Make it in the build tree
30105# simply because there is no reason to put it here, and in addition,
30106# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030107# Create a temporary directory, and hook for its removal unless debugging.
30108$debug ||
30109{
30110 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30111 trap '{ (exit 1); exit 1; }' 1 2 13 15
30112}
30113
30114# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030115
John Criswell7a73b802003-06-30 21:59:07 +000030116{
John Criswell0c38eaf2003-09-10 15:17:25 +000030117 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030118 test -n "$tmp" && test -d "$tmp"
30119} ||
30120{
John Criswell0c38eaf2003-09-10 15:17:25 +000030121 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030122 (umask 077 && mkdir $tmp)
30123} ||
30124{
John Criswell0c38eaf2003-09-10 15:17:25 +000030125 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030126 { (exit 1); exit 1; }
30127}
30128
30129_ACEOF
30130
30131cat >>$CONFIG_STATUS <<_ACEOF
30132
30133#
30134# CONFIG_FILES section.
30135#
30136
30137# No need to generate the scripts if there are no CONFIG_FILES.
30138# This happens for instance when ./config.status config.h
30139if test -n "\$CONFIG_FILES"; then
30140 # Protect against being on the right side of a sed subst in config.status.
30141 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30142 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30143s,@SHELL@,$SHELL,;t t
30144s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30145s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30146s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30147s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30148s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30149s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30150s,@exec_prefix@,$exec_prefix,;t t
30151s,@prefix@,$prefix,;t t
30152s,@program_transform_name@,$program_transform_name,;t t
30153s,@bindir@,$bindir,;t t
30154s,@sbindir@,$sbindir,;t t
30155s,@libexecdir@,$libexecdir,;t t
30156s,@datadir@,$datadir,;t t
30157s,@sysconfdir@,$sysconfdir,;t t
30158s,@sharedstatedir@,$sharedstatedir,;t t
30159s,@localstatedir@,$localstatedir,;t t
30160s,@libdir@,$libdir,;t t
30161s,@includedir@,$includedir,;t t
30162s,@oldincludedir@,$oldincludedir,;t t
30163s,@infodir@,$infodir,;t t
30164s,@mandir@,$mandir,;t t
30165s,@build_alias@,$build_alias,;t t
30166s,@host_alias@,$host_alias,;t t
30167s,@target_alias@,$target_alias,;t t
30168s,@DEFS@,$DEFS,;t t
30169s,@ECHO_C@,$ECHO_C,;t t
30170s,@ECHO_N@,$ECHO_N,;t t
30171s,@ECHO_T@,$ECHO_T,;t t
30172s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030173s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030174s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030175s,@build@,$build,;t t
30176s,@build_cpu@,$build_cpu,;t t
30177s,@build_vendor@,$build_vendor,;t t
30178s,@build_os@,$build_os,;t t
30179s,@host@,$host,;t t
30180s,@host_cpu@,$host_cpu,;t t
30181s,@host_vendor@,$host_vendor,;t t
30182s,@host_os@,$host_os,;t t
30183s,@target@,$target,;t t
30184s,@target_cpu@,$target_cpu,;t t
30185s,@target_vendor@,$target_vendor,;t t
30186s,@target_os@,$target_os,;t t
30187s,@OS@,$OS,;t t
John Criswell76595452003-07-01 22:07:39 +000030188s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030189s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030190s,@CC@,$CC,;t t
30191s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030192s,@LDFLAGS@,$LDFLAGS,;t t
30193s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030194s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030195s,@EXEEXT@,$EXEEXT,;t t
30196s,@OBJEXT@,$OBJEXT,;t t
30197s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30198s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030199s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030200s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030201s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030202s,@CXX@,$CXX,;t t
30203s,@CXXFLAGS@,$CXXFLAGS,;t t
30204s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030205s,@LEX@,$LEX,;t t
30206s,@LEXLIB@,$LEXLIB,;t t
30207s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030208s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030209s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030210s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030211s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030212s,@LN_S@,$LN_S,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030213s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030214s,@FIND@,$FIND,;t t
30215s,@GREP@,$GREP,;t t
30216s,@MKDIR@,$MKDIR,;t t
30217s,@MV@,$MV,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030218s,@PAX@,$PAX,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030219s,@RANLIB@,$RANLIB,;t t
30220s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030221s,@RM@,$RM,;t t
30222s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030223s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030224s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30225s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30226s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030227s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030228s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030229s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030230s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030231s,@GROFF@,$GROFF,;t t
30232s,@GZIP@,$GZIP,;t t
30233s,@POD2HTML@,$POD2HTML,;t t
30234s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000030235s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000030236s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030237s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030238s,@EGREP@,$EGREP,;t t
30239s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30240s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30241s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30242s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30243s,@LIBADD_DL@,$LIBADD_DL,;t t
30244s,@ECHO@,$ECHO,;t t
30245s,@AR@,$AR,;t t
30246s,@ac_ct_AR@,$ac_ct_AR,;t t
30247s,@STRIP@,$STRIP,;t t
30248s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30249s,@CXXCPP@,$CXXCPP,;t t
30250s,@F77@,$F77,;t t
30251s,@FFLAGS@,$FFLAGS,;t t
30252s,@ac_ct_F77@,$ac_ct_F77,;t t
30253s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030254s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030255s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030256s,@MMAP_FILE@,$MMAP_FILE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030257s,@LLVMGCC@,$LLVMGCC,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000030258s,@LLVMCC1@,$LLVMCC1,;t t
30259s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000030260s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000030261s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30262s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30263s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30264s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30265s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30266s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30267s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30268s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30269s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30270s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000030271s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000030272s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030273CEOF
30274
30275_ACEOF
30276
30277 cat >>$CONFIG_STATUS <<\_ACEOF
30278 # Split the substitutions into bite-sized pieces for seds with
30279 # small command number limits, like on Digital OSF/1 and HP-UX.
30280 ac_max_sed_lines=48
30281 ac_sed_frag=1 # Number of current file.
30282 ac_beg=1 # First line for current file.
30283 ac_end=$ac_max_sed_lines # Line after last line for current file.
30284 ac_more_lines=:
30285 ac_sed_cmds=
30286 while $ac_more_lines; do
30287 if test $ac_beg -gt 1; then
30288 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30289 else
30290 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30291 fi
30292 if test ! -s $tmp/subs.frag; then
30293 ac_more_lines=false
30294 else
30295 # The purpose of the label and of the branching condition is to
30296 # speed up the sed processing (if there are no `@' at all, there
30297 # is no need to browse any of the substitutions).
30298 # These are the two extra sed commands mentioned above.
30299 (echo ':t
30300 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30301 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030302 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030303 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030304 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030305 fi
30306 ac_sed_frag=`expr $ac_sed_frag + 1`
30307 ac_beg=$ac_end
30308 ac_end=`expr $ac_end + $ac_max_sed_lines`
30309 fi
30310 done
30311 if test -z "$ac_sed_cmds"; then
30312 ac_sed_cmds=cat
30313 fi
30314fi # test -n "$CONFIG_FILES"
30315
30316_ACEOF
30317cat >>$CONFIG_STATUS <<\_ACEOF
30318for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30319 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30320 case $ac_file in
30321 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030322 cat >$tmp/stdin
30323 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30324 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030325 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030326 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030327 * ) ac_file_in=$ac_file.in ;;
30328 esac
30329
30330 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30331 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30332$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030333 X"$ac_file" : 'X\(//\)[^/]' \| \
30334 X"$ac_file" : 'X\(//\)$' \| \
30335 X"$ac_file" : 'X\(/\)' \| \
30336 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030337echo X"$ac_file" |
30338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30339 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30340 /^X\(\/\/\)$/{ s//\1/; q; }
30341 /^X\(\/\).*/{ s//\1/; q; }
30342 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030343 { if $as_mkdir_p; then
30344 mkdir -p "$ac_dir"
30345 else
30346 as_dir="$ac_dir"
30347 as_dirs=
30348 while test ! -d "$as_dir"; do
30349 as_dirs="$as_dir $as_dirs"
30350 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030352 X"$as_dir" : 'X\(//\)[^/]' \| \
30353 X"$as_dir" : 'X\(//\)$' \| \
30354 X"$as_dir" : 'X\(/\)' \| \
30355 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030356echo X"$as_dir" |
30357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30358 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30359 /^X\(\/\/\)$/{ s//\1/; q; }
30360 /^X\(\/\).*/{ s//\1/; q; }
30361 s/.*/./; q'`
30362 done
30363 test ! -n "$as_dirs" || mkdir $as_dirs
30364 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30365echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30366 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030367
30368 ac_builddir=.
30369
30370if test "$ac_dir" != .; then
30371 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30372 # A "../" for each directory in $ac_dir_suffix.
30373 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30374else
30375 ac_dir_suffix= ac_top_builddir=
30376fi
30377
30378case $srcdir in
30379 .) # No --srcdir option. We are building in place.
30380 ac_srcdir=.
30381 if test -z "$ac_top_builddir"; then
30382 ac_top_srcdir=.
30383 else
30384 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30385 fi ;;
30386 [\\/]* | ?:[\\/]* ) # Absolute path.
30387 ac_srcdir=$srcdir$ac_dir_suffix;
30388 ac_top_srcdir=$srcdir ;;
30389 *) # Relative path.
30390 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30391 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30392esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030393
30394# Do not use `cd foo && pwd` to compute absolute paths, because
30395# the directories may not exist.
30396case `pwd` in
30397.) ac_abs_builddir="$ac_dir";;
30398*)
30399 case "$ac_dir" in
30400 .) ac_abs_builddir=`pwd`;;
30401 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30402 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30403 esac;;
30404esac
30405case $ac_abs_builddir in
30406.) ac_abs_top_builddir=${ac_top_builddir}.;;
30407*)
30408 case ${ac_top_builddir}. in
30409 .) ac_abs_top_builddir=$ac_abs_builddir;;
30410 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30411 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30412 esac;;
30413esac
30414case $ac_abs_builddir in
30415.) ac_abs_srcdir=$ac_srcdir;;
30416*)
30417 case $ac_srcdir in
30418 .) ac_abs_srcdir=$ac_abs_builddir;;
30419 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30420 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30421 esac;;
30422esac
30423case $ac_abs_builddir in
30424.) ac_abs_top_srcdir=$ac_top_srcdir;;
30425*)
30426 case $ac_top_srcdir in
30427 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30428 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30429 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30430 esac;;
30431esac
John Criswell7a73b802003-06-30 21:59:07 +000030432
30433
30434 case $INSTALL in
30435 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30436 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30437 esac
30438
30439 if test x"$ac_file" != x-; then
30440 { echo "$as_me:$LINENO: creating $ac_file" >&5
30441echo "$as_me: creating $ac_file" >&6;}
30442 rm -f "$ac_file"
30443 fi
30444 # Let's still pretend it is `configure' which instantiates (i.e., don't
30445 # use $as_me), people would be surprised to read:
30446 # /* config.h. Generated by config.status. */
30447 if test x"$ac_file" = x-; then
30448 configure_input=
30449 else
30450 configure_input="$ac_file. "
30451 fi
30452 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030453 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000030454
30455 # First look for the input files in the build tree, otherwise in the
30456 # src tree.
30457 ac_file_inputs=`IFS=:
30458 for f in $ac_file_in; do
30459 case $f in
30460 -) echo $tmp/stdin ;;
30461 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030462 # Absolute (can't be DOS-style, as IFS=:)
30463 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030464echo "$as_me: error: cannot find input file: $f" >&2;}
30465 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030466 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030467 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030468 if test -f "$f"; then
30469 # Build tree
30470 echo "$f"
30471 elif test -f "$srcdir/$f"; then
30472 # Source tree
30473 echo "$srcdir/$f"
30474 else
30475 # /dev/null tree
30476 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030477echo "$as_me: error: cannot find input file: $f" >&2;}
30478 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030479 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030480 esac
30481 done` || { (exit 1); exit 1; }
30482_ACEOF
30483cat >>$CONFIG_STATUS <<_ACEOF
30484 sed "$ac_vpsub
30485$extrasub
30486_ACEOF
30487cat >>$CONFIG_STATUS <<\_ACEOF
30488:t
30489/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30490s,@configure_input@,$configure_input,;t t
30491s,@srcdir@,$ac_srcdir,;t t
30492s,@abs_srcdir@,$ac_abs_srcdir,;t t
30493s,@top_srcdir@,$ac_top_srcdir,;t t
30494s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30495s,@builddir@,$ac_builddir,;t t
30496s,@abs_builddir@,$ac_abs_builddir,;t t
30497s,@top_builddir@,$ac_top_builddir,;t t
30498s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30499s,@INSTALL@,$ac_INSTALL,;t t
30500" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30501 rm -f $tmp/stdin
30502 if test x"$ac_file" != x-; then
30503 mv $tmp/out $ac_file
30504 else
30505 cat $tmp/out
30506 rm -f $tmp/out
30507 fi
30508
30509done
30510_ACEOF
30511cat >>$CONFIG_STATUS <<\_ACEOF
30512
30513#
30514# CONFIG_HEADER section.
30515#
30516
30517# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30518# NAME is the cpp macro being defined and VALUE is the value it is being given.
30519#
30520# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030521ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30522ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000030523ac_dC=' '
30524ac_dD=',;t'
30525# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000030526ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000030527ac_uB='$,\1#\2define\3'
30528ac_uC=' '
30529ac_uD=',;t'
30530
30531for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30532 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30533 case $ac_file in
30534 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030535 cat >$tmp/stdin
30536 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30537 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030538 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030539 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030540 * ) ac_file_in=$ac_file.in ;;
30541 esac
30542
30543 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30544echo "$as_me: creating $ac_file" >&6;}
30545
30546 # First look for the input files in the build tree, otherwise in the
30547 # src tree.
30548 ac_file_inputs=`IFS=:
30549 for f in $ac_file_in; do
30550 case $f in
30551 -) echo $tmp/stdin ;;
30552 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030553 # Absolute (can't be DOS-style, as IFS=:)
30554 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030555echo "$as_me: error: cannot find input file: $f" >&2;}
30556 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030557 # Do quote $f, to prevent DOS paths from being IFS'd.
30558 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030559 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030560 if test -f "$f"; then
30561 # Build tree
30562 echo "$f"
30563 elif test -f "$srcdir/$f"; then
30564 # Source tree
30565 echo "$srcdir/$f"
30566 else
30567 # /dev/null tree
30568 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030569echo "$as_me: error: cannot find input file: $f" >&2;}
30570 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030571 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030572 esac
30573 done` || { (exit 1); exit 1; }
30574 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030575 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000030576
30577_ACEOF
30578
30579# Transform confdefs.h into two sed scripts, `conftest.defines' and
30580# `conftest.undefs', that substitutes the proper values into
30581# config.h.in to produce config.h. The first handles `#define'
30582# templates, and the second `#undef' templates.
30583# And first: Protect against being on the right side of a sed subst in
30584# config.status. Protect against being in an unquoted here document
30585# in config.status.
30586rm -f conftest.defines conftest.undefs
30587# Using a here document instead of a string reduces the quoting nightmare.
30588# Putting comments in sed scripts is not portable.
30589#
30590# `end' is used to avoid that the second main sed command (meant for
30591# 0-ary CPP macros) applies to n-ary macro definitions.
30592# See the Autoconf documentation for `clear'.
30593cat >confdef2sed.sed <<\_ACEOF
30594s/[\\&,]/\\&/g
30595s,[\\$`],\\&,g
30596t clear
30597: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000030598s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030599t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000030600s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030601: end
30602_ACEOF
30603# If some macros were called several times there might be several times
30604# the same #defines, which is useless. Nevertheless, we may not want to
30605# sort them, since we want the *last* AC-DEFINE to be honored.
30606uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30607sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30608rm -f confdef2sed.sed
30609
30610# This sed command replaces #undef with comments. This is necessary, for
30611# example, in the case of _POSIX_SOURCE, which is predefined and required
30612# on some systems where configure will not decide to define it.
30613cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030614s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000030615_ACEOF
30616
30617# Break up conftest.defines because some shells have a limit on the size
30618# of here documents, and old seds have small limits too (100 cmds).
30619echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000030620echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030621echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30622echo ' :' >>$CONFIG_STATUS
30623rm -f conftest.tail
30624while grep . conftest.defines >/dev/null
30625do
30626 # Write a limited-size here document to $tmp/defines.sed.
30627 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30628 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030629 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030630 # Work around the forget-to-reset-the-flag bug.
30631 echo 't clr' >>$CONFIG_STATUS
30632 echo ': clr' >>$CONFIG_STATUS
30633 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30634 echo 'CEOF
30635 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30636 rm -f $tmp/in
30637 mv $tmp/out $tmp/in
30638' >>$CONFIG_STATUS
30639 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30640 rm -f conftest.defines
30641 mv conftest.tail conftest.defines
30642done
30643rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000030644echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030645echo >>$CONFIG_STATUS
30646
30647# Break up conftest.undefs because some shells have a limit on the size
30648# of here documents, and old seds have small limits too (100 cmds).
30649echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30650rm -f conftest.tail
30651while grep . conftest.undefs >/dev/null
30652do
30653 # Write a limited-size here document to $tmp/undefs.sed.
30654 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30655 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000030656 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030657 # Work around the forget-to-reset-the-flag bug.
30658 echo 't clr' >>$CONFIG_STATUS
30659 echo ': clr' >>$CONFIG_STATUS
30660 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30661 echo 'CEOF
30662 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30663 rm -f $tmp/in
30664 mv $tmp/out $tmp/in
30665' >>$CONFIG_STATUS
30666 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30667 rm -f conftest.undefs
30668 mv conftest.tail conftest.undefs
30669done
30670rm -f conftest.undefs
30671
30672cat >>$CONFIG_STATUS <<\_ACEOF
30673 # Let's still pretend it is `configure' which instantiates (i.e., don't
30674 # use $as_me), people would be surprised to read:
30675 # /* config.h. Generated by config.status. */
30676 if test x"$ac_file" = x-; then
30677 echo "/* Generated by configure. */" >$tmp/config.h
30678 else
30679 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30680 fi
30681 cat $tmp/in >>$tmp/config.h
30682 rm -f $tmp/in
30683 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030684 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030685 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30686echo "$as_me: $ac_file is unchanged" >&6;}
30687 else
30688 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30689$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030690 X"$ac_file" : 'X\(//\)[^/]' \| \
30691 X"$ac_file" : 'X\(//\)$' \| \
30692 X"$ac_file" : 'X\(/\)' \| \
30693 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030694echo X"$ac_file" |
30695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30697 /^X\(\/\/\)$/{ s//\1/; q; }
30698 /^X\(\/\).*/{ s//\1/; q; }
30699 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030700 { if $as_mkdir_p; then
30701 mkdir -p "$ac_dir"
30702 else
30703 as_dir="$ac_dir"
30704 as_dirs=
30705 while test ! -d "$as_dir"; do
30706 as_dirs="$as_dir $as_dirs"
30707 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30708$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030709 X"$as_dir" : 'X\(//\)[^/]' \| \
30710 X"$as_dir" : 'X\(//\)$' \| \
30711 X"$as_dir" : 'X\(/\)' \| \
30712 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030713echo X"$as_dir" |
30714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30716 /^X\(\/\/\)$/{ s//\1/; q; }
30717 /^X\(\/\).*/{ s//\1/; q; }
30718 s/.*/./; q'`
30719 done
30720 test ! -n "$as_dirs" || mkdir $as_dirs
30721 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30722echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30723 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030724
30725 rm -f $ac_file
30726 mv $tmp/config.h $ac_file
30727 fi
30728 else
30729 cat $tmp/config.h
30730 rm -f $tmp/config.h
30731 fi
30732done
30733_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000030734cat >>$CONFIG_STATUS <<\_ACEOF
30735
30736#
Reid Spencerde8c47f2004-08-29 19:35:28 +000030737# CONFIG_LINKS section.
30738#
30739
30740for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30741 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30742 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30743
30744 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30745echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30746
30747 if test ! -r $srcdir/$ac_source; then
30748 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30749echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30750 { (exit 1); exit 1; }; }
30751 fi
30752 rm -f $ac_dest
30753
30754 # Make relative symlinks.
30755 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30756$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030757 X"$ac_dest" : 'X\(//\)[^/]' \| \
30758 X"$ac_dest" : 'X\(//\)$' \| \
30759 X"$ac_dest" : 'X\(/\)' \| \
30760 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030761echo X"$ac_dest" |
30762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30764 /^X\(\/\/\)$/{ s//\1/; q; }
30765 /^X\(\/\).*/{ s//\1/; q; }
30766 s/.*/./; q'`
30767 { if $as_mkdir_p; then
30768 mkdir -p "$ac_dest_dir"
30769 else
30770 as_dir="$ac_dest_dir"
30771 as_dirs=
30772 while test ! -d "$as_dir"; do
30773 as_dirs="$as_dir $as_dirs"
30774 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30775$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030776 X"$as_dir" : 'X\(//\)[^/]' \| \
30777 X"$as_dir" : 'X\(//\)$' \| \
30778 X"$as_dir" : 'X\(/\)' \| \
30779 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030780echo X"$as_dir" |
30781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30782 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30783 /^X\(\/\/\)$/{ s//\1/; q; }
30784 /^X\(\/\).*/{ s//\1/; q; }
30785 s/.*/./; q'`
30786 done
30787 test ! -n "$as_dirs" || mkdir $as_dirs
30788 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30789echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30790 { (exit 1); exit 1; }; }; }
30791
30792 ac_builddir=.
30793
30794if test "$ac_dest_dir" != .; then
30795 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30796 # A "../" for each directory in $ac_dir_suffix.
30797 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30798else
30799 ac_dir_suffix= ac_top_builddir=
30800fi
30801
30802case $srcdir in
30803 .) # No --srcdir option. We are building in place.
30804 ac_srcdir=.
30805 if test -z "$ac_top_builddir"; then
30806 ac_top_srcdir=.
30807 else
30808 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30809 fi ;;
30810 [\\/]* | ?:[\\/]* ) # Absolute path.
30811 ac_srcdir=$srcdir$ac_dir_suffix;
30812 ac_top_srcdir=$srcdir ;;
30813 *) # Relative path.
30814 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30815 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30816esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030817
30818# Do not use `cd foo && pwd` to compute absolute paths, because
30819# the directories may not exist.
30820case `pwd` in
30821.) ac_abs_builddir="$ac_dest_dir";;
30822*)
30823 case "$ac_dest_dir" in
30824 .) ac_abs_builddir=`pwd`;;
30825 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30826 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30827 esac;;
30828esac
30829case $ac_abs_builddir in
30830.) ac_abs_top_builddir=${ac_top_builddir}.;;
30831*)
30832 case ${ac_top_builddir}. in
30833 .) ac_abs_top_builddir=$ac_abs_builddir;;
30834 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30835 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30836 esac;;
30837esac
30838case $ac_abs_builddir in
30839.) ac_abs_srcdir=$ac_srcdir;;
30840*)
30841 case $ac_srcdir in
30842 .) ac_abs_srcdir=$ac_abs_builddir;;
30843 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30844 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30845 esac;;
30846esac
30847case $ac_abs_builddir in
30848.) ac_abs_top_srcdir=$ac_top_srcdir;;
30849*)
30850 case $ac_top_srcdir in
30851 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30852 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30853 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30854 esac;;
30855esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000030856
30857
30858 case $srcdir in
30859 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30860 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30861 esac
30862
30863 # Try a symlink, then a hard link, then a copy.
30864 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30865 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30866 cp -p $srcdir/$ac_source $ac_dest ||
30867 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30868echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30869 { (exit 1); exit 1; }; }
30870done
30871_ACEOF
30872cat >>$CONFIG_STATUS <<\_ACEOF
30873
30874#
John Criswellc764fbc2003-09-06 15:17:13 +000030875# CONFIG_COMMANDS section.
30876#
30877for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30878 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30879 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30880 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30881$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030882 X"$ac_dest" : 'X\(//\)[^/]' \| \
30883 X"$ac_dest" : 'X\(//\)$' \| \
30884 X"$ac_dest" : 'X\(/\)' \| \
30885 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000030886echo X"$ac_dest" |
30887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30889 /^X\(\/\/\)$/{ s//\1/; q; }
30890 /^X\(\/\).*/{ s//\1/; q; }
30891 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030892 { if $as_mkdir_p; then
30893 mkdir -p "$ac_dir"
30894 else
30895 as_dir="$ac_dir"
30896 as_dirs=
30897 while test ! -d "$as_dir"; do
30898 as_dirs="$as_dir $as_dirs"
30899 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30900$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30901 X"$as_dir" : 'X\(//\)[^/]' \| \
30902 X"$as_dir" : 'X\(//\)$' \| \
30903 X"$as_dir" : 'X\(/\)' \| \
30904 . : '\(.\)' 2>/dev/null ||
30905echo X"$as_dir" |
30906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30908 /^X\(\/\/\)$/{ s//\1/; q; }
30909 /^X\(\/\).*/{ s//\1/; q; }
30910 s/.*/./; q'`
30911 done
30912 test ! -n "$as_dirs" || mkdir $as_dirs
30913 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30914echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30915 { (exit 1); exit 1; }; }; }
30916
John Criswellc764fbc2003-09-06 15:17:13 +000030917 ac_builddir=.
30918
30919if test "$ac_dir" != .; then
30920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30921 # A "../" for each directory in $ac_dir_suffix.
30922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30923else
30924 ac_dir_suffix= ac_top_builddir=
30925fi
30926
30927case $srcdir in
30928 .) # No --srcdir option. We are building in place.
30929 ac_srcdir=.
30930 if test -z "$ac_top_builddir"; then
30931 ac_top_srcdir=.
30932 else
30933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30934 fi ;;
30935 [\\/]* | ?:[\\/]* ) # Absolute path.
30936 ac_srcdir=$srcdir$ac_dir_suffix;
30937 ac_top_srcdir=$srcdir ;;
30938 *) # Relative path.
30939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30941esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030942
30943# Do not use `cd foo && pwd` to compute absolute paths, because
30944# the directories may not exist.
30945case `pwd` in
30946.) ac_abs_builddir="$ac_dir";;
30947*)
30948 case "$ac_dir" in
30949 .) ac_abs_builddir=`pwd`;;
30950 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30951 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30952 esac;;
30953esac
30954case $ac_abs_builddir in
30955.) ac_abs_top_builddir=${ac_top_builddir}.;;
30956*)
30957 case ${ac_top_builddir}. in
30958 .) ac_abs_top_builddir=$ac_abs_builddir;;
30959 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30960 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30961 esac;;
30962esac
30963case $ac_abs_builddir in
30964.) ac_abs_srcdir=$ac_srcdir;;
30965*)
30966 case $ac_srcdir in
30967 .) ac_abs_srcdir=$ac_abs_builddir;;
30968 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30969 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30970 esac;;
30971esac
30972case $ac_abs_builddir in
30973.) ac_abs_top_srcdir=$ac_top_srcdir;;
30974*)
30975 case $ac_top_srcdir in
30976 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30977 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30978 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30979 esac;;
30980esac
John Criswellc764fbc2003-09-06 15:17:13 +000030981
30982
30983 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30984echo "$as_me: executing $ac_dest commands" >&6;}
30985 case $ac_dest in
30986 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
30987 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030988 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030989 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030990 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030991 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
30992 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000030993 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
30994 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030995 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030996 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030997 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030998 esac
30999done
31000_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031001
31002cat >>$CONFIG_STATUS <<\_ACEOF
31003
31004{ (exit 0); exit 0; }
31005_ACEOF
31006chmod +x $CONFIG_STATUS
31007ac_clean_files=$ac_clean_files_save
31008
31009
31010# configure is writing to config.log, and then calls config.status.
31011# config.status does its own redirection, appending to config.log.
31012# Unfortunately, on DOS this fails, as config.log is still kept open
31013# by configure, so config.status won't be able to write to it; its
31014# output is simply discarded. So we exec the FD to /dev/null,
31015# effectively closing config.log, so it can be properly (re)opened and
31016# appended to by config.status. When coming back to configure, we
31017# need to make the FD available again.
31018if test "$no_create" != yes; then
31019 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031020 ac_config_status_args=
31021 test "$silent" = yes &&
31022 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031023 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031024 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031025 exec 5>>config.log
31026 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31027 # would make configure fail if this is the last instruction.
31028 $ac_cs_success || { (exit 1); exit 1; }
31029fi
31030
John Criswell12399a12003-09-30 15:55:44 +000031031#
31032# CONFIG_SUBDIRS section.
31033#
31034if test "$no_recursion" != yes; then
31035
31036 # Remove --cache-file and --srcdir arguments so they do not pile up.
31037 ac_sub_configure_args=
31038 ac_prev=
31039 for ac_arg in $ac_configure_args; do
31040 if test -n "$ac_prev"; then
31041 ac_prev=
31042 continue
31043 fi
31044 case $ac_arg in
31045 -cache-file | --cache-file | --cache-fil | --cache-fi \
31046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31047 ac_prev=cache_file ;;
31048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31050 | --c=*)
31051 ;;
31052 --config-cache | -C)
31053 ;;
31054 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31055 ac_prev=srcdir ;;
31056 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31057 ;;
31058 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31059 ac_prev=prefix ;;
31060 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31061 ;;
31062 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31063 esac
31064 done
31065
31066 # Always prepend --prefix to ensure using the same prefix
31067 # in subdir configurations.
31068 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31069
31070 ac_popdir=`pwd`
31071 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31072
31073 # Do not complain, so a configure script can configure whichever
31074 # parts of a large source tree are present.
31075 test -d $srcdir/$ac_dir || continue
31076
31077 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31078echo "$as_me: configuring in $ac_dir" >&6;}
31079 { if $as_mkdir_p; then
31080 mkdir -p "$ac_dir"
31081 else
31082 as_dir="$ac_dir"
31083 as_dirs=
31084 while test ! -d "$as_dir"; do
31085 as_dirs="$as_dir $as_dirs"
31086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31087$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031088 X"$as_dir" : 'X\(//\)[^/]' \| \
31089 X"$as_dir" : 'X\(//\)$' \| \
31090 X"$as_dir" : 'X\(/\)' \| \
31091 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031092echo X"$as_dir" |
31093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31095 /^X\(\/\/\)$/{ s//\1/; q; }
31096 /^X\(\/\).*/{ s//\1/; q; }
31097 s/.*/./; q'`
31098 done
31099 test ! -n "$as_dirs" || mkdir $as_dirs
31100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31101echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31102 { (exit 1); exit 1; }; }; }
31103
31104 ac_builddir=.
31105
31106if test "$ac_dir" != .; then
31107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31108 # A "../" for each directory in $ac_dir_suffix.
31109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31110else
31111 ac_dir_suffix= ac_top_builddir=
31112fi
31113
31114case $srcdir in
31115 .) # No --srcdir option. We are building in place.
31116 ac_srcdir=.
31117 if test -z "$ac_top_builddir"; then
31118 ac_top_srcdir=.
31119 else
31120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31121 fi ;;
31122 [\\/]* | ?:[\\/]* ) # Absolute path.
31123 ac_srcdir=$srcdir$ac_dir_suffix;
31124 ac_top_srcdir=$srcdir ;;
31125 *) # Relative path.
31126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31128esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031129
31130# Do not use `cd foo && pwd` to compute absolute paths, because
31131# the directories may not exist.
31132case `pwd` in
31133.) ac_abs_builddir="$ac_dir";;
31134*)
31135 case "$ac_dir" in
31136 .) ac_abs_builddir=`pwd`;;
31137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31139 esac;;
31140esac
31141case $ac_abs_builddir in
31142.) ac_abs_top_builddir=${ac_top_builddir}.;;
31143*)
31144 case ${ac_top_builddir}. in
31145 .) ac_abs_top_builddir=$ac_abs_builddir;;
31146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31148 esac;;
31149esac
31150case $ac_abs_builddir in
31151.) ac_abs_srcdir=$ac_srcdir;;
31152*)
31153 case $ac_srcdir in
31154 .) ac_abs_srcdir=$ac_abs_builddir;;
31155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31157 esac;;
31158esac
31159case $ac_abs_builddir in
31160.) ac_abs_top_srcdir=$ac_top_srcdir;;
31161*)
31162 case $ac_top_srcdir in
31163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31166 esac;;
31167esac
John Criswell12399a12003-09-30 15:55:44 +000031168
31169
31170 cd $ac_dir
31171
31172 # Check for guested configure; otherwise get Cygnus style configure.
31173 if test -f $ac_srcdir/configure.gnu; then
31174 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31175 elif test -f $ac_srcdir/configure; then
31176 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31177 elif test -f $ac_srcdir/configure.in; then
31178 ac_sub_configure=$ac_configure
31179 else
31180 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31181echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31182 ac_sub_configure=
31183 fi
31184
31185 # The recursion is here.
31186 if test -n "$ac_sub_configure"; then
31187 # Make the cache file name correct relative to the subdirectory.
31188 case $cache_file in
31189 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31190 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031191 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031192 esac
31193
31194 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31195echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31196 # The eval makes quoting arguments work.
31197 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031198 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31199 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031200echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31201 { (exit 1); exit 1; }; }
31202 fi
31203
31204 cd $ac_popdir
31205 done
31206fi
31207
Brian Gaekef3b24102003-11-16 18:38:14 +000031208
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031209if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31210 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031211echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031212 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031213echo "$as_me: WARNING: ***** appear to be working." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031214 { echo "$as_me:$LINENO: WARNING: ***** " >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031215echo "$as_me: WARNING: ***** " >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031216 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031217echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031218 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031219echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031220 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031221echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
31222fi