blob: 9b9fb3b37cd6438eb6894d834ed8fa034e3b3b65 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
John Criswelle2503892005-11-08 21:13:01 +00003# Generated by GNU Autoconf 2.59 for llvm 1.7cvs.
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#
John Criswellc0c186d2005-11-08 21:11:33 +000011# Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
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-'
John Criswelle2503892005-11-08 21:13:01 +0000428PACKAGE_VERSION='1.7cvs'
429PACKAGE_STRING='llvm 1.7cvs'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Alkis Evlogimenoseadc9ef2005-01-05 17:57:28 +0000438ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +0000440ac_subdirs_all="$ac_subdirs_all projects/llvm-poolalloc"
John Criswell241116f2005-12-19 20:27:24 +0000441ac_subdirs_all="$ac_subdirs_all projects/llvm-kernel"
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 Spencer7917d3a2006-04-06 22:00:36 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED DEBUG_RUNTIME JIT TARGET_HAS_JIT ENABLE_DOXYGEN ENABLE_THREADS TARGETS_TO_BUILD CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S CMP CP DATE FIND GREP MKDIR MV RANLIB ac_ct_RANLIB RM SED TAR GRAPHVIZ GV PERL HAVE_PERL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR LLVMGCC_VERSION LLVMGCC_MAJVERS 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
John Criswelle2503892005-11-08 21:13:01 +0000968\`configure' configures llvm 1.7cvs 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
John Criswelle2503892005-11-08 21:13:01 +00001030 short | recursive ) echo "Configuration of llvm 1.7cvs:";;
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
Reid Spencer6e96d812005-12-21 03:31:53 +00001038 --enable-debug-runtime
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001039 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001040 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer0a262ba2005-08-24 10:07:20 +00001041 --enable-threads Use threads if available (default is YES)
Reid Spencer99d1fcc2005-04-22 17:02:18 +00001042 --enable-target Build specific host targets:
1043 all,host-only,{target-name} (default=all)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001044 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001045 --enable-shared[=PKGS]
1046 build shared libraries [default=yes]
1047 --enable-static[=PKGS]
1048 build static libraries [default=yes]
1049 --enable-fast-install[=PKGS]
1050 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001051 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001052
1053Optional Packages:
1054 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer59473af2004-12-25 07:31:29 +00001056 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1057 searches PATH)
Reid Spencer0fcb9412004-11-30 08:11:54 +00001058 --with-tclinclude directory where tcl headers are
John Criswell47fdd832003-07-14 16:52:07 +00001059 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1060 --with-pic try to use only PIC/non-PIC objects [default=use
1061 both]
1062 --with-tags[=TAGS]
1063 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001064
1065Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001066 CC C compiler command
1067 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001068 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1069 nonstandard directory <lib dir>
1070 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001072 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001073 CXX C++ compiler command
1074 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001075 CXXCPP C++ preprocessor
1076 F77 Fortran 77 compiler command
1077 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001078
1079Use these variables to override the choices made by `configure' or to help
1080it to find libraries and programs with nonstandard names/locations.
1081
1082Report bugs to <llvmbugs@cs.uiuc.edu>.
1083_ACEOF
1084fi
1085
1086if test "$ac_init_help" = "recursive"; then
1087 # If there are subdirs, report their specific --help.
1088 ac_popdir=`pwd`
1089 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1090 test -d $ac_dir || continue
1091 ac_builddir=.
1092
1093if test "$ac_dir" != .; then
1094 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1095 # A "../" for each directory in $ac_dir_suffix.
1096 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1097else
1098 ac_dir_suffix= ac_top_builddir=
1099fi
1100
1101case $srcdir in
1102 .) # No --srcdir option. We are building in place.
1103 ac_srcdir=.
1104 if test -z "$ac_top_builddir"; then
1105 ac_top_srcdir=.
1106 else
1107 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1108 fi ;;
1109 [\\/]* | ?:[\\/]* ) # Absolute path.
1110 ac_srcdir=$srcdir$ac_dir_suffix;
1111 ac_top_srcdir=$srcdir ;;
1112 *) # Relative path.
1113 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1114 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1115esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001116
1117# Do not use `cd foo && pwd` to compute absolute paths, because
1118# the directories may not exist.
1119case `pwd` in
1120.) ac_abs_builddir="$ac_dir";;
1121*)
1122 case "$ac_dir" in
1123 .) ac_abs_builddir=`pwd`;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1125 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1126 esac;;
1127esac
1128case $ac_abs_builddir in
1129.) ac_abs_top_builddir=${ac_top_builddir}.;;
1130*)
1131 case ${ac_top_builddir}. in
1132 .) ac_abs_top_builddir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1135 esac;;
1136esac
1137case $ac_abs_builddir in
1138.) ac_abs_srcdir=$ac_srcdir;;
1139*)
1140 case $ac_srcdir in
1141 .) ac_abs_srcdir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1143 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1144 esac;;
1145esac
1146case $ac_abs_builddir in
1147.) ac_abs_top_srcdir=$ac_top_srcdir;;
1148*)
1149 case $ac_top_srcdir in
1150 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1153 esac;;
1154esac
John Criswell7a73b802003-06-30 21:59:07 +00001155
1156 cd $ac_dir
1157 # Check for guested configure; otherwise get Cygnus style configure.
1158 if test -f $ac_srcdir/configure.gnu; then
1159 echo
1160 $SHELL $ac_srcdir/configure.gnu --help=recursive
1161 elif test -f $ac_srcdir/configure; then
1162 echo
1163 $SHELL $ac_srcdir/configure --help=recursive
1164 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001165 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001166 echo
1167 $ac_configure --help
1168 else
1169 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1170 fi
1171 cd $ac_popdir
1172 done
1173fi
1174
1175test -n "$ac_init_help" && exit 0
1176if $ac_init_version; then
1177 cat <<\_ACEOF
John Criswelle2503892005-11-08 21:13:01 +00001178llvm configure 1.7cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +00001179generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001180
Reid Spencer2706f8c2004-09-19 23:53:36 +00001181Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001182This configure script is free software; the Free Software Foundation
1183gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001184
John Criswellc0c186d2005-11-08 21:11:33 +00001185Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign.
John Criswell7a73b802003-06-30 21:59:07 +00001186_ACEOF
1187 exit 0
1188fi
1189exec 5>config.log
1190cat >&5 <<_ACEOF
1191This file contains any messages produced by compilers while
1192running configure, to aid debugging if configure makes a mistake.
1193
John Criswelle2503892005-11-08 21:13:01 +00001194It was created by llvm $as_me 1.7cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001195generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001196
1197 $ $0 $@
1198
1199_ACEOF
1200{
1201cat <<_ASUNAME
1202## --------- ##
1203## Platform. ##
1204## --------- ##
1205
1206hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1207uname -m = `(uname -m) 2>/dev/null || echo unknown`
1208uname -r = `(uname -r) 2>/dev/null || echo unknown`
1209uname -s = `(uname -s) 2>/dev/null || echo unknown`
1210uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211
1212/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1213/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1214
1215/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1216/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1217/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1218hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1219/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1220/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1221/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1222
1223_ASUNAME
1224
1225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1226for as_dir in $PATH
1227do
1228 IFS=$as_save_IFS
1229 test -z "$as_dir" && as_dir=.
1230 echo "PATH: $as_dir"
1231done
1232
1233} >&5
1234
1235cat >&5 <<_ACEOF
1236
1237
1238## ----------- ##
1239## Core tests. ##
1240## ----------- ##
1241
1242_ACEOF
1243
1244
1245# Keep a trace of the command line.
1246# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001247# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001248# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001249# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001250ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001251ac_configure_args0=
1252ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001253ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001254ac_must_keep_next=false
1255for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001256do
John Criswell0c38eaf2003-09-10 15:17:25 +00001257 for ac_arg
1258 do
1259 case $ac_arg in
1260 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1262 | -silent | --silent | --silen | --sile | --sil)
1263 continue ;;
1264 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1265 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1266 esac
1267 case $ac_pass in
1268 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269 2)
1270 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1271 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001272 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001273 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001274 case $ac_arg in
1275 *=* | --config-cache | -C | -disable-* | --disable-* \
1276 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1277 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1278 | -with-* | --with-* | -without-* | --without-* | --x)
1279 case "$ac_configure_args0 " in
1280 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1281 esac
1282 ;;
1283 -* ) ac_must_keep_next=true ;;
1284 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001285 fi
1286 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1287 # Get rid of the leading space.
1288 ac_sep=" "
1289 ;;
1290 esac
1291 done
John Criswell7a73b802003-06-30 21:59:07 +00001292done
John Criswell0c38eaf2003-09-10 15:17:25 +00001293$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1294$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 +00001295
1296# When interrupted or exit'd, cleanup temporary files, and complete
1297# config.log. We remove comments because anyway the quotes in there
1298# would cause problems or look ugly.
1299# WARNING: Be sure not to use single quotes in there, as some shells,
1300# such as our DU 5.0 friend, will then `close' the trap.
1301trap 'exit_status=$?
1302 # Save into config.log some information that might help in debugging.
1303 {
1304 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001305
John Criswell7a73b802003-06-30 21:59:07 +00001306 cat <<\_ASBOX
1307## ---------------- ##
1308## Cache variables. ##
1309## ---------------- ##
1310_ASBOX
1311 echo
1312 # The following way of writing the cache mishandles newlines in values,
1313{
1314 (set) 2>&1 |
1315 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1316 *ac_space=\ *)
1317 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001318 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001320 ;;
1321 *)
1322 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001323 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001324 ;;
1325 esac;
1326}
1327 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001328
1329 cat <<\_ASBOX
1330## ----------------- ##
1331## Output variables. ##
1332## ----------------- ##
1333_ASBOX
1334 echo
1335 for ac_var in $ac_subst_vars
1336 do
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1339 done | sort
1340 echo
1341
1342 if test -n "$ac_subst_files"; then
1343 cat <<\_ASBOX
1344## ------------- ##
1345## Output files. ##
1346## ------------- ##
1347_ASBOX
1348 echo
1349 for ac_var in $ac_subst_files
1350 do
1351 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001352 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001353 done | sort
1354 echo
1355 fi
1356
John Criswell7a73b802003-06-30 21:59:07 +00001357 if test -s confdefs.h; then
1358 cat <<\_ASBOX
1359## ----------- ##
1360## confdefs.h. ##
1361## ----------- ##
1362_ASBOX
1363 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001364 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001365 echo
1366 fi
1367 test "$ac_signal" != 0 &&
1368 echo "$as_me: caught signal $ac_signal"
1369 echo "$as_me: exit $exit_status"
1370 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001371 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001372 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1373 exit $exit_status
1374 ' 0
1375for ac_signal in 1 2 13 15; do
1376 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1377done
1378ac_signal=0
1379
1380# confdefs.h avoids OS command line length limits that DEFS can exceed.
1381rm -rf conftest* confdefs.h
1382# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1383echo >confdefs.h
1384
1385# Predefined preprocessor variables.
1386
1387cat >>confdefs.h <<_ACEOF
1388#define PACKAGE_NAME "$PACKAGE_NAME"
1389_ACEOF
1390
1391
1392cat >>confdefs.h <<_ACEOF
1393#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1394_ACEOF
1395
1396
1397cat >>confdefs.h <<_ACEOF
1398#define PACKAGE_VERSION "$PACKAGE_VERSION"
1399_ACEOF
1400
1401
1402cat >>confdefs.h <<_ACEOF
1403#define PACKAGE_STRING "$PACKAGE_STRING"
1404_ACEOF
1405
1406
1407cat >>confdefs.h <<_ACEOF
1408#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1409_ACEOF
1410
1411
1412# Let the site file select an alternate cache file if it wants to.
1413# Prefer explicitly selected file to automatically selected ones.
1414if test -z "$CONFIG_SITE"; then
1415 if test "x$prefix" != xNONE; then
1416 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417 else
1418 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1419 fi
1420fi
1421for ac_site_file in $CONFIG_SITE; do
1422 if test -r "$ac_site_file"; then
1423 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1424echo "$as_me: loading site script $ac_site_file" >&6;}
1425 sed 's/^/| /' "$ac_site_file" >&5
1426 . "$ac_site_file"
1427 fi
1428done
1429
1430if test -r "$cache_file"; then
1431 # Some versions of bash will fail to source /dev/null (special
1432 # files actually), so we avoid doing that.
1433 if test -f "$cache_file"; then
1434 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1435echo "$as_me: loading cache $cache_file" >&6;}
1436 case $cache_file in
1437 [\\/]* | ?:[\\/]* ) . $cache_file;;
1438 *) . ./$cache_file;;
1439 esac
1440 fi
1441else
1442 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1443echo "$as_me: creating cache $cache_file" >&6;}
1444 >$cache_file
1445fi
1446
1447# Check that the precious variables saved in the cache have kept the same
1448# value.
1449ac_cache_corrupted=false
1450for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001451 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001452 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1453 eval ac_new_set=\$ac_env_${ac_var}_set
1454 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1455 eval ac_new_val="\$ac_env_${ac_var}_value"
1456 case $ac_old_set,$ac_new_set in
1457 set,)
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1459echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1461 ,set)
1462 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1463echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1464 ac_cache_corrupted=: ;;
1465 ,);;
1466 *)
1467 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001468 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001469echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001470 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001471echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001472 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001473echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001474 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001475 fi;;
1476 esac
1477 # Pass precious variables to config.status.
1478 if test "$ac_new_set" = set; then
1479 case $ac_new_val in
1480 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1481 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1482 *) ac_arg=$ac_var=$ac_new_val ;;
1483 esac
1484 case " $ac_configure_args " in
1485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1486 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1487 esac
1488 fi
1489done
1490if $ac_cache_corrupted; then
1491 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1492echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1493 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1494echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1495 { (exit 1); exit 1; }; }
1496fi
1497
1498ac_ext=c
1499ac_cpp='$CPP $CPPFLAGS'
1500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1502ac_compiler_gnu=$ac_cv_c_compiler_gnu
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
John Criswell0c38eaf2003-09-10 15:17:25 +00001530
Misha Brukman19098e52005-05-12 22:15:34 +00001531LLVM_COPYRIGHT="Copyright (c) 2003-2005 University of Illinois at Urbana-Champaign."
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001532
1533
1534
1535
1536
1537
1538
John Criswell7a73b802003-06-30 21:59:07 +00001539ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001540for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001541 if test -f $ac_dir/install-sh; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install-sh -c"
1544 break
1545 elif test -f $ac_dir/install.sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install.sh -c"
1548 break
1549 elif test -f $ac_dir/shtool; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 break
1553 fi
1554done
1555if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001556 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1557echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001558 { (exit 1); exit 1; }; }
1559fi
1560ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1561ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1562ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1563
John Criswell392aaa32003-07-22 19:18:09 +00001564
Reid Spencer2706f8c2004-09-19 23:53:36 +00001565if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001566 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1567 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001568echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1569 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001570 fi
John Criswell93e1c722003-09-15 17:04:06 +00001571fi
1572
John Criswell33a911a2003-11-25 20:36:46 +00001573for i in `ls ${srcdir}/projects`
1574do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001575 if test -d ${srcdir}/projects/${i} ; then
1576 case ${i} in
1577 "CVS") ;;
1578 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001579
Reid Spencer4d68ba22004-09-07 16:35:45 +00001580subdirs="$subdirs projects/sample"
1581 ;;
1582 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001583
Reid Spencer4d68ba22004-09-07 16:35:45 +00001584subdirs="$subdirs projects/Stacker"
1585 ;;
1586 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001587
Reid Spencer4d68ba22004-09-07 16:35:45 +00001588subdirs="$subdirs projects/llvm-test"
1589 ;;
1590 "llvm-reopt")
1591
1592subdirs="$subdirs projects/llvm-reopt"
1593;;
1594 "llvm-gcc")
1595
1596subdirs="$subdirs projects/llvm-gcc"
1597 ;;
Alkis Evlogimenos7bd1ede2005-01-16 09:44:58 +00001598 "llvm-java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001599
Alkis Evlogimenosae192d32005-01-14 07:52:28 +00001600subdirs="$subdirs projects/llvm-java"
Reid Spencer8085cff2005-01-16 02:58:39 +00001601 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001602 "llvm-tv")
1603
1604subdirs="$subdirs projects/llvm-tv"
1605 ;;
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001606 "llvm-poolalloc")
John Criswelle96aa1c2004-10-28 13:35:00 +00001607
Chris Lattnerc6cf2fb2005-02-11 04:46:58 +00001608subdirs="$subdirs projects/llvm-poolalloc"
John Criswelle96aa1c2004-10-28 13:35:00 +00001609 ;;
John Criswell241116f2005-12-19 20:27:24 +00001610 "llvm-kernel")
1611
1612subdirs="$subdirs projects/llvm-kernel"
1613 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001614 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001615 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1616echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001617 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001618 esac
John Criswell33a911a2003-11-25 20:36:46 +00001619 fi
1620done
John Criswell559a6c12003-09-30 16:31:48 +00001621
John Criswell7a73b802003-06-30 21:59:07 +00001622
1623# Make sure we can run config.sub.
1624$ac_config_sub sun4 >/dev/null 2>&1 ||
1625 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1626echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629echo "$as_me:$LINENO: checking build system type" >&5
1630echo $ECHO_N "checking build system type... $ECHO_C" >&6
1631if test "${ac_cv_build+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1633else
1634 ac_cv_build_alias=$build_alias
1635test -z "$ac_cv_build_alias" &&
1636 ac_cv_build_alias=`$ac_config_guess`
1637test -z "$ac_cv_build_alias" &&
1638 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1639echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1640 { (exit 1); exit 1; }; }
1641ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1642 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1643echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1644 { (exit 1); exit 1; }; }
1645
1646fi
1647echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1648echo "${ECHO_T}$ac_cv_build" >&6
1649build=$ac_cv_build
1650build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1651build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1652build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1653
1654
1655echo "$as_me:$LINENO: checking host system type" >&5
1656echo $ECHO_N "checking host system type... $ECHO_C" >&6
1657if test "${ac_cv_host+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659else
1660 ac_cv_host_alias=$host_alias
1661test -z "$ac_cv_host_alias" &&
1662 ac_cv_host_alias=$ac_cv_build_alias
1663ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1664 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1665echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1666 { (exit 1); exit 1; }; }
1667
1668fi
1669echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1670echo "${ECHO_T}$ac_cv_host" >&6
1671host=$ac_cv_host
1672host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1673host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1674host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1675
1676
1677echo "$as_me:$LINENO: checking target system type" >&5
1678echo $ECHO_N "checking target system type... $ECHO_C" >&6
1679if test "${ac_cv_target+set}" = set; then
1680 echo $ECHO_N "(cached) $ECHO_C" >&6
1681else
1682 ac_cv_target_alias=$target_alias
1683test "x$ac_cv_target_alias" = "x" &&
1684 ac_cv_target_alias=$ac_cv_host_alias
1685ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1686 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1687echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1688 { (exit 1); exit 1; }; }
1689
1690fi
1691echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1692echo "${ECHO_T}$ac_cv_target" >&6
1693target=$ac_cv_target
1694target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1695target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1696target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1697
1698
1699# The aliases save the names the user supplied, while $host etc.
1700# will get canonicalized.
1701test -n "$target_alias" &&
1702 test "$program_prefix$program_suffix$program_transform_name" = \
1703 NONENONEs,x,x, &&
1704 program_prefix=${target_alias}-
1705
Reid Spencer7b3e8512004-12-24 06:29:05 +00001706echo "$as_me:$LINENO: checking type of operating system we're on" >&5
1707echo $ECHO_N "checking type of operating system we're on... $ECHO_C" >&6
1708if test "${llvm_cv_os_type+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001709 echo $ECHO_N "(cached) $ECHO_C" >&6
1710else
1711 case $build in
Reid Spencer7b3e8512004-12-24 06:29:05 +00001712 *-*-aix*)
1713 llvm_cv_os_type="AIX"
1714 llvm_cv_platform_type="Unix" ;;
1715 *-*-cygwin*)
1716 llvm_cv_os_type="Cygwin"
1717 llvm_cv_platform_type="Unix" ;;
1718 *-*-darwin*)
1719 llvm_cv_os_type="Darwin"
1720 llvm_cv_platform_type="Unix" ;;
1721 *-*-freebsd*)
1722 llvm_cv_os_type="FreeBSD"
1723 llvm_cv_platform_type="Unix" ;;
Duraid Madina775afa52005-05-16 16:33:34 +00001724 *-*-hpux*)
1725 llvm_cv_os_type="HP-UX"
1726 llvm_cv_platform_type="Unix" ;;
Reid Spencer7b3e8512004-12-24 06:29:05 +00001727 *-*-interix*)
1728 llvm_cv_os_type="Interix"
1729 llvm_cv_platform_type="Unix" ;;
1730 *-*-linux*)
1731 llvm_cv_os_type="Linux"
1732 llvm_cv_platform_type="Unix" ;;
1733 *-*-solaris*)
1734 llvm_cv_os_type="SunOS"
1735 llvm_cv_platform_type="Unix" ;;
1736 *-*-win32*)
1737 llvm_cv_os_type="Win32"
1738 llvm_cv_platform_type="Win32" ;;
1739 *-*-mingw*)
1740 llvm_cv_os_type="MingW"
1741 llvm_cv_platform_type="Win32" ;;
1742 *)
1743 llvm_cv_os_type="Unknown"
1744 llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001745esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001746fi
Reid Spencer7b3e8512004-12-24 06:29:05 +00001747echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
1748echo "${ECHO_T}$llvm_cv_os_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001749
Reid Spencer7b3e8512004-12-24 06:29:05 +00001750if test "$llvm_cv_os_type" = "Unknown" ; then
1751 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
1752echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001753 { (exit 1); exit 1; }; }
1754fi
1755
Reid Spencer7b3e8512004-12-24 06:29:05 +00001756OS=$llvm_cv_os_type
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001757
1758
Reid Spencer7b3e8512004-12-24 06:29:05 +00001759case $llvm_cv_platform_type in
1760 Unix)
1761
1762cat >>confdefs.h <<\_ACEOF
1763#define LLVM_ON_UNIX 1
1764_ACEOF
1765
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001766 LLVM_ON_UNIX=1
1767
1768 LLVM_ON_WIN32=0
1769
Reid Spencer7b3e8512004-12-24 06:29:05 +00001770 ;;
1771 Win32)
1772
1773cat >>confdefs.h <<\_ACEOF
1774#define LLVM_ON_WIN32 1
1775_ACEOF
1776
Reid Spencerbbf7a8a2004-12-31 22:54:28 +00001777 LLVM_ON_UNIX=0
1778
1779 LLVM_ON_WIN32=1
1780
Reid Spencer7b3e8512004-12-24 06:29:05 +00001781 ;;
1782esac
1783
Reid Spencer73fb5482004-08-31 14:20:36 +00001784echo "$as_me:$LINENO: checking target architecture" >&5
1785echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001786if test "${llvm_cv_target_arch+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1788else
1789 case $target in
Reid Spenceree93c872004-12-23 21:08:52 +00001790 i?86-*) llvm_cv_target_arch="x86" ;;
Reid Spencer2dc65862004-12-28 07:56:14 +00001791 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001792 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1793 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
Andrew Lenharth501cb272005-01-24 17:25:41 +00001794 alpha*-*) llvm_cv_target_arch="Alpha" ;;
Misha Brukman1edb1902005-03-17 20:56:22 +00001795 ia64-*) llvm_cv_target_arch="IA64" ;;
Reid Spenceree93c872004-12-23 21:08:52 +00001796 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001797esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001798fi
1799echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1800echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001801
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001802if test "$llvm_cv_target_arch" = "Unknown" ; then
1803 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1804echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1805fi
John Criswell76595452003-07-01 22:07:39 +00001806
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001807ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001808
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001809
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001810ac_ext=c
1811ac_cpp='$CPP $CPPFLAGS'
1812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001815if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1817set dummy ${ac_tool_prefix}gcc; ac_word=$2
1818echo "$as_me:$LINENO: checking for $ac_word" >&5
1819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822else
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1825else
1826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827for as_dir in $PATH
1828do
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 break 2
1836 fi
1837done
1838done
1839
1840fi
1841fi
1842CC=$ac_cv_prog_CC
1843if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845echo "${ECHO_T}$CC" >&6
1846else
1847 echo "$as_me:$LINENO: result: no" >&5
1848echo "${ECHO_T}no" >&6
1849fi
1850
1851fi
1852if test -z "$ac_cv_prog_CC"; then
1853 ac_ct_CC=$CC
1854 # Extract the first word of "gcc", so it can be a program name with args.
1855set dummy gcc; ac_word=$2
1856echo "$as_me:$LINENO: checking for $ac_word" >&5
1857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860else
1861 if test -n "$ac_ct_CC"; then
1862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863else
1864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865for as_dir in $PATH
1866do
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_ac_ct_CC="gcc"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 break 2
1874 fi
1875done
1876done
1877
1878fi
1879fi
1880ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881if test -n "$ac_ct_CC"; then
1882 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883echo "${ECHO_T}$ac_ct_CC" >&6
1884else
1885 echo "$as_me:$LINENO: result: no" >&5
1886echo "${ECHO_T}no" >&6
1887fi
1888
1889 CC=$ac_ct_CC
1890else
1891 CC="$ac_cv_prog_CC"
1892fi
1893
1894if test -z "$CC"; then
1895 if test -n "$ac_tool_prefix"; then
1896 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1897set dummy ${ac_tool_prefix}cc; ac_word=$2
1898echo "$as_me:$LINENO: checking for $ac_word" >&5
1899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900if test "${ac_cv_prog_CC+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1902else
1903 if test -n "$CC"; then
1904 ac_cv_prog_CC="$CC" # Let the user override the test.
1905else
1906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907for as_dir in $PATH
1908do
1909 IFS=$as_save_IFS
1910 test -z "$as_dir" && as_dir=.
1911 for ac_exec_ext in '' $ac_executable_extensions; do
1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913 ac_cv_prog_CC="${ac_tool_prefix}cc"
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 break 2
1916 fi
1917done
1918done
1919
1920fi
1921fi
1922CC=$ac_cv_prog_CC
1923if test -n "$CC"; then
1924 echo "$as_me:$LINENO: result: $CC" >&5
1925echo "${ECHO_T}$CC" >&6
1926else
1927 echo "$as_me:$LINENO: result: no" >&5
1928echo "${ECHO_T}no" >&6
1929fi
1930
1931fi
1932if test -z "$ac_cv_prog_CC"; then
1933 ac_ct_CC=$CC
1934 # Extract the first word of "cc", so it can be a program name with args.
1935set dummy cc; ac_word=$2
1936echo "$as_me:$LINENO: checking for $ac_word" >&5
1937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1940else
1941 if test -n "$ac_ct_CC"; then
1942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943else
1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945for as_dir in $PATH
1946do
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951 ac_cv_prog_ac_ct_CC="cc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1954 fi
1955done
1956done
1957
1958fi
1959fi
1960ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961if test -n "$ac_ct_CC"; then
1962 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963echo "${ECHO_T}$ac_ct_CC" >&6
1964else
1965 echo "$as_me:$LINENO: result: no" >&5
1966echo "${ECHO_T}no" >&6
1967fi
1968
1969 CC=$ac_ct_CC
1970else
1971 CC="$ac_cv_prog_CC"
1972fi
1973
1974fi
1975if test -z "$CC"; then
1976 # Extract the first word of "cc", so it can be a program name with args.
1977set dummy cc; ac_word=$2
1978echo "$as_me:$LINENO: checking for $ac_word" >&5
1979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980if test "${ac_cv_prog_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1985else
1986 ac_prog_rejected=no
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1995 ac_prog_rejected=yes
1996 continue
1997 fi
1998 ac_cv_prog_CC="cc"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 break 2
2001 fi
2002done
2003done
2004
2005if test $ac_prog_rejected = yes; then
2006 # We found a bogon in the path, so make sure we never use it.
2007 set dummy $ac_cv_prog_CC
2008 shift
2009 if test $# != 0; then
2010 # We chose a different compiler from the bogus one.
2011 # However, it has the same basename, so the bogon will be chosen
2012 # first if we set CC to just the basename; use the full file name.
2013 shift
2014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2015 fi
2016fi
2017fi
2018fi
2019CC=$ac_cv_prog_CC
2020if test -n "$CC"; then
2021 echo "$as_me:$LINENO: result: $CC" >&5
2022echo "${ECHO_T}$CC" >&6
2023else
2024 echo "$as_me:$LINENO: result: no" >&5
2025echo "${ECHO_T}no" >&6
2026fi
2027
2028fi
2029if test -z "$CC"; then
2030 if test -n "$ac_tool_prefix"; then
2031 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002032 do
2033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2034set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2035echo "$as_me:$LINENO: checking for $ac_word" >&5
2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002037if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002042else
2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002050 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054done
2055done
2056
2057fi
2058fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002059CC=$ac_cv_prog_CC
2060if test -n "$CC"; then
2061 echo "$as_me:$LINENO: result: $CC" >&5
2062echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002063else
2064 echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6
2066fi
2067
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002068 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002069 done
2070fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002071if test -z "$CC"; then
2072 ac_ct_CC=$CC
2073 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002074do
2075 # Extract the first word of "$ac_prog", so it can be a program name with args.
2076set dummy $ac_prog; ac_word=$2
2077echo "$as_me:$LINENO: checking for $ac_word" >&5
2078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002079if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002084else
2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002092 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2095 fi
2096done
2097done
2098
2099fi
2100fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002101ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102if test -n "$ac_ct_CC"; then
2103 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002105else
2106 echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6
2108fi
2109
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002110 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002111done
John Criswell7a73b802003-06-30 21:59:07 +00002112
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002113 CC=$ac_ct_CC
2114fi
2115
John Criswell7a73b802003-06-30 21:59:07 +00002116fi
2117
2118
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002119test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120See \`config.log' for more details." >&5
2121echo "$as_me: error: no acceptable C compiler found in \$PATH
2122See \`config.log' for more details." >&2;}
2123 { (exit 1); exit 1; }; }
2124
John Criswell7a73b802003-06-30 21:59:07 +00002125# Provide some information about the compiler.
2126echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002127 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002128ac_compiler=`set X $ac_compile; echo $2`
2129{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2130 (eval $ac_compiler --version </dev/null >&5) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2135 (eval $ac_compiler -v </dev/null >&5) 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2140 (eval $ac_compiler -V </dev/null >&5) 2>&5
2141 ac_status=$?
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144
2145cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002146/* confdefs.h. */
2147_ACEOF
2148cat confdefs.h >>conftest.$ac_ext
2149cat >>conftest.$ac_ext <<_ACEOF
2150/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002151
John Criswell7a73b802003-06-30 21:59:07 +00002152int
2153main ()
2154{
2155
2156 ;
2157 return 0;
2158}
2159_ACEOF
2160ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002161ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002162# Try to create an executable without -o first, disregard a.out.
2163# It will help us diagnose broken compilers, and finding out an intuition
2164# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002165echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002167ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2169 (eval $ac_link_default) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 # Find the output, starting from the most likely. This scheme is
2174# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2175# resort.
2176
2177# Be careful to initialize this variable, since it used to be cached.
2178# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2179ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002180# b.out is created by i960 compilers.
2181for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2182do
2183 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002184 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002186 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002187 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002188 # This is the source file.
2189 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002190 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002191 # We found the default executable, but exeext='' is most
2192 # certainly right.
2193 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002194 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002195 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 # FIXME: I believe we export ac_cv_exeext for Libtool,
2197 # but it would be cool to find out if it's true. Does anybody
2198 # maintain Libtool? --akim.
2199 export ac_cv_exeext
2200 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002201 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002202 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002203 esac
2204done
2205else
2206 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002207sed 's/^/| /' conftest.$ac_ext >&5
2208
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002209{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002210See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002211echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002212See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002213 { (exit 77); exit 77; }; }
2214fi
2215
2216ac_exeext=$ac_cv_exeext
2217echo "$as_me:$LINENO: result: $ac_file" >&5
2218echo "${ECHO_T}$ac_file" >&6
2219
2220# Check the compiler produces executables we can run. If not, either
2221# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002222echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002224# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225# If not cross compiling, check that we can run a simple program.
2226if test "$cross_compiling" != yes; then
2227 if { ac_try='./$ac_file'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 (eval $ac_try) 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2233 cross_compiling=no
2234 else
2235 if test "$cross_compiling" = maybe; then
2236 cross_compiling=yes
2237 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002238 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002239If you meant to cross compile, use \`--host'.
2240See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002241echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002242If you meant to cross compile, use \`--host'.
2243See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002244 { (exit 1); exit 1; }; }
2245 fi
2246 fi
2247fi
2248echo "$as_me:$LINENO: result: yes" >&5
2249echo "${ECHO_T}yes" >&6
2250
John Criswell0c38eaf2003-09-10 15:17:25 +00002251rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002252ac_clean_files=$ac_clean_files_save
2253# Check the compiler produces executables we can run. If not, either
2254# the compiler is broken, or we cross compile.
2255echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258echo "${ECHO_T}$cross_compiling" >&6
2259
2260echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263 (eval $ac_link) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
2267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2269# work properly (i.e., refer to `conftest.exe'), while it won't with
2270# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002271for ac_file in conftest.exe conftest conftest.*; do
2272 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002273 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002276 export ac_cv_exeext
2277 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002278 * ) break;;
2279 esac
2280done
2281else
John Criswell0c38eaf2003-09-10 15:17:25 +00002282 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283See \`config.log' for more details." >&5
2284echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002286 { (exit 1); exit 1; }; }
2287fi
2288
2289rm -f conftest$ac_cv_exeext
2290echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291echo "${ECHO_T}$ac_cv_exeext" >&6
2292
2293rm -f conftest.$ac_ext
2294EXEEXT=$ac_cv_exeext
2295ac_exeext=$EXEEXT
2296echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2298if test "${ac_cv_objext+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300else
2301 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002302/* confdefs.h. */
2303_ACEOF
2304cat confdefs.h >>conftest.$ac_ext
2305cat >>conftest.$ac_ext <<_ACEOF
2306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002307
John Criswell7a73b802003-06-30 21:59:07 +00002308int
2309main ()
2310{
2311
2312 ;
2313 return 0;
2314}
2315_ACEOF
2316rm -f conftest.o conftest.obj
2317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; then
2322 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2323 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002325 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2326 break;;
2327 esac
2328done
2329else
2330 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002331sed 's/^/| /' conftest.$ac_ext >&5
2332
2333{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002337 { (exit 1); exit 1; }; }
2338fi
2339
2340rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341fi
2342echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343echo "${ECHO_T}$ac_cv_objext" >&6
2344OBJEXT=$ac_cv_objext
2345ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002346echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2348if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002352/* confdefs.h. */
2353_ACEOF
2354cat confdefs.h >>conftest.$ac_ext
2355cat >>conftest.$ac_ext <<_ACEOF
2356/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002357
John Criswell7a73b802003-06-30 21:59:07 +00002358int
2359main ()
2360{
2361#ifndef __GNUC__
2362 choke me
2363#endif
2364
2365 ;
2366 return 0;
2367}
2368_ACEOF
2369rm -f conftest.$ac_objext
2370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002371 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002372 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002373 grep -v '^ *+' conftest.er1 >conftest.err
2374 rm -f conftest.er1
2375 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002378 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002379 || test ! -s conftest.err'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 (eval $ac_try) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2391 ac_compiler_gnu=yes
2392else
2393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002394sed 's/^/| /' conftest.$ac_ext >&5
2395
John Criswell7a73b802003-06-30 21:59:07 +00002396ac_compiler_gnu=no
2397fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002399ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002400
2401fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002402echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2403echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2404GCC=`test $ac_compiler_gnu = yes && echo yes`
2405ac_test_CFLAGS=${CFLAGS+set}
2406ac_save_CFLAGS=$CFLAGS
2407CFLAGS="-g"
2408echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2409echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2410if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412else
2413 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002414/* confdefs.h. */
2415_ACEOF
2416cat confdefs.h >>conftest.$ac_ext
2417cat >>conftest.$ac_ext <<_ACEOF
2418/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002419
John Criswell7a73b802003-06-30 21:59:07 +00002420int
2421main ()
2422{
2423
2424 ;
2425 return 0;
2426}
2427_ACEOF
2428rm -f conftest.$ac_objext
2429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002430 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002431 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002432 grep -v '^ *+' conftest.er1 >conftest.err
2433 rm -f conftest.er1
2434 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002437 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002438 || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 (eval $ac_try) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002450 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002451else
2452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002453sed 's/^/| /' conftest.$ac_ext >&5
2454
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002455ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002456fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002458fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002459echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461if test "$ac_test_CFLAGS" = set; then
2462 CFLAGS=$ac_save_CFLAGS
2463elif test $ac_cv_prog_cc_g = yes; then
2464 if test "$GCC" = yes; then
2465 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002466 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002467 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002468 fi
2469else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002470 if test "$GCC" = yes; then
2471 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002472 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002473 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002474 fi
2475fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002476echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481 ac_cv_prog_cc_stdc=no
2482ac_save_CC=$CC
2483cat >conftest.$ac_ext <<_ACEOF
2484/* confdefs.h. */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h. */
2489#include <stdarg.h>
2490#include <stdio.h>
2491#include <sys/types.h>
2492#include <sys/stat.h>
2493/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2494struct buf { int x; };
2495FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496static char *e (p, i)
2497 char **p;
2498 int i;
2499{
2500 return p[i];
2501}
2502static char *f (char * (*g) (char **, int), char **p, ...)
2503{
2504 char *s;
2505 va_list v;
2506 va_start (v,p);
2507 s = g (p, va_arg (v,int));
2508 va_end (v);
2509 return s;
2510}
2511
2512/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2513 function prototypes and stuff, but not '\xHH' hex character constants.
2514 These don't provoke an error unfortunately, instead are silently treated
2515 as 'x'. The following induces an error, until -std1 is added to get
2516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2517 array size at least. It's necessary to write '\x00'==0 to get something
2518 that's true only with -std1. */
2519int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2520
2521int test (int i, double x);
2522struct s1 {int (*f) (int a);};
2523struct s2 {int (*f) (double a);};
2524int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2525int argc;
2526char **argv;
2527int
2528main ()
2529{
2530return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2531 ;
2532 return 0;
2533}
2534_ACEOF
2535# Don't try gcc -ansi; that turns off useful extensions and
2536# breaks some systems' header files.
2537# AIX -qlanglvl=ansi
2538# Ultrix and OSF/1 -std1
2539# HP-UX 10.20 and later -Ae
2540# HP-UX older versions -Aa -D_HPUX_SOURCE
2541# SVR4 -Xc -D__EXTENSIONS__
2542for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2543do
2544 CC="$ac_save_CC $ac_arg"
2545 rm -f conftest.$ac_objext
2546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 ac_cv_prog_cc_stdc=$ac_arg
2568break
2569else
2570 echo "$as_me: failed program was:" >&5
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
2573fi
2574rm -f conftest.err conftest.$ac_objext
2575done
2576rm -f conftest.$ac_ext conftest.$ac_objext
2577CC=$ac_save_CC
2578
2579fi
2580
2581case "x$ac_cv_prog_cc_stdc" in
2582 x|xno)
2583 echo "$as_me:$LINENO: result: none needed" >&5
2584echo "${ECHO_T}none needed" >&6 ;;
2585 *)
2586 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2587echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2588 CC="$CC $ac_cv_prog_cc_stdc" ;;
2589esac
2590
2591# Some people use a C++ compiler to compile C. Since we use `exit',
2592# in C++ we need to declare it. In case someone uses the same compiler
2593# for both compiling C and C++ we need to have the C++ compiler decide
2594# the declaration of exit, since it's the most demanding environment.
2595cat >conftest.$ac_ext <<_ACEOF
2596#ifndef __cplusplus
2597 choke me
2598#endif
2599_ACEOF
2600rm -f conftest.$ac_objext
2601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>conftest.er1
2603 ac_status=$?
2604 grep -v '^ *+' conftest.er1 >conftest.err
2605 rm -f conftest.er1
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002623 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002624 'extern "C" void std::exit (int) throw (); using std::exit;' \
2625 'extern "C" void std::exit (int); using std::exit;' \
2626 'extern "C" void exit (int) throw ();' \
2627 'extern "C" void exit (int);' \
2628 'void exit (int);'
2629do
2630 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002631/* confdefs.h. */
2632_ACEOF
2633cat confdefs.h >>conftest.$ac_ext
2634cat >>conftest.$ac_ext <<_ACEOF
2635/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002636$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002637#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002638int
2639main ()
2640{
2641exit (42);
2642 ;
2643 return 0;
2644}
2645_ACEOF
2646rm -f conftest.$ac_objext
2647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002648 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002649 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002655 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 :
2669else
2670 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002671sed 's/^/| /' conftest.$ac_ext >&5
2672
John Criswell7a73b802003-06-30 21:59:07 +00002673continue
2674fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002676 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002677/* confdefs.h. */
2678_ACEOF
2679cat confdefs.h >>conftest.$ac_ext
2680cat >>conftest.$ac_ext <<_ACEOF
2681/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002682$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002683int
2684main ()
2685{
2686exit (42);
2687 ;
2688 return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext
2692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002693 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002694 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002700 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002701 || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 break
2714else
2715 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002716sed 's/^/| /' conftest.$ac_ext >&5
2717
John Criswell7a73b802003-06-30 21:59:07 +00002718fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002720done
2721rm -f conftest*
2722if test -n "$ac_declaration"; then
2723 echo '#ifdef __cplusplus' >>confdefs.h
2724 echo $ac_declaration >>confdefs.h
2725 echo '#endif' >>confdefs.h
2726fi
2727
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002728else
2729 echo "$as_me: failed program was:" >&5
2730sed 's/^/| /' conftest.$ac_ext >&5
2731
2732fi
2733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734ac_ext=c
2735ac_cpp='$CPP $CPPFLAGS'
2736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
2740
2741echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2742echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2743if test "${ac_cv_c_bigendian+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2745else
2746 # See if sys/param.h defines the BYTE_ORDER macro.
2747cat >conftest.$ac_ext <<_ACEOF
2748/* confdefs.h. */
2749_ACEOF
2750cat confdefs.h >>conftest.$ac_ext
2751cat >>conftest.$ac_ext <<_ACEOF
2752/* end confdefs.h. */
2753#include <sys/types.h>
2754#include <sys/param.h>
2755
2756int
2757main ()
2758{
2759#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2760 bogus endian macros
2761#endif
2762
2763 ;
2764 return 0;
2765}
2766_ACEOF
2767rm -f conftest.$ac_objext
2768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2769 (eval $ac_compile) 2>conftest.er1
2770 ac_status=$?
2771 grep -v '^ *+' conftest.er1 >conftest.err
2772 rm -f conftest.er1
2773 cat conftest.err >&5
2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775 (exit $ac_status); } &&
2776 { ac_try='test -z "$ac_c_werror_flag"
2777 || test ! -s conftest.err'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 (eval $ac_try) 2>&5
2780 ac_status=$?
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; } &&
2783 { ac_try='test -s conftest.$ac_objext'
2784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 (eval $ac_try) 2>&5
2786 ac_status=$?
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); }; }; then
2789 # It does; now see whether it defined to BIG_ENDIAN or not.
2790cat >conftest.$ac_ext <<_ACEOF
2791/* confdefs.h. */
2792_ACEOF
2793cat confdefs.h >>conftest.$ac_ext
2794cat >>conftest.$ac_ext <<_ACEOF
2795/* end confdefs.h. */
2796#include <sys/types.h>
2797#include <sys/param.h>
2798
2799int
2800main ()
2801{
2802#if BYTE_ORDER != BIG_ENDIAN
2803 not big endian
2804#endif
2805
2806 ;
2807 return 0;
2808}
2809_ACEOF
2810rm -f conftest.$ac_objext
2811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812 (eval $ac_compile) 2>conftest.er1
2813 ac_status=$?
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try='test -z "$ac_c_werror_flag"
2820 || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 (eval $ac_try) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 ac_cv_c_bigendian=yes
2833else
2834 echo "$as_me: failed program was:" >&5
2835sed 's/^/| /' conftest.$ac_ext >&5
2836
2837ac_cv_c_bigendian=no
2838fi
2839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840else
2841 echo "$as_me: failed program was:" >&5
2842sed 's/^/| /' conftest.$ac_ext >&5
2843
2844# It does not; compile a test program.
2845if test "$cross_compiling" = yes; then
2846 # try to guess the endianness by grepping values into an object file
2847 ac_cv_c_bigendian=unknown
2848 cat >conftest.$ac_ext <<_ACEOF
2849/* confdefs.h. */
2850_ACEOF
2851cat confdefs.h >>conftest.$ac_ext
2852cat >>conftest.$ac_ext <<_ACEOF
2853/* end confdefs.h. */
2854short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2855short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2856void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2857short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2858short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2859void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2860int
2861main ()
2862{
2863 _ascii (); _ebcdic ();
2864 ;
2865 return 0;
2866}
2867_ACEOF
2868rm -f conftest.$ac_objext
2869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2870 (eval $ac_compile) 2>conftest.er1
2871 ac_status=$?
2872 grep -v '^ *+' conftest.er1 >conftest.err
2873 rm -f conftest.er1
2874 cat conftest.err >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); } &&
2877 { ac_try='test -z "$ac_c_werror_flag"
2878 || test ! -s conftest.err'
2879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 (eval $ac_try) 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; } &&
2884 { ac_try='test -s conftest.$ac_objext'
2885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2886 (eval $ac_try) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; }; then
2890 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2891 ac_cv_c_bigendian=yes
2892fi
2893if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2894 if test "$ac_cv_c_bigendian" = unknown; then
2895 ac_cv_c_bigendian=no
2896 else
2897 # finding both strings is unlikely to happen, but who knows?
2898 ac_cv_c_bigendian=unknown
2899 fi
2900fi
2901else
2902 echo "$as_me: failed program was:" >&5
2903sed 's/^/| /' conftest.$ac_ext >&5
2904
2905fi
2906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2907else
2908 cat >conftest.$ac_ext <<_ACEOF
2909/* confdefs.h. */
2910_ACEOF
2911cat confdefs.h >>conftest.$ac_ext
2912cat >>conftest.$ac_ext <<_ACEOF
2913/* end confdefs.h. */
2914int
2915main ()
2916{
2917 /* Are we little or big endian? From Harbison&Steele. */
2918 union
2919 {
2920 long l;
2921 char c[sizeof (long)];
2922 } u;
2923 u.l = 1;
2924 exit (u.c[sizeof (long) - 1] == 1);
2925}
2926_ACEOF
2927rm -f conftest$ac_exeext
2928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2929 (eval $ac_link) 2>&5
2930 ac_status=$?
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 (eval $ac_try) 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 ac_cv_c_bigendian=no
2939else
2940 echo "$as_me: program exited with status $ac_status" >&5
2941echo "$as_me: failed program was:" >&5
2942sed 's/^/| /' conftest.$ac_ext >&5
2943
2944( exit $ac_status )
2945ac_cv_c_bigendian=yes
2946fi
2947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2948fi
2949fi
2950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2951fi
2952echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2953echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2954case $ac_cv_c_bigendian in
2955 yes)
2956 ENDIAN=big
2957 ;;
2958 no)
2959 ENDIAN=little
2960 ;;
2961 *)
2962 { { echo "$as_me:$LINENO: error: unknown endianness
2963presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2964echo "$as_me: error: unknown endianness
2965presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2966 { (exit 1); exit 1; }; } ;;
2967esac
2968
2969
2970
2971# Check whether --enable-optimized or --disable-optimized was given.
2972if test "${enable_optimized+set}" = set; then
2973 enableval="$enable_optimized"
2974
2975else
2976 enableval=no
2977fi;
2978if test ${enableval} = "no" ; then
2979 ENABLE_OPTIMIZED=
2980
2981else
2982 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2983
2984fi
2985
Reid Spencer6e96d812005-12-21 03:31:53 +00002986# Check whether --enable-debug-runtime or --disable-debug-runtime was given.
2987if test "${enable_debug_runtime+set}" = set; then
2988 enableval="$enable_debug_runtime"
2989
2990else
2991 enableval=no
2992fi;
2993if test ${enableval} = "no" ; then
2994 DEBUG_RUNTIME=
2995
2996else
2997 DEBUG_RUNTIME=DEBUG_RUNTIME=1
2998
2999fi
3000
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003001# Check whether --enable-jit or --disable-jit was given.
3002if test "${enable_jit+set}" = set; then
3003 enableval="$enable_jit"
3004
3005else
3006 enableval=default
3007fi;
3008if test ${enableval} = "no"
3009then
3010 JIT=
3011
3012else
Reid Spencerefbe40a2004-11-25 07:28:19 +00003013 case "$llvm_cv_target_arch" in
Reid Spencerb195d9d2006-03-23 23:21:29 +00003014 x86) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003015 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003016 Sparc) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003017 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003018 PowerPC) TARGET_HAS_JIT=1
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003019 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003020 x86_64) TARGET_HAS_JIT=0
Reid Spencer95ed8432004-12-23 06:22:33 +00003021 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003022 Alpha) TARGET_HAS_JIT=1
Reid Spencer945de9b2005-04-22 07:27:28 +00003023 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003024 IA64) TARGET_HAS_JIT=0
Reid Spencer945de9b2005-04-22 07:27:28 +00003025 ;;
Reid Spencerb195d9d2006-03-23 23:21:29 +00003026 *) TARGET_HAS_JIT=0
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003027 ;;
3028 esac
3029fi
3030
Reid Spencer1f319422004-11-29 04:56:35 +00003031# Check whether --enable-doxygen or --disable-doxygen was given.
3032if test "${enable_doxygen+set}" = set; then
3033 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003034
Reid Spencer1f319422004-11-29 04:56:35 +00003035else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003036 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00003037fi;
3038case "$enableval" in
3039 yes) ENABLE_DOXYGEN=1
3040 ;;
3041 no) ENABLE_DOXYGEN=0
3042 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00003043 default) ENABLE_DOXYGEN=0
3044 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00003045 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
3046echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
3047 { (exit 1); exit 1; }; } ;;
3048esac
3049
Reid Spencer0a262ba2005-08-24 10:07:20 +00003050# Check whether --enable-threads or --disable-threads was given.
3051if test "${enable_threads+set}" = set; then
3052 enableval="$enable_threads"
3053
3054else
3055 enableval=yes
3056fi;
3057case "$enableval" in
3058 yes) ENABLE_THREADS=1
3059 ;;
3060 no) ENABLE_THREADS=0
3061 ;;
3062 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
3063echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
3064 { (exit 1); exit 1; }; } ;;
3065esac
3066
3067cat >>confdefs.h <<_ACEOF
3068#define ENABLE_THREADS $ENABLE_THREADS
3069_ACEOF
3070
3071
Reid Spencer945de9b2005-04-22 07:27:28 +00003072TARGETS_TO_BUILD=""
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003073# Check whether --enable-targets or --disable-targets was given.
3074if test "${enable_targets+set}" = set; then
3075 enableval="$enable_targets"
Reid Spencer945de9b2005-04-22 07:27:28 +00003076
3077else
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003078 enableval=all
Reid Spencer945de9b2005-04-22 07:27:28 +00003079fi;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003080case "$enableval" in
Chris Lattner56b9e1c2006-02-16 21:12:54 +00003081 all) TARGETS_TO_BUILD="X86 Sparc SparcV9 PowerPC Alpha IA64" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003082 host-only)
3083 case "$llvm_cv_target_arch" in
3084 x86) TARGETS_TO_BUILD="X86" ;;
3085 x86_64) TARGETS_TO_BUILD="X86" ;;
Chris Lattner35409222006-02-05 06:26:43 +00003086 Sparc) TARGETS_TO_BUILD="Sparc SparcV9" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003087 PowerPC) TARGETS_TO_BUILD="PowerPC" ;;
3088 Alpha) TARGETS_TO_BUILD="Alpha" ;;
3089 IA64) TARGETS_TO_BUILD="IA64" ;;
3090 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
Reid Spencer945de9b2005-04-22 07:27:28 +00003091echo "$as_me: error: Can not set target to build" >&2;}
3092 { (exit 1); exit 1; }; } ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003093 esac
3094 ;;
3095 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
3096 case "$a_target" in
3097 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
3098 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
Chris Lattner35409222006-02-05 06:26:43 +00003099 sparc) TARGETS_TO_BUILD="Sparc SparcV9 $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003100 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
3101 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
3102 ia64) TARGETS_TO_BUILD="IA64 $TARGETS_TO_BUILD" ;;
Reid Spencer99d1fcc2005-04-22 17:02:18 +00003103 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
3104echo "$as_me: error: Unrecognized target $a_target" >&2;}
3105 { (exit 1); exit 1; }; } ;;
3106 esac
3107 done
3108 ;;
3109esac
Reid Spencer675f0922005-04-22 17:06:18 +00003110TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD"
Reid Spencer945de9b2005-04-22 07:27:28 +00003111TARGETS_TO_BUILD=$TARGETS_TO_BUILD
3112
3113
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003114
Reid Spencer59473af2004-12-25 07:31:29 +00003115# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
3116if test "${with_llvmgccdir+set}" = set; then
3117 withval="$with_llvmgccdir"
3118
3119else
3120 withval=default
3121fi;
3122case "$withval" in
3123 default) WITH_LLVMGCCDIR=default ;;
3124 /*) WITH_LLVMGCCDIR=$withval ;;
3125 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
3126echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
3127 { (exit 1); exit 1; }; } ;;
3128esac
3129
3130
Reid Spencer945de9b2005-04-22 07:27:28 +00003131
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003132ac_ext=c
3133ac_cpp='$CPP $CPPFLAGS'
3134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136ac_compiler_gnu=$ac_cv_c_compiler_gnu
3137echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3138echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3139# On Suns, sometimes $CPP names a directory.
3140if test -n "$CPP" && test -d "$CPP"; then
3141 CPP=
3142fi
3143if test -z "$CPP"; then
3144 if test "${ac_cv_prog_CPP+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3146else
3147 # Double quotes because CPP needs to be expanded
3148 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3149 do
3150 ac_preproc_ok=false
3151for ac_c_preproc_warn_flag in '' yes
3152do
3153 # Use a header file that comes with gcc, so configuring glibc
3154 # with a fresh cross-compiler works.
3155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3156 # <limits.h> exists even on freestanding compilers.
3157 # On the NeXT, cc -E runs the code through the compiler's parser,
3158 # not just through cpp. "Syntax error" is here to catch this case.
3159 cat >conftest.$ac_ext <<_ACEOF
3160/* confdefs.h. */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h. */
3165#ifdef __STDC__
3166# include <limits.h>
3167#else
3168# include <assert.h>
3169#endif
3170 Syntax error
3171_ACEOF
3172if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3173 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3174 ac_status=$?
3175 grep -v '^ *+' conftest.er1 >conftest.err
3176 rm -f conftest.er1
3177 cat conftest.err >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); } >/dev/null; then
3180 if test -s conftest.err; then
3181 ac_cpp_err=$ac_c_preproc_warn_flag
3182 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3183 else
3184 ac_cpp_err=
3185 fi
3186else
3187 ac_cpp_err=yes
3188fi
3189if test -z "$ac_cpp_err"; then
3190 :
3191else
3192 echo "$as_me: failed program was:" >&5
3193sed 's/^/| /' conftest.$ac_ext >&5
3194
3195 # Broken: fails on valid input.
3196continue
3197fi
3198rm -f conftest.err conftest.$ac_ext
3199
3200 # OK, works on sane cases. Now check whether non-existent headers
3201 # can be detected and how.
3202 cat >conftest.$ac_ext <<_ACEOF
3203/* confdefs.h. */
3204_ACEOF
3205cat confdefs.h >>conftest.$ac_ext
3206cat >>conftest.$ac_ext <<_ACEOF
3207/* end confdefs.h. */
3208#include <ac_nonexistent.h>
3209_ACEOF
3210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3212 ac_status=$?
3213 grep -v '^ *+' conftest.er1 >conftest.err
3214 rm -f conftest.er1
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } >/dev/null; then
3218 if test -s conftest.err; then
3219 ac_cpp_err=$ac_c_preproc_warn_flag
3220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3221 else
3222 ac_cpp_err=
3223 fi
3224else
3225 ac_cpp_err=yes
3226fi
3227if test -z "$ac_cpp_err"; then
3228 # Broken: success on invalid input.
3229continue
3230else
3231 echo "$as_me: failed program was:" >&5
3232sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 # Passes both tests.
3235ac_preproc_ok=:
3236break
3237fi
3238rm -f conftest.err conftest.$ac_ext
3239
3240done
3241# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3242rm -f conftest.err conftest.$ac_ext
3243if $ac_preproc_ok; then
3244 break
3245fi
3246
3247 done
3248 ac_cv_prog_CPP=$CPP
3249
3250fi
3251 CPP=$ac_cv_prog_CPP
3252else
3253 ac_cv_prog_CPP=$CPP
3254fi
3255echo "$as_me:$LINENO: result: $CPP" >&5
3256echo "${ECHO_T}$CPP" >&6
3257ac_preproc_ok=false
3258for ac_c_preproc_warn_flag in '' yes
3259do
3260 # Use a header file that comes with gcc, so configuring glibc
3261 # with a fresh cross-compiler works.
3262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3263 # <limits.h> exists even on freestanding compilers.
3264 # On the NeXT, cc -E runs the code through the compiler's parser,
3265 # not just through cpp. "Syntax error" is here to catch this case.
3266 cat >conftest.$ac_ext <<_ACEOF
3267/* confdefs.h. */
3268_ACEOF
3269cat confdefs.h >>conftest.$ac_ext
3270cat >>conftest.$ac_ext <<_ACEOF
3271/* end confdefs.h. */
3272#ifdef __STDC__
3273# include <limits.h>
3274#else
3275# include <assert.h>
3276#endif
3277 Syntax error
3278_ACEOF
3279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3281 ac_status=$?
3282 grep -v '^ *+' conftest.er1 >conftest.err
3283 rm -f conftest.er1
3284 cat conftest.err >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); } >/dev/null; then
3287 if test -s conftest.err; then
3288 ac_cpp_err=$ac_c_preproc_warn_flag
3289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290 else
3291 ac_cpp_err=
3292 fi
3293else
3294 ac_cpp_err=yes
3295fi
3296if test -z "$ac_cpp_err"; then
3297 :
3298else
3299 echo "$as_me: failed program was:" >&5
3300sed 's/^/| /' conftest.$ac_ext >&5
3301
3302 # Broken: fails on valid input.
3303continue
3304fi
3305rm -f conftest.err conftest.$ac_ext
3306
3307 # OK, works on sane cases. Now check whether non-existent headers
3308 # can be detected and how.
3309 cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h. */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h. */
3315#include <ac_nonexistent.h>
3316_ACEOF
3317if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3318 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3319 ac_status=$?
3320 grep -v '^ *+' conftest.er1 >conftest.err
3321 rm -f conftest.er1
3322 cat conftest.err >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); } >/dev/null; then
3325 if test -s conftest.err; then
3326 ac_cpp_err=$ac_c_preproc_warn_flag
3327 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3328 else
3329 ac_cpp_err=
3330 fi
3331else
3332 ac_cpp_err=yes
3333fi
3334if test -z "$ac_cpp_err"; then
3335 # Broken: success on invalid input.
3336continue
3337else
3338 echo "$as_me: failed program was:" >&5
3339sed 's/^/| /' conftest.$ac_ext >&5
3340
3341 # Passes both tests.
3342ac_preproc_ok=:
3343break
3344fi
3345rm -f conftest.err conftest.$ac_ext
3346
3347done
3348# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3349rm -f conftest.err conftest.$ac_ext
3350if $ac_preproc_ok; then
3351 :
3352else
3353 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3354See \`config.log' for more details." >&5
3355echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3356See \`config.log' for more details." >&2;}
3357 { (exit 1); exit 1; }; }
3358fi
3359
John Criswell7a73b802003-06-30 21:59:07 +00003360ac_ext=c
3361ac_cpp='$CPP $CPPFLAGS'
3362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364ac_compiler_gnu=$ac_cv_c_compiler_gnu
3365
3366ac_ext=c
3367ac_cpp='$CPP $CPPFLAGS'
3368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371if test -n "$ac_tool_prefix"; then
3372 for ac_prog in gcc
3373 do
3374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3375set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3376echo "$as_me:$LINENO: checking for $ac_word" >&5
3377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3378if test "${ac_cv_prog_CC+set}" = set; then
3379 echo $ECHO_N "(cached) $ECHO_C" >&6
3380else
3381 if test -n "$CC"; then
3382 ac_cv_prog_CC="$CC" # Let the user override the test.
3383else
3384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385for as_dir in $PATH
3386do
3387 IFS=$as_save_IFS
3388 test -z "$as_dir" && as_dir=.
3389 for ac_exec_ext in '' $ac_executable_extensions; do
3390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3391 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3393 break 2
3394 fi
3395done
3396done
3397
3398fi
3399fi
3400CC=$ac_cv_prog_CC
3401if test -n "$CC"; then
3402 echo "$as_me:$LINENO: result: $CC" >&5
3403echo "${ECHO_T}$CC" >&6
3404else
3405 echo "$as_me:$LINENO: result: no" >&5
3406echo "${ECHO_T}no" >&6
3407fi
3408
3409 test -n "$CC" && break
3410 done
3411fi
3412if test -z "$CC"; then
3413 ac_ct_CC=$CC
3414 for ac_prog in gcc
3415do
3416 # Extract the first word of "$ac_prog", so it can be a program name with args.
3417set dummy $ac_prog; ac_word=$2
3418echo "$as_me:$LINENO: checking for $ac_word" >&5
3419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3422else
3423 if test -n "$ac_ct_CC"; then
3424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425else
3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427for as_dir in $PATH
3428do
3429 IFS=$as_save_IFS
3430 test -z "$as_dir" && as_dir=.
3431 for ac_exec_ext in '' $ac_executable_extensions; do
3432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3433 ac_cv_prog_ac_ct_CC="$ac_prog"
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 break 2
3436 fi
3437done
3438done
3439
3440fi
3441fi
3442ac_ct_CC=$ac_cv_prog_ac_ct_CC
3443if test -n "$ac_ct_CC"; then
3444 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3445echo "${ECHO_T}$ac_ct_CC" >&6
3446else
3447 echo "$as_me:$LINENO: result: no" >&5
3448echo "${ECHO_T}no" >&6
3449fi
3450
3451 test -n "$ac_ct_CC" && break
3452done
3453
3454 CC=$ac_ct_CC
3455fi
3456
3457
John Criswell0c38eaf2003-09-10 15:17:25 +00003458test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3459See \`config.log' for more details." >&5
3460echo "$as_me: error: no acceptable C compiler found in \$PATH
3461See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003462 { (exit 1); exit 1; }; }
3463
3464# Provide some information about the compiler.
3465echo "$as_me:$LINENO:" \
3466 "checking for C compiler version" >&5
3467ac_compiler=`set X $ac_compile; echo $2`
3468{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3469 (eval $ac_compiler --version </dev/null >&5) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }
3473{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3474 (eval $ac_compiler -v </dev/null >&5) 2>&5
3475 ac_status=$?
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); }
3478{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3479 (eval $ac_compiler -V </dev/null >&5) 2>&5
3480 ac_status=$?
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }
3483
3484echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3485echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3486if test "${ac_cv_c_compiler_gnu+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3488else
3489 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003490/* confdefs.h. */
3491_ACEOF
3492cat confdefs.h >>conftest.$ac_ext
3493cat >>conftest.$ac_ext <<_ACEOF
3494/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003495
John Criswell7a73b802003-06-30 21:59:07 +00003496int
3497main ()
3498{
3499#ifndef __GNUC__
3500 choke me
3501#endif
3502
3503 ;
3504 return 0;
3505}
3506_ACEOF
3507rm -f conftest.$ac_objext
3508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003509 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003510 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_compiler_gnu=yes
3530else
3531 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003532sed 's/^/| /' conftest.$ac_ext >&5
3533
John Criswell7a73b802003-06-30 21:59:07 +00003534ac_compiler_gnu=no
3535fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003537ac_cv_c_compiler_gnu=$ac_compiler_gnu
3538
3539fi
3540echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3541echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3542GCC=`test $ac_compiler_gnu = yes && echo yes`
3543ac_test_CFLAGS=${CFLAGS+set}
3544ac_save_CFLAGS=$CFLAGS
3545CFLAGS="-g"
3546echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3547echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3548if test "${ac_cv_prog_cc_g+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3550else
3551 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003552/* confdefs.h. */
3553_ACEOF
3554cat confdefs.h >>conftest.$ac_ext
3555cat >>conftest.$ac_ext <<_ACEOF
3556/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003557
John Criswell7a73b802003-06-30 21:59:07 +00003558int
3559main ()
3560{
3561
3562 ;
3563 return 0;
3564}
3565_ACEOF
3566rm -f conftest.$ac_objext
3567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003568 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003569 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003570 grep -v '^ *+' conftest.er1 >conftest.err
3571 rm -f conftest.er1
3572 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003575 { ac_try='test -z "$ac_c_werror_flag"
3576 || test ! -s conftest.err'
3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578 (eval $ac_try) 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }; } &&
3582 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3584 (eval $ac_try) 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); }; }; then
3588 ac_cv_prog_cc_g=yes
3589else
3590 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003591sed 's/^/| /' conftest.$ac_ext >&5
3592
John Criswell7a73b802003-06-30 21:59:07 +00003593ac_cv_prog_cc_g=no
3594fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003596fi
3597echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3598echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3599if test "$ac_test_CFLAGS" = set; then
3600 CFLAGS=$ac_save_CFLAGS
3601elif test $ac_cv_prog_cc_g = yes; then
3602 if test "$GCC" = yes; then
3603 CFLAGS="-g -O2"
3604 else
3605 CFLAGS="-g"
3606 fi
3607else
3608 if test "$GCC" = yes; then
3609 CFLAGS="-O2"
3610 else
3611 CFLAGS=
3612 fi
3613fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003614echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3615echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3616if test "${ac_cv_prog_cc_stdc+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618else
3619 ac_cv_prog_cc_stdc=no
3620ac_save_CC=$CC
3621cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003622/* confdefs.h. */
3623_ACEOF
3624cat confdefs.h >>conftest.$ac_ext
3625cat >>conftest.$ac_ext <<_ACEOF
3626/* end confdefs.h. */
3627#include <stdarg.h>
3628#include <stdio.h>
3629#include <sys/types.h>
3630#include <sys/stat.h>
3631/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3632struct buf { int x; };
3633FILE * (*rcsopen) (struct buf *, struct stat *, int);
3634static char *e (p, i)
3635 char **p;
3636 int i;
3637{
3638 return p[i];
3639}
3640static char *f (char * (*g) (char **, int), char **p, ...)
3641{
3642 char *s;
3643 va_list v;
3644 va_start (v,p);
3645 s = g (p, va_arg (v,int));
3646 va_end (v);
3647 return s;
3648}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003649
3650/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3651 function prototypes and stuff, but not '\xHH' hex character constants.
3652 These don't provoke an error unfortunately, instead are silently treated
3653 as 'x'. The following induces an error, until -std1 is added to get
3654 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3655 array size at least. It's necessary to write '\x00'==0 to get something
3656 that's true only with -std1. */
3657int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3658
John Criswell0c38eaf2003-09-10 15:17:25 +00003659int test (int i, double x);
3660struct s1 {int (*f) (int a);};
3661struct s2 {int (*f) (double a);};
3662int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3663int argc;
3664char **argv;
3665int
3666main ()
3667{
3668return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3669 ;
3670 return 0;
3671}
3672_ACEOF
3673# Don't try gcc -ansi; that turns off useful extensions and
3674# breaks some systems' header files.
3675# AIX -qlanglvl=ansi
3676# Ultrix and OSF/1 -std1
3677# HP-UX 10.20 and later -Ae
3678# HP-UX older versions -Aa -D_HPUX_SOURCE
3679# SVR4 -Xc -D__EXTENSIONS__
3680for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3681do
3682 CC="$ac_save_CC $ac_arg"
3683 rm -f conftest.$ac_objext
3684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003685 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003692 { ac_try='test -z "$ac_c_werror_flag"
3693 || test ! -s conftest.err'
3694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695 (eval $ac_try) 2>&5
3696 ac_status=$?
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; } &&
3699 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; }; then
3705 ac_cv_prog_cc_stdc=$ac_arg
3706break
3707else
3708 echo "$as_me: failed program was:" >&5
3709sed 's/^/| /' conftest.$ac_ext >&5
3710
3711fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003712rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003713done
3714rm -f conftest.$ac_ext conftest.$ac_objext
3715CC=$ac_save_CC
3716
3717fi
3718
3719case "x$ac_cv_prog_cc_stdc" in
3720 x|xno)
3721 echo "$as_me:$LINENO: result: none needed" >&5
3722echo "${ECHO_T}none needed" >&6 ;;
3723 *)
3724 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3725echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3726 CC="$CC $ac_cv_prog_cc_stdc" ;;
3727esac
3728
John Criswell7a73b802003-06-30 21:59:07 +00003729# Some people use a C++ compiler to compile C. Since we use `exit',
3730# in C++ we need to declare it. In case someone uses the same compiler
3731# for both compiling C and C++ we need to have the C++ compiler decide
3732# the declaration of exit, since it's the most demanding environment.
3733cat >conftest.$ac_ext <<_ACEOF
3734#ifndef __cplusplus
3735 choke me
3736#endif
3737_ACEOF
3738rm -f conftest.$ac_objext
3739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003740 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003741 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003742 grep -v '^ *+' conftest.er1 >conftest.err
3743 rm -f conftest.er1
3744 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003747 { ac_try='test -z "$ac_c_werror_flag"
3748 || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003761 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003762 'extern "C" void std::exit (int) throw (); using std::exit;' \
3763 'extern "C" void std::exit (int); using std::exit;' \
3764 'extern "C" void exit (int) throw ();' \
3765 'extern "C" void exit (int);' \
3766 'void exit (int);'
3767do
3768 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003769/* confdefs.h. */
3770_ACEOF
3771cat confdefs.h >>conftest.$ac_ext
3772cat >>conftest.$ac_ext <<_ACEOF
3773/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003774$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003775#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003776int
3777main ()
3778{
3779exit (42);
3780 ;
3781 return 0;
3782}
3783_ACEOF
3784rm -f conftest.$ac_objext
3785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003786 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003787 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003788 grep -v '^ *+' conftest.er1 >conftest.err
3789 rm -f conftest.er1
3790 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3792 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003793 { ac_try='test -z "$ac_c_werror_flag"
3794 || test ! -s conftest.err'
3795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3796 (eval $ac_try) 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; } &&
3800 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; }; then
3806 :
3807else
3808 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003809sed 's/^/| /' conftest.$ac_ext >&5
3810
John Criswell7a73b802003-06-30 21:59:07 +00003811continue
3812fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003814 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003815/* confdefs.h. */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003820$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003821int
3822main ()
3823{
3824exit (42);
3825 ;
3826 return 0;
3827}
3828_ACEOF
3829rm -f conftest.$ac_objext
3830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003831 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003832 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003833 grep -v '^ *+' conftest.er1 >conftest.err
3834 rm -f conftest.er1
3835 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003838 { ac_try='test -z "$ac_c_werror_flag"
3839 || test ! -s conftest.err'
3840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3841 (eval $ac_try) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; } &&
3845 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 break
3852else
3853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003854sed 's/^/| /' conftest.$ac_ext >&5
3855
John Criswell7a73b802003-06-30 21:59:07 +00003856fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003858done
3859rm -f conftest*
3860if test -n "$ac_declaration"; then
3861 echo '#ifdef __cplusplus' >>confdefs.h
3862 echo $ac_declaration >>confdefs.h
3863 echo '#endif' >>confdefs.h
3864fi
3865
3866else
3867 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003868sed 's/^/| /' conftest.$ac_ext >&5
3869
John Criswell7a73b802003-06-30 21:59:07 +00003870fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003872ac_ext=c
3873ac_cpp='$CPP $CPPFLAGS'
3874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3876ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003878ac_ext=cc
3879ac_cpp='$CXXCPP $CPPFLAGS'
3880ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3883if test -n "$ac_tool_prefix"; then
3884 for ac_prog in $CCC g++
3885 do
3886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3887set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3888echo "$as_me:$LINENO: checking for $ac_word" >&5
3889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3890if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003893 if test -n "$CXX"; then
3894 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3895else
3896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003898do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3903 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3906 fi
3907done
3908done
3909
3910fi
3911fi
3912CXX=$ac_cv_prog_CXX
3913if test -n "$CXX"; then
3914 echo "$as_me:$LINENO: result: $CXX" >&5
3915echo "${ECHO_T}$CXX" >&6
3916else
3917 echo "$as_me:$LINENO: result: no" >&5
3918echo "${ECHO_T}no" >&6
3919fi
3920
3921 test -n "$CXX" && break
3922 done
3923fi
3924if test -z "$CXX"; then
3925 ac_ct_CXX=$CXX
3926 for ac_prog in $CCC g++
3927do
3928 # Extract the first word of "$ac_prog", so it can be a program name with args.
3929set dummy $ac_prog; ac_word=$2
3930echo "$as_me:$LINENO: checking for $ac_word" >&5
3931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3932if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3933 echo $ECHO_N "(cached) $ECHO_C" >&6
3934else
3935 if test -n "$ac_ct_CXX"; then
3936 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3937else
3938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3939for as_dir in $PATH
3940do
3941 IFS=$as_save_IFS
3942 test -z "$as_dir" && as_dir=.
3943 for ac_exec_ext in '' $ac_executable_extensions; do
3944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3945 ac_cv_prog_ac_ct_CXX="$ac_prog"
3946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 break 2
3948 fi
3949done
3950done
3951
3952fi
3953fi
3954ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3955if test -n "$ac_ct_CXX"; then
3956 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3957echo "${ECHO_T}$ac_ct_CXX" >&6
3958else
3959 echo "$as_me:$LINENO: result: no" >&5
3960echo "${ECHO_T}no" >&6
3961fi
3962
3963 test -n "$ac_ct_CXX" && break
3964done
3965test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3966
3967 CXX=$ac_ct_CXX
3968fi
3969
3970
3971# Provide some information about the compiler.
3972echo "$as_me:$LINENO:" \
3973 "checking for C++ compiler version" >&5
3974ac_compiler=`set X $ac_compile; echo $2`
3975{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3976 (eval $ac_compiler --version </dev/null >&5) 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }
3980{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3981 (eval $ac_compiler -v </dev/null >&5) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }
3985{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3986 (eval $ac_compiler -V </dev/null >&5) 2>&5
3987 ac_status=$?
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); }
3990
3991echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3992echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3993if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3995else
John Criswell7a73b802003-06-30 21:59:07 +00003996 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003997/* confdefs.h. */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004002
4003int
4004main ()
4005{
4006#ifndef __GNUC__
4007 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00004008#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004009
4010 ;
4011 return 0;
4012}
John Criswell7a73b802003-06-30 21:59:07 +00004013_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004014rm -f conftest.$ac_objext
4015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4016 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004017 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004018 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004019 rm -f conftest.er1
4020 cat conftest.err >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004022 (exit $ac_status); } &&
4023 { ac_try='test -z "$ac_cxx_werror_flag"
4024 || test ! -s conftest.err'
4025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026 (eval $ac_try) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; } &&
4030 { ac_try='test -s conftest.$ac_objext'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032 (eval $ac_try) 2>&5
4033 ac_status=$?
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 ac_compiler_gnu=yes
4037else
4038 echo "$as_me: failed program was:" >&5
4039sed 's/^/| /' conftest.$ac_ext >&5
4040
4041ac_compiler_gnu=no
4042fi
4043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4044ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4045
4046fi
4047echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4048echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4049GXX=`test $ac_compiler_gnu = yes && echo yes`
4050ac_test_CXXFLAGS=${CXXFLAGS+set}
4051ac_save_CXXFLAGS=$CXXFLAGS
4052CXXFLAGS="-g"
4053echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4054echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4055if test "${ac_cv_prog_cxx_g+set}" = set; then
4056 echo $ECHO_N "(cached) $ECHO_C" >&6
4057else
4058 cat >conftest.$ac_ext <<_ACEOF
4059/* confdefs.h. */
4060_ACEOF
4061cat confdefs.h >>conftest.$ac_ext
4062cat >>conftest.$ac_ext <<_ACEOF
4063/* end confdefs.h. */
4064
4065int
4066main ()
4067{
4068
4069 ;
4070 return 0;
4071}
4072_ACEOF
4073rm -f conftest.$ac_objext
4074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>conftest.er1
4076 ac_status=$?
4077 grep -v '^ *+' conftest.er1 >conftest.err
4078 rm -f conftest.er1
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_cxx_werror_flag"
4083 || test ! -s conftest.err'
4084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085 (eval $ac_try) 2>&5
4086 ac_status=$?
4087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088 (exit $ac_status); }; } &&
4089 { ac_try='test -s conftest.$ac_objext'
4090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4091 (eval $ac_try) 2>&5
4092 ac_status=$?
4093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4094 (exit $ac_status); }; }; then
4095 ac_cv_prog_cxx_g=yes
4096else
4097 echo "$as_me: failed program was:" >&5
4098sed 's/^/| /' conftest.$ac_ext >&5
4099
4100ac_cv_prog_cxx_g=no
4101fi
4102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4103fi
4104echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4105echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4106if test "$ac_test_CXXFLAGS" = set; then
4107 CXXFLAGS=$ac_save_CXXFLAGS
4108elif test $ac_cv_prog_cxx_g = yes; then
4109 if test "$GXX" = yes; then
4110 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00004111 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004112 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00004113 fi
4114else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004115 if test "$GXX" = yes; then
4116 CXXFLAGS="-O2"
4117 else
4118 CXXFLAGS=
4119 fi
John Criswell7a73b802003-06-30 21:59:07 +00004120fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004121for ac_declaration in \
4122 '' \
4123 'extern "C" void std::exit (int) throw (); using std::exit;' \
4124 'extern "C" void std::exit (int); using std::exit;' \
4125 'extern "C" void exit (int) throw ();' \
4126 'extern "C" void exit (int);' \
4127 'void exit (int);'
4128do
4129 cat >conftest.$ac_ext <<_ACEOF
4130/* confdefs.h. */
4131_ACEOF
4132cat confdefs.h >>conftest.$ac_ext
4133cat >>conftest.$ac_ext <<_ACEOF
4134/* end confdefs.h. */
4135$ac_declaration
4136#include <stdlib.h>
4137int
4138main ()
4139{
4140exit (42);
4141 ;
4142 return 0;
4143}
4144_ACEOF
4145rm -f conftest.$ac_objext
4146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>conftest.er1
4148 ac_status=$?
4149 grep -v '^ *+' conftest.er1 >conftest.err
4150 rm -f conftest.er1
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -z "$ac_cxx_werror_flag"
4155 || test ! -s conftest.err'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 (eval $ac_try) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4163 (eval $ac_try) 2>&5
4164 ac_status=$?
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004167 :
4168else
4169 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004170sed 's/^/| /' conftest.$ac_ext >&5
4171
John Criswell7a73b802003-06-30 21:59:07 +00004172continue
4173fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004175 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004176/* confdefs.h. */
4177_ACEOF
4178cat confdefs.h >>conftest.$ac_ext
4179cat >>conftest.$ac_ext <<_ACEOF
4180/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004181$ac_declaration
4182int
4183main ()
4184{
4185exit (42);
4186 ;
4187 return 0;
4188}
John Criswell7a73b802003-06-30 21:59:07 +00004189_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004190rm -f conftest.$ac_objext
4191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004193 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004194 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004195 rm -f conftest.er1
4196 cat conftest.err >&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004198 (exit $ac_status); } &&
4199 { ac_try='test -z "$ac_cxx_werror_flag"
4200 || test ! -s conftest.err'
4201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202 (eval $ac_try) 2>&5
4203 ac_status=$?
4204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205 (exit $ac_status); }; } &&
4206 { ac_try='test -s conftest.$ac_objext'
4207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208 (eval $ac_try) 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004212 break
John Criswell7a73b802003-06-30 21:59:07 +00004213else
4214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004215sed 's/^/| /' conftest.$ac_ext >&5
4216
John Criswell7a73b802003-06-30 21:59:07 +00004217fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004219done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004220rm -f conftest*
4221if test -n "$ac_declaration"; then
4222 echo '#ifdef __cplusplus' >>confdefs.h
4223 echo $ac_declaration >>confdefs.h
4224 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004225fi
4226
4227ac_ext=c
4228ac_cpp='$CPP $CPPFLAGS'
4229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4231ac_compiler_gnu=$ac_cv_c_compiler_gnu
4232
John Criswell7a73b802003-06-30 21:59:07 +00004233echo "$as_me:$LINENO: checking " >&5
4234echo $ECHO_N "checking ... $ECHO_C" >&6
4235if test "${ac_cv_has_flex+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237else
4238 for ac_prog in flex lex
4239do
4240 # Extract the first word of "$ac_prog", so it can be a program name with args.
4241set dummy $ac_prog; ac_word=$2
4242echo "$as_me:$LINENO: checking for $ac_word" >&5
4243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244if test "${ac_cv_prog_LEX+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246else
4247 if test -n "$LEX"; then
4248 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4249else
4250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251for as_dir in $PATH
4252do
4253 IFS=$as_save_IFS
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_LEX="$ac_prog"
4258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 break 2
4260 fi
4261done
4262done
4263
4264fi
4265fi
4266LEX=$ac_cv_prog_LEX
4267if test -n "$LEX"; then
4268 echo "$as_me:$LINENO: result: $LEX" >&5
4269echo "${ECHO_T}$LEX" >&6
4270else
4271 echo "$as_me:$LINENO: result: no" >&5
4272echo "${ECHO_T}no" >&6
4273fi
4274
4275 test -n "$LEX" && break
4276done
4277test -n "$LEX" || LEX=":"
4278
4279if test -z "$LEXLIB"
4280then
4281 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4282echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4283if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286 ac_check_lib_save_LIBS=$LIBS
4287LIBS="-lfl $LIBS"
4288cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004289/* confdefs.h. */
4290_ACEOF
4291cat confdefs.h >>conftest.$ac_ext
4292cat >>conftest.$ac_ext <<_ACEOF
4293/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004294
4295/* Override any gcc2 internal prototype to avoid an error. */
4296#ifdef __cplusplus
4297extern "C"
4298#endif
4299/* We use char because int might match the return type of a gcc2
4300 builtin and then its argument prototype would still apply. */
4301char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004302int
4303main ()
4304{
4305yywrap ();
4306 ;
4307 return 0;
4308}
4309_ACEOF
4310rm -f conftest.$ac_objext conftest$ac_exeext
4311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004312 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004313 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004314 grep -v '^ *+' conftest.er1 >conftest.err
4315 rm -f conftest.er1
4316 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004319 { ac_try='test -z "$ac_c_werror_flag"
4320 || test ! -s conftest.err'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4322 (eval $ac_try) 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; } &&
4326 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4328 (eval $ac_try) 2>&5
4329 ac_status=$?
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); }; }; then
4332 ac_cv_lib_fl_yywrap=yes
4333else
4334 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004335sed 's/^/| /' conftest.$ac_ext >&5
4336
John Criswell7a73b802003-06-30 21:59:07 +00004337ac_cv_lib_fl_yywrap=no
4338fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004339rm -f conftest.err conftest.$ac_objext \
4340 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004341LIBS=$ac_check_lib_save_LIBS
4342fi
4343echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4344echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4345if test $ac_cv_lib_fl_yywrap = yes; then
4346 LEXLIB="-lfl"
4347else
4348 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4349echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4350if test "${ac_cv_lib_l_yywrap+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353 ac_check_lib_save_LIBS=$LIBS
4354LIBS="-ll $LIBS"
4355cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004356/* confdefs.h. */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004361
4362/* Override any gcc2 internal prototype to avoid an error. */
4363#ifdef __cplusplus
4364extern "C"
4365#endif
4366/* We use char because int might match the return type of a gcc2
4367 builtin and then its argument prototype would still apply. */
4368char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004369int
4370main ()
4371{
4372yywrap ();
4373 ;
4374 return 0;
4375}
4376_ACEOF
4377rm -f conftest.$ac_objext conftest$ac_exeext
4378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004379 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004380 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004386 { ac_try='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 ac_cv_lib_l_yywrap=yes
4400else
4401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004402sed 's/^/| /' conftest.$ac_ext >&5
4403
John Criswell7a73b802003-06-30 21:59:07 +00004404ac_cv_lib_l_yywrap=no
4405fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004406rm -f conftest.err conftest.$ac_objext \
4407 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004408LIBS=$ac_check_lib_save_LIBS
4409fi
4410echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4411echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4412if test $ac_cv_lib_l_yywrap = yes; then
4413 LEXLIB="-ll"
4414fi
4415
4416fi
4417
4418fi
4419
4420if test "x$LEX" != "x:"; then
4421 echo "$as_me:$LINENO: checking lex output file root" >&5
4422echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4423if test "${ac_cv_prog_lex_root+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425else
4426 # The minimal lex program is just a single line: %%. But some broken lexes
4427# (Solaris, I think it was) want two %% lines, so accommodate them.
4428cat >conftest.l <<_ACEOF
4429%%
4430%%
4431_ACEOF
4432{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4433 (eval $LEX conftest.l) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }
4437if test -f lex.yy.c; then
4438 ac_cv_prog_lex_root=lex.yy
4439elif test -f lexyy.c; then
4440 ac_cv_prog_lex_root=lexyy
4441else
4442 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4443echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4444 { (exit 1); exit 1; }; }
4445fi
4446fi
4447echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4448echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4449rm -f conftest.l
4450LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4451
4452echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4453echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4454if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4455 echo $ECHO_N "(cached) $ECHO_C" >&6
4456else
4457 # POSIX says lex can declare yytext either as a pointer or an array; the
4458# default is implementation-dependent. Figure out which it is, since
4459# not all implementations provide the %pointer and %array declarations.
4460ac_cv_prog_lex_yytext_pointer=no
4461echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4462ac_save_LIBS=$LIBS
4463LIBS="$LIBS $LEXLIB"
4464cat >conftest.$ac_ext <<_ACEOF
4465`cat $LEX_OUTPUT_ROOT.c`
4466_ACEOF
4467rm -f conftest.$ac_objext conftest$ac_exeext
4468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004469 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004470 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004471 grep -v '^ *+' conftest.er1 >conftest.err
4472 rm -f conftest.er1
4473 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004476 { ac_try='test -z "$ac_c_werror_flag"
4477 || test ! -s conftest.err'
4478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4479 (eval $ac_try) 2>&5
4480 ac_status=$?
4481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4482 (exit $ac_status); }; } &&
4483 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4485 (eval $ac_try) 2>&5
4486 ac_status=$?
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4489 ac_cv_prog_lex_yytext_pointer=yes
4490else
4491 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004492sed 's/^/| /' conftest.$ac_ext >&5
4493
John Criswell7a73b802003-06-30 21:59:07 +00004494fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004495rm -f conftest.err conftest.$ac_objext \
4496 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004497LIBS=$ac_save_LIBS
4498rm -f "${LEX_OUTPUT_ROOT}.c"
4499
4500fi
4501echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4502echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4503if test $ac_cv_prog_lex_yytext_pointer = yes; then
4504
4505cat >>confdefs.h <<\_ACEOF
4506#define YYTEXT_POINTER 1
4507_ACEOF
4508
4509fi
4510
4511fi
4512
4513fi
4514echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4515echo "${ECHO_T}$ac_cv_has_flex" >&6
4516if test "$LEX" != "flex"; then
4517 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4518echo "$as_me: error: flex not found but required" >&2;}
4519 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004520else
4521 FLEX=flex
4522
John Criswell7a73b802003-06-30 21:59:07 +00004523fi
4524
4525echo "$as_me:$LINENO: checking " >&5
4526echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004527if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529else
4530 for ac_prog in 'bison -y' byacc
4531do
4532 # Extract the first word of "$ac_prog", so it can be a program name with args.
4533set dummy $ac_prog; ac_word=$2
4534echo "$as_me:$LINENO: checking for $ac_word" >&5
4535echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4536if test "${ac_cv_prog_YACC+set}" = set; then
4537 echo $ECHO_N "(cached) $ECHO_C" >&6
4538else
4539 if test -n "$YACC"; then
4540 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4541else
4542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4543for as_dir in $PATH
4544do
4545 IFS=$as_save_IFS
4546 test -z "$as_dir" && as_dir=.
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4549 ac_cv_prog_YACC="$ac_prog"
4550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 break 2
4552 fi
4553done
4554done
4555
4556fi
4557fi
4558YACC=$ac_cv_prog_YACC
4559if test -n "$YACC"; then
4560 echo "$as_me:$LINENO: result: $YACC" >&5
4561echo "${ECHO_T}$YACC" >&6
4562else
4563 echo "$as_me:$LINENO: result: no" >&5
4564echo "${ECHO_T}no" >&6
4565fi
4566
4567 test -n "$YACC" && break
4568done
4569test -n "$YACC" || YACC="yacc"
4570
John Criswell7a73b802003-06-30 21:59:07 +00004571fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004572echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4573echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004574if test "$YACC" != "bison -y"; then
4575 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4576echo "$as_me: error: bison not found but required" >&2;}
4577 { (exit 1); exit 1; }; }
4578else
Brian Gaeke12810632004-01-13 06:52:10 +00004579 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004580
4581fi
4582
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004583echo "$as_me:$LINENO: checking for GNU make" >&5
4584echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4585if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004586 echo $ECHO_N "(cached) $ECHO_C" >&6
4587else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004588 llvm_cv_gnu_make_command=''
4589 for a in "$MAKE" make gmake gnumake ; do
4590 if test -z "$a" ; then continue ; fi ;
4591 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4592 then
4593 llvm_cv_gnu_make_command=$a ;
4594 break;
John Criswell47fdd832003-07-14 16:52:07 +00004595 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004596 done
John Criswell7a73b802003-06-30 21:59:07 +00004597fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004598echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4599echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4600 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4601 ifGNUmake='' ;
4602 else
4603 ifGNUmake='#' ;
4604 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4605echo "${ECHO_T}\"Not found\"" >&6;
4606 fi
John Criswell7a73b802003-06-30 21:59:07 +00004607
John Criswell7a73b802003-06-30 21:59:07 +00004608
4609echo "$as_me:$LINENO: checking whether ln -s works" >&5
4610echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4611LN_S=$as_ln_s
4612if test "$LN_S" = "ln -s"; then
4613 echo "$as_me:$LINENO: result: yes" >&5
4614echo "${ECHO_T}yes" >&6
4615else
4616 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4617echo "${ECHO_T}no, using $LN_S" >&6
4618fi
4619
Reid Spencer8a2d4712004-12-16 17:48:14 +00004620# Extract the first word of "cmp", so it can be a program name with args.
4621set dummy cmp; ac_word=$2
4622echo "$as_me:$LINENO: checking for $ac_word" >&5
4623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4624if test "${ac_cv_path_CMP+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
4627 case $CMP in
4628 [\\/]* | ?:[\\/]*)
4629 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4630 ;;
4631 *)
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633for as_dir in $PATH
4634do
4635 IFS=$as_save_IFS
4636 test -z "$as_dir" && as_dir=.
4637 for ac_exec_ext in '' $ac_executable_extensions; do
4638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4639 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641 break 2
4642 fi
4643done
4644done
4645
4646 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4647 ;;
4648esac
4649fi
4650CMP=$ac_cv_path_CMP
4651
4652if test -n "$CMP"; then
4653 echo "$as_me:$LINENO: result: $CMP" >&5
4654echo "${ECHO_T}$CMP" >&6
4655else
4656 echo "$as_me:$LINENO: result: no" >&5
4657echo "${ECHO_T}no" >&6
4658fi
4659
4660# Extract the first word of "cp", so it can be a program name with args.
4661set dummy cp; ac_word=$2
4662echo "$as_me:$LINENO: checking for $ac_word" >&5
4663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4664if test "${ac_cv_path_CP+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4666else
4667 case $CP in
4668 [\\/]* | ?:[\\/]*)
4669 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4670 ;;
4671 *)
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673for as_dir in $PATH
4674do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4679 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4682 fi
4683done
4684done
4685
4686 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4687 ;;
4688esac
4689fi
4690CP=$ac_cv_path_CP
4691
4692if test -n "$CP"; then
4693 echo "$as_me:$LINENO: result: $CP" >&5
4694echo "${ECHO_T}$CP" >&6
4695else
4696 echo "$as_me:$LINENO: result: no" >&5
4697echo "${ECHO_T}no" >&6
4698fi
4699
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004700# Extract the first word of "date", so it can be a program name with args.
4701set dummy date; ac_word=$2
4702echo "$as_me:$LINENO: checking for $ac_word" >&5
4703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4704if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004707 case $DATE in
4708 [\\/]* | ?:[\\/]*)
4709 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004710 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004711 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713for as_dir in $PATH
4714do
4715 IFS=$as_save_IFS
4716 test -z "$as_dir" && as_dir=.
4717 for ac_exec_ext in '' $ac_executable_extensions; do
4718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004722 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004723done
4724done
John Criswell7a73b802003-06-30 21:59:07 +00004725
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004726 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004727 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004728esac
John Criswell7a73b802003-06-30 21:59:07 +00004729fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004730DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004731
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004732if test -n "$DATE"; then
4733 echo "$as_me:$LINENO: result: $DATE" >&5
4734echo "${ECHO_T}$DATE" >&6
4735else
4736 echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6
4738fi
John Criswell7a73b802003-06-30 21:59:07 +00004739
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004740# Extract the first word of "find", so it can be a program name with args.
4741set dummy find; ac_word=$2
4742echo "$as_me:$LINENO: checking for $ac_word" >&5
4743echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004747 case $FIND in
4748 [\\/]* | ?:[\\/]*)
4749 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4750 ;;
4751 *)
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753for as_dir in $PATH
4754do
4755 IFS=$as_save_IFS
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4759 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 break 2
4762 fi
4763done
4764done
4765
4766 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4767 ;;
4768esac
4769fi
4770FIND=$ac_cv_path_FIND
4771
4772if test -n "$FIND"; then
4773 echo "$as_me:$LINENO: result: $FIND" >&5
4774echo "${ECHO_T}$FIND" >&6
4775else
4776 echo "$as_me:$LINENO: result: no" >&5
4777echo "${ECHO_T}no" >&6
4778fi
4779
4780# Extract the first word of "grep", so it can be a program name with args.
4781set dummy grep; ac_word=$2
4782echo "$as_me:$LINENO: checking for $ac_word" >&5
4783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4784if test "${ac_cv_path_GREP+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
4787 case $GREP in
4788 [\\/]* | ?:[\\/]*)
4789 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4790 ;;
4791 *)
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4799 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4802 fi
4803done
4804done
4805
4806 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4807 ;;
4808esac
4809fi
4810GREP=$ac_cv_path_GREP
4811
4812if test -n "$GREP"; then
4813 echo "$as_me:$LINENO: result: $GREP" >&5
4814echo "${ECHO_T}$GREP" >&6
4815else
4816 echo "$as_me:$LINENO: result: no" >&5
4817echo "${ECHO_T}no" >&6
4818fi
4819
4820# Extract the first word of "mkdir", so it can be a program name with args.
4821set dummy mkdir; ac_word=$2
4822echo "$as_me:$LINENO: checking for $ac_word" >&5
4823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4824if test "${ac_cv_path_MKDIR+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826else
4827 case $MKDIR in
4828 [\\/]* | ?:[\\/]*)
4829 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4830 ;;
4831 *)
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833for as_dir in $PATH
4834do
4835 IFS=$as_save_IFS
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4839 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4841 break 2
4842 fi
4843done
4844done
4845
4846 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4847 ;;
4848esac
4849fi
4850MKDIR=$ac_cv_path_MKDIR
4851
4852if test -n "$MKDIR"; then
4853 echo "$as_me:$LINENO: result: $MKDIR" >&5
4854echo "${ECHO_T}$MKDIR" >&6
4855else
4856 echo "$as_me:$LINENO: result: no" >&5
4857echo "${ECHO_T}no" >&6
4858fi
4859
4860# Extract the first word of "mv", so it can be a program name with args.
4861set dummy mv; ac_word=$2
4862echo "$as_me:$LINENO: checking for $ac_word" >&5
4863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4864if test "${ac_cv_path_MV+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866else
4867 case $MV in
4868 [\\/]* | ?:[\\/]*)
4869 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4870 ;;
4871 *)
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873for as_dir in $PATH
4874do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4879 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4882 fi
4883done
4884done
4885
4886 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4887 ;;
4888esac
4889fi
4890MV=$ac_cv_path_MV
4891
4892if test -n "$MV"; then
4893 echo "$as_me:$LINENO: result: $MV" >&5
4894echo "${ECHO_T}$MV" >&6
4895else
4896 echo "$as_me:$LINENO: result: no" >&5
4897echo "${ECHO_T}no" >&6
4898fi
4899
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004900if test -n "$ac_tool_prefix"; then
4901 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4902set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4903echo "$as_me:$LINENO: checking for $ac_word" >&5
4904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905if test "${ac_cv_prog_RANLIB+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907else
4908 if test -n "$RANLIB"; then
4909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4910else
4911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912for as_dir in $PATH
4913do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922done
4923done
4924
4925fi
4926fi
4927RANLIB=$ac_cv_prog_RANLIB
4928if test -n "$RANLIB"; then
4929 echo "$as_me:$LINENO: result: $RANLIB" >&5
4930echo "${ECHO_T}$RANLIB" >&6
4931else
4932 echo "$as_me:$LINENO: result: no" >&5
4933echo "${ECHO_T}no" >&6
4934fi
4935
4936fi
4937if test -z "$ac_cv_prog_RANLIB"; then
4938 ac_ct_RANLIB=$RANLIB
4939 # Extract the first word of "ranlib", so it can be a program name with args.
4940set dummy ranlib; ac_word=$2
4941echo "$as_me:$LINENO: checking for $ac_word" >&5
4942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4943if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945else
4946 if test -n "$ac_ct_RANLIB"; then
4947 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4948else
4949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950for as_dir in $PATH
4951do
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4956 ac_cv_prog_ac_ct_RANLIB="ranlib"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4959 fi
4960done
4961done
4962
4963 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4964fi
4965fi
4966ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4967if test -n "$ac_ct_RANLIB"; then
4968 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4969echo "${ECHO_T}$ac_ct_RANLIB" >&6
4970else
4971 echo "$as_me:$LINENO: result: no" >&5
4972echo "${ECHO_T}no" >&6
4973fi
4974
4975 RANLIB=$ac_ct_RANLIB
4976else
4977 RANLIB="$ac_cv_prog_RANLIB"
4978fi
4979
4980# Extract the first word of "rm", so it can be a program name with args.
4981set dummy rm; ac_word=$2
4982echo "$as_me:$LINENO: checking for $ac_word" >&5
4983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984if test "${ac_cv_path_RM+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987 case $RM in
4988 [\\/]* | ?:[\\/]*)
4989 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4990 ;;
4991 *)
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993for as_dir in $PATH
4994do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4999 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003done
5004done
5005
5006 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
5007 ;;
5008esac
5009fi
5010RM=$ac_cv_path_RM
5011
5012if test -n "$RM"; then
5013 echo "$as_me:$LINENO: result: $RM" >&5
5014echo "${ECHO_T}$RM" >&6
5015else
5016 echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6
5018fi
5019
5020# Extract the first word of "sed", so it can be a program name with args.
5021set dummy sed; ac_word=$2
5022echo "$as_me:$LINENO: checking for $ac_word" >&5
5023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5024if test "${ac_cv_path_SED+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026else
5027 case $SED in
5028 [\\/]* | ?:[\\/]*)
5029 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5030 ;;
5031 *)
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033for as_dir in $PATH
5034do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5042 fi
5043done
5044done
5045
5046 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5047 ;;
5048esac
5049fi
5050SED=$ac_cv_path_SED
5051
5052if test -n "$SED"; then
5053 echo "$as_me:$LINENO: result: $SED" >&5
5054echo "${ECHO_T}$SED" >&6
5055else
5056 echo "$as_me:$LINENO: result: no" >&5
5057echo "${ECHO_T}no" >&6
5058fi
5059
5060# Extract the first word of "tar", so it can be a program name with args.
5061set dummy tar; ac_word=$2
5062echo "$as_me:$LINENO: checking for $ac_word" >&5
5063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5064if test "${ac_cv_path_TAR+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5066else
5067 case $TAR in
5068 [\\/]* | ?:[\\/]*)
5069 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
5070 ;;
5071 *)
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073for as_dir in $PATH
5074do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
5080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083done
5084done
5085
5086 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
5087 ;;
5088esac
5089fi
5090TAR=$ac_cv_path_TAR
5091
5092if test -n "$TAR"; then
5093 echo "$as_me:$LINENO: result: $TAR" >&5
5094echo "${ECHO_T}$TAR" >&6
5095else
5096 echo "$as_me:$LINENO: result: no" >&5
5097echo "${ECHO_T}no" >&6
5098fi
5099
Reid Spencer8a2246f2005-07-13 03:20:14 +00005100# Extract the first word of "Graphviz", so it can be a program name with args.
5101set dummy Graphviz; ac_word=$2
5102echo "$as_me:$LINENO: checking for $ac_word" >&5
5103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5104if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106else
5107 case $GRAPHVIZ in
5108 [\\/]* | ?:[\\/]*)
5109 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
5110 ;;
5111 *)
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113for as_dir in $PATH
5114do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5119 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123done
5124done
5125
Reid Spencerc232a652005-07-14 02:25:12 +00005126 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
Reid Spencer8a2246f2005-07-13 03:20:14 +00005127 ;;
5128esac
5129fi
5130GRAPHVIZ=$ac_cv_path_GRAPHVIZ
5131
5132if test -n "$GRAPHVIZ"; then
5133 echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
5134echo "${ECHO_T}$GRAPHVIZ" >&6
5135else
5136 echo "$as_me:$LINENO: result: no" >&5
5137echo "${ECHO_T}no" >&6
5138fi
5139
Reid Spencerc232a652005-07-14 02:25:12 +00005140if test "$GRAPHVIZ" != "echo Graphviz" ; then
Reid Spencer8a2246f2005-07-13 03:20:14 +00005141
5142cat >>confdefs.h <<\_ACEOF
5143#define HAVE_GRAPHVIZ 1
5144_ACEOF
5145
Reid Spencerc232a652005-07-14 02:25:12 +00005146
Reid Spencerbe130282005-07-14 05:19:12 +00005147cat >>confdefs.h <<_ACEOF
Reid Spencerc232a652005-07-14 02:25:12 +00005148#define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ"
5149_ACEOF
5150
Reid Spencer8a2246f2005-07-13 03:20:14 +00005151fi
Reid Spencerbe130282005-07-14 05:19:12 +00005152# Extract the first word of "gv", so it can be a program name with args.
5153set dummy gv; ac_word=$2
5154echo "$as_me:$LINENO: checking for $ac_word" >&5
5155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156if test "${ac_cv_path_GV+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5158else
5159 case $GV in
5160 [\\/]* | ?:[\\/]*)
5161 ac_cv_path_GV="$GV" # Let the user override the test with a path.
5162 ;;
5163 *)
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH
5166do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
5172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5174 fi
5175done
5176done
5177
5178 test -z "$ac_cv_path_GV" && ac_cv_path_GV="echo gv"
5179 ;;
5180esac
5181fi
5182GV=$ac_cv_path_GV
5183
5184if test -n "$GV"; then
5185 echo "$as_me:$LINENO: result: $GV" >&5
5186echo "${ECHO_T}$GV" >&6
5187else
5188 echo "$as_me:$LINENO: result: no" >&5
5189echo "${ECHO_T}no" >&6
5190fi
5191
Misha Brukmanf83d4062005-11-01 21:00:49 +00005192if test "$GV" != "echo gv" ; then
Reid Spencerbe130282005-07-14 05:19:12 +00005193
5194cat >>confdefs.h <<\_ACEOF
5195#define HAVE_GV 1
5196_ACEOF
5197
5198
5199cat >>confdefs.h <<_ACEOF
5200#define LLVM_PATH_GV "$GV"
5201_ACEOF
5202
5203fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005204
Reid Spencerb195d9d2006-03-23 23:21:29 +00005205
5206# Extract the first word of "perl", so it can be a program name with args.
5207set dummy perl; ac_word=$2
5208echo "$as_me:$LINENO: checking for $ac_word" >&5
5209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5210if test "${ac_cv_path_PERL+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5212else
5213 case $PERL in
5214 [\\/]* | ?:[\\/]*)
5215 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5216 ;;
5217 *)
5218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219for as_dir in $PATH
5220do
5221 IFS=$as_save_IFS
5222 test -z "$as_dir" && as_dir=.
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5225 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227 break 2
5228 fi
5229done
5230done
5231
5232 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
5233 ;;
5234esac
5235fi
5236PERL=$ac_cv_path_PERL
5237
5238if test -n "$PERL"; then
5239 echo "$as_me:$LINENO: result: $PERL" >&5
5240echo "${ECHO_T}$PERL" >&6
5241else
5242 echo "$as_me:$LINENO: result: no" >&5
5243echo "${ECHO_T}no" >&6
5244fi
5245
5246if test "$PERL" != "none"; then
5247 echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
5248echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6
5249 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
5250 echo "$as_me:$LINENO: result: yes" >&5
5251echo "${ECHO_T}yes" >&6
5252 else
5253 PERL=none
5254 echo "$as_me:$LINENO: result: not found" >&5
5255echo "${ECHO_T}not found" >&6
5256 fi
5257fi
5258
5259
5260if test x"$PERL" = xnone; then
5261 HAVE_PERL=0
5262
5263else
5264 HAVE_PERL=1
5265
5266fi
5267
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005268# Find a good install program. We prefer a C program (faster),
5269# so one script is as good as another. But avoid the broken or
5270# incompatible versions:
5271# SysV /etc/install, /usr/sbin/install
5272# SunOS /usr/etc/install
5273# IRIX /sbin/install
5274# AIX /bin/install
5275# AmigaOS /C/install, which installs bootblocks on floppy discs
5276# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5277# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5278# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5279# OS/2's system install, which has a completely different semantic
5280# ./install, which can be erroneously created by make from ./install.sh.
5281echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5282echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5283if test -z "$INSTALL"; then
5284if test "${ac_cv_path_install+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286else
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288for as_dir in $PATH
5289do
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 # Account for people who put trailing slashes in PATH elements.
5293case $as_dir/ in
5294 ./ | .// | /cC/* | \
5295 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5296 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5297 /usr/ucb/* ) ;;
5298 *)
5299 # OSF1 and SCO ODT 3.0 have their own names for install.
5300 # Don't use installbsd from OSF since it installs stuff as root
5301 # by default.
5302 for ac_prog in ginstall scoinst install; do
5303 for ac_exec_ext in '' $ac_executable_extensions; do
5304 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5305 if test $ac_prog = install &&
5306 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5307 # AIX install. It has an incompatible calling convention.
5308 :
5309 elif test $ac_prog = install &&
5310 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5311 # program-specific install script used by HP pwplus--don't use.
5312 :
5313 else
5314 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5315 break 3
5316 fi
5317 fi
5318 done
5319 done
5320 ;;
5321esac
5322done
5323
5324
5325fi
5326 if test "${ac_cv_path_install+set}" = set; then
5327 INSTALL=$ac_cv_path_install
5328 else
5329 # As a last resort, use the slow shell script. We don't cache a
5330 # path for INSTALL within a source directory, because that will
5331 # break other packages using the cache if that directory is
5332 # removed, or if the path is relative.
5333 INSTALL=$ac_install_sh
5334 fi
5335fi
5336echo "$as_me:$LINENO: result: $INSTALL" >&5
5337echo "${ECHO_T}$INSTALL" >&6
5338
5339# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5340# It thinks the first close brace ends the variable substitution.
5341test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5342
5343test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5344
5345test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5346
5347
5348# Extract the first word of "bzip2", so it can be a program name with args.
5349set dummy bzip2; ac_word=$2
5350echo "$as_me:$LINENO: checking for $ac_word" >&5
5351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5352if test "${ac_cv_path_BZIP2+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 case $BZIP2 in
5356 [\\/]* | ?:[\\/]*)
5357 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5358 ;;
5359 *)
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5369 break 2
5370 fi
5371done
5372done
5373
5374 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5375 ;;
5376esac
5377fi
5378BZIP2=$ac_cv_path_BZIP2
5379
5380if test -n "$BZIP2"; then
5381 echo "$as_me:$LINENO: result: $BZIP2" >&5
5382echo "${ECHO_T}$BZIP2" >&6
5383else
5384 echo "$as_me:$LINENO: result: no" >&5
5385echo "${ECHO_T}no" >&6
5386fi
5387
5388# Extract the first word of "dot", so it can be a program name with args.
5389set dummy dot; ac_word=$2
5390echo "$as_me:$LINENO: checking for $ac_word" >&5
5391echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5392if test "${ac_cv_path_DOT+set}" = set; then
5393 echo $ECHO_N "(cached) $ECHO_C" >&6
5394else
5395 case $DOT in
5396 [\\/]* | ?:[\\/]*)
5397 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5398 ;;
5399 *)
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5407 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5410 fi
5411done
5412done
5413
5414 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5415 ;;
5416esac
5417fi
5418DOT=$ac_cv_path_DOT
5419
5420if test -n "$DOT"; then
5421 echo "$as_me:$LINENO: result: $DOT" >&5
5422echo "${ECHO_T}$DOT" >&6
5423else
5424 echo "$as_me:$LINENO: result: no" >&5
5425echo "${ECHO_T}no" >&6
5426fi
5427
5428# Extract the first word of "doxygen", so it can be a program name with args.
5429set dummy doxygen; ac_word=$2
5430echo "$as_me:$LINENO: checking for $ac_word" >&5
5431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5432if test "${ac_cv_path_DOXYGEN+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5434else
5435 case $DOXYGEN in
5436 [\\/]* | ?:[\\/]*)
5437 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5438 ;;
5439 *)
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH
5442do
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5447 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5450 fi
5451done
5452done
5453
5454 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5455 ;;
5456esac
5457fi
5458DOXYGEN=$ac_cv_path_DOXYGEN
5459
5460if test -n "$DOXYGEN"; then
5461 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5462echo "${ECHO_T}$DOXYGEN" >&6
5463else
5464 echo "$as_me:$LINENO: result: no" >&5
5465echo "${ECHO_T}no" >&6
5466fi
5467
5468# Extract the first word of "etags", so it can be a program name with args.
5469set dummy etags; 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_ETAGS+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5474else
5475 case $ETAGS in
5476 [\\/]* | ?:[\\/]*)
5477 ac_cv_path_ETAGS="$ETAGS" # 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_ETAGS="$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_ETAGS" && ac_cv_path_ETAGS="true etags"
5495 ;;
5496esac
5497fi
5498ETAGS=$ac_cv_path_ETAGS
5499
5500if test -n "$ETAGS"; then
5501 echo "$as_me:$LINENO: result: $ETAGS" >&5
5502echo "${ECHO_T}$ETAGS" >&6
5503else
5504 echo "$as_me:$LINENO: result: no" >&5
5505echo "${ECHO_T}no" >&6
5506fi
5507
5508# Extract the first word of "groff", so it can be a program name with args.
5509set dummy groff; ac_word=$2
5510echo "$as_me:$LINENO: checking for $ac_word" >&5
5511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5512if test "${ac_cv_path_GROFF+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514else
5515 case $GROFF in
5516 [\\/]* | ?:[\\/]*)
5517 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5518 ;;
5519 *)
5520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521for as_dir in $PATH
5522do
5523 IFS=$as_save_IFS
5524 test -z "$as_dir" && as_dir=.
5525 for ac_exec_ext in '' $ac_executable_extensions; do
5526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 break 2
5530 fi
5531done
5532done
5533
5534 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5535 ;;
5536esac
5537fi
5538GROFF=$ac_cv_path_GROFF
5539
5540if test -n "$GROFF"; then
5541 echo "$as_me:$LINENO: result: $GROFF" >&5
5542echo "${ECHO_T}$GROFF" >&6
5543else
5544 echo "$as_me:$LINENO: result: no" >&5
5545echo "${ECHO_T}no" >&6
5546fi
5547
5548# Extract the first word of "gzip", so it can be a program name with args.
5549set dummy gzip; ac_word=$2
5550echo "$as_me:$LINENO: checking for $ac_word" >&5
5551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5552if test "${ac_cv_path_GZIP+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554else
5555 case $GZIP in
5556 [\\/]* | ?:[\\/]*)
5557 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5558 ;;
5559 *)
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH
5562do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5567 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 break 2
5570 fi
5571done
5572done
5573
5574 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5575 ;;
5576esac
5577fi
5578GZIP=$ac_cv_path_GZIP
5579
5580if test -n "$GZIP"; then
5581 echo "$as_me:$LINENO: result: $GZIP" >&5
5582echo "${ECHO_T}$GZIP" >&6
5583else
5584 echo "$as_me:$LINENO: result: no" >&5
5585echo "${ECHO_T}no" >&6
5586fi
5587
5588# Extract the first word of "pod2html", so it can be a program name with args.
5589set dummy pod2html; ac_word=$2
5590echo "$as_me:$LINENO: checking for $ac_word" >&5
5591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5592if test "${ac_cv_path_POD2HTML+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5594else
5595 case $POD2HTML in
5596 [\\/]* | ?:[\\/]*)
5597 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5598 ;;
5599 *)
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601for as_dir in $PATH
5602do
5603 IFS=$as_save_IFS
5604 test -z "$as_dir" && as_dir=.
5605 for ac_exec_ext in '' $ac_executable_extensions; do
5606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 break 2
5610 fi
5611done
5612done
5613
5614 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5615 ;;
5616esac
5617fi
5618POD2HTML=$ac_cv_path_POD2HTML
5619
5620if test -n "$POD2HTML"; then
5621 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5622echo "${ECHO_T}$POD2HTML" >&6
5623else
5624 echo "$as_me:$LINENO: result: no" >&5
5625echo "${ECHO_T}no" >&6
5626fi
5627
5628# Extract the first word of "pod2man", so it can be a program name with args.
5629set dummy pod2man; ac_word=$2
5630echo "$as_me:$LINENO: checking for $ac_word" >&5
5631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5632if test "${ac_cv_path_POD2MAN+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634else
5635 case $POD2MAN in
5636 [\\/]* | ?:[\\/]*)
5637 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5638 ;;
5639 *)
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641for as_dir in $PATH
5642do
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5650 fi
5651done
5652done
5653
5654 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5655 ;;
5656esac
5657fi
5658POD2MAN=$ac_cv_path_POD2MAN
5659
5660if test -n "$POD2MAN"; then
5661 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5662echo "${ECHO_T}$POD2MAN" >&6
5663else
5664 echo "$as_me:$LINENO: result: no" >&5
5665echo "${ECHO_T}no" >&6
5666fi
5667
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005668# Extract the first word of "runtest", so it can be a program name with args.
5669set dummy runtest; ac_word=$2
5670echo "$as_me:$LINENO: checking for $ac_word" >&5
5671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5672if test "${ac_cv_path_RUNTEST+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674else
5675 case $RUNTEST in
5676 [\\/]* | ?:[\\/]*)
5677 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5678 ;;
5679 *)
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681for as_dir in $PATH
5682do
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5687 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5689 break 2
5690 fi
5691done
5692done
5693
5694 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5695 ;;
5696esac
5697fi
5698RUNTEST=$ac_cv_path_RUNTEST
5699
5700if test -n "$RUNTEST"; then
5701 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5702echo "${ECHO_T}$RUNTEST" >&6
5703else
5704 echo "$as_me:$LINENO: result: no" >&5
5705echo "${ECHO_T}no" >&6
5706fi
5707
Reid Spencer0fcb9412004-11-30 08:11:54 +00005708
Reid Spencer0fcb9412004-11-30 08:11:54 +00005709no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005710echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5711echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005712
5713# Check whether --with-tclinclude or --without-tclinclude was given.
5714if test "${with_tclinclude+set}" = set; then
5715 withval="$with_tclinclude"
5716 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005717else
5718 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005719fi;
5720if test "${ac_cv_path_tclsh+set}" = set; then
5721 echo $ECHO_N "(cached) $ECHO_C" >&6
5722else
5723
5724if test x"${with_tclinclude}" != x ; then
5725 if test -f ${with_tclinclude}/tclsh ; then
5726 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5727 elif test -f ${with_tclinclude}/src/tclsh ; then
5728 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5729 else
5730 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5731echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5732 { (exit 1); exit 1; }; }
5733 fi
5734fi
5735
Reid Spencer0fcb9412004-11-30 08:11:54 +00005736if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005737 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005738echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005739 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 +00005740do
5741 # Extract the first word of "$ac_prog", so it can be a program name with args.
5742set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005743echo "$as_me:$LINENO: checking for $ac_word" >&5
5744echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005745if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747else
Reid Spencercda35f82004-12-02 04:17:20 +00005748 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005749 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005750 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005751 ;;
5752 *)
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754for as_dir in $PATH
5755do
5756 IFS=$as_save_IFS
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005760 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5762 break 2
5763 fi
5764done
5765done
5766
5767 ;;
5768esac
5769fi
Reid Spencercda35f82004-12-02 04:17:20 +00005770TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005771
Reid Spencercda35f82004-12-02 04:17:20 +00005772if test -n "$TCLSH"; then
5773 echo "$as_me:$LINENO: result: $TCLSH" >&5
5774echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005775else
5776 echo "$as_me:$LINENO: result: no" >&5
5777echo "${ECHO_T}no" >&6
5778fi
5779
Reid Spencercda35f82004-12-02 04:17:20 +00005780 test -n "$TCLSH" && break
5781done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005782
Reid Spencercda35f82004-12-02 04:17:20 +00005783 if test x"${TCLSH}" = x ; then
5784 ac_cv_path_tclsh='';
5785 else
5786 ac_cv_path_tclsh="${TCLSH}";
5787 fi
5788else
5789 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5790echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5791 TCLSH="${ac_cv_path_tclsh}"
5792
5793fi
5794
5795fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005796
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005797# Extract the first word of "zip", so it can be a program name with args.
5798set dummy zip; ac_word=$2
5799echo "$as_me:$LINENO: checking for $ac_word" >&5
5800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5801if test "${ac_cv_path_ZIP+set}" = set; then
5802 echo $ECHO_N "(cached) $ECHO_C" >&6
5803else
5804 case $ZIP in
5805 [\\/]* | ?:[\\/]*)
5806 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5807 ;;
5808 *)
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810for as_dir in $PATH
5811do
5812 IFS=$as_save_IFS
5813 test -z "$as_dir" && as_dir=.
5814 for ac_exec_ext in '' $ac_executable_extensions; do
5815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5816 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 break 2
5819 fi
5820done
5821done
5822
5823 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5824 ;;
5825esac
5826fi
5827ZIP=$ac_cv_path_ZIP
5828
5829if test -n "$ZIP"; then
5830 echo "$as_me:$LINENO: result: $ZIP" >&5
5831echo "${ECHO_T}$ZIP" >&6
5832else
5833 echo "$as_me:$LINENO: result: no" >&5
5834echo "${ECHO_T}no" >&6
5835fi
5836
5837
5838echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5839echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5840if test "${llvm_cv_link_use_r+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842else
5843 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005844ac_cpp='$CPP $CPPFLAGS'
5845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5847ac_compiler_gnu=$ac_cv_c_compiler_gnu
5848
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005849 oldcflags="$CFLAGS"
5850 CFLAGS="$CFLAGS -Wl,-R."
5851 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005852/* confdefs.h. */
5853_ACEOF
5854cat confdefs.h >>conftest.$ac_ext
5855cat >>conftest.$ac_ext <<_ACEOF
5856/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005857
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005858int
5859main ()
5860{
5861int main() { return 0; }
5862 ;
5863 return 0;
5864}
John Criswell47fdd832003-07-14 16:52:07 +00005865_ACEOF
5866rm -f conftest.$ac_objext conftest$ac_exeext
5867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005868 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005869 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005870 grep -v '^ *+' conftest.er1 >conftest.err
5871 rm -f conftest.er1
5872 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005874 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005875 { ac_try='test -z "$ac_c_werror_flag"
5876 || test ! -s conftest.err'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; } &&
5882 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5884 (eval $ac_try) 2>&5
5885 ac_status=$?
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005888 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005889else
John Criswell47fdd832003-07-14 16:52:07 +00005890 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005891sed 's/^/| /' conftest.$ac_ext >&5
5892
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005893llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005894fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005895rm -f conftest.err conftest.$ac_objext \
5896 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005897 CFLAGS="$oldcflags"
5898 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005899ac_cpp='$CPP $CPPFLAGS'
5900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5902ac_compiler_gnu=$ac_cv_c_compiler_gnu
5903
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005904
John Criswell7a73b802003-06-30 21:59:07 +00005905fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005906echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5907echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5908if test "$llvm_cv_link_use_r" = yes ; then
5909
5910cat >>confdefs.h <<\_ACEOF
5911#define HAVE_LINK_R 1
5912_ACEOF
5913
John Criswell47fdd832003-07-14 16:52:07 +00005914 fi
John Criswell47fdd832003-07-14 16:52:07 +00005915
John Criswell47fdd832003-07-14 16:52:07 +00005916
John Criswell47fdd832003-07-14 16:52:07 +00005917
John Criswell7a73b802003-06-30 21:59:07 +00005918
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005919echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5920echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5921if test "${ac_cv_c_const+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5923else
5924 cat >conftest.$ac_ext <<_ACEOF
5925/* confdefs.h. */
5926_ACEOF
5927cat confdefs.h >>conftest.$ac_ext
5928cat >>conftest.$ac_ext <<_ACEOF
5929/* end confdefs.h. */
5930
5931int
5932main ()
5933{
5934/* FIXME: Include the comments suggested by Paul. */
5935#ifndef __cplusplus
5936 /* Ultrix mips cc rejects this. */
5937 typedef int charset[2];
5938 const charset x;
5939 /* SunOS 4.1.1 cc rejects this. */
5940 char const *const *ccp;
5941 char **p;
5942 /* NEC SVR4.0.2 mips cc rejects this. */
5943 struct point {int x, y;};
5944 static struct point const zero = {0,0};
5945 /* AIX XL C 1.02.0.0 rejects this.
5946 It does not let you subtract one const X* pointer from another in
5947 an arm of an if-expression whose if-part is not a constant
5948 expression */
5949 const char *g = "string";
5950 ccp = &g + (g ? g-g : 0);
5951 /* HPUX 7.0 cc rejects these. */
5952 ++ccp;
5953 p = (char**) ccp;
5954 ccp = (char const *const *) p;
5955 { /* SCO 3.2v4 cc rejects this. */
5956 char *t;
5957 char const *s = 0 ? (char *) 0 : (char const *) 0;
5958
5959 *t++ = 0;
5960 }
5961 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5962 int x[] = {25, 17};
5963 const int *foo = &x[0];
5964 ++foo;
5965 }
5966 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5967 typedef const int *iptr;
5968 iptr p = 0;
5969 ++p;
5970 }
5971 { /* AIX XL C 1.02.0.0 rejects this saying
5972 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5973 struct s { int j; const int *ap[3]; };
5974 struct s *b; b->j = 5;
5975 }
5976 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5977 const int foo = 10;
5978 }
5979#endif
5980
5981 ;
5982 return 0;
5983}
5984_ACEOF
5985rm -f conftest.$ac_objext
5986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997 (eval $ac_try) 2>&5
5998 ac_status=$?
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003 (eval $ac_try) 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_cv_c_const=yes
6008else
6009 echo "$as_me: failed program was:" >&5
6010sed 's/^/| /' conftest.$ac_ext >&5
6011
6012ac_cv_c_const=no
6013fi
6014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015fi
6016echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6017echo "${ECHO_T}$ac_cv_c_const" >&6
6018if test $ac_cv_c_const = no; then
6019
6020cat >>confdefs.h <<\_ACEOF
6021#define const
6022_ACEOF
6023
6024fi
6025
6026
6027echo "$as_me:$LINENO: checking for egrep" >&5
6028echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6029if test "${ac_cv_prog_egrep+set}" = set; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6031else
6032 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6033 then ac_cv_prog_egrep='grep -E'
6034 else ac_cv_prog_egrep='egrep'
6035 fi
6036fi
6037echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6038echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6039 EGREP=$ac_cv_prog_egrep
6040
John Criswell7a73b802003-06-30 21:59:07 +00006041
6042echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6043echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6044if test "${ac_cv_header_stdc+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6046else
6047 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006048/* confdefs.h. */
6049_ACEOF
6050cat confdefs.h >>conftest.$ac_ext
6051cat >>conftest.$ac_ext <<_ACEOF
6052/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006053#include <stdlib.h>
6054#include <stdarg.h>
6055#include <string.h>
6056#include <float.h>
6057
John Criswell0c38eaf2003-09-10 15:17:25 +00006058int
6059main ()
6060{
6061
6062 ;
6063 return 0;
6064}
John Criswell7a73b802003-06-30 21:59:07 +00006065_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006066rm -f conftest.$ac_objext
6067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006068 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006069 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006070 grep -v '^ *+' conftest.er1 >conftest.err
6071 rm -f conftest.er1
6072 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006074 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006075 { ac_try='test -z "$ac_c_werror_flag"
6076 || test ! -s conftest.err'
6077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6078 (eval $ac_try) 2>&5
6079 ac_status=$?
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }; } &&
6082 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00006083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 (eval $ac_try) 2>&5
6085 ac_status=$?
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006088 ac_cv_header_stdc=yes
6089else
6090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006091sed 's/^/| /' conftest.$ac_ext >&5
6092
6093ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00006094fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006096
6097if test $ac_cv_header_stdc = yes; then
6098 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6099 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006100/* confdefs.h. */
6101_ACEOF
6102cat confdefs.h >>conftest.$ac_ext
6103cat >>conftest.$ac_ext <<_ACEOF
6104/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006105#include <string.h>
6106
6107_ACEOF
6108if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006109 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006110 :
6111else
6112 ac_cv_header_stdc=no
6113fi
6114rm -f conftest*
6115
6116fi
6117
6118if test $ac_cv_header_stdc = yes; then
6119 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6120 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006121/* confdefs.h. */
6122_ACEOF
6123cat confdefs.h >>conftest.$ac_ext
6124cat >>conftest.$ac_ext <<_ACEOF
6125/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006126#include <stdlib.h>
6127
6128_ACEOF
6129if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006130 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006131 :
6132else
6133 ac_cv_header_stdc=no
6134fi
6135rm -f conftest*
6136
6137fi
6138
6139if test $ac_cv_header_stdc = yes; then
6140 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6141 if test "$cross_compiling" = yes; then
6142 :
6143else
6144 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006145/* confdefs.h. */
6146_ACEOF
6147cat confdefs.h >>conftest.$ac_ext
6148cat >>conftest.$ac_ext <<_ACEOF
6149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006150#include <ctype.h>
6151#if ((' ' & 0x0FF) == 0x020)
6152# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6153# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6154#else
John Criswell0c38eaf2003-09-10 15:17:25 +00006155# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006156 (('a' <= (c) && (c) <= 'i') \
6157 || ('j' <= (c) && (c) <= 'r') \
6158 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006159# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6160#endif
6161
6162#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6163int
6164main ()
6165{
6166 int i;
6167 for (i = 0; i < 256; i++)
6168 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006169 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006170 exit(2);
6171 exit (0);
6172}
6173_ACEOF
6174rm -f conftest$ac_exeext
6175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6176 (eval $ac_link) 2>&5
6177 ac_status=$?
6178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 (eval $ac_try) 2>&5
6182 ac_status=$?
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 :
6186else
6187 echo "$as_me: program exited with status $ac_status" >&5
6188echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006189sed 's/^/| /' conftest.$ac_ext >&5
6190
John Criswell7a73b802003-06-30 21:59:07 +00006191( exit $ac_status )
6192ac_cv_header_stdc=no
6193fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006194rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006195fi
6196fi
6197fi
6198echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6199echo "${ECHO_T}$ac_cv_header_stdc" >&6
6200if test $ac_cv_header_stdc = yes; then
6201
6202cat >>confdefs.h <<\_ACEOF
6203#define STDC_HEADERS 1
6204_ACEOF
6205
6206fi
6207
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006208
6209
6210
6211
6212
6213ac_header_dirent=no
6214for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6215 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6216echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6217echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6218if eval "test \"\${$as_ac_Header+set}\" = set"; then
6219 echo $ECHO_N "(cached) $ECHO_C" >&6
6220else
6221 cat >conftest.$ac_ext <<_ACEOF
6222/* confdefs.h. */
6223_ACEOF
6224cat confdefs.h >>conftest.$ac_ext
6225cat >>conftest.$ac_ext <<_ACEOF
6226/* end confdefs.h. */
6227#include <sys/types.h>
6228#include <$ac_hdr>
6229
6230int
6231main ()
6232{
6233if ((DIR *) 0)
6234return 0;
6235 ;
6236 return 0;
6237}
6238_ACEOF
6239rm -f conftest.$ac_objext
6240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6241 (eval $ac_compile) 2>conftest.er1
6242 ac_status=$?
6243 grep -v '^ *+' conftest.er1 >conftest.err
6244 rm -f conftest.er1
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } &&
6248 { ac_try='test -z "$ac_c_werror_flag"
6249 || test ! -s conftest.err'
6250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6251 (eval $ac_try) 2>&5
6252 ac_status=$?
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; } &&
6255 { ac_try='test -s conftest.$ac_objext'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257 (eval $ac_try) 2>&5
6258 ac_status=$?
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; }; then
6261 eval "$as_ac_Header=yes"
6262else
6263 echo "$as_me: failed program was:" >&5
6264sed 's/^/| /' conftest.$ac_ext >&5
6265
6266eval "$as_ac_Header=no"
6267fi
6268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6269fi
6270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6272if test `eval echo '${'$as_ac_Header'}'` = yes; then
6273 cat >>confdefs.h <<_ACEOF
6274#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6275_ACEOF
6276
6277ac_header_dirent=$ac_hdr; break
6278fi
6279
6280done
6281# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6282if test $ac_header_dirent = dirent.h; then
6283 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6284echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6285if test "${ac_cv_search_opendir+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6287else
6288 ac_func_search_save_LIBS=$LIBS
6289ac_cv_search_opendir=no
6290cat >conftest.$ac_ext <<_ACEOF
6291/* confdefs.h. */
6292_ACEOF
6293cat confdefs.h >>conftest.$ac_ext
6294cat >>conftest.$ac_ext <<_ACEOF
6295/* end confdefs.h. */
6296
6297/* Override any gcc2 internal prototype to avoid an error. */
6298#ifdef __cplusplus
6299extern "C"
6300#endif
6301/* We use char because int might match the return type of a gcc2
6302 builtin and then its argument prototype would still apply. */
6303char opendir ();
6304int
6305main ()
6306{
6307opendir ();
6308 ;
6309 return 0;
6310}
6311_ACEOF
6312rm -f conftest.$ac_objext conftest$ac_exeext
6313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6314 (eval $ac_link) 2>conftest.er1
6315 ac_status=$?
6316 grep -v '^ *+' conftest.er1 >conftest.err
6317 rm -f conftest.er1
6318 cat conftest.err >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); } &&
6321 { ac_try='test -z "$ac_c_werror_flag"
6322 || test ! -s conftest.err'
6323 { (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); }; } &&
6328 { ac_try='test -s conftest$ac_exeext'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6330 (eval $ac_try) 2>&5
6331 ac_status=$?
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; }; then
6334 ac_cv_search_opendir="none required"
6335else
6336 echo "$as_me: failed program was:" >&5
6337sed 's/^/| /' conftest.$ac_ext >&5
6338
6339fi
6340rm -f conftest.err conftest.$ac_objext \
6341 conftest$ac_exeext conftest.$ac_ext
6342if test "$ac_cv_search_opendir" = no; then
6343 for ac_lib in dir; do
6344 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6345 cat >conftest.$ac_ext <<_ACEOF
6346/* confdefs.h. */
6347_ACEOF
6348cat confdefs.h >>conftest.$ac_ext
6349cat >>conftest.$ac_ext <<_ACEOF
6350/* end confdefs.h. */
6351
6352/* Override any gcc2 internal prototype to avoid an error. */
6353#ifdef __cplusplus
6354extern "C"
6355#endif
6356/* We use char because int might match the return type of a gcc2
6357 builtin and then its argument prototype would still apply. */
6358char opendir ();
6359int
6360main ()
6361{
6362opendir ();
6363 ;
6364 return 0;
6365}
6366_ACEOF
6367rm -f conftest.$ac_objext conftest$ac_exeext
6368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6369 (eval $ac_link) 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } &&
6376 { ac_try='test -z "$ac_c_werror_flag"
6377 || test ! -s conftest.err'
6378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6379 (eval $ac_try) 2>&5
6380 ac_status=$?
6381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); }; } &&
6383 { ac_try='test -s conftest$ac_exeext'
6384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6385 (eval $ac_try) 2>&5
6386 ac_status=$?
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); }; }; then
6389 ac_cv_search_opendir="-l$ac_lib"
6390break
6391else
6392 echo "$as_me: failed program was:" >&5
6393sed 's/^/| /' conftest.$ac_ext >&5
6394
6395fi
6396rm -f conftest.err conftest.$ac_objext \
6397 conftest$ac_exeext conftest.$ac_ext
6398 done
6399fi
6400LIBS=$ac_func_search_save_LIBS
6401fi
6402echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6403echo "${ECHO_T}$ac_cv_search_opendir" >&6
6404if test "$ac_cv_search_opendir" != no; then
6405 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6406
6407fi
6408
6409else
6410 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6411echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6412if test "${ac_cv_search_opendir+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6414else
6415 ac_func_search_save_LIBS=$LIBS
6416ac_cv_search_opendir=no
6417cat >conftest.$ac_ext <<_ACEOF
6418/* confdefs.h. */
6419_ACEOF
6420cat confdefs.h >>conftest.$ac_ext
6421cat >>conftest.$ac_ext <<_ACEOF
6422/* end confdefs.h. */
6423
6424/* Override any gcc2 internal prototype to avoid an error. */
6425#ifdef __cplusplus
6426extern "C"
6427#endif
6428/* We use char because int might match the return type of a gcc2
6429 builtin and then its argument prototype would still apply. */
6430char opendir ();
6431int
6432main ()
6433{
6434opendir ();
6435 ;
6436 return 0;
6437}
6438_ACEOF
6439rm -f conftest.$ac_objext conftest$ac_exeext
6440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6441 (eval $ac_link) 2>conftest.er1
6442 ac_status=$?
6443 grep -v '^ *+' conftest.er1 >conftest.err
6444 rm -f conftest.er1
6445 cat conftest.err >&5
6446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6447 (exit $ac_status); } &&
6448 { ac_try='test -z "$ac_c_werror_flag"
6449 || test ! -s conftest.err'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6451 (eval $ac_try) 2>&5
6452 ac_status=$?
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; } &&
6455 { ac_try='test -s conftest$ac_exeext'
6456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6457 (eval $ac_try) 2>&5
6458 ac_status=$?
6459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); }; }; then
6461 ac_cv_search_opendir="none required"
6462else
6463 echo "$as_me: failed program was:" >&5
6464sed 's/^/| /' conftest.$ac_ext >&5
6465
6466fi
6467rm -f conftest.err conftest.$ac_objext \
6468 conftest$ac_exeext conftest.$ac_ext
6469if test "$ac_cv_search_opendir" = no; then
6470 for ac_lib in x; do
6471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6472 cat >conftest.$ac_ext <<_ACEOF
6473/* confdefs.h. */
6474_ACEOF
6475cat confdefs.h >>conftest.$ac_ext
6476cat >>conftest.$ac_ext <<_ACEOF
6477/* end confdefs.h. */
6478
6479/* Override any gcc2 internal prototype to avoid an error. */
6480#ifdef __cplusplus
6481extern "C"
6482#endif
6483/* We use char because int might match the return type of a gcc2
6484 builtin and then its argument prototype would still apply. */
6485char opendir ();
6486int
6487main ()
6488{
6489opendir ();
6490 ;
6491 return 0;
6492}
6493_ACEOF
6494rm -f conftest.$ac_objext conftest$ac_exeext
6495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6496 (eval $ac_link) 2>conftest.er1
6497 ac_status=$?
6498 grep -v '^ *+' conftest.er1 >conftest.err
6499 rm -f conftest.er1
6500 cat conftest.err >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } &&
6503 { ac_try='test -z "$ac_c_werror_flag"
6504 || test ! -s conftest.err'
6505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 (eval $ac_try) 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; } &&
6510 { ac_try='test -s conftest$ac_exeext'
6511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 (eval $ac_try) 2>&5
6513 ac_status=$?
6514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6515 (exit $ac_status); }; }; then
6516 ac_cv_search_opendir="-l$ac_lib"
6517break
6518else
6519 echo "$as_me: failed program was:" >&5
6520sed 's/^/| /' conftest.$ac_ext >&5
6521
6522fi
6523rm -f conftest.err conftest.$ac_objext \
6524 conftest$ac_exeext conftest.$ac_ext
6525 done
6526fi
6527LIBS=$ac_func_search_save_LIBS
6528fi
6529echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6530echo "${ECHO_T}$ac_cv_search_opendir" >&6
6531if test "$ac_cv_search_opendir" != no; then
6532 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6533
6534fi
6535
6536fi
6537
John Criswell7a73b802003-06-30 21:59:07 +00006538# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006549 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006550do
6551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6552echo "$as_me:$LINENO: checking for $ac_header" >&5
6553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6554if eval "test \"\${$as_ac_Header+set}\" = set"; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556else
6557 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006558/* confdefs.h. */
6559_ACEOF
6560cat confdefs.h >>conftest.$ac_ext
6561cat >>conftest.$ac_ext <<_ACEOF
6562/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006563$ac_includes_default
6564
6565#include <$ac_header>
6566_ACEOF
6567rm -f conftest.$ac_objext
6568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006569 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006570 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006571 grep -v '^ *+' conftest.er1 >conftest.err
6572 rm -f conftest.er1
6573 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006576 { ac_try='test -z "$ac_c_werror_flag"
6577 || test ! -s conftest.err'
6578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 (eval $ac_try) 2>&5
6580 ac_status=$?
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); }; } &&
6583 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 (eval $ac_try) 2>&5
6586 ac_status=$?
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 eval "$as_ac_Header=yes"
6590else
6591 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006592sed 's/^/| /' conftest.$ac_ext >&5
6593
John Criswell7a73b802003-06-30 21:59:07 +00006594eval "$as_ac_Header=no"
6595fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006597fi
6598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6600if test `eval echo '${'$as_ac_Header'}'` = yes; then
6601 cat >>confdefs.h <<_ACEOF
6602#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6603_ACEOF
6604
6605fi
6606
6607done
6608
6609
6610
6611for ac_header in dlfcn.h
6612do
6613as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006614if eval "test \"\${$as_ac_Header+set}\" = set"; then
6615 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6617if eval "test \"\${$as_ac_Header+set}\" = set"; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006619fi
6620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006622else
Brian Gaeke0a621332004-09-08 20:38:05 +00006623 # Is the header compilable?
6624echo "$as_me:$LINENO: checking $ac_header usability" >&5
6625echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6626cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006627/* confdefs.h. */
6628_ACEOF
6629cat confdefs.h >>conftest.$ac_ext
6630cat >>conftest.$ac_ext <<_ACEOF
6631/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006632$ac_includes_default
6633#include <$ac_header>
6634_ACEOF
6635rm -f conftest.$ac_objext
6636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006637 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006638 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006639 grep -v '^ *+' conftest.er1 >conftest.err
6640 rm -f conftest.er1
6641 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006644 { ac_try='test -z "$ac_c_werror_flag"
6645 || test ! -s conftest.err'
6646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6647 (eval $ac_try) 2>&5
6648 ac_status=$?
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); }; } &&
6651 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 (eval $ac_try) 2>&5
6654 ac_status=$?
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006657 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006658else
6659 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006660sed 's/^/| /' conftest.$ac_ext >&5
6661
Brian Gaeke0a621332004-09-08 20:38:05 +00006662ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006663fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006665echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6666echo "${ECHO_T}$ac_header_compiler" >&6
6667
6668# Is the header present?
6669echo "$as_me:$LINENO: checking $ac_header presence" >&5
6670echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6671cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006672/* confdefs.h. */
6673_ACEOF
6674cat confdefs.h >>conftest.$ac_ext
6675cat >>conftest.$ac_ext <<_ACEOF
6676/* end confdefs.h. */
6677#include <$ac_header>
6678_ACEOF
6679if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } >/dev/null; then
6687 if test -s conftest.err; then
6688 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006690 else
6691 ac_cpp_err=
6692 fi
6693else
6694 ac_cpp_err=yes
6695fi
6696if test -z "$ac_cpp_err"; then
6697 ac_header_preproc=yes
6698else
6699 echo "$as_me: failed program was:" >&5
6700sed 's/^/| /' conftest.$ac_ext >&5
6701
6702 ac_header_preproc=no
6703fi
6704rm -f conftest.err conftest.$ac_ext
6705echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6706echo "${ECHO_T}$ac_header_preproc" >&6
6707
6708# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006709case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6710 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6712echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6714echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6715 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006716 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006717 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6719echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6721echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6723echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6725echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6727echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6729echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006730 (
6731 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006732## ----------------------------------- ##
6733## Report this to llvmbugs@cs.uiuc.edu ##
6734## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006735_ASBOX
6736 ) |
6737 sed "s/^/$as_me: WARNING: /" >&2
6738 ;;
6739esac
6740echo "$as_me:$LINENO: checking for $ac_header" >&5
6741echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6742if eval "test \"\${$as_ac_Header+set}\" = set"; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006745 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006746fi
6747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6748echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006749
6750fi
John Criswell7a73b802003-06-30 21:59:07 +00006751if test `eval echo '${'$as_ac_Header'}'` = yes; then
6752 cat >>confdefs.h <<_ACEOF
6753#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6754_ACEOF
6755
6756fi
6757
6758done
6759
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006760# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6761if test "${enable_ltdl_install+set}" = set; then
6762 enableval="$enable_ltdl_install"
6763
6764fi;
6765
6766
6767
6768if test x"${enable_ltdl_install-no}" != xno; then
6769 INSTALL_LTDL_TRUE=
6770 INSTALL_LTDL_FALSE='#'
6771else
6772 INSTALL_LTDL_TRUE='#'
6773 INSTALL_LTDL_FALSE=
6774fi
6775
6776
6777
6778if test x"${enable_ltdl_convenience-no}" != xno; then
6779 CONVENIENCE_LTDL_TRUE=
6780 CONVENIENCE_LTDL_FALSE='#'
6781else
6782 CONVENIENCE_LTDL_TRUE='#'
6783 CONVENIENCE_LTDL_FALSE=
6784fi
6785
6786
6787echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6788echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6789library_names_spec=
6790libname_spec='lib$name'
6791soname_spec=
6792shrext_cmds=".so"
6793postinstall_cmds=
6794postuninstall_cmds=
6795finish_cmds=
6796finish_eval=
6797shlibpath_var=
6798shlibpath_overrides_runpath=unknown
6799version_type=none
6800dynamic_linker="$host_os ld.so"
6801sys_lib_dlsearch_path_spec="/lib /usr/lib"
6802if test "$GCC" = yes; then
6803 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6804 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6805 # if the path contains ";" then we assume it to be the separator
6806 # otherwise default to the standard path separator (i.e. ":") - it is
6807 # assumed that no part of a normal pathname contains ";" but that should
6808 # okay in the real world where ";" in dirpaths is itself problematic.
6809 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6810 else
6811 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6812 fi
6813else
6814 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6815fi
6816need_lib_prefix=unknown
6817hardcode_into_libs=no
6818
6819# when you set need_version to no, make sure it does not cause -set_version
6820# flags to be left without arguments
6821need_version=unknown
6822
6823case $host_os in
6824aix3*)
6825 version_type=linux
6826 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6827 shlibpath_var=LIBPATH
6828
6829 # AIX 3 has no versioning support, so we append a major version to the name.
6830 soname_spec='${libname}${release}${shared_ext}$major'
6831 ;;
6832
6833aix4* | aix5*)
6834 version_type=linux
6835 need_lib_prefix=no
6836 need_version=no
6837 hardcode_into_libs=yes
6838 if test "$host_cpu" = ia64; then
6839 # AIX 5 supports IA64
6840 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6841 shlibpath_var=LD_LIBRARY_PATH
6842 else
6843 # With GCC up to 2.95.x, collect2 would create an import file
6844 # for dependence libraries. The import file would start with
6845 # the line `#! .'. This would cause the generated library to
6846 # depend on `.', always an invalid library. This was fixed in
6847 # development snapshots of GCC prior to 3.0.
6848 case $host_os in
6849 aix4 | aix4.[01] | aix4.[01].*)
6850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6851 echo ' yes '
6852 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6853 :
6854 else
6855 can_build_shared=no
6856 fi
6857 ;;
6858 esac
6859 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6860 # soname into executable. Probably we can add versioning support to
6861 # collect2, so additional links can be useful in future.
6862 if test "$aix_use_runtimelinking" = yes; then
6863 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6864 # instead of lib<name>.a to let people know that these are not
6865 # typical AIX shared libraries.
6866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6867 else
6868 # We preserve .a as extension for shared libraries through AIX4.2
6869 # and later when we are not doing run time linking.
6870 library_names_spec='${libname}${release}.a $libname.a'
6871 soname_spec='${libname}${release}${shared_ext}$major'
6872 fi
6873 shlibpath_var=LIBPATH
6874 fi
6875 ;;
6876
6877amigaos*)
6878 library_names_spec='$libname.ixlibrary $libname.a'
6879 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6880 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'
6881 ;;
6882
6883beos*)
6884 library_names_spec='${libname}${shared_ext}'
6885 dynamic_linker="$host_os ld.so"
6886 shlibpath_var=LIBRARY_PATH
6887 ;;
6888
6889bsdi[45]*)
6890 version_type=linux
6891 need_version=no
6892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6893 soname_spec='${libname}${release}${shared_ext}$major'
6894 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6895 shlibpath_var=LD_LIBRARY_PATH
6896 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6897 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6898 # the default ld.so.conf also contains /usr/contrib/lib and
6899 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6900 # libtool to hard-code these into programs
6901 ;;
6902
6903cygwin* | mingw* | pw32*)
6904 version_type=windows
6905 shrext_cmds=".dll"
6906 need_version=no
6907 need_lib_prefix=no
6908
6909 case $GCC,$host_os in
6910 yes,cygwin* | yes,mingw* | yes,pw32*)
6911 library_names_spec='$libname.dll.a'
6912 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6913 postinstall_cmds='base_file=`basename \${file}`~
6914 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6915 dldir=$destdir/`dirname \$dlpath`~
6916 test -d \$dldir || mkdir -p \$dldir~
6917 $install_prog $dir/$dlname \$dldir/$dlname'
6918 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6919 dlpath=$dir/\$dldll~
6920 $rm \$dlpath'
6921 shlibpath_overrides_runpath=yes
6922
6923 case $host_os in
6924 cygwin*)
6925 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6926 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6927 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6928 ;;
6929 mingw*)
6930 # MinGW DLLs use traditional 'lib' prefix
6931 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6932 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6933 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6934 # It is most probably a Windows format PATH printed by
6935 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6936 # path with ; separators, and with drive letters. We can handle the
6937 # drive letters (cygwin fileutils understands them), so leave them,
6938 # especially as we might pass files found there to a mingw objdump,
6939 # which wouldn't understand a cygwinified path. Ahh.
6940 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6941 else
6942 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6943 fi
6944 ;;
6945 pw32*)
6946 # pw32 DLLs use 'pw' prefix rather than 'lib'
6947 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6948 ;;
6949 esac
6950 ;;
6951
6952 *)
6953 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6954 ;;
6955 esac
6956 dynamic_linker='Win32 ld.exe'
6957 # FIXME: first we should search . and the directory the executable is in
6958 shlibpath_var=PATH
6959 ;;
6960
6961darwin* | rhapsody*)
6962 dynamic_linker="$host_os dyld"
6963 version_type=darwin
6964 need_lib_prefix=no
6965 need_version=no
6966 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6967 soname_spec='${libname}${release}${major}$shared_ext'
6968 shlibpath_overrides_runpath=yes
6969 shlibpath_var=DYLD_LIBRARY_PATH
6970 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6971 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6972 if test "$GCC" = yes; then
6973 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"`
6974 else
6975 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6976 fi
6977 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6978 ;;
6979
6980dgux*)
6981 version_type=linux
6982 need_lib_prefix=no
6983 need_version=no
6984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6985 soname_spec='${libname}${release}${shared_ext}$major'
6986 shlibpath_var=LD_LIBRARY_PATH
6987 ;;
6988
6989freebsd1*)
6990 dynamic_linker=no
6991 ;;
6992
6993kfreebsd*-gnu)
6994 version_type=linux
6995 need_lib_prefix=no
6996 need_version=no
6997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6998 soname_spec='${libname}${release}${shared_ext}$major'
6999 shlibpath_var=LD_LIBRARY_PATH
7000 shlibpath_overrides_runpath=no
7001 hardcode_into_libs=yes
7002 dynamic_linker='GNU ld.so'
7003 ;;
7004
7005freebsd*)
7006 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7007 version_type=freebsd-$objformat
7008 case $version_type in
7009 freebsd-elf*)
7010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7011 need_version=no
7012 need_lib_prefix=no
7013 ;;
7014 freebsd-*)
7015 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7016 need_version=yes
7017 ;;
7018 esac
7019 shlibpath_var=LD_LIBRARY_PATH
7020 case $host_os in
7021 freebsd2*)
7022 shlibpath_overrides_runpath=yes
7023 ;;
7024 freebsd3.01* | freebsdelf3.01*)
7025 shlibpath_overrides_runpath=yes
7026 hardcode_into_libs=yes
7027 ;;
7028 *) # from 3.2 on
7029 shlibpath_overrides_runpath=no
7030 hardcode_into_libs=yes
7031 ;;
7032 esac
7033 ;;
7034
7035gnu*)
7036 version_type=linux
7037 need_lib_prefix=no
7038 need_version=no
7039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7040 soname_spec='${libname}${release}${shared_ext}$major'
7041 shlibpath_var=LD_LIBRARY_PATH
7042 hardcode_into_libs=yes
7043 ;;
7044
7045hpux9* | hpux10* | hpux11*)
7046 # Give a soname corresponding to the major version so that dld.sl refuses to
7047 # link against other versions.
7048 version_type=sunos
7049 need_lib_prefix=no
7050 need_version=no
7051 case "$host_cpu" in
7052 ia64*)
7053 shrext_cmds='.so'
7054 hardcode_into_libs=yes
7055 dynamic_linker="$host_os dld.so"
7056 shlibpath_var=LD_LIBRARY_PATH
7057 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7059 soname_spec='${libname}${release}${shared_ext}$major'
7060 if test "X$HPUX_IA64_MODE" = X32; then
7061 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7062 else
7063 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7064 fi
7065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7066 ;;
7067 hppa*64*)
7068 shrext_cmds='.sl'
7069 hardcode_into_libs=yes
7070 dynamic_linker="$host_os dld.sl"
7071 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7072 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7074 soname_spec='${libname}${release}${shared_ext}$major'
7075 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7076 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7077 ;;
7078 *)
7079 shrext_cmds='.sl'
7080 dynamic_linker="$host_os dld.sl"
7081 shlibpath_var=SHLIB_PATH
7082 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7084 soname_spec='${libname}${release}${shared_ext}$major'
7085 ;;
7086 esac
7087 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7088 postinstall_cmds='chmod 555 $lib'
7089 ;;
7090
7091irix5* | irix6* | nonstopux*)
7092 case $host_os in
7093 nonstopux*) version_type=nonstopux ;;
7094 *)
7095 if test "$lt_cv_prog_gnu_ld" = yes; then
7096 version_type=linux
7097 else
7098 version_type=irix
7099 fi ;;
7100 esac
7101 need_lib_prefix=no
7102 need_version=no
7103 soname_spec='${libname}${release}${shared_ext}$major'
7104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7105 case $host_os in
7106 irix5* | nonstopux*)
7107 libsuff= shlibsuff=
7108 ;;
7109 *)
7110 case $LD in # libtool.m4 will add one of these switches to LD
7111 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7112 libsuff= shlibsuff= libmagic=32-bit;;
7113 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7114 libsuff=32 shlibsuff=N32 libmagic=N32;;
7115 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7116 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7117 *) libsuff= shlibsuff= libmagic=never-match;;
7118 esac
7119 ;;
7120 esac
7121 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7122 shlibpath_overrides_runpath=no
7123 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7124 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7125 hardcode_into_libs=yes
7126 ;;
7127
7128# No shared lib support for Linux oldld, aout, or coff.
7129linux*oldld* | linux*aout* | linux*coff*)
7130 dynamic_linker=no
7131 ;;
7132
7133# This must be Linux ELF.
7134linux*)
7135 version_type=linux
7136 need_lib_prefix=no
7137 need_version=no
7138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7139 soname_spec='${libname}${release}${shared_ext}$major'
7140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7141 shlibpath_var=LD_LIBRARY_PATH
7142 shlibpath_overrides_runpath=no
7143 # This implies no fast_install, which is unacceptable.
7144 # Some rework will be needed to allow for fast_install
7145 # before this can be enabled.
7146 hardcode_into_libs=yes
7147
7148 # Append ld.so.conf contents to the search path
7149 if test -f /etc/ld.so.conf; then
7150 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7151 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7152 fi
7153
7154 # We used to test for /lib/ld.so.1 and disable shared libraries on
7155 # powerpc, because MkLinux only supported shared libraries with the
7156 # GNU dynamic linker. Since this was broken with cross compilers,
7157 # most powerpc-linux boxes support dynamic linking these days and
7158 # people can always --disable-shared, the test was removed, and we
7159 # assume the GNU/Linux dynamic linker is in use.
7160 dynamic_linker='GNU/Linux ld.so'
7161 ;;
7162
7163knetbsd*-gnu)
7164 version_type=linux
7165 need_lib_prefix=no
7166 need_version=no
7167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7168 soname_spec='${libname}${release}${shared_ext}$major'
7169 shlibpath_var=LD_LIBRARY_PATH
7170 shlibpath_overrides_runpath=no
7171 hardcode_into_libs=yes
7172 dynamic_linker='GNU ld.so'
7173 ;;
7174
7175netbsd*)
7176 version_type=sunos
7177 need_lib_prefix=no
7178 need_version=no
7179 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7181 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7182 dynamic_linker='NetBSD (a.out) ld.so'
7183 else
7184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7185 soname_spec='${libname}${release}${shared_ext}$major'
7186 dynamic_linker='NetBSD ld.elf_so'
7187 fi
7188 shlibpath_var=LD_LIBRARY_PATH
7189 shlibpath_overrides_runpath=yes
7190 hardcode_into_libs=yes
7191 ;;
7192
7193newsos6)
7194 version_type=linux
7195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7196 shlibpath_var=LD_LIBRARY_PATH
7197 shlibpath_overrides_runpath=yes
7198 ;;
7199
7200nto-qnx*)
7201 version_type=linux
7202 need_lib_prefix=no
7203 need_version=no
7204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7205 soname_spec='${libname}${release}${shared_ext}$major'
7206 shlibpath_var=LD_LIBRARY_PATH
7207 shlibpath_overrides_runpath=yes
7208 ;;
7209
7210openbsd*)
7211 version_type=sunos
7212 need_lib_prefix=no
7213 need_version=no
7214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7215 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7216 shlibpath_var=LD_LIBRARY_PATH
7217 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7218 case $host_os in
7219 openbsd2.[89] | openbsd2.[89].*)
7220 shlibpath_overrides_runpath=no
7221 ;;
7222 *)
7223 shlibpath_overrides_runpath=yes
7224 ;;
7225 esac
7226 else
7227 shlibpath_overrides_runpath=yes
7228 fi
7229 ;;
7230
7231os2*)
7232 libname_spec='$name'
7233 shrext_cmds=".dll"
7234 need_lib_prefix=no
7235 library_names_spec='$libname${shared_ext} $libname.a'
7236 dynamic_linker='OS/2 ld.exe'
7237 shlibpath_var=LIBPATH
7238 ;;
7239
7240osf3* | osf4* | osf5*)
7241 version_type=osf
7242 need_lib_prefix=no
7243 need_version=no
7244 soname_spec='${libname}${release}${shared_ext}$major'
7245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7246 shlibpath_var=LD_LIBRARY_PATH
7247 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7248 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7249 ;;
7250
7251sco3.2v5*)
7252 version_type=osf
7253 soname_spec='${libname}${release}${shared_ext}$major'
7254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7255 shlibpath_var=LD_LIBRARY_PATH
7256 ;;
7257
7258solaris*)
7259 version_type=linux
7260 need_lib_prefix=no
7261 need_version=no
7262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7263 soname_spec='${libname}${release}${shared_ext}$major'
7264 shlibpath_var=LD_LIBRARY_PATH
7265 shlibpath_overrides_runpath=yes
7266 hardcode_into_libs=yes
7267 # ldd complains unless libraries are executable
7268 postinstall_cmds='chmod +x $lib'
7269 ;;
7270
7271sunos4*)
7272 version_type=sunos
7273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7274 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7275 shlibpath_var=LD_LIBRARY_PATH
7276 shlibpath_overrides_runpath=yes
7277 if test "$with_gnu_ld" = yes; then
7278 need_lib_prefix=no
7279 fi
7280 need_version=yes
7281 ;;
7282
7283sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7284 version_type=linux
7285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7286 soname_spec='${libname}${release}${shared_ext}$major'
7287 shlibpath_var=LD_LIBRARY_PATH
7288 case $host_vendor in
7289 sni)
7290 shlibpath_overrides_runpath=no
7291 need_lib_prefix=no
7292 export_dynamic_flag_spec='${wl}-Blargedynsym'
7293 runpath_var=LD_RUN_PATH
7294 ;;
7295 siemens)
7296 need_lib_prefix=no
7297 ;;
7298 motorola)
7299 need_lib_prefix=no
7300 need_version=no
7301 shlibpath_overrides_runpath=no
7302 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7303 ;;
7304 esac
7305 ;;
7306
7307sysv4*MP*)
7308 if test -d /usr/nec ;then
7309 version_type=linux
7310 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7311 soname_spec='$libname${shared_ext}.$major'
7312 shlibpath_var=LD_LIBRARY_PATH
7313 fi
7314 ;;
7315
7316uts4*)
7317 version_type=linux
7318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7319 soname_spec='${libname}${release}${shared_ext}$major'
7320 shlibpath_var=LD_LIBRARY_PATH
7321 ;;
7322
7323*)
7324 dynamic_linker=no
7325 ;;
7326esac
7327echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7328echo "${ECHO_T}$dynamic_linker" >&6
7329test "$dynamic_linker" = no && can_build_shared=no
7330
7331
7332echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7333echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7334if test "${libltdl_cv_shlibext+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336else
7337
7338module=yes
7339eval libltdl_cv_shlibext=$shrext_cmds
7340
7341fi
7342echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7343echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7344if test -n "$libltdl_cv_shlibext"; then
7345
7346cat >>confdefs.h <<_ACEOF
7347#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7348_ACEOF
7349
7350fi
7351
7352
7353echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7354echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7355if test "${libltdl_cv_shlibpath_var+set}" = set; then
7356 echo $ECHO_N "(cached) $ECHO_C" >&6
7357else
7358 libltdl_cv_shlibpath_var="$shlibpath_var"
7359fi
7360echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7361echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7362if test -n "$libltdl_cv_shlibpath_var"; then
7363
7364cat >>confdefs.h <<_ACEOF
7365#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7366_ACEOF
7367
7368fi
7369
7370
7371echo "$as_me:$LINENO: checking for the default library search path" >&5
7372echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7373if test "${libltdl_cv_sys_search_path+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7375else
7376 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7377fi
7378echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7379echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7380if test -n "$libltdl_cv_sys_search_path"; then
7381 sys_search_path=
7382 for dir in $libltdl_cv_sys_search_path; do
7383 if test -z "$sys_search_path"; then
7384 sys_search_path="$dir"
7385 else
7386 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7387 fi
7388 done
7389
7390cat >>confdefs.h <<_ACEOF
7391#define LTDL_SYSSEARCHPATH "$sys_search_path"
7392_ACEOF
7393
7394fi
7395
7396echo "$as_me:$LINENO: checking for objdir" >&5
7397echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7398if test "${libltdl_cv_objdir+set}" = set; then
7399 echo $ECHO_N "(cached) $ECHO_C" >&6
7400else
7401 libltdl_cv_objdir="$objdir"
7402 if test -n "$objdir"; then
7403 :
7404 else
7405 rm -f .libs 2>/dev/null
7406 mkdir .libs 2>/dev/null
7407 if test -d .libs; then
7408 libltdl_cv_objdir=.libs
7409 else
7410 # MS-DOS does not allow filenames that begin with a dot.
7411 libltdl_cv_objdir=_libs
7412 fi
7413 rmdir .libs 2>/dev/null
7414 fi
7415
7416fi
7417echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7418echo "${ECHO_T}$libltdl_cv_objdir" >&6
7419
7420cat >>confdefs.h <<_ACEOF
7421#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7422_ACEOF
7423
7424
7425echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7426echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7427if test "${lt_cv_path_NM+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7429else
7430 if test -n "$NM"; then
7431 # Let the user override the test.
7432 lt_cv_path_NM="$NM"
7433else
7434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7435 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7436 IFS="$lt_save_ifs"
7437 test -z "$ac_dir" && ac_dir=.
7438 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7439 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7440 # Check to see if the nm accepts a BSD-compat flag.
7441 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7442 # nm: unknown option "B" ignored
7443 # Tru64's nm complains that /dev/null is an invalid object file
7444 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7445 */dev/null* | *'Invalid file or object type'*)
7446 lt_cv_path_NM="$tmp_nm -B"
7447 break
7448 ;;
7449 *)
7450 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7451 */dev/null*)
7452 lt_cv_path_NM="$tmp_nm -p"
7453 break
7454 ;;
7455 *)
7456 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7457 continue # so that we can try to find one that supports BSD flags
7458 ;;
7459 esac
7460 esac
7461 fi
7462 done
7463 IFS="$lt_save_ifs"
7464 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7465fi
7466fi
7467echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7468echo "${ECHO_T}$lt_cv_path_NM" >&6
7469NM="$lt_cv_path_NM"
7470
7471
7472
7473
7474
7475# Check for command to grab the raw symbol name followed by C symbol from nm.
7476echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7477echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7478if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7480else
7481
7482# These are sane defaults that work on at least a few old systems.
7483# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7484
7485# Character class describing NM global symbol codes.
7486symcode='[BCDEGRST]'
7487
7488# Regexp to match symbols that can be accessed directly from C.
7489sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7490
7491# Transform the above into a raw symbol and a C symbol.
7492symxfrm='\1 \2\3 \3'
7493
7494# Transform an extracted symbol line into a proper C declaration
7495lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7496
7497# Transform an extracted symbol line into symbol name and symbol address
7498lt_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'"
7499
7500# Define system-specific variables.
7501case $host_os in
7502aix*)
7503 symcode='[BCDT]'
7504 ;;
7505cygwin* | mingw* | pw32*)
7506 symcode='[ABCDGISTW]'
7507 ;;
7508hpux*) # Its linker distinguishes data from code symbols
7509 if test "$host_cpu" = ia64; then
7510 symcode='[ABCDEGRST]'
7511 fi
7512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7513 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'"
7514 ;;
7515linux*)
7516 if test "$host_cpu" = ia64; then
7517 symcode='[ABCDGIRSTW]'
7518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7519 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'"
7520 fi
7521 ;;
7522irix* | nonstopux*)
7523 symcode='[BCDEGRST]'
7524 ;;
7525osf*)
7526 symcode='[BCDEGQRST]'
7527 ;;
7528solaris* | sysv5*)
7529 symcode='[BDRT]'
7530 ;;
7531sysv4)
7532 symcode='[DFNSTU]'
7533 ;;
7534esac
7535
7536# Handle CRLF in mingw tool chain
7537opt_cr=
7538case $build_os in
7539mingw*)
7540 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7541 ;;
7542esac
7543
7544# If we're using GNU nm, then use its standard symbol codes.
7545case `$NM -V 2>&1` in
7546*GNU* | *'with BFD'*)
7547 symcode='[ABCDGIRSTW]' ;;
7548esac
7549
7550# Try without a prefix undercore, then with it.
7551for ac_symprfx in "" "_"; do
7552
7553 # Write the raw and C identifiers.
7554 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7555
7556 # Check to see that the pipe works correctly.
7557 pipe_works=no
7558
7559 rm -f conftest*
7560 cat > conftest.$ac_ext <<EOF
7561#ifdef __cplusplus
7562extern "C" {
7563#endif
7564char nm_test_var;
7565void nm_test_func(){}
7566#ifdef __cplusplus
7567}
7568#endif
7569int main(){nm_test_var='a';nm_test_func();return(0);}
7570EOF
7571
7572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7573 (eval $ac_compile) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; then
7577 # Now try to grab the symbols.
7578 nlist=conftest.nm
7579 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7580 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7581 ac_status=$?
7582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583 (exit $ac_status); } && test -s "$nlist"; then
7584 # Try sorting and uniquifying the output.
7585 if sort "$nlist" | uniq > "$nlist"T; then
7586 mv -f "$nlist"T "$nlist"
7587 else
7588 rm -f "$nlist"T
7589 fi
7590
7591 # Make sure that we snagged all the symbols we need.
7592 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7593 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7594 cat <<EOF > conftest.$ac_ext
7595#ifdef __cplusplus
7596extern "C" {
7597#endif
7598
7599EOF
7600 # Now generate the symbol file.
7601 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7602
7603 cat <<EOF >> conftest.$ac_ext
7604#if defined (__STDC__) && __STDC__
7605# define lt_ptr_t void *
7606#else
7607# define lt_ptr_t char *
7608# define const
7609#endif
7610
7611/* The mapping between symbol names and symbols. */
7612const struct {
7613 const char *name;
7614 lt_ptr_t address;
7615}
7616lt_preloaded_symbols[] =
7617{
7618EOF
7619 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7620 cat <<\EOF >> conftest.$ac_ext
7621 {0, (lt_ptr_t) 0}
7622};
7623
7624#ifdef __cplusplus
7625}
7626#endif
7627EOF
7628 # Now try linking the two files.
7629 mv conftest.$ac_objext conftstm.$ac_objext
7630 lt_save_LIBS="$LIBS"
7631 lt_save_CFLAGS="$CFLAGS"
7632 LIBS="conftstm.$ac_objext"
7633 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635 (eval $ac_link) 2>&5
7636 ac_status=$?
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7639 pipe_works=yes
7640 fi
7641 LIBS="$lt_save_LIBS"
7642 CFLAGS="$lt_save_CFLAGS"
7643 else
7644 echo "cannot find nm_test_func in $nlist" >&5
7645 fi
7646 else
7647 echo "cannot find nm_test_var in $nlist" >&5
7648 fi
7649 else
7650 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7651 fi
7652 else
7653 echo "$progname: failed program was:" >&5
7654 cat conftest.$ac_ext >&5
7655 fi
7656 rm -f conftest* conftst*
7657
7658 # Do not use the global_symbol_pipe unless it works.
7659 if test "$pipe_works" = yes; then
7660 break
7661 else
7662 lt_cv_sys_global_symbol_pipe=
7663 fi
7664done
7665
7666fi
7667
7668if test -z "$lt_cv_sys_global_symbol_pipe"; then
7669 lt_cv_sys_global_symbol_to_cdecl=
7670fi
7671if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7672 echo "$as_me:$LINENO: result: failed" >&5
7673echo "${ECHO_T}failed" >&6
7674else
7675 echo "$as_me:$LINENO: result: ok" >&5
7676echo "${ECHO_T}ok" >&6
7677fi
7678
7679
7680echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7681echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7682if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7684else
7685 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7686 libltdl_cv_preloaded_symbols=yes
7687 else
7688 libltdl_cv_preloaded_symbols=no
7689 fi
7690
7691fi
7692echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7693echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7694if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7695
7696cat >>confdefs.h <<\_ACEOF
7697#define HAVE_PRELOADED_SYMBOLS 1
7698_ACEOF
7699
7700fi
7701
7702LIBADD_DL=
7703
7704ac_ext=c
7705ac_cpp='$CPP $CPPFLAGS'
7706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7708ac_compiler_gnu=$ac_cv_c_compiler_gnu
7709
7710
7711echo "$as_me:$LINENO: checking for shl_load" >&5
7712echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7713if test "${ac_cv_func_shl_load+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716 cat >conftest.$ac_ext <<_ACEOF
7717/* confdefs.h. */
7718_ACEOF
7719cat confdefs.h >>conftest.$ac_ext
7720cat >>conftest.$ac_ext <<_ACEOF
7721/* end confdefs.h. */
7722/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7724#define shl_load innocuous_shl_load
7725
7726/* System header to define __stub macros and hopefully few prototypes,
7727 which can conflict with char shl_load (); below.
7728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7729 <limits.h> exists even on freestanding compilers. */
7730
7731#ifdef __STDC__
7732# include <limits.h>
7733#else
7734# include <assert.h>
7735#endif
7736
7737#undef shl_load
7738
7739/* Override any gcc2 internal prototype to avoid an error. */
7740#ifdef __cplusplus
7741extern "C"
7742{
7743#endif
7744/* We use char because int might match the return type of a gcc2
7745 builtin and then its argument prototype would still apply. */
7746char shl_load ();
7747/* The GNU C library defines this for functions which it implements
7748 to always fail with ENOSYS. Some functions are actually named
7749 something starting with __ and the normal name is an alias. */
7750#if defined (__stub_shl_load) || defined (__stub___shl_load)
7751choke me
7752#else
7753char (*f) () = shl_load;
7754#endif
7755#ifdef __cplusplus
7756}
7757#endif
7758
7759int
7760main ()
7761{
7762return f != shl_load;
7763 ;
7764 return 0;
7765}
7766_ACEOF
7767rm -f conftest.$ac_objext conftest$ac_exeext
7768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7769 (eval $ac_link) 2>conftest.er1
7770 ac_status=$?
7771 grep -v '^ *+' conftest.er1 >conftest.err
7772 rm -f conftest.er1
7773 cat conftest.err >&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } &&
7776 { ac_try='test -z "$ac_c_werror_flag"
7777 || test ! -s conftest.err'
7778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 (eval $ac_try) 2>&5
7780 ac_status=$?
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; } &&
7783 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
7789 ac_cv_func_shl_load=yes
7790else
7791 echo "$as_me: failed program was:" >&5
7792sed 's/^/| /' conftest.$ac_ext >&5
7793
7794ac_cv_func_shl_load=no
7795fi
7796rm -f conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
7798fi
7799echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7800echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7801if test $ac_cv_func_shl_load = yes; then
7802
7803cat >>confdefs.h <<\_ACEOF
7804#define HAVE_SHL_LOAD 1
7805_ACEOF
7806
7807else
7808 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7809echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7810if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812else
7813 ac_check_lib_save_LIBS=$LIBS
7814LIBS="-ldld $LIBS"
7815cat >conftest.$ac_ext <<_ACEOF
7816/* confdefs.h. */
7817_ACEOF
7818cat confdefs.h >>conftest.$ac_ext
7819cat >>conftest.$ac_ext <<_ACEOF
7820/* end confdefs.h. */
7821
7822/* Override any gcc2 internal prototype to avoid an error. */
7823#ifdef __cplusplus
7824extern "C"
7825#endif
7826/* We use char because int might match the return type of a gcc2
7827 builtin and then its argument prototype would still apply. */
7828char shl_load ();
7829int
7830main ()
7831{
7832shl_load ();
7833 ;
7834 return 0;
7835}
7836_ACEOF
7837rm -f conftest.$ac_objext conftest$ac_exeext
7838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7839 (eval $ac_link) 2>conftest.er1
7840 ac_status=$?
7841 grep -v '^ *+' conftest.er1 >conftest.err
7842 rm -f conftest.er1
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try='test -z "$ac_c_werror_flag"
7847 || test ! -s conftest.err'
7848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 (eval $ac_try) 2>&5
7850 ac_status=$?
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 (eval $ac_try) 2>&5
7856 ac_status=$?
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_cv_lib_dld_shl_load=yes
7860else
7861 echo "$as_me: failed program was:" >&5
7862sed 's/^/| /' conftest.$ac_ext >&5
7863
7864ac_cv_lib_dld_shl_load=no
7865fi
7866rm -f conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868LIBS=$ac_check_lib_save_LIBS
7869fi
7870echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7871echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7872if test $ac_cv_lib_dld_shl_load = yes; then
7873
7874cat >>confdefs.h <<\_ACEOF
7875#define HAVE_SHL_LOAD 1
7876_ACEOF
7877
7878 LIBADD_DL="$LIBADD_DL -ldld"
7879else
7880 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7881echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7882if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7884else
7885 ac_check_lib_save_LIBS=$LIBS
7886LIBS="-ldl $LIBS"
7887cat >conftest.$ac_ext <<_ACEOF
7888/* confdefs.h. */
7889_ACEOF
7890cat confdefs.h >>conftest.$ac_ext
7891cat >>conftest.$ac_ext <<_ACEOF
7892/* end confdefs.h. */
7893
7894/* Override any gcc2 internal prototype to avoid an error. */
7895#ifdef __cplusplus
7896extern "C"
7897#endif
7898/* We use char because int might match the return type of a gcc2
7899 builtin and then its argument prototype would still apply. */
7900char dlopen ();
7901int
7902main ()
7903{
7904dlopen ();
7905 ;
7906 return 0;
7907}
7908_ACEOF
7909rm -f conftest.$ac_objext conftest$ac_exeext
7910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7911 (eval $ac_link) 2>conftest.er1
7912 ac_status=$?
7913 grep -v '^ *+' conftest.er1 >conftest.err
7914 rm -f conftest.er1
7915 cat conftest.err >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } &&
7918 { ac_try='test -z "$ac_c_werror_flag"
7919 || test ! -s conftest.err'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921 (eval $ac_try) 2>&5
7922 ac_status=$?
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; } &&
7925 { ac_try='test -s conftest$ac_exeext'
7926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927 (eval $ac_try) 2>&5
7928 ac_status=$?
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 ac_cv_lib_dl_dlopen=yes
7932else
7933 echo "$as_me: failed program was:" >&5
7934sed 's/^/| /' conftest.$ac_ext >&5
7935
7936ac_cv_lib_dl_dlopen=no
7937fi
7938rm -f conftest.err conftest.$ac_objext \
7939 conftest$ac_exeext conftest.$ac_ext
7940LIBS=$ac_check_lib_save_LIBS
7941fi
7942echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7943echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7944if test $ac_cv_lib_dl_dlopen = yes; then
7945
7946cat >>confdefs.h <<\_ACEOF
7947#define HAVE_LIBDL 1
7948_ACEOF
7949
7950 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7951else
7952 cat >conftest.$ac_ext <<_ACEOF
7953/* confdefs.h. */
7954_ACEOF
7955cat confdefs.h >>conftest.$ac_ext
7956cat >>conftest.$ac_ext <<_ACEOF
7957/* end confdefs.h. */
7958#if HAVE_DLFCN_H
7959# include <dlfcn.h>
7960#endif
7961
7962int
7963main ()
7964{
7965dlopen(0, 0);
7966 ;
7967 return 0;
7968}
7969_ACEOF
7970rm -f conftest.$ac_objext conftest$ac_exeext
7971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7972 (eval $ac_link) 2>conftest.er1
7973 ac_status=$?
7974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -z "$ac_c_werror_flag"
7980 || test ! -s conftest.err'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 (eval $ac_try) 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; } &&
7986 { ac_try='test -s conftest$ac_exeext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 (eval $ac_try) 2>&5
7989 ac_status=$?
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7992
7993cat >>confdefs.h <<\_ACEOF
7994#define HAVE_LIBDL 1
7995_ACEOF
7996 libltdl_cv_func_dlopen="yes"
7997else
7998 echo "$as_me: failed program was:" >&5
7999sed 's/^/| /' conftest.$ac_ext >&5
8000
8001echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8002echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8003if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8005else
8006 ac_check_lib_save_LIBS=$LIBS
8007LIBS="-lsvld $LIBS"
8008cat >conftest.$ac_ext <<_ACEOF
8009/* confdefs.h. */
8010_ACEOF
8011cat confdefs.h >>conftest.$ac_ext
8012cat >>conftest.$ac_ext <<_ACEOF
8013/* end confdefs.h. */
8014
8015/* Override any gcc2 internal prototype to avoid an error. */
8016#ifdef __cplusplus
8017extern "C"
8018#endif
8019/* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8021char dlopen ();
8022int
8023main ()
8024{
8025dlopen ();
8026 ;
8027 return 0;
8028}
8029_ACEOF
8030rm -f conftest.$ac_objext conftest$ac_exeext
8031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8032 (eval $ac_link) 2>conftest.er1
8033 ac_status=$?
8034 grep -v '^ *+' conftest.er1 >conftest.err
8035 rm -f conftest.er1
8036 cat conftest.err >&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } &&
8039 { ac_try='test -z "$ac_c_werror_flag"
8040 || test ! -s conftest.err'
8041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 (eval $ac_try) 2>&5
8043 ac_status=$?
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); }; } &&
8046 { ac_try='test -s conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 ac_cv_lib_svld_dlopen=yes
8053else
8054 echo "$as_me: failed program was:" >&5
8055sed 's/^/| /' conftest.$ac_ext >&5
8056
8057ac_cv_lib_svld_dlopen=no
8058fi
8059rm -f conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
8061LIBS=$ac_check_lib_save_LIBS
8062fi
8063echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8064echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8065if test $ac_cv_lib_svld_dlopen = yes; then
8066
8067cat >>confdefs.h <<\_ACEOF
8068#define HAVE_LIBDL 1
8069_ACEOF
8070
8071 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8072else
8073 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8074echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8075if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077else
8078 ac_check_lib_save_LIBS=$LIBS
8079LIBS="-ldld $LIBS"
8080cat >conftest.$ac_ext <<_ACEOF
8081/* confdefs.h. */
8082_ACEOF
8083cat confdefs.h >>conftest.$ac_ext
8084cat >>conftest.$ac_ext <<_ACEOF
8085/* end confdefs.h. */
8086
8087/* Override any gcc2 internal prototype to avoid an error. */
8088#ifdef __cplusplus
8089extern "C"
8090#endif
8091/* We use char because int might match the return type of a gcc2
8092 builtin and then its argument prototype would still apply. */
8093char dld_link ();
8094int
8095main ()
8096{
8097dld_link ();
8098 ;
8099 return 0;
8100}
8101_ACEOF
8102rm -f conftest.$ac_objext conftest$ac_exeext
8103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8104 (eval $ac_link) 2>conftest.er1
8105 ac_status=$?
8106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -z "$ac_c_werror_flag"
8112 || test ! -s conftest.err'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 (eval $ac_try) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try='test -s conftest$ac_exeext'
8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_lib_dld_dld_link=yes
8125else
8126 echo "$as_me: failed program was:" >&5
8127sed 's/^/| /' conftest.$ac_ext >&5
8128
8129ac_cv_lib_dld_dld_link=no
8130fi
8131rm -f conftest.err conftest.$ac_objext \
8132 conftest$ac_exeext conftest.$ac_ext
8133LIBS=$ac_check_lib_save_LIBS
8134fi
8135echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8136echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8137if test $ac_cv_lib_dld_dld_link = yes; then
8138
8139cat >>confdefs.h <<\_ACEOF
8140#define HAVE_DLD 1
8141_ACEOF
8142
8143 LIBADD_DL="$LIBADD_DL -ldld"
8144else
8145 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8146echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8147if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8149else
8150 cat >conftest.$ac_ext <<_ACEOF
8151/* confdefs.h. */
8152_ACEOF
8153cat confdefs.h >>conftest.$ac_ext
8154cat >>conftest.$ac_ext <<_ACEOF
8155/* end confdefs.h. */
8156/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8158#define _dyld_func_lookup innocuous__dyld_func_lookup
8159
8160/* System header to define __stub macros and hopefully few prototypes,
8161 which can conflict with char _dyld_func_lookup (); below.
8162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8163 <limits.h> exists even on freestanding compilers. */
8164
8165#ifdef __STDC__
8166# include <limits.h>
8167#else
8168# include <assert.h>
8169#endif
8170
8171#undef _dyld_func_lookup
8172
8173/* Override any gcc2 internal prototype to avoid an error. */
8174#ifdef __cplusplus
8175extern "C"
8176{
8177#endif
8178/* We use char because int might match the return type of a gcc2
8179 builtin and then its argument prototype would still apply. */
8180char _dyld_func_lookup ();
8181/* The GNU C library defines this for functions which it implements
8182 to always fail with ENOSYS. Some functions are actually named
8183 something starting with __ and the normal name is an alias. */
8184#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8185choke me
8186#else
8187char (*f) () = _dyld_func_lookup;
8188#endif
8189#ifdef __cplusplus
8190}
8191#endif
8192
8193int
8194main ()
8195{
8196return f != _dyld_func_lookup;
8197 ;
8198 return 0;
8199}
8200_ACEOF
8201rm -f conftest.$ac_objext conftest$ac_exeext
8202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203 (eval $ac_link) 2>conftest.er1
8204 ac_status=$?
8205 grep -v '^ *+' conftest.er1 >conftest.err
8206 rm -f conftest.er1
8207 cat conftest.err >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); } &&
8210 { ac_try='test -z "$ac_c_werror_flag"
8211 || test ! -s conftest.err'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 (eval $ac_try) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; } &&
8217 { ac_try='test -s conftest$ac_exeext'
8218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 (eval $ac_try) 2>&5
8220 ac_status=$?
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); }; }; then
8223 ac_cv_func__dyld_func_lookup=yes
8224else
8225 echo "$as_me: failed program was:" >&5
8226sed 's/^/| /' conftest.$ac_ext >&5
8227
8228ac_cv_func__dyld_func_lookup=no
8229fi
8230rm -f conftest.err conftest.$ac_objext \
8231 conftest$ac_exeext conftest.$ac_ext
8232fi
8233echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8234echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8235if test $ac_cv_func__dyld_func_lookup = yes; then
8236
8237cat >>confdefs.h <<\_ACEOF
8238#define HAVE_DYLD 1
8239_ACEOF
8240
8241fi
8242
8243
8244fi
8245
8246
8247fi
8248
8249
8250fi
8251rm -f conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8253
8254fi
8255
8256
8257fi
8258
8259
8260fi
8261
8262
8263if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8264then
8265 lt_save_LIBS="$LIBS"
8266 LIBS="$LIBS $LIBADD_DL"
8267
8268for ac_func in dlerror
8269do
8270as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8271echo "$as_me:$LINENO: checking for $ac_func" >&5
8272echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8273if eval "test \"\${$as_ac_var+set}\" = set"; then
8274 echo $ECHO_N "(cached) $ECHO_C" >&6
8275else
8276 cat >conftest.$ac_ext <<_ACEOF
8277/* confdefs.h. */
8278_ACEOF
8279cat confdefs.h >>conftest.$ac_ext
8280cat >>conftest.$ac_ext <<_ACEOF
8281/* end confdefs.h. */
8282/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8284#define $ac_func innocuous_$ac_func
8285
8286/* System header to define __stub macros and hopefully few prototypes,
8287 which can conflict with char $ac_func (); below.
8288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8289 <limits.h> exists even on freestanding compilers. */
8290
8291#ifdef __STDC__
8292# include <limits.h>
8293#else
8294# include <assert.h>
8295#endif
8296
8297#undef $ac_func
8298
8299/* Override any gcc2 internal prototype to avoid an error. */
8300#ifdef __cplusplus
8301extern "C"
8302{
8303#endif
8304/* We use char because int might match the return type of a gcc2
8305 builtin and then its argument prototype would still apply. */
8306char $ac_func ();
8307/* The GNU C library defines this for functions which it implements
8308 to always fail with ENOSYS. Some functions are actually named
8309 something starting with __ and the normal name is an alias. */
8310#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8311choke me
8312#else
8313char (*f) () = $ac_func;
8314#endif
8315#ifdef __cplusplus
8316}
8317#endif
8318
8319int
8320main ()
8321{
8322return f != $ac_func;
8323 ;
8324 return 0;
8325}
8326_ACEOF
8327rm -f conftest.$ac_objext conftest$ac_exeext
8328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8329 (eval $ac_link) 2>conftest.er1
8330 ac_status=$?
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -z "$ac_c_werror_flag"
8337 || test ! -s conftest.err'
8338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 (eval $ac_try) 2>&5
8340 ac_status=$?
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; } &&
8343 { ac_try='test -s conftest$ac_exeext'
8344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8345 (eval $ac_try) 2>&5
8346 ac_status=$?
8347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8348 (exit $ac_status); }; }; then
8349 eval "$as_ac_var=yes"
8350else
8351 echo "$as_me: failed program was:" >&5
8352sed 's/^/| /' conftest.$ac_ext >&5
8353
8354eval "$as_ac_var=no"
8355fi
8356rm -f conftest.err conftest.$ac_objext \
8357 conftest$ac_exeext conftest.$ac_ext
8358fi
8359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8360echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8361if test `eval echo '${'$as_ac_var'}'` = yes; then
8362 cat >>confdefs.h <<_ACEOF
8363#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8364_ACEOF
8365
8366fi
8367done
8368
8369 LIBS="$lt_save_LIBS"
8370fi
8371ac_ext=c
8372ac_cpp='$CPP $CPPFLAGS'
8373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8375ac_compiler_gnu=$ac_cv_c_compiler_gnu
8376
8377
8378
8379echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8380echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8381if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8383else
8384 ac_cv_sys_symbol_underscore=no
8385 cat > conftest.$ac_ext <<EOF
8386void nm_test_func(){}
8387int main(){nm_test_func;return 0;}
8388EOF
8389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8390 (eval $ac_compile) 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; then
8394 # Now try to grab the symbols.
8395 ac_nlist=conftest.nm
8396 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8397 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } && test -s "$ac_nlist"; then
8401 # See whether the symbols have a leading underscore.
8402 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8403 ac_cv_sys_symbol_underscore=yes
8404 else
8405 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8406 :
8407 else
8408 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8409 fi
8410 fi
8411 else
8412 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8413 fi
8414 else
8415 echo "configure: failed program was:" >&5
8416 cat conftest.c >&5
8417 fi
8418 rm -rf conftest*
8419
8420fi
8421echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8422echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8423
8424
8425if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8426 if test x"$libltdl_cv_func_dlopen" = xyes ||
8427 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8428 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8429echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8430if test "${libltdl_cv_need_uscore+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432else
8433 libltdl_cv_need_uscore=unknown
8434 save_LIBS="$LIBS"
8435 LIBS="$LIBS $LIBADD_DL"
8436 if test "$cross_compiling" = yes; then :
8437 libltdl_cv_need_uscore=cross
8438else
8439 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8440 lt_status=$lt_dlunknown
8441 cat > conftest.$ac_ext <<EOF
Reid Spencerb195d9d2006-03-23 23:21:29 +00008442#line 8442 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008443#include "confdefs.h"
8444
8445#if HAVE_DLFCN_H
8446#include <dlfcn.h>
8447#endif
8448
8449#include <stdio.h>
8450
8451#ifdef RTLD_GLOBAL
8452# define LT_DLGLOBAL RTLD_GLOBAL
8453#else
8454# ifdef DL_GLOBAL
8455# define LT_DLGLOBAL DL_GLOBAL
8456# else
8457# define LT_DLGLOBAL 0
8458# endif
8459#endif
8460
8461/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8462 find out it does not work in some platform. */
8463#ifndef LT_DLLAZY_OR_NOW
8464# ifdef RTLD_LAZY
8465# define LT_DLLAZY_OR_NOW RTLD_LAZY
8466# else
8467# ifdef DL_LAZY
8468# define LT_DLLAZY_OR_NOW DL_LAZY
8469# else
8470# ifdef RTLD_NOW
8471# define LT_DLLAZY_OR_NOW RTLD_NOW
8472# else
8473# ifdef DL_NOW
8474# define LT_DLLAZY_OR_NOW DL_NOW
8475# else
8476# define LT_DLLAZY_OR_NOW 0
8477# endif
8478# endif
8479# endif
8480# endif
8481#endif
8482
8483#ifdef __cplusplus
8484extern "C" void exit (int);
8485#endif
8486
8487void fnord() { int i=42;}
8488int main ()
8489{
8490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8491 int status = $lt_dlunknown;
8492
8493 if (self)
8494 {
8495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8496 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8497 /* dlclose (self); */
8498 }
8499
8500 exit (status);
8501}
8502EOF
8503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504 (eval $ac_link) 2>&5
8505 ac_status=$?
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8508 (./conftest; exit; ) 2>/dev/null
8509 lt_status=$?
8510 case x$lt_status in
8511 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8512 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8513 x$lt_unknown|x*) ;;
8514 esac
8515 else :
8516 # compilation failed
8517
8518 fi
8519fi
8520rm -fr conftest*
8521
8522 LIBS="$save_LIBS"
8523
8524fi
8525echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8526echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8527 fi
8528fi
8529
8530if test x"$libltdl_cv_need_uscore" = xyes; then
8531
8532cat >>confdefs.h <<\_ACEOF
8533#define NEED_USCORE 1
8534_ACEOF
8535
8536fi
8537
8538
8539echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8540echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8541if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8543else
8544 # PORTME does your system automatically load deplibs for dlopen?
8545 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8546 # For now, we just catch OSes we know something about -- in the
8547 # future, we'll try test this programmatically.
8548 libltdl_cv_sys_dlopen_deplibs=unknown
8549 case "$host_os" in
8550 aix3*|aix4.1.*|aix4.2.*)
8551 # Unknown whether this is true for these versions of AIX, but
8552 # we want this `case' here to explicitly catch those versions.
8553 libltdl_cv_sys_dlopen_deplibs=unknown
8554 ;;
8555 aix[45]*)
8556 libltdl_cv_sys_dlopen_deplibs=yes
8557 ;;
8558 darwin*)
8559 # Assuming the user has installed a libdl from somewhere, this is true
8560 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8561 libltdl_cv_sys_dlopen_deplibs=yes
8562 ;;
8563 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8564 # GNU and its variants, using gnu ld.so (Glibc)
8565 libltdl_cv_sys_dlopen_deplibs=yes
8566 ;;
8567 hpux10*|hpux11*)
8568 libltdl_cv_sys_dlopen_deplibs=yes
8569 ;;
8570 irix[12345]*|irix6.[01]*)
8571 # Catch all versions of IRIX before 6.2, and indicate that we don't
8572 # know how it worked for any of those versions.
8573 libltdl_cv_sys_dlopen_deplibs=unknown
8574 ;;
8575 irix*)
8576 # The case above catches anything before 6.2, and it's known that
8577 # at 6.2 and later dlopen does load deplibs.
8578 libltdl_cv_sys_dlopen_deplibs=yes
8579 ;;
8580 netbsd*)
8581 libltdl_cv_sys_dlopen_deplibs=yes
8582 ;;
8583 openbsd*)
8584 libltdl_cv_sys_dlopen_deplibs=yes
8585 ;;
8586 osf[1234]*)
8587 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8588 # it did *not* use an RPATH in a shared library to find objects the
8589 # library depends on, so we explictly say `no'.
8590 libltdl_cv_sys_dlopen_deplibs=no
8591 ;;
8592 osf5.0|osf5.0a|osf5.1)
8593 # dlopen *does* load deplibs and with the right loader patch applied
8594 # it even uses RPATH in a shared library to search for shared objects
8595 # that the library depends on, but there's no easy way to know if that
8596 # patch is installed. Since this is the case, all we can really
8597 # say is unknown -- it depends on the patch being installed. If
8598 # it is, this changes to `yes'. Without it, it would be `no'.
8599 libltdl_cv_sys_dlopen_deplibs=unknown
8600 ;;
8601 osf*)
8602 # the two cases above should catch all versions of osf <= 5.1. Read
8603 # the comments above for what we know about them.
8604 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8605 # is used to find them so we can finally say `yes'.
8606 libltdl_cv_sys_dlopen_deplibs=yes
8607 ;;
8608 solaris*)
8609 libltdl_cv_sys_dlopen_deplibs=yes
8610 ;;
8611 esac
8612
8613fi
8614echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8615echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8616if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8617
8618cat >>confdefs.h <<\_ACEOF
8619#define LTDL_DLOPEN_DEPLIBS 1
8620_ACEOF
8621
8622fi
8623
8624
8625for ac_header in argz.h
8626do
8627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8628if eval "test \"\${$as_ac_Header+set}\" = set"; then
8629 echo "$as_me:$LINENO: checking for $ac_header" >&5
8630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8631if eval "test \"\${$as_ac_Header+set}\" = set"; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633fi
8634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8636else
8637 # Is the header compilable?
8638echo "$as_me:$LINENO: checking $ac_header usability" >&5
8639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8640cat >conftest.$ac_ext <<_ACEOF
8641/* confdefs.h. */
8642_ACEOF
8643cat confdefs.h >>conftest.$ac_ext
8644cat >>conftest.$ac_ext <<_ACEOF
8645/* end confdefs.h. */
8646$ac_includes_default
8647#include <$ac_header>
8648_ACEOF
8649rm -f conftest.$ac_objext
8650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651 (eval $ac_compile) 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } &&
8658 { ac_try='test -z "$ac_c_werror_flag"
8659 || test ! -s conftest.err'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 (eval $ac_try) 2>&5
8662 ac_status=$?
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest.$ac_objext'
8666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 (eval $ac_try) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); }; }; then
8671 ac_header_compiler=yes
8672else
8673 echo "$as_me: failed program was:" >&5
8674sed 's/^/| /' conftest.$ac_ext >&5
8675
8676ac_header_compiler=no
8677fi
8678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8680echo "${ECHO_T}$ac_header_compiler" >&6
8681
8682# Is the header present?
8683echo "$as_me:$LINENO: checking $ac_header presence" >&5
8684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8685cat >conftest.$ac_ext <<_ACEOF
8686/* confdefs.h. */
8687_ACEOF
8688cat confdefs.h >>conftest.$ac_ext
8689cat >>conftest.$ac_ext <<_ACEOF
8690/* end confdefs.h. */
8691#include <$ac_header>
8692_ACEOF
8693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8695 ac_status=$?
8696 grep -v '^ *+' conftest.er1 >conftest.err
8697 rm -f conftest.er1
8698 cat conftest.err >&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } >/dev/null; then
8701 if test -s conftest.err; then
8702 ac_cpp_err=$ac_c_preproc_warn_flag
8703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8704 else
8705 ac_cpp_err=
8706 fi
8707else
8708 ac_cpp_err=yes
8709fi
8710if test -z "$ac_cpp_err"; then
8711 ac_header_preproc=yes
8712else
8713 echo "$as_me: failed program was:" >&5
8714sed 's/^/| /' conftest.$ac_ext >&5
8715
8716 ac_header_preproc=no
8717fi
8718rm -f conftest.err conftest.$ac_ext
8719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8720echo "${ECHO_T}$ac_header_preproc" >&6
8721
8722# So? What about this header?
8723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8724 yes:no: )
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8729 ac_header_preproc=yes
8730 ;;
8731 no:yes:* )
8732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8735echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8739echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8744 (
8745 cat <<\_ASBOX
8746## ----------------------------------- ##
8747## Report this to llvmbugs@cs.uiuc.edu ##
8748## ----------------------------------- ##
8749_ASBOX
8750 ) |
8751 sed "s/^/$as_me: WARNING: /" >&2
8752 ;;
8753esac
8754echo "$as_me:$LINENO: checking for $ac_header" >&5
8755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8756if eval "test \"\${$as_ac_Header+set}\" = set"; then
8757 echo $ECHO_N "(cached) $ECHO_C" >&6
8758else
8759 eval "$as_ac_Header=\$ac_header_preproc"
8760fi
8761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8763
8764fi
8765if test `eval echo '${'$as_ac_Header'}'` = yes; then
8766 cat >>confdefs.h <<_ACEOF
8767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8768_ACEOF
8769
8770fi
8771
8772done
8773
8774
8775echo "$as_me:$LINENO: checking for error_t" >&5
8776echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8777if test "${ac_cv_type_error_t+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8779else
8780 cat >conftest.$ac_ext <<_ACEOF
8781/* confdefs.h. */
8782_ACEOF
8783cat confdefs.h >>conftest.$ac_ext
8784cat >>conftest.$ac_ext <<_ACEOF
8785/* end confdefs.h. */
8786#if HAVE_ARGZ_H
8787# include <argz.h>
8788#endif
8789
8790int
8791main ()
8792{
8793if ((error_t *) 0)
8794 return 0;
8795if (sizeof (error_t))
8796 return 0;
8797 ;
8798 return 0;
8799}
8800_ACEOF
8801rm -f conftest.$ac_objext
8802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8803 (eval $ac_compile) 2>conftest.er1
8804 ac_status=$?
8805 grep -v '^ *+' conftest.er1 >conftest.err
8806 rm -f conftest.er1
8807 cat conftest.err >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try='test -z "$ac_c_werror_flag"
8811 || test ! -s conftest.err'
8812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 (eval $ac_try) 2>&5
8814 ac_status=$?
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); }; } &&
8817 { ac_try='test -s conftest.$ac_objext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 (eval $ac_try) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_cv_type_error_t=yes
8824else
8825 echo "$as_me: failed program was:" >&5
8826sed 's/^/| /' conftest.$ac_ext >&5
8827
8828ac_cv_type_error_t=no
8829fi
8830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8831fi
8832echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8833echo "${ECHO_T}$ac_cv_type_error_t" >&6
8834if test $ac_cv_type_error_t = yes; then
8835
8836cat >>confdefs.h <<_ACEOF
8837#define HAVE_ERROR_T 1
8838_ACEOF
8839
8840
8841else
8842
8843cat >>confdefs.h <<\_ACEOF
8844#define error_t int
8845_ACEOF
8846
8847fi
8848
8849
8850
8851
8852
8853
8854
8855for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8856do
8857as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8858echo "$as_me:$LINENO: checking for $ac_func" >&5
8859echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8860if eval "test \"\${$as_ac_var+set}\" = set"; then
8861 echo $ECHO_N "(cached) $ECHO_C" >&6
8862else
8863 cat >conftest.$ac_ext <<_ACEOF
8864/* confdefs.h. */
8865_ACEOF
8866cat confdefs.h >>conftest.$ac_ext
8867cat >>conftest.$ac_ext <<_ACEOF
8868/* end confdefs.h. */
8869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8871#define $ac_func innocuous_$ac_func
8872
8873/* System header to define __stub macros and hopefully few prototypes,
8874 which can conflict with char $ac_func (); below.
8875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8876 <limits.h> exists even on freestanding compilers. */
8877
8878#ifdef __STDC__
8879# include <limits.h>
8880#else
8881# include <assert.h>
8882#endif
8883
8884#undef $ac_func
8885
8886/* Override any gcc2 internal prototype to avoid an error. */
8887#ifdef __cplusplus
8888extern "C"
8889{
8890#endif
8891/* We use char because int might match the return type of a gcc2
8892 builtin and then its argument prototype would still apply. */
8893char $ac_func ();
8894/* The GNU C library defines this for functions which it implements
8895 to always fail with ENOSYS. Some functions are actually named
8896 something starting with __ and the normal name is an alias. */
8897#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8898choke me
8899#else
8900char (*f) () = $ac_func;
8901#endif
8902#ifdef __cplusplus
8903}
8904#endif
8905
8906int
8907main ()
8908{
8909return f != $ac_func;
8910 ;
8911 return 0;
8912}
8913_ACEOF
8914rm -f conftest.$ac_objext conftest$ac_exeext
8915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -z "$ac_c_werror_flag"
8924 || test ! -s conftest.err'
8925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926 (eval $ac_try) 2>&5
8927 ac_status=$?
8928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929 (exit $ac_status); }; } &&
8930 { ac_try='test -s conftest$ac_exeext'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 (eval $ac_try) 2>&5
8933 ac_status=$?
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; }; then
8936 eval "$as_ac_var=yes"
8937else
8938 echo "$as_me: failed program was:" >&5
8939sed 's/^/| /' conftest.$ac_ext >&5
8940
8941eval "$as_ac_var=no"
8942fi
8943rm -f conftest.err conftest.$ac_objext \
8944 conftest$ac_exeext conftest.$ac_ext
8945fi
8946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8947echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8948if test `eval echo '${'$as_ac_var'}'` = yes; then
8949 cat >>confdefs.h <<_ACEOF
8950#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8951_ACEOF
8952
8953fi
8954done
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8984 stdio.h unistd.h
8985do
8986as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8987if eval "test \"\${$as_ac_Header+set}\" = set"; then
8988 echo "$as_me:$LINENO: checking for $ac_header" >&5
8989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8990if eval "test \"\${$as_ac_Header+set}\" = set"; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8992fi
8993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8994echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8995else
8996 # Is the header compilable?
8997echo "$as_me:$LINENO: checking $ac_header usability" >&5
8998echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8999cat >conftest.$ac_ext <<_ACEOF
9000/* confdefs.h. */
9001_ACEOF
9002cat confdefs.h >>conftest.$ac_ext
9003cat >>conftest.$ac_ext <<_ACEOF
9004/* end confdefs.h. */
9005$ac_includes_default
9006#include <$ac_header>
9007_ACEOF
9008rm -f conftest.$ac_objext
9009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9010 (eval $ac_compile) 2>conftest.er1
9011 ac_status=$?
9012 grep -v '^ *+' conftest.er1 >conftest.err
9013 rm -f conftest.er1
9014 cat conftest.err >&5
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } &&
9017 { ac_try='test -z "$ac_c_werror_flag"
9018 || test ! -s conftest.err'
9019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9020 (eval $ac_try) 2>&5
9021 ac_status=$?
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 (exit $ac_status); }; } &&
9024 { ac_try='test -s conftest.$ac_objext'
9025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 (eval $ac_try) 2>&5
9027 ac_status=$?
9028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9029 (exit $ac_status); }; }; then
9030 ac_header_compiler=yes
9031else
9032 echo "$as_me: failed program was:" >&5
9033sed 's/^/| /' conftest.$ac_ext >&5
9034
9035ac_header_compiler=no
9036fi
9037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9038echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9039echo "${ECHO_T}$ac_header_compiler" >&6
9040
9041# Is the header present?
9042echo "$as_me:$LINENO: checking $ac_header presence" >&5
9043echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9044cat >conftest.$ac_ext <<_ACEOF
9045/* confdefs.h. */
9046_ACEOF
9047cat confdefs.h >>conftest.$ac_ext
9048cat >>conftest.$ac_ext <<_ACEOF
9049/* end confdefs.h. */
9050#include <$ac_header>
9051_ACEOF
9052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9054 ac_status=$?
9055 grep -v '^ *+' conftest.er1 >conftest.err
9056 rm -f conftest.er1
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } >/dev/null; then
9060 if test -s conftest.err; then
9061 ac_cpp_err=$ac_c_preproc_warn_flag
9062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9063 else
9064 ac_cpp_err=
9065 fi
9066else
9067 ac_cpp_err=yes
9068fi
9069if test -z "$ac_cpp_err"; then
9070 ac_header_preproc=yes
9071else
9072 echo "$as_me: failed program was:" >&5
9073sed 's/^/| /' conftest.$ac_ext >&5
9074
9075 ac_header_preproc=no
9076fi
9077rm -f conftest.err conftest.$ac_ext
9078echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9079echo "${ECHO_T}$ac_header_preproc" >&6
9080
9081# So? What about this header?
9082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9083 yes:no: )
9084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9085echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9087echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9088 ac_header_preproc=yes
9089 ;;
9090 no:yes:* )
9091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9092echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9094echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9096echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9098echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9100echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9102echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9103 (
9104 cat <<\_ASBOX
9105## ----------------------------------- ##
9106## Report this to llvmbugs@cs.uiuc.edu ##
9107## ----------------------------------- ##
9108_ASBOX
9109 ) |
9110 sed "s/^/$as_me: WARNING: /" >&2
9111 ;;
9112esac
9113echo "$as_me:$LINENO: checking for $ac_header" >&5
9114echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9115if eval "test \"\${$as_ac_Header+set}\" = set"; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9117else
9118 eval "$as_ac_Header=\$ac_header_preproc"
9119fi
9120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9122
9123fi
9124if test `eval echo '${'$as_ac_Header'}'` = yes; then
9125 cat >>confdefs.h <<_ACEOF
9126#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9127_ACEOF
9128
9129fi
9130
9131done
9132
9133
9134
9135
9136
9137for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9138do
9139as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9140if eval "test \"\${$as_ac_Header+set}\" = set"; then
9141 echo "$as_me:$LINENO: checking for $ac_header" >&5
9142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9143if eval "test \"\${$as_ac_Header+set}\" = set"; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9145fi
9146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9148else
9149 # Is the header compilable?
9150echo "$as_me:$LINENO: checking $ac_header usability" >&5
9151echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9152cat >conftest.$ac_ext <<_ACEOF
9153/* confdefs.h. */
9154_ACEOF
9155cat confdefs.h >>conftest.$ac_ext
9156cat >>conftest.$ac_ext <<_ACEOF
9157/* end confdefs.h. */
9158$ac_includes_default
9159#include <$ac_header>
9160_ACEOF
9161rm -f conftest.$ac_objext
9162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9163 (eval $ac_compile) 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -z "$ac_c_werror_flag"
9171 || test ! -s conftest.err'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9173 (eval $ac_try) 2>&5
9174 ac_status=$?
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; } &&
9177 { ac_try='test -s conftest.$ac_objext'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179 (eval $ac_try) 2>&5
9180 ac_status=$?
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; }; then
9183 ac_header_compiler=yes
9184else
9185 echo "$as_me: failed program was:" >&5
9186sed 's/^/| /' conftest.$ac_ext >&5
9187
9188ac_header_compiler=no
9189fi
9190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9191echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9192echo "${ECHO_T}$ac_header_compiler" >&6
9193
9194# Is the header present?
9195echo "$as_me:$LINENO: checking $ac_header presence" >&5
9196echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9197cat >conftest.$ac_ext <<_ACEOF
9198/* confdefs.h. */
9199_ACEOF
9200cat confdefs.h >>conftest.$ac_ext
9201cat >>conftest.$ac_ext <<_ACEOF
9202/* end confdefs.h. */
9203#include <$ac_header>
9204_ACEOF
9205if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9207 ac_status=$?
9208 grep -v '^ *+' conftest.er1 >conftest.err
9209 rm -f conftest.er1
9210 cat conftest.err >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); } >/dev/null; then
9213 if test -s conftest.err; then
9214 ac_cpp_err=$ac_c_preproc_warn_flag
9215 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9216 else
9217 ac_cpp_err=
9218 fi
9219else
9220 ac_cpp_err=yes
9221fi
9222if test -z "$ac_cpp_err"; then
9223 ac_header_preproc=yes
9224else
9225 echo "$as_me: failed program was:" >&5
9226sed 's/^/| /' conftest.$ac_ext >&5
9227
9228 ac_header_preproc=no
9229fi
9230rm -f conftest.err conftest.$ac_ext
9231echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9232echo "${ECHO_T}$ac_header_preproc" >&6
9233
9234# So? What about this header?
9235case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9236 yes:no: )
9237 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9238echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9240echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9241 ac_header_preproc=yes
9242 ;;
9243 no:yes:* )
9244 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9245echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9246 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9247echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9248 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9249echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9250 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9251echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9253echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9254 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9255echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9256 (
9257 cat <<\_ASBOX
9258## ----------------------------------- ##
9259## Report this to llvmbugs@cs.uiuc.edu ##
9260## ----------------------------------- ##
9261_ASBOX
9262 ) |
9263 sed "s/^/$as_me: WARNING: /" >&2
9264 ;;
9265esac
9266echo "$as_me:$LINENO: checking for $ac_header" >&5
9267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9268if eval "test \"\${$as_ac_Header+set}\" = set"; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9270else
9271 eval "$as_ac_Header=\$ac_header_preproc"
9272fi
9273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9274echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9275
9276fi
9277if test `eval echo '${'$as_ac_Header'}'` = yes; then
9278 cat >>confdefs.h <<_ACEOF
9279#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9280_ACEOF
9281
9282fi
9283
9284done
9285
9286
9287
9288for ac_header in string.h strings.h
9289do
9290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9291if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292 echo "$as_me:$LINENO: checking for $ac_header" >&5
9293echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9294if eval "test \"\${$as_ac_Header+set}\" = set"; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9296fi
9297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9299else
9300 # Is the header compilable?
9301echo "$as_me:$LINENO: checking $ac_header usability" >&5
9302echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9303cat >conftest.$ac_ext <<_ACEOF
9304/* confdefs.h. */
9305_ACEOF
9306cat confdefs.h >>conftest.$ac_ext
9307cat >>conftest.$ac_ext <<_ACEOF
9308/* end confdefs.h. */
9309$ac_includes_default
9310#include <$ac_header>
9311_ACEOF
9312rm -f conftest.$ac_objext
9313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9314 (eval $ac_compile) 2>conftest.er1
9315 ac_status=$?
9316 grep -v '^ *+' conftest.er1 >conftest.err
9317 rm -f conftest.er1
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } &&
9321 { ac_try='test -z "$ac_c_werror_flag"
9322 || test ! -s conftest.err'
9323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9324 (eval $ac_try) 2>&5
9325 ac_status=$?
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); }; } &&
9328 { ac_try='test -s conftest.$ac_objext'
9329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 (eval $ac_try) 2>&5
9331 ac_status=$?
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; }; then
9334 ac_header_compiler=yes
9335else
9336 echo "$as_me: failed program was:" >&5
9337sed 's/^/| /' conftest.$ac_ext >&5
9338
9339ac_header_compiler=no
9340fi
9341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9342echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9343echo "${ECHO_T}$ac_header_compiler" >&6
9344
9345# Is the header present?
9346echo "$as_me:$LINENO: checking $ac_header presence" >&5
9347echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9348cat >conftest.$ac_ext <<_ACEOF
9349/* confdefs.h. */
9350_ACEOF
9351cat confdefs.h >>conftest.$ac_ext
9352cat >>conftest.$ac_ext <<_ACEOF
9353/* end confdefs.h. */
9354#include <$ac_header>
9355_ACEOF
9356if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9358 ac_status=$?
9359 grep -v '^ *+' conftest.er1 >conftest.err
9360 rm -f conftest.er1
9361 cat conftest.err >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } >/dev/null; then
9364 if test -s conftest.err; then
9365 ac_cpp_err=$ac_c_preproc_warn_flag
9366 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9367 else
9368 ac_cpp_err=
9369 fi
9370else
9371 ac_cpp_err=yes
9372fi
9373if test -z "$ac_cpp_err"; then
9374 ac_header_preproc=yes
9375else
9376 echo "$as_me: failed program was:" >&5
9377sed 's/^/| /' conftest.$ac_ext >&5
9378
9379 ac_header_preproc=no
9380fi
9381rm -f conftest.err conftest.$ac_ext
9382echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9383echo "${ECHO_T}$ac_header_preproc" >&6
9384
9385# So? What about this header?
9386case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9387 yes:no: )
9388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9389echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9391echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9392 ac_header_preproc=yes
9393 ;;
9394 no:yes:* )
9395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9396echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9398echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9400echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9402echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9404echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9406echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9407 (
9408 cat <<\_ASBOX
9409## ----------------------------------- ##
9410## Report this to llvmbugs@cs.uiuc.edu ##
9411## ----------------------------------- ##
9412_ASBOX
9413 ) |
9414 sed "s/^/$as_me: WARNING: /" >&2
9415 ;;
9416esac
9417echo "$as_me:$LINENO: checking for $ac_header" >&5
9418echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9419if eval "test \"\${$as_ac_Header+set}\" = set"; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421else
9422 eval "$as_ac_Header=\$ac_header_preproc"
9423fi
9424echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9425echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9426
9427fi
9428if test `eval echo '${'$as_ac_Header'}'` = yes; then
9429 cat >>confdefs.h <<_ACEOF
9430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9431_ACEOF
9432 break
9433fi
9434
9435done
9436
9437
9438
9439
9440for ac_func in strchr index
9441do
9442as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9443echo "$as_me:$LINENO: checking for $ac_func" >&5
9444echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9445if eval "test \"\${$as_ac_var+set}\" = set"; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9447else
9448 cat >conftest.$ac_ext <<_ACEOF
9449/* confdefs.h. */
9450_ACEOF
9451cat confdefs.h >>conftest.$ac_ext
9452cat >>conftest.$ac_ext <<_ACEOF
9453/* end confdefs.h. */
9454/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9456#define $ac_func innocuous_$ac_func
9457
9458/* System header to define __stub macros and hopefully few prototypes,
9459 which can conflict with char $ac_func (); below.
9460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9461 <limits.h> exists even on freestanding compilers. */
9462
9463#ifdef __STDC__
9464# include <limits.h>
9465#else
9466# include <assert.h>
9467#endif
9468
9469#undef $ac_func
9470
9471/* Override any gcc2 internal prototype to avoid an error. */
9472#ifdef __cplusplus
9473extern "C"
9474{
9475#endif
9476/* We use char because int might match the return type of a gcc2
9477 builtin and then its argument prototype would still apply. */
9478char $ac_func ();
9479/* The GNU C library defines this for functions which it implements
9480 to always fail with ENOSYS. Some functions are actually named
9481 something starting with __ and the normal name is an alias. */
9482#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9483choke me
9484#else
9485char (*f) () = $ac_func;
9486#endif
9487#ifdef __cplusplus
9488}
9489#endif
9490
9491int
9492main ()
9493{
9494return f != $ac_func;
9495 ;
9496 return 0;
9497}
9498_ACEOF
9499rm -f conftest.$ac_objext conftest$ac_exeext
9500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9501 (eval $ac_link) 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
9508 { ac_try='test -z "$ac_c_werror_flag"
9509 || test ! -s conftest.err'
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 (eval $ac_try) 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; } &&
9515 { ac_try='test -s conftest$ac_exeext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 (eval $ac_try) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 eval "$as_ac_var=yes"
9522else
9523 echo "$as_me: failed program was:" >&5
9524sed 's/^/| /' conftest.$ac_ext >&5
9525
9526eval "$as_ac_var=no"
9527fi
9528rm -f conftest.err conftest.$ac_objext \
9529 conftest$ac_exeext conftest.$ac_ext
9530fi
9531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9532echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9533if test `eval echo '${'$as_ac_var'}'` = yes; then
9534 cat >>confdefs.h <<_ACEOF
9535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9536_ACEOF
9537 break
9538fi
9539done
9540
9541
9542
9543for ac_func in strrchr rindex
9544do
9545as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9546echo "$as_me:$LINENO: checking for $ac_func" >&5
9547echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9548if eval "test \"\${$as_ac_var+set}\" = set"; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550else
9551 cat >conftest.$ac_ext <<_ACEOF
9552/* confdefs.h. */
9553_ACEOF
9554cat confdefs.h >>conftest.$ac_ext
9555cat >>conftest.$ac_ext <<_ACEOF
9556/* end confdefs.h. */
9557/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9559#define $ac_func innocuous_$ac_func
9560
9561/* System header to define __stub macros and hopefully few prototypes,
9562 which can conflict with char $ac_func (); below.
9563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9564 <limits.h> exists even on freestanding compilers. */
9565
9566#ifdef __STDC__
9567# include <limits.h>
9568#else
9569# include <assert.h>
9570#endif
9571
9572#undef $ac_func
9573
9574/* Override any gcc2 internal prototype to avoid an error. */
9575#ifdef __cplusplus
9576extern "C"
9577{
9578#endif
9579/* We use char because int might match the return type of a gcc2
9580 builtin and then its argument prototype would still apply. */
9581char $ac_func ();
9582/* The GNU C library defines this for functions which it implements
9583 to always fail with ENOSYS. Some functions are actually named
9584 something starting with __ and the normal name is an alias. */
9585#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9586choke me
9587#else
9588char (*f) () = $ac_func;
9589#endif
9590#ifdef __cplusplus
9591}
9592#endif
9593
9594int
9595main ()
9596{
9597return f != $ac_func;
9598 ;
9599 return 0;
9600}
9601_ACEOF
9602rm -f conftest.$ac_objext conftest$ac_exeext
9603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9604 (eval $ac_link) 2>conftest.er1
9605 ac_status=$?
9606 grep -v '^ *+' conftest.er1 >conftest.err
9607 rm -f conftest.er1
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } &&
9611 { ac_try='test -z "$ac_c_werror_flag"
9612 || test ! -s conftest.err'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 (eval $ac_try) 2>&5
9615 ac_status=$?
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; } &&
9618 { ac_try='test -s conftest$ac_exeext'
9619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9620 (eval $ac_try) 2>&5
9621 ac_status=$?
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); }; }; then
9624 eval "$as_ac_var=yes"
9625else
9626 echo "$as_me: failed program was:" >&5
9627sed 's/^/| /' conftest.$ac_ext >&5
9628
9629eval "$as_ac_var=no"
9630fi
9631rm -f conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9633fi
9634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9635echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9636if test `eval echo '${'$as_ac_var'}'` = yes; then
9637 cat >>confdefs.h <<_ACEOF
9638#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9639_ACEOF
9640 break
9641fi
9642done
9643
9644
9645
9646for ac_func in memcpy bcopy
9647do
9648as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9649echo "$as_me:$LINENO: checking for $ac_func" >&5
9650echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9651if eval "test \"\${$as_ac_var+set}\" = set"; then
9652 echo $ECHO_N "(cached) $ECHO_C" >&6
9653else
9654 cat >conftest.$ac_ext <<_ACEOF
9655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h. */
9660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9662#define $ac_func innocuous_$ac_func
9663
9664/* System header to define __stub macros and hopefully few prototypes,
9665 which can conflict with char $ac_func (); below.
9666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9667 <limits.h> exists even on freestanding compilers. */
9668
9669#ifdef __STDC__
9670# include <limits.h>
9671#else
9672# include <assert.h>
9673#endif
9674
9675#undef $ac_func
9676
9677/* Override any gcc2 internal prototype to avoid an error. */
9678#ifdef __cplusplus
9679extern "C"
9680{
9681#endif
9682/* We use char because int might match the return type of a gcc2
9683 builtin and then its argument prototype would still apply. */
9684char $ac_func ();
9685/* The GNU C library defines this for functions which it implements
9686 to always fail with ENOSYS. Some functions are actually named
9687 something starting with __ and the normal name is an alias. */
9688#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9689choke me
9690#else
9691char (*f) () = $ac_func;
9692#endif
9693#ifdef __cplusplus
9694}
9695#endif
9696
9697int
9698main ()
9699{
9700return f != $ac_func;
9701 ;
9702 return 0;
9703}
9704_ACEOF
9705rm -f conftest.$ac_objext conftest$ac_exeext
9706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9707 (eval $ac_link) 2>conftest.er1
9708 ac_status=$?
9709 grep -v '^ *+' conftest.er1 >conftest.err
9710 rm -f conftest.er1
9711 cat conftest.err >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); } &&
9714 { ac_try='test -z "$ac_c_werror_flag"
9715 || test ! -s conftest.err'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 (eval $ac_try) 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; } &&
9721 { ac_try='test -s conftest$ac_exeext'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 (eval $ac_try) 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; }; then
9727 eval "$as_ac_var=yes"
9728else
9729 echo "$as_me: failed program was:" >&5
9730sed 's/^/| /' conftest.$ac_ext >&5
9731
9732eval "$as_ac_var=no"
9733fi
9734rm -f conftest.err conftest.$ac_objext \
9735 conftest$ac_exeext conftest.$ac_ext
9736fi
9737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9738echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9739if test `eval echo '${'$as_ac_var'}'` = yes; then
9740 cat >>confdefs.h <<_ACEOF
9741#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9742_ACEOF
9743 break
9744fi
9745done
9746
9747
9748
9749for ac_func in memmove strcmp
9750do
9751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9752echo "$as_me:$LINENO: checking for $ac_func" >&5
9753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9754if eval "test \"\${$as_ac_var+set}\" = set"; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9756else
9757 cat >conftest.$ac_ext <<_ACEOF
9758/* confdefs.h. */
9759_ACEOF
9760cat confdefs.h >>conftest.$ac_ext
9761cat >>conftest.$ac_ext <<_ACEOF
9762/* end confdefs.h. */
9763/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9765#define $ac_func innocuous_$ac_func
9766
9767/* System header to define __stub macros and hopefully few prototypes,
9768 which can conflict with char $ac_func (); below.
9769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9770 <limits.h> exists even on freestanding compilers. */
9771
9772#ifdef __STDC__
9773# include <limits.h>
9774#else
9775# include <assert.h>
9776#endif
9777
9778#undef $ac_func
9779
9780/* Override any gcc2 internal prototype to avoid an error. */
9781#ifdef __cplusplus
9782extern "C"
9783{
9784#endif
9785/* We use char because int might match the return type of a gcc2
9786 builtin and then its argument prototype would still apply. */
9787char $ac_func ();
9788/* The GNU C library defines this for functions which it implements
9789 to always fail with ENOSYS. Some functions are actually named
9790 something starting with __ and the normal name is an alias. */
9791#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9792choke me
9793#else
9794char (*f) () = $ac_func;
9795#endif
9796#ifdef __cplusplus
9797}
9798#endif
9799
9800int
9801main ()
9802{
9803return f != $ac_func;
9804 ;
9805 return 0;
9806}
9807_ACEOF
9808rm -f conftest.$ac_objext conftest$ac_exeext
9809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9810 (eval $ac_link) 2>conftest.er1
9811 ac_status=$?
9812 grep -v '^ *+' conftest.er1 >conftest.err
9813 rm -f conftest.er1
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } &&
9817 { ac_try='test -z "$ac_c_werror_flag"
9818 || test ! -s conftest.err'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820 (eval $ac_try) 2>&5
9821 ac_status=$?
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; } &&
9824 { ac_try='test -s conftest$ac_exeext'
9825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826 (eval $ac_try) 2>&5
9827 ac_status=$?
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); }; }; then
9830 eval "$as_ac_var=yes"
9831else
9832 echo "$as_me: failed program was:" >&5
9833sed 's/^/| /' conftest.$ac_ext >&5
9834
9835eval "$as_ac_var=no"
9836fi
9837rm -f conftest.err conftest.$ac_objext \
9838 conftest$ac_exeext conftest.$ac_ext
9839fi
9840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9841echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9842if test `eval echo '${'$as_ac_var'}'` = yes; then
9843 cat >>confdefs.h <<_ACEOF
9844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9845_ACEOF
9846
9847fi
9848done
9849
9850
9851
9852
9853for ac_func in closedir opendir readdir
9854do
9855as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9856echo "$as_me:$LINENO: checking for $ac_func" >&5
9857echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9858if eval "test \"\${$as_ac_var+set}\" = set"; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9860else
9861 cat >conftest.$ac_ext <<_ACEOF
9862/* confdefs.h. */
9863_ACEOF
9864cat confdefs.h >>conftest.$ac_ext
9865cat >>conftest.$ac_ext <<_ACEOF
9866/* end confdefs.h. */
9867/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9869#define $ac_func innocuous_$ac_func
9870
9871/* System header to define __stub macros and hopefully few prototypes,
9872 which can conflict with char $ac_func (); below.
9873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9874 <limits.h> exists even on freestanding compilers. */
9875
9876#ifdef __STDC__
9877# include <limits.h>
9878#else
9879# include <assert.h>
9880#endif
9881
9882#undef $ac_func
9883
9884/* Override any gcc2 internal prototype to avoid an error. */
9885#ifdef __cplusplus
9886extern "C"
9887{
9888#endif
9889/* We use char because int might match the return type of a gcc2
9890 builtin and then its argument prototype would still apply. */
9891char $ac_func ();
9892/* The GNU C library defines this for functions which it implements
9893 to always fail with ENOSYS. Some functions are actually named
9894 something starting with __ and the normal name is an alias. */
9895#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9896choke me
9897#else
9898char (*f) () = $ac_func;
9899#endif
9900#ifdef __cplusplus
9901}
9902#endif
9903
9904int
9905main ()
9906{
9907return f != $ac_func;
9908 ;
9909 return 0;
9910}
9911_ACEOF
9912rm -f conftest.$ac_objext conftest$ac_exeext
9913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9914 (eval $ac_link) 2>conftest.er1
9915 ac_status=$?
9916 grep -v '^ *+' conftest.er1 >conftest.err
9917 rm -f conftest.er1
9918 cat conftest.err >&5
9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920 (exit $ac_status); } &&
9921 { ac_try='test -z "$ac_c_werror_flag"
9922 || test ! -s conftest.err'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924 (eval $ac_try) 2>&5
9925 ac_status=$?
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; } &&
9928 { ac_try='test -s conftest$ac_exeext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930 (eval $ac_try) 2>&5
9931 ac_status=$?
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 eval "$as_ac_var=yes"
9935else
9936 echo "$as_me: failed program was:" >&5
9937sed 's/^/| /' conftest.$ac_ext >&5
9938
9939eval "$as_ac_var=no"
9940fi
9941rm -f conftest.err conftest.$ac_objext \
9942 conftest$ac_exeext conftest.$ac_ext
9943fi
9944echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9945echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9946if test `eval echo '${'$as_ac_var'}'` = yes; then
9947 cat >>confdefs.h <<_ACEOF
9948#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9949_ACEOF
9950
9951fi
9952done
9953
9954
9955# Check whether --enable-shared or --disable-shared was given.
9956if test "${enable_shared+set}" = set; then
9957 enableval="$enable_shared"
9958 p=${PACKAGE-default}
9959 case $enableval in
9960 yes) enable_shared=yes ;;
9961 no) enable_shared=no ;;
9962 *)
9963 enable_shared=no
9964 # Look at the argument we got. We use all the common list separators.
9965 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9966 for pkg in $enableval; do
9967 IFS="$lt_save_ifs"
9968 if test "X$pkg" = "X$p"; then
9969 enable_shared=yes
9970 fi
9971 done
9972 IFS="$lt_save_ifs"
9973 ;;
9974 esac
9975else
9976 enable_shared=yes
9977fi;
9978
9979# Check whether --enable-static or --disable-static was given.
9980if test "${enable_static+set}" = set; then
9981 enableval="$enable_static"
9982 p=${PACKAGE-default}
9983 case $enableval in
9984 yes) enable_static=yes ;;
9985 no) enable_static=no ;;
9986 *)
9987 enable_static=no
9988 # Look at the argument we got. We use all the common list separators.
9989 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9990 for pkg in $enableval; do
9991 IFS="$lt_save_ifs"
9992 if test "X$pkg" = "X$p"; then
9993 enable_static=yes
9994 fi
9995 done
9996 IFS="$lt_save_ifs"
9997 ;;
9998 esac
9999else
10000 enable_static=yes
10001fi;
10002
10003# Check whether --enable-fast-install or --disable-fast-install was given.
10004if test "${enable_fast_install+set}" = set; then
10005 enableval="$enable_fast_install"
10006 p=${PACKAGE-default}
10007 case $enableval in
10008 yes) enable_fast_install=yes ;;
10009 no) enable_fast_install=no ;;
10010 *)
10011 enable_fast_install=no
10012 # Look at the argument we got. We use all the common list separators.
10013 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10014 for pkg in $enableval; do
10015 IFS="$lt_save_ifs"
10016 if test "X$pkg" = "X$p"; then
10017 enable_fast_install=yes
10018 fi
10019 done
10020 IFS="$lt_save_ifs"
10021 ;;
10022 esac
10023else
10024 enable_fast_install=yes
10025fi;
10026
10027echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10028echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10029if test "${lt_cv_path_SED+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10031else
10032 # Loop through the user's path and test for sed and gsed.
10033# Then use that list of sed's as ones to test for truncation.
10034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10035for as_dir in $PATH
10036do
10037 IFS=$as_save_IFS
10038 test -z "$as_dir" && as_dir=.
10039 for lt_ac_prog in sed gsed; do
10040 for ac_exec_ext in '' $ac_executable_extensions; do
10041 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10042 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10043 fi
10044 done
10045 done
10046done
10047lt_ac_max=0
10048lt_ac_count=0
10049# Add /usr/xpg4/bin/sed as it is typically found on Solaris
10050# along with /bin/sed that truncates output.
10051for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
10052 test ! -f $lt_ac_sed && break
10053 cat /dev/null > conftest.in
10054 lt_ac_count=0
10055 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
10056 # Check for GNU sed and select it if it is found.
10057 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
10058 lt_cv_path_SED=$lt_ac_sed
10059 break
10060 fi
10061 while true; do
10062 cat conftest.in conftest.in >conftest.tmp
10063 mv conftest.tmp conftest.in
10064 cp conftest.in conftest.nl
10065 echo >>conftest.nl
10066 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10067 cmp -s conftest.out conftest.nl || break
10068 # 10000 chars as input seems more than enough
10069 test $lt_ac_count -gt 10 && break
10070 lt_ac_count=`expr $lt_ac_count + 1`
10071 if test $lt_ac_count -gt $lt_ac_max; then
10072 lt_ac_max=$lt_ac_count
10073 lt_cv_path_SED=$lt_ac_sed
10074 fi
10075 done
10076done
10077
10078fi
10079
10080SED=$lt_cv_path_SED
10081echo "$as_me:$LINENO: result: $SED" >&5
10082echo "${ECHO_T}$SED" >&6
10083
10084
10085# Check whether --with-gnu-ld or --without-gnu-ld was given.
10086if test "${with_gnu_ld+set}" = set; then
10087 withval="$with_gnu_ld"
10088 test "$withval" = no || with_gnu_ld=yes
10089else
10090 with_gnu_ld=no
10091fi;
10092ac_prog=ld
10093if test "$GCC" = yes; then
10094 # Check if gcc -print-prog-name=ld gives a path.
10095 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10096echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10097 case $host in
10098 *-*-mingw*)
10099 # gcc leaves a trailing carriage return which upsets mingw
10100 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10101 *)
10102 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10103 esac
10104 case $ac_prog in
10105 # Accept absolute paths.
10106 [\\/]* | ?:[\\/]*)
10107 re_direlt='/[^/][^/]*/\.\./'
10108 # Canonicalize the pathname of ld
10109 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10110 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10111 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10112 done
10113 test -z "$LD" && LD="$ac_prog"
10114 ;;
10115 "")
10116 # If it fails, then pretend we aren't using GCC.
10117 ac_prog=ld
10118 ;;
10119 *)
10120 # If it is relative, then search for the first ld in PATH.
10121 with_gnu_ld=unknown
10122 ;;
10123 esac
10124elif test "$with_gnu_ld" = yes; then
10125 echo "$as_me:$LINENO: checking for GNU ld" >&5
10126echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10127else
10128 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10129echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10130fi
10131if test "${lt_cv_path_LD+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133else
10134 if test -z "$LD"; then
10135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10136 for ac_dir in $PATH; do
10137 IFS="$lt_save_ifs"
10138 test -z "$ac_dir" && ac_dir=.
10139 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10140 lt_cv_path_LD="$ac_dir/$ac_prog"
10141 # Check to see if the program is GNU ld. I'd rather use --version,
10142 # but apparently some GNU ld's only accept -v.
10143 # Break only if it was the GNU/non-GNU ld that we prefer.
10144 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10145 *GNU* | *'with BFD'*)
10146 test "$with_gnu_ld" != no && break
10147 ;;
10148 *)
10149 test "$with_gnu_ld" != yes && break
10150 ;;
10151 esac
10152 fi
10153 done
10154 IFS="$lt_save_ifs"
10155else
10156 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10157fi
10158fi
10159
10160LD="$lt_cv_path_LD"
10161if test -n "$LD"; then
10162 echo "$as_me:$LINENO: result: $LD" >&5
10163echo "${ECHO_T}$LD" >&6
10164else
10165 echo "$as_me:$LINENO: result: no" >&5
10166echo "${ECHO_T}no" >&6
10167fi
10168test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10169echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10170 { (exit 1); exit 1; }; }
10171echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10172echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10173if test "${lt_cv_prog_gnu_ld+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175else
10176 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10177case `$LD -v 2>&1 </dev/null` in
10178*GNU* | *'with BFD'*)
10179 lt_cv_prog_gnu_ld=yes
10180 ;;
10181*)
10182 lt_cv_prog_gnu_ld=no
10183 ;;
10184esac
10185fi
10186echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10187echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10188with_gnu_ld=$lt_cv_prog_gnu_ld
10189
10190
10191echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10192echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10193if test "${lt_cv_ld_reload_flag+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195else
10196 lt_cv_ld_reload_flag='-r'
10197fi
10198echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10199echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10200reload_flag=$lt_cv_ld_reload_flag
10201case $reload_flag in
10202"" | " "*) ;;
10203*) reload_flag=" $reload_flag" ;;
10204esac
10205reload_cmds='$LD$reload_flag -o $output$reload_objs'
10206case $host_os in
10207 darwin*)
10208 if test "$GCC" = yes; then
10209 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10210 else
10211 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10212 fi
10213 ;;
10214esac
10215
10216echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10217echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10218if test "${lt_cv_deplibs_check_method+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220else
10221 lt_cv_file_magic_cmd='$MAGIC_CMD'
10222lt_cv_file_magic_test_file=
10223lt_cv_deplibs_check_method='unknown'
10224# Need to set the preceding variable on all platforms that support
10225# interlibrary dependencies.
10226# 'none' -- dependencies not supported.
10227# `unknown' -- same as none, but documents that we really don't know.
10228# 'pass_all' -- all dependencies passed with no checks.
10229# 'test_compile' -- check by making test program.
10230# 'file_magic [[regex]]' -- check by looking for files in library path
10231# which responds to the $file_magic_cmd with a given extended regex.
10232# If you have `file' or equivalent on your system and you're not sure
10233# whether `pass_all' will *always* work, you probably want this one.
10234
10235case $host_os in
10236aix4* | aix5*)
10237 lt_cv_deplibs_check_method=pass_all
10238 ;;
10239
10240beos*)
10241 lt_cv_deplibs_check_method=pass_all
10242 ;;
10243
10244bsdi[45]*)
10245 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10246 lt_cv_file_magic_cmd='/usr/bin/file -L'
10247 lt_cv_file_magic_test_file=/shlib/libc.so
10248 ;;
10249
10250cygwin*)
10251 # func_win32_libid is a shell function defined in ltmain.sh
10252 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10253 lt_cv_file_magic_cmd='func_win32_libid'
10254 ;;
10255
10256mingw* | pw32*)
10257 # Base MSYS/MinGW do not provide the 'file' command needed by
10258 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10259 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10260 lt_cv_file_magic_cmd='$OBJDUMP -f'
10261 ;;
10262
10263darwin* | rhapsody*)
10264 lt_cv_deplibs_check_method=pass_all
10265 ;;
10266
10267freebsd* | kfreebsd*-gnu)
10268 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10269 case $host_cpu in
10270 i*86 )
10271 # Not sure whether the presence of OpenBSD here was a mistake.
10272 # Let's accept both of them until this is cleared up.
10273 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10274 lt_cv_file_magic_cmd=/usr/bin/file
10275 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10276 ;;
10277 esac
10278 else
10279 lt_cv_deplibs_check_method=pass_all
10280 fi
10281 ;;
10282
10283gnu*)
10284 lt_cv_deplibs_check_method=pass_all
10285 ;;
10286
10287hpux10.20* | hpux11*)
10288 lt_cv_file_magic_cmd=/usr/bin/file
10289 case "$host_cpu" in
10290 ia64*)
10291 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10292 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10293 ;;
10294 hppa*64*)
10295 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]'
10296 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10297 ;;
10298 *)
10299 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10300 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10301 ;;
10302 esac
10303 ;;
10304
10305irix5* | irix6* | nonstopux*)
10306 case $LD in
10307 *-32|*"-32 ") libmagic=32-bit;;
10308 *-n32|*"-n32 ") libmagic=N32;;
10309 *-64|*"-64 ") libmagic=64-bit;;
10310 *) libmagic=never-match;;
10311 esac
10312 lt_cv_deplibs_check_method=pass_all
10313 ;;
10314
10315# This must be Linux ELF.
10316linux*)
10317 lt_cv_deplibs_check_method=pass_all
10318 ;;
10319
10320netbsd*)
10321 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10323 else
10324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10325 fi
10326 ;;
10327
10328newos6*)
10329 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10330 lt_cv_file_magic_cmd=/usr/bin/file
10331 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10332 ;;
10333
10334nto-qnx*)
10335 lt_cv_deplibs_check_method=unknown
10336 ;;
10337
10338openbsd*)
10339 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10340 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10341 else
10342 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10343 fi
10344 ;;
10345
10346osf3* | osf4* | osf5*)
10347 lt_cv_deplibs_check_method=pass_all
10348 ;;
10349
10350sco3.2v5*)
10351 lt_cv_deplibs_check_method=pass_all
10352 ;;
10353
10354solaris*)
10355 lt_cv_deplibs_check_method=pass_all
10356 ;;
10357
10358sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10359 case $host_vendor in
10360 motorola)
10361 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]'
10362 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10363 ;;
10364 ncr)
10365 lt_cv_deplibs_check_method=pass_all
10366 ;;
10367 sequent)
10368 lt_cv_file_magic_cmd='/bin/file'
10369 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10370 ;;
10371 sni)
10372 lt_cv_file_magic_cmd='/bin/file'
10373 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10374 lt_cv_file_magic_test_file=/lib/libc.so
10375 ;;
10376 siemens)
10377 lt_cv_deplibs_check_method=pass_all
10378 ;;
10379 esac
10380 ;;
10381
10382sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10383 lt_cv_deplibs_check_method=pass_all
10384 ;;
10385esac
10386
10387fi
10388echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10389echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10390file_magic_cmd=$lt_cv_file_magic_cmd
10391deplibs_check_method=$lt_cv_deplibs_check_method
10392test -z "$deplibs_check_method" && deplibs_check_method=unknown
10393
10394
10395
10396# If no C compiler was specified, use CC.
10397LTCC=${LTCC-"$CC"}
10398
10399# Allow CC to be a program name with arguments.
10400compiler=$CC
10401
10402# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10403if test "${enable_libtool_lock+set}" = set; then
10404 enableval="$enable_libtool_lock"
10405
10406fi;
10407test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10408
10409# Some flags need to be propagated to the compiler or linker for good
10410# libtool support.
10411case $host in
10412ia64-*-hpux*)
10413 # Find out which ABI we are using.
10414 echo 'int i;' > conftest.$ac_ext
10415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10416 (eval $ac_compile) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; then
10420 case `/usr/bin/file conftest.$ac_objext` in
10421 *ELF-32*)
10422 HPUX_IA64_MODE="32"
10423 ;;
10424 *ELF-64*)
10425 HPUX_IA64_MODE="64"
10426 ;;
10427 esac
10428 fi
10429 rm -rf conftest*
10430 ;;
10431*-*-irix6*)
10432 # Find out which ABI we are using.
Reid Spencerb195d9d2006-03-23 23:21:29 +000010433 echo '#line 10433 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10435 (eval $ac_compile) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; then
10439 if test "$lt_cv_prog_gnu_ld" = yes; then
10440 case `/usr/bin/file conftest.$ac_objext` in
10441 *32-bit*)
10442 LD="${LD-ld} -melf32bsmip"
10443 ;;
10444 *N32*)
10445 LD="${LD-ld} -melf32bmipn32"
10446 ;;
10447 *64-bit*)
10448 LD="${LD-ld} -melf64bmip"
10449 ;;
10450 esac
10451 else
10452 case `/usr/bin/file conftest.$ac_objext` in
10453 *32-bit*)
10454 LD="${LD-ld} -32"
10455 ;;
10456 *N32*)
10457 LD="${LD-ld} -n32"
10458 ;;
10459 *64-bit*)
10460 LD="${LD-ld} -64"
10461 ;;
10462 esac
10463 fi
10464 fi
10465 rm -rf conftest*
10466 ;;
10467
10468x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10469 # Find out which ABI we are using.
10470 echo 'int i;' > conftest.$ac_ext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472 (eval $ac_compile) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; then
10476 case "`/usr/bin/file conftest.o`" in
10477 *32-bit*)
10478 case $host in
10479 x86_64-*linux*)
10480 LD="${LD-ld} -m elf_i386"
10481 ;;
10482 ppc64-*linux*|powerpc64-*linux*)
10483 LD="${LD-ld} -m elf32ppclinux"
10484 ;;
10485 s390x-*linux*)
10486 LD="${LD-ld} -m elf_s390"
10487 ;;
10488 sparc64-*linux*)
10489 LD="${LD-ld} -m elf32_sparc"
10490 ;;
10491 esac
10492 ;;
10493 *64-bit*)
10494 case $host in
10495 x86_64-*linux*)
10496 LD="${LD-ld} -m elf_x86_64"
10497 ;;
10498 ppc*-*linux*|powerpc*-*linux*)
10499 LD="${LD-ld} -m elf64ppc"
10500 ;;
10501 s390*-*linux*)
10502 LD="${LD-ld} -m elf64_s390"
10503 ;;
10504 sparc*-*linux*)
10505 LD="${LD-ld} -m elf64_sparc"
10506 ;;
10507 esac
10508 ;;
10509 esac
10510 fi
10511 rm -rf conftest*
10512 ;;
10513
10514*-*-sco3.2v5*)
10515 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10516 SAVE_CFLAGS="$CFLAGS"
10517 CFLAGS="$CFLAGS -belf"
10518 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10519echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10520if test "${lt_cv_cc_needs_belf+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10522else
10523 ac_ext=c
10524ac_cpp='$CPP $CPPFLAGS'
10525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527ac_compiler_gnu=$ac_cv_c_compiler_gnu
10528
10529 cat >conftest.$ac_ext <<_ACEOF
10530/* confdefs.h. */
10531_ACEOF
10532cat confdefs.h >>conftest.$ac_ext
10533cat >>conftest.$ac_ext <<_ACEOF
10534/* end confdefs.h. */
10535
10536_ACEOF
10537rm -f conftest.$ac_objext conftest$ac_exeext
10538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539 (eval $ac_link) 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } &&
10546 { ac_try='test -z "$ac_c_werror_flag"
10547 || test ! -s conftest.err'
10548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10549 (eval $ac_try) 2>&5
10550 ac_status=$?
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; } &&
10553 { ac_try='test -s conftest$ac_exeext'
10554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555 (eval $ac_try) 2>&5
10556 ac_status=$?
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); }; }; then
10559 lt_cv_cc_needs_belf=yes
10560else
10561 echo "$as_me: failed program was:" >&5
10562sed 's/^/| /' conftest.$ac_ext >&5
10563
10564lt_cv_cc_needs_belf=no
10565fi
10566rm -f conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10568 ac_ext=c
10569ac_cpp='$CPP $CPPFLAGS'
10570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10572ac_compiler_gnu=$ac_cv_c_compiler_gnu
10573
10574fi
10575echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10576echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10577 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10578 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10579 CFLAGS="$SAVE_CFLAGS"
10580 fi
10581 ;;
10582
10583esac
10584
10585need_locks="$enable_libtool_lock"
10586
10587
Reid Spencer2706f8c2004-09-19 23:53:36 +000010588
10589
10590if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10591 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10592 (test "X$CXX" != "Xg++"))) ; then
10593 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010594ac_cpp='$CXXCPP $CPPFLAGS'
10595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10598echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10599echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10600if test -z "$CXXCPP"; then
10601 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010602 echo $ECHO_N "(cached) $ECHO_C" >&6
10603else
John Criswell47fdd832003-07-14 16:52:07 +000010604 # Double quotes because CXXCPP needs to be expanded
10605 for CXXCPP in "$CXX -E" "/lib/cpp"
10606 do
10607 ac_preproc_ok=false
10608for ac_cxx_preproc_warn_flag in '' yes
10609do
10610 # Use a header file that comes with gcc, so configuring glibc
10611 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010612 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010614 # On the NeXT, cc -E runs the code through the compiler's parser,
10615 # not just through cpp. "Syntax error" is here to catch this case.
10616 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010617/* confdefs.h. */
10618_ACEOF
10619cat confdefs.h >>conftest.$ac_ext
10620cat >>conftest.$ac_ext <<_ACEOF
10621/* end confdefs.h. */
10622#ifdef __STDC__
10623# include <limits.h>
10624#else
10625# include <assert.h>
10626#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010627 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010628_ACEOF
10629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10631 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010632 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010633 rm -f conftest.er1
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } >/dev/null; then
10637 if test -s conftest.err; then
10638 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010639 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010640 else
John Criswell47fdd832003-07-14 16:52:07 +000010641 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010642 fi
John Criswell47fdd832003-07-14 16:52:07 +000010643else
10644 ac_cpp_err=yes
10645fi
10646if test -z "$ac_cpp_err"; then
10647 :
10648else
10649 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010650sed 's/^/| /' conftest.$ac_ext >&5
10651
John Criswell47fdd832003-07-14 16:52:07 +000010652 # Broken: fails on valid input.
10653continue
10654fi
10655rm -f conftest.err conftest.$ac_ext
10656
10657 # OK, works on sane cases. Now check whether non-existent headers
10658 # can be detected and how.
10659 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010660/* confdefs.h. */
10661_ACEOF
10662cat confdefs.h >>conftest.$ac_ext
10663cat >>conftest.$ac_ext <<_ACEOF
10664/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010665#include <ac_nonexistent.h>
10666_ACEOF
10667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10669 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010670 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010671 rm -f conftest.er1
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } >/dev/null; then
10675 if test -s conftest.err; then
10676 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010677 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010678 else
10679 ac_cpp_err=
10680 fi
10681else
10682 ac_cpp_err=yes
10683fi
10684if test -z "$ac_cpp_err"; then
10685 # Broken: success on invalid input.
10686continue
10687else
10688 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010689sed 's/^/| /' conftest.$ac_ext >&5
10690
John Criswell47fdd832003-07-14 16:52:07 +000010691 # Passes both tests.
10692ac_preproc_ok=:
10693break
10694fi
10695rm -f conftest.err conftest.$ac_ext
10696
10697done
10698# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10699rm -f conftest.err conftest.$ac_ext
10700if $ac_preproc_ok; then
10701 break
John Criswell7a73b802003-06-30 21:59:07 +000010702fi
10703
John Criswell47fdd832003-07-14 16:52:07 +000010704 done
10705 ac_cv_prog_CXXCPP=$CXXCPP
10706
10707fi
10708 CXXCPP=$ac_cv_prog_CXXCPP
10709else
10710 ac_cv_prog_CXXCPP=$CXXCPP
10711fi
10712echo "$as_me:$LINENO: result: $CXXCPP" >&5
10713echo "${ECHO_T}$CXXCPP" >&6
10714ac_preproc_ok=false
10715for ac_cxx_preproc_warn_flag in '' yes
10716do
10717 # Use a header file that comes with gcc, so configuring glibc
10718 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10720 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010721 # On the NeXT, cc -E runs the code through the compiler's parser,
10722 # not just through cpp. "Syntax error" is here to catch this case.
10723 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010724/* confdefs.h. */
10725_ACEOF
10726cat confdefs.h >>conftest.$ac_ext
10727cat >>conftest.$ac_ext <<_ACEOF
10728/* end confdefs.h. */
10729#ifdef __STDC__
10730# include <limits.h>
10731#else
10732# include <assert.h>
10733#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010734 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010735_ACEOF
10736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10738 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010739 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } >/dev/null; then
10744 if test -s conftest.err; then
10745 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010746 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010747 else
10748 ac_cpp_err=
10749 fi
10750else
10751 ac_cpp_err=yes
10752fi
10753if test -z "$ac_cpp_err"; then
10754 :
10755else
10756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010757sed 's/^/| /' conftest.$ac_ext >&5
10758
John Criswell47fdd832003-07-14 16:52:07 +000010759 # Broken: fails on valid input.
10760continue
10761fi
10762rm -f conftest.err conftest.$ac_ext
10763
10764 # OK, works on sane cases. Now check whether non-existent headers
10765 # can be detected and how.
10766 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010767/* confdefs.h. */
10768_ACEOF
10769cat confdefs.h >>conftest.$ac_ext
10770cat >>conftest.$ac_ext <<_ACEOF
10771/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010772#include <ac_nonexistent.h>
10773_ACEOF
10774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10776 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010777 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010778 rm -f conftest.er1
10779 cat conftest.err >&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } >/dev/null; then
10782 if test -s conftest.err; then
10783 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010784 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010785 else
10786 ac_cpp_err=
10787 fi
10788else
10789 ac_cpp_err=yes
10790fi
10791if test -z "$ac_cpp_err"; then
10792 # Broken: success on invalid input.
10793continue
10794else
10795 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010796sed 's/^/| /' conftest.$ac_ext >&5
10797
John Criswell47fdd832003-07-14 16:52:07 +000010798 # Passes both tests.
10799ac_preproc_ok=:
10800break
10801fi
10802rm -f conftest.err conftest.$ac_ext
10803
10804done
10805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10806rm -f conftest.err conftest.$ac_ext
10807if $ac_preproc_ok; then
10808 :
10809else
John Criswell0c38eaf2003-09-10 15:17:25 +000010810 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10811See \`config.log' for more details." >&5
10812echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10813See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010814 { (exit 1); exit 1; }; }
10815fi
10816
10817ac_ext=cc
10818ac_cpp='$CXXCPP $CPPFLAGS'
10819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10822
Reid Spencer2706f8c2004-09-19 23:53:36 +000010823fi
10824
John Criswell47fdd832003-07-14 16:52:07 +000010825
10826ac_ext=f
10827ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10828ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10829ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10830if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010831 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 +000010832 do
10833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10834set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10835echo "$as_me:$LINENO: checking for $ac_word" >&5
10836echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10837if test "${ac_cv_prog_F77+set}" = set; then
10838 echo $ECHO_N "(cached) $ECHO_C" >&6
10839else
10840 if test -n "$F77"; then
10841 ac_cv_prog_F77="$F77" # Let the user override the test.
10842else
10843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844for as_dir in $PATH
10845do
10846 IFS=$as_save_IFS
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10852 break 2
10853 fi
10854done
10855done
10856
10857fi
10858fi
10859F77=$ac_cv_prog_F77
10860if test -n "$F77"; then
10861 echo "$as_me:$LINENO: result: $F77" >&5
10862echo "${ECHO_T}$F77" >&6
10863else
10864 echo "$as_me:$LINENO: result: no" >&5
10865echo "${ECHO_T}no" >&6
10866fi
10867
10868 test -n "$F77" && break
10869 done
10870fi
10871if test -z "$F77"; then
10872 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010873 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 +000010874do
10875 # Extract the first word of "$ac_prog", so it can be a program name with args.
10876set dummy $ac_prog; ac_word=$2
10877echo "$as_me:$LINENO: checking for $ac_word" >&5
10878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10879if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10881else
10882 if test -n "$ac_ct_F77"; then
10883 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10884else
10885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886for as_dir in $PATH
10887do
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10892 ac_cv_prog_ac_ct_F77="$ac_prog"
10893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10894 break 2
10895 fi
10896done
10897done
10898
10899fi
10900fi
10901ac_ct_F77=$ac_cv_prog_ac_ct_F77
10902if test -n "$ac_ct_F77"; then
10903 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10904echo "${ECHO_T}$ac_ct_F77" >&6
10905else
10906 echo "$as_me:$LINENO: result: no" >&5
10907echo "${ECHO_T}no" >&6
10908fi
10909
10910 test -n "$ac_ct_F77" && break
10911done
10912
10913 F77=$ac_ct_F77
10914fi
10915
10916
10917# Provide some information about the compiler.
Reid Spencerb195d9d2006-03-23 23:21:29 +000010918echo "$as_me:10918:" \
John Criswell47fdd832003-07-14 16:52:07 +000010919 "checking for Fortran 77 compiler version" >&5
10920ac_compiler=`set X $ac_compile; echo $2`
10921{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10922 (eval $ac_compiler --version </dev/null >&5) 2>&5
10923 ac_status=$?
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }
10926{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10927 (eval $ac_compiler -v </dev/null >&5) 2>&5
10928 ac_status=$?
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); }
10931{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10932 (eval $ac_compiler -V </dev/null >&5) 2>&5
10933 ac_status=$?
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010936rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010937
10938# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010939# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010940ac_save_ext=$ac_ext
10941ac_ext=F
10942echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10943echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10944if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946else
10947 cat >conftest.$ac_ext <<_ACEOF
10948 program main
10949#ifndef __GNUC__
10950 choke me
10951#endif
10952
10953 end
10954_ACEOF
10955rm -f conftest.$ac_objext
10956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010957 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010958 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010959 grep -v '^ *+' conftest.er1 >conftest.err
10960 rm -f conftest.er1
10961 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010964 { ac_try='test -z "$ac_f77_werror_flag"
10965 || test ! -s conftest.err'
10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10968 ac_status=$?
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; } &&
10971 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10973 (eval $ac_try) 2>&5
10974 ac_status=$?
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
10977 ac_compiler_gnu=yes
10978else
10979 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010980sed 's/^/| /' conftest.$ac_ext >&5
10981
John Criswell47fdd832003-07-14 16:52:07 +000010982ac_compiler_gnu=no
10983fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010985ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10986
10987fi
10988echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10989echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10990ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010991ac_test_FFLAGS=${FFLAGS+set}
10992ac_save_FFLAGS=$FFLAGS
10993FFLAGS=
10994echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10995echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10996if test "${ac_cv_prog_f77_g+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10998else
10999 FFLAGS=-g
11000cat >conftest.$ac_ext <<_ACEOF
11001 program main
11002
11003 end
11004_ACEOF
11005rm -f conftest.$ac_objext
11006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011007 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011008 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011014 { ac_try='test -z "$ac_f77_werror_flag"
11015 || test ! -s conftest.err'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000011022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_cv_prog_f77_g=yes
11028else
11029 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011030sed 's/^/| /' conftest.$ac_ext >&5
11031
John Criswell47fdd832003-07-14 16:52:07 +000011032ac_cv_prog_f77_g=no
11033fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011035
11036fi
11037echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
11038echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
11039if test "$ac_test_FFLAGS" = set; then
11040 FFLAGS=$ac_save_FFLAGS
11041elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011042 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011043 FFLAGS="-g -O2"
11044 else
11045 FFLAGS="-g"
11046 fi
11047else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011048 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000011049 FFLAGS="-O2"
11050 else
11051 FFLAGS=
11052 fi
11053fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011054
11055G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000011056ac_ext=c
11057ac_cpp='$CPP $CPPFLAGS'
11058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11060ac_compiler_gnu=$ac_cv_c_compiler_gnu
11061
11062
11063
11064# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11065
11066# find the maximum length of command line arguments
11067echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11068echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11069if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071else
11072 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000011073 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000011074
11075 case $build_os in
11076 msdosdjgpp*)
11077 # On DJGPP, this test can blow up pretty badly due to problems in libc
11078 # (any single argument exceeding 2000 bytes causes a buffer overrun
11079 # during glob expansion). Even if it were fixed, the result of this
11080 # check would be larger than it should be.
11081 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11082 ;;
11083
11084 gnu*)
11085 # Under GNU Hurd, this test is not required because there is
11086 # no limit to the length of command line arguments.
11087 # Libtool will interpret -1 as no limit whatsoever
11088 lt_cv_sys_max_cmd_len=-1;
11089 ;;
11090
11091 cygwin* | mingw*)
11092 # On Win9x/ME, this test blows up -- it succeeds, but takes
11093 # about 5 minutes as the teststring grows exponentially.
11094 # Worse, since 9x/ME are not pre-emptively multitasking,
11095 # you end up with a "frozen" computer, even though with patience
11096 # the test eventually succeeds (with a max line length of 256k).
11097 # Instead, let's just punt: use the minimum linelength reported by
11098 # all of the supported platforms: 8192 (on NT/2K/XP).
11099 lt_cv_sys_max_cmd_len=8192;
11100 ;;
11101
Reid Spencer2706f8c2004-09-19 23:53:36 +000011102 amigaos*)
11103 # On AmigaOS with pdksh, this test takes hours, literally.
11104 # So we just punt and use a minimum line length of 8192.
11105 lt_cv_sys_max_cmd_len=8192;
11106 ;;
11107
11108 netbsd* | freebsd* | openbsd* | darwin* )
11109 # This has been around since 386BSD, at least. Likely further.
11110 if test -x /sbin/sysctl; then
11111 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11112 elif test -x /usr/sbin/sysctl; then
11113 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11114 else
11115 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11116 fi
11117 # And add a safety zone
11118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11119 ;;
11120
John Criswell47fdd832003-07-14 16:52:07 +000011121 *)
11122 # If test is not a shell built-in, we'll probably end up computing a
11123 # maximum length that is only half of the actual maximum length, but
11124 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011125 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11126 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11127 = "XX$teststring") >/dev/null 2>&1 &&
11128 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000011129 lt_cv_sys_max_cmd_len=$new_result &&
11130 test $i != 17 # 1/2 MB should be enough
11131 do
11132 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000011133 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000011134 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000011135 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000011136 # Add a significant safety factor because C++ compilers can tack on massive
11137 # amounts of additional arguments before passing them to the linker.
11138 # It appears as though 1/2 is a usable value.
11139 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11140 ;;
11141 esac
11142
11143fi
11144
11145if test -n $lt_cv_sys_max_cmd_len ; then
11146 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11147echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11148else
11149 echo "$as_me:$LINENO: result: none" >&5
11150echo "${ECHO_T}none" >&6
11151fi
11152
11153
11154
11155
11156# Check for command to grab the raw symbol name followed by C symbol from nm.
11157echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11158echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11159if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161else
11162
11163# These are sane defaults that work on at least a few old systems.
11164# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11165
11166# Character class describing NM global symbol codes.
11167symcode='[BCDEGRST]'
11168
11169# Regexp to match symbols that can be accessed directly from C.
11170sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11171
11172# Transform the above into a raw symbol and a C symbol.
11173symxfrm='\1 \2\3 \3'
11174
11175# Transform an extracted symbol line into a proper C declaration
11176lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11177
11178# Transform an extracted symbol line into symbol name and symbol address
11179lt_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'"
11180
11181# Define system-specific variables.
11182case $host_os in
11183aix*)
11184 symcode='[BCDT]'
11185 ;;
11186cygwin* | mingw* | pw32*)
11187 symcode='[ABCDGISTW]'
11188 ;;
11189hpux*) # Its linker distinguishes data from code symbols
11190 if test "$host_cpu" = ia64; then
11191 symcode='[ABCDEGRST]'
11192 fi
11193 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11194 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'"
11195 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011196linux*)
11197 if test "$host_cpu" = ia64; then
11198 symcode='[ABCDGIRSTW]'
11199 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11200 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'"
11201 fi
11202 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011203irix* | nonstopux*)
11204 symcode='[BCDEGRST]'
11205 ;;
11206osf*)
11207 symcode='[BCDEGQRST]'
11208 ;;
11209solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011210 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011211 ;;
11212sysv4)
11213 symcode='[DFNSTU]'
11214 ;;
11215esac
11216
11217# Handle CRLF in mingw tool chain
11218opt_cr=
11219case $build_os in
11220mingw*)
11221 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11222 ;;
11223esac
11224
11225# If we're using GNU nm, then use its standard symbol codes.
11226case `$NM -V 2>&1` in
11227*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011228 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011229esac
11230
11231# Try without a prefix undercore, then with it.
11232for ac_symprfx in "" "_"; do
11233
11234 # Write the raw and C identifiers.
11235 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11236
11237 # Check to see that the pipe works correctly.
11238 pipe_works=no
11239
11240 rm -f conftest*
11241 cat > conftest.$ac_ext <<EOF
11242#ifdef __cplusplus
11243extern "C" {
11244#endif
11245char nm_test_var;
11246void nm_test_func(){}
11247#ifdef __cplusplus
11248}
11249#endif
11250int main(){nm_test_var='a';nm_test_func();return(0);}
11251EOF
11252
11253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11254 (eval $ac_compile) 2>&5
11255 ac_status=$?
11256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11257 (exit $ac_status); }; then
11258 # Now try to grab the symbols.
11259 nlist=conftest.nm
11260 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11261 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11262 ac_status=$?
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } && test -s "$nlist"; then
11265 # Try sorting and uniquifying the output.
11266 if sort "$nlist" | uniq > "$nlist"T; then
11267 mv -f "$nlist"T "$nlist"
11268 else
11269 rm -f "$nlist"T
11270 fi
11271
11272 # Make sure that we snagged all the symbols we need.
11273 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11274 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11275 cat <<EOF > conftest.$ac_ext
11276#ifdef __cplusplus
11277extern "C" {
11278#endif
11279
11280EOF
11281 # Now generate the symbol file.
11282 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11283
11284 cat <<EOF >> conftest.$ac_ext
11285#if defined (__STDC__) && __STDC__
11286# define lt_ptr_t void *
11287#else
11288# define lt_ptr_t char *
11289# define const
11290#endif
11291
11292/* The mapping between symbol names and symbols. */
11293const struct {
11294 const char *name;
11295 lt_ptr_t address;
11296}
11297lt_preloaded_symbols[] =
11298{
11299EOF
11300 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11301 cat <<\EOF >> conftest.$ac_ext
11302 {0, (lt_ptr_t) 0}
11303};
11304
11305#ifdef __cplusplus
11306}
11307#endif
11308EOF
11309 # Now try linking the two files.
11310 mv conftest.$ac_objext conftstm.$ac_objext
11311 lt_save_LIBS="$LIBS"
11312 lt_save_CFLAGS="$CFLAGS"
11313 LIBS="conftstm.$ac_objext"
11314 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11316 (eval $ac_link) 2>&5
11317 ac_status=$?
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11320 pipe_works=yes
11321 fi
11322 LIBS="$lt_save_LIBS"
11323 CFLAGS="$lt_save_CFLAGS"
11324 else
11325 echo "cannot find nm_test_func in $nlist" >&5
11326 fi
11327 else
11328 echo "cannot find nm_test_var in $nlist" >&5
11329 fi
11330 else
11331 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11332 fi
11333 else
11334 echo "$progname: failed program was:" >&5
11335 cat conftest.$ac_ext >&5
11336 fi
11337 rm -f conftest* conftst*
11338
11339 # Do not use the global_symbol_pipe unless it works.
11340 if test "$pipe_works" = yes; then
11341 break
11342 else
11343 lt_cv_sys_global_symbol_pipe=
11344 fi
11345done
11346
11347fi
11348
11349if test -z "$lt_cv_sys_global_symbol_pipe"; then
11350 lt_cv_sys_global_symbol_to_cdecl=
11351fi
11352if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11353 echo "$as_me:$LINENO: result: failed" >&5
11354echo "${ECHO_T}failed" >&6
11355else
11356 echo "$as_me:$LINENO: result: ok" >&5
11357echo "${ECHO_T}ok" >&6
11358fi
11359
11360echo "$as_me:$LINENO: checking for objdir" >&5
11361echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11362if test "${lt_cv_objdir+set}" = set; then
11363 echo $ECHO_N "(cached) $ECHO_C" >&6
11364else
11365 rm -f .libs 2>/dev/null
11366mkdir .libs 2>/dev/null
11367if test -d .libs; then
11368 lt_cv_objdir=.libs
11369else
11370 # MS-DOS does not allow filenames that begin with a dot.
11371 lt_cv_objdir=_libs
11372fi
11373rmdir .libs 2>/dev/null
11374fi
11375echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11376echo "${ECHO_T}$lt_cv_objdir" >&6
11377objdir=$lt_cv_objdir
11378
11379
11380
11381
11382
11383case $host_os in
11384aix3*)
11385 # AIX sometimes has problems with the GCC collect2 program. For some
11386 # reason, if we set the COLLECT_NAMES environment variable, the problems
11387 # vanish in a puff of smoke.
11388 if test "X${COLLECT_NAMES+set}" != Xset; then
11389 COLLECT_NAMES=
11390 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011391 fi
11392 ;;
11393esac
11394
John Criswell47fdd832003-07-14 16:52:07 +000011395# Sed substitution that helps us do robust quoting. It backslashifies
11396# metacharacters that are still active within double-quoted strings.
11397Xsed='sed -e s/^X//'
11398sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11399
11400# Same as above, but do not quote variable references.
11401double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11402
11403# Sed substitution to delay expansion of an escaped shell variable in a
11404# double_quote_subst'ed string.
11405delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11406
11407# Sed substitution to avoid accidental globbing in evaled expressions
11408no_glob_subst='s/\*/\\\*/g'
11409
11410# Constants:
11411rm="rm -f"
11412
11413# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011414default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011415can_build_shared=yes
11416
11417# All known linkers require a `.a' archive for static linking (except M$VC,
11418# which needs '.lib').
11419libext=a
11420ltmain="$ac_aux_dir/ltmain.sh"
11421ofile="$default_ofile"
11422with_gnu_ld="$lt_cv_prog_gnu_ld"
11423
11424if test -n "$ac_tool_prefix"; then
11425 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11426set dummy ${ac_tool_prefix}ar; ac_word=$2
11427echo "$as_me:$LINENO: checking for $ac_word" >&5
11428echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11429if test "${ac_cv_prog_AR+set}" = set; then
11430 echo $ECHO_N "(cached) $ECHO_C" >&6
11431else
11432 if test -n "$AR"; then
11433 ac_cv_prog_AR="$AR" # Let the user override the test.
11434else
11435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH
11437do
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11442 ac_cv_prog_AR="${ac_tool_prefix}ar"
11443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11444 break 2
11445 fi
11446done
11447done
11448
11449fi
11450fi
11451AR=$ac_cv_prog_AR
11452if test -n "$AR"; then
11453 echo "$as_me:$LINENO: result: $AR" >&5
11454echo "${ECHO_T}$AR" >&6
11455else
11456 echo "$as_me:$LINENO: result: no" >&5
11457echo "${ECHO_T}no" >&6
11458fi
11459
11460fi
11461if test -z "$ac_cv_prog_AR"; then
11462 ac_ct_AR=$AR
11463 # Extract the first word of "ar", so it can be a program name with args.
11464set dummy ar; ac_word=$2
11465echo "$as_me:$LINENO: checking for $ac_word" >&5
11466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11467if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11469else
11470 if test -n "$ac_ct_AR"; then
11471 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11472else
11473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11474for as_dir in $PATH
11475do
11476 IFS=$as_save_IFS
11477 test -z "$as_dir" && as_dir=.
11478 for ac_exec_ext in '' $ac_executable_extensions; do
11479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11480 ac_cv_prog_ac_ct_AR="ar"
11481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11482 break 2
11483 fi
11484done
11485done
11486
11487 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11488fi
11489fi
11490ac_ct_AR=$ac_cv_prog_ac_ct_AR
11491if test -n "$ac_ct_AR"; then
11492 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11493echo "${ECHO_T}$ac_ct_AR" >&6
11494else
11495 echo "$as_me:$LINENO: result: no" >&5
11496echo "${ECHO_T}no" >&6
11497fi
11498
11499 AR=$ac_ct_AR
11500else
11501 AR="$ac_cv_prog_AR"
11502fi
11503
John Criswell7a73b802003-06-30 21:59:07 +000011504if test -n "$ac_tool_prefix"; then
11505 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11506set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11507echo "$as_me:$LINENO: checking for $ac_word" >&5
11508echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11509if test "${ac_cv_prog_RANLIB+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511else
11512 if test -n "$RANLIB"; then
11513 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11514else
11515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11516for as_dir in $PATH
11517do
11518 IFS=$as_save_IFS
11519 test -z "$as_dir" && as_dir=.
11520 for ac_exec_ext in '' $ac_executable_extensions; do
11521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11522 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11524 break 2
11525 fi
11526done
11527done
11528
11529fi
11530fi
11531RANLIB=$ac_cv_prog_RANLIB
11532if test -n "$RANLIB"; then
11533 echo "$as_me:$LINENO: result: $RANLIB" >&5
11534echo "${ECHO_T}$RANLIB" >&6
11535else
11536 echo "$as_me:$LINENO: result: no" >&5
11537echo "${ECHO_T}no" >&6
11538fi
11539
11540fi
11541if test -z "$ac_cv_prog_RANLIB"; then
11542 ac_ct_RANLIB=$RANLIB
11543 # Extract the first word of "ranlib", so it can be a program name with args.
11544set dummy ranlib; ac_word=$2
11545echo "$as_me:$LINENO: checking for $ac_word" >&5
11546echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11547if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11549else
11550 if test -n "$ac_ct_RANLIB"; then
11551 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11552else
11553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554for as_dir in $PATH
11555do
11556 IFS=$as_save_IFS
11557 test -z "$as_dir" && as_dir=.
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11560 ac_cv_prog_ac_ct_RANLIB="ranlib"
11561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11562 break 2
11563 fi
11564done
11565done
11566
11567 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11568fi
11569fi
11570ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11571if test -n "$ac_ct_RANLIB"; then
11572 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11573echo "${ECHO_T}$ac_ct_RANLIB" >&6
11574else
11575 echo "$as_me:$LINENO: result: no" >&5
11576echo "${ECHO_T}no" >&6
11577fi
11578
11579 RANLIB=$ac_ct_RANLIB
11580else
11581 RANLIB="$ac_cv_prog_RANLIB"
11582fi
11583
11584if test -n "$ac_tool_prefix"; then
11585 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11586set dummy ${ac_tool_prefix}strip; ac_word=$2
11587echo "$as_me:$LINENO: checking for $ac_word" >&5
11588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11589if test "${ac_cv_prog_STRIP+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11591else
11592 if test -n "$STRIP"; then
11593 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11594else
11595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596for as_dir in $PATH
11597do
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
11600 for ac_exec_ext in '' $ac_executable_extensions; do
11601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11602 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11604 break 2
11605 fi
11606done
11607done
11608
11609fi
11610fi
11611STRIP=$ac_cv_prog_STRIP
11612if test -n "$STRIP"; then
11613 echo "$as_me:$LINENO: result: $STRIP" >&5
11614echo "${ECHO_T}$STRIP" >&6
11615else
11616 echo "$as_me:$LINENO: result: no" >&5
11617echo "${ECHO_T}no" >&6
11618fi
11619
11620fi
11621if test -z "$ac_cv_prog_STRIP"; then
11622 ac_ct_STRIP=$STRIP
11623 # Extract the first word of "strip", so it can be a program name with args.
11624set dummy strip; ac_word=$2
11625echo "$as_me:$LINENO: checking for $ac_word" >&5
11626echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11627if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629else
11630 if test -n "$ac_ct_STRIP"; then
11631 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11632else
11633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634for as_dir in $PATH
11635do
11636 IFS=$as_save_IFS
11637 test -z "$as_dir" && as_dir=.
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11640 ac_cv_prog_ac_ct_STRIP="strip"
11641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 break 2
11643 fi
11644done
11645done
11646
11647 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11648fi
11649fi
11650ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11651if test -n "$ac_ct_STRIP"; then
11652 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11653echo "${ECHO_T}$ac_ct_STRIP" >&6
11654else
11655 echo "$as_me:$LINENO: result: no" >&5
11656echo "${ECHO_T}no" >&6
11657fi
11658
11659 STRIP=$ac_ct_STRIP
11660else
11661 STRIP="$ac_cv_prog_STRIP"
11662fi
11663
11664
John Criswell7a73b802003-06-30 21:59:07 +000011665old_CC="$CC"
11666old_CFLAGS="$CFLAGS"
11667
11668# Set sane defaults for various variables
11669test -z "$AR" && AR=ar
11670test -z "$AR_FLAGS" && AR_FLAGS=cru
11671test -z "$AS" && AS=as
11672test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011673test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011674test -z "$DLLTOOL" && DLLTOOL=dlltool
11675test -z "$LD" && LD=ld
11676test -z "$LN_S" && LN_S="ln -s"
11677test -z "$MAGIC_CMD" && MAGIC_CMD=file
11678test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011679test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011680test -z "$OBJDUMP" && OBJDUMP=objdump
11681test -z "$RANLIB" && RANLIB=:
11682test -z "$STRIP" && STRIP=:
11683test -z "$ac_objext" && ac_objext=o
11684
John Criswell7a73b802003-06-30 21:59:07 +000011685# Determine commands to create old-style static archives.
11686old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11687old_postinstall_cmds='chmod 644 $oldlib'
11688old_postuninstall_cmds=
11689
11690if test -n "$RANLIB"; then
11691 case $host_os in
11692 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011693 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011694 ;;
11695 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011696 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011697 ;;
11698 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011699 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011700fi
11701
Reid Spencer2706f8c2004-09-19 23:53:36 +000011702cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11703
John Criswell47fdd832003-07-14 16:52:07 +000011704# Only perform the check for file, if the check method requires it
11705case $deplibs_check_method in
11706file_magic*)
11707 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11708 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11709echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11710if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011712else
John Criswell47fdd832003-07-14 16:52:07 +000011713 case $MAGIC_CMD in
11714[\\/*] | ?:[\\/]*)
11715 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11716 ;;
11717*)
11718 lt_save_MAGIC_CMD="$MAGIC_CMD"
11719 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11720 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11721 for ac_dir in $ac_dummy; do
11722 IFS="$lt_save_ifs"
11723 test -z "$ac_dir" && ac_dir=.
11724 if test -f $ac_dir/${ac_tool_prefix}file; then
11725 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11726 if test -n "$file_magic_test_file"; then
11727 case $deplibs_check_method in
11728 "file_magic "*)
11729 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11730 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11731 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11732 $EGREP "$file_magic_regex" > /dev/null; then
11733 :
11734 else
11735 cat <<EOF 1>&2
11736
11737*** Warning: the command libtool uses to detect shared libraries,
11738*** $file_magic_cmd, produces output that libtool cannot recognize.
11739*** The result is that libtool may fail to recognize shared libraries
11740*** as such. This will affect the creation of libtool libraries that
11741*** depend on shared libraries, but programs linked with such libtool
11742*** libraries will work regardless of this problem. Nevertheless, you
11743*** may want to report the problem to your system manager and/or to
11744*** bug-libtool@gnu.org
11745
11746EOF
11747 fi ;;
11748 esac
11749 fi
11750 break
11751 fi
11752 done
11753 IFS="$lt_save_ifs"
11754 MAGIC_CMD="$lt_save_MAGIC_CMD"
11755 ;;
11756esac
John Criswell7a73b802003-06-30 21:59:07 +000011757fi
John Criswell7a73b802003-06-30 21:59:07 +000011758
John Criswell47fdd832003-07-14 16:52:07 +000011759MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11760if test -n "$MAGIC_CMD"; then
11761 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11762echo "${ECHO_T}$MAGIC_CMD" >&6
11763else
11764 echo "$as_me:$LINENO: result: no" >&5
11765echo "${ECHO_T}no" >&6
11766fi
John Criswell7a73b802003-06-30 21:59:07 +000011767
John Criswell47fdd832003-07-14 16:52:07 +000011768if test -z "$lt_cv_path_MAGIC_CMD"; then
11769 if test -n "$ac_tool_prefix"; then
11770 echo "$as_me:$LINENO: checking for file" >&5
11771echo $ECHO_N "checking for file... $ECHO_C" >&6
11772if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11774else
11775 case $MAGIC_CMD in
11776[\\/*] | ?:[\\/]*)
11777 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11778 ;;
11779*)
11780 lt_save_MAGIC_CMD="$MAGIC_CMD"
11781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11782 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11783 for ac_dir in $ac_dummy; do
11784 IFS="$lt_save_ifs"
11785 test -z "$ac_dir" && ac_dir=.
11786 if test -f $ac_dir/file; then
11787 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11788 if test -n "$file_magic_test_file"; then
11789 case $deplibs_check_method in
11790 "file_magic "*)
11791 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11792 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11793 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11794 $EGREP "$file_magic_regex" > /dev/null; then
11795 :
11796 else
11797 cat <<EOF 1>&2
11798
11799*** Warning: the command libtool uses to detect shared libraries,
11800*** $file_magic_cmd, produces output that libtool cannot recognize.
11801*** The result is that libtool may fail to recognize shared libraries
11802*** as such. This will affect the creation of libtool libraries that
11803*** depend on shared libraries, but programs linked with such libtool
11804*** libraries will work regardless of this problem. Nevertheless, you
11805*** may want to report the problem to your system manager and/or to
11806*** bug-libtool@gnu.org
11807
11808EOF
11809 fi ;;
11810 esac
11811 fi
11812 break
11813 fi
11814 done
11815 IFS="$lt_save_ifs"
11816 MAGIC_CMD="$lt_save_MAGIC_CMD"
11817 ;;
11818esac
11819fi
11820
11821MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11822if test -n "$MAGIC_CMD"; then
11823 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11824echo "${ECHO_T}$MAGIC_CMD" >&6
11825else
11826 echo "$as_me:$LINENO: result: no" >&5
11827echo "${ECHO_T}no" >&6
11828fi
11829
11830 else
11831 MAGIC_CMD=:
11832 fi
11833fi
11834
11835 fi
11836 ;;
11837esac
11838
Reid Spencer17795972004-11-18 09:47:37 +000011839enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011840enable_win32_dll=no
11841
11842# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11843if test "${enable_libtool_lock+set}" = set; then
11844 enableval="$enable_libtool_lock"
11845
11846fi;
11847test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11848
John Criswell7a73b802003-06-30 21:59:07 +000011849
11850# Check whether --with-pic or --without-pic was given.
11851if test "${with_pic+set}" = set; then
11852 withval="$with_pic"
11853 pic_mode="$withval"
11854else
11855 pic_mode=default
11856fi;
11857test -z "$pic_mode" && pic_mode=default
11858
John Criswell47fdd832003-07-14 16:52:07 +000011859# Use C for the default configuration in the libtool script
11860tagname=
11861lt_save_CC="$CC"
11862ac_ext=c
11863ac_cpp='$CPP $CPPFLAGS'
11864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11866ac_compiler_gnu=$ac_cv_c_compiler_gnu
11867
11868
11869# Source file extension for C test sources.
11870ac_ext=c
11871
11872# Object file extension for compiled C test sources.
11873objext=o
11874objext=$objext
11875
11876# Code to be used in simple compile tests
11877lt_simple_compile_test_code="int some_variable = 0;\n"
11878
11879# Code to be used in simple link tests
11880lt_simple_link_test_code='int main(){return(0);}\n'
11881
11882
11883# If no C compiler was specified, use CC.
11884LTCC=${LTCC-"$CC"}
11885
11886# Allow CC to be a program name with arguments.
11887compiler=$CC
11888
11889
11890#
11891# Check for any special shared library compilation flags.
11892#
11893lt_prog_cc_shlib=
11894if test "$GCC" = no; then
11895 case $host_os in
11896 sco3.2v5*)
11897 lt_prog_cc_shlib='-belf'
11898 ;;
11899 esac
11900fi
11901if test -n "$lt_prog_cc_shlib"; then
11902 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11903echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11904 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11905 else
11906 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11907echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11908 lt_cv_prog_cc_can_build_shared=no
11909 fi
11910fi
11911
11912
11913#
11914# Check to make sure the static flag actually works.
11915#
11916echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11917echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11918if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920else
John Criswell47fdd832003-07-14 16:52:07 +000011921 lt_prog_compiler_static_works=no
11922 save_LDFLAGS="$LDFLAGS"
11923 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11924 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11925 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11926 # The compiler can only warn and ignore the option if not recognized
11927 # So say no if there are warnings
11928 if test -s conftest.err; then
11929 # Append any errors to the config.log.
11930 cat conftest.err 1>&5
11931 else
11932 lt_prog_compiler_static_works=yes
11933 fi
11934 fi
11935 $rm conftest*
11936 LDFLAGS="$save_LDFLAGS"
11937
11938fi
11939echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11940echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11941
11942if test x"$lt_prog_compiler_static_works" = xyes; then
11943 :
11944else
11945 lt_prog_compiler_static=
11946fi
11947
11948
11949
John Criswell47fdd832003-07-14 16:52:07 +000011950
11951lt_prog_compiler_no_builtin_flag=
11952
11953if test "$GCC" = yes; then
11954 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11955
Reid Spencer2706f8c2004-09-19 23:53:36 +000011956
11957echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011958echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11959if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961else
11962 lt_cv_prog_compiler_rtti_exceptions=no
11963 ac_outfile=conftest.$ac_objext
11964 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11965 lt_compiler_flag="-fno-rtti -fno-exceptions"
11966 # Insert the option either (1) after the last *FLAGS variable, or
11967 # (2) before a word containing "conftest.", or (3) at the end.
11968 # Note that $ac_compile itself does not contain backslashes and begins
11969 # with a dollar sign (not a hyphen), so the echo should work correctly.
11970 # The option is referenced via a variable to avoid confusing sed.
11971 lt_compile=`echo "$ac_compile" | $SED \
11972 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11974 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb195d9d2006-03-23 23:21:29 +000011975 (eval echo "\"\$as_me:11975: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011976 (eval "$lt_compile" 2>conftest.err)
11977 ac_status=$?
11978 cat conftest.err >&5
Reid Spencerb195d9d2006-03-23 23:21:29 +000011979 echo "$as_me:11979: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011980 if (exit $ac_status) && test -s "$ac_outfile"; then
11981 # The compiler can only warn and ignore the option if not recognized
11982 # So say no if there are warnings
11983 if test ! -s conftest.err; then
11984 lt_cv_prog_compiler_rtti_exceptions=yes
11985 fi
11986 fi
11987 $rm conftest*
11988
11989fi
11990echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11991echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11992
11993if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11994 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11995else
11996 :
11997fi
11998
11999fi
12000
12001lt_prog_compiler_wl=
12002lt_prog_compiler_pic=
12003lt_prog_compiler_static=
12004
12005echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12006echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012007
12008 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000012009 lt_prog_compiler_wl='-Wl,'
12010 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000012011
12012 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012013 aix*)
12014 # All AIX code is PIC.
12015 if test "$host_cpu" = ia64; then
12016 # AIX 5 now supports IA64 processor
12017 lt_prog_compiler_static='-Bstatic'
12018 fi
John Criswell7a73b802003-06-30 21:59:07 +000012019 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012020
John Criswell7a73b802003-06-30 21:59:07 +000012021 amigaos*)
12022 # FIXME: we need at least 68020 code to build shared libraries, but
12023 # adding the `-m68020' flag to GCC prevents building anything better,
12024 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000012025 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000012026 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012027
12028 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000012029 # PIC is the default for these OSes.
12030 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012031
12032 mingw* | pw32* | os2*)
12033 # This hack is so that the source file can tell whether it is being
12034 # built for inclusion in a dll (and should export symbols for example).
12035 lt_prog_compiler_pic='-DDLL_EXPORT'
12036 ;;
12037
John Criswell7a73b802003-06-30 21:59:07 +000012038 darwin* | rhapsody*)
12039 # PIC is the default on this platform
12040 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000012041 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000012042 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012043
12044 msdosdjgpp*)
12045 # Just because we use GCC doesn't mean we suddenly get shared libraries
12046 # on systems that don't support them.
12047 lt_prog_compiler_can_build_shared=no
12048 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012049 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012050
John Criswell7a73b802003-06-30 21:59:07 +000012051 sysv4*MP*)
12052 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000012053 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000012054 fi
12055 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012056
12057 hpux*)
12058 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12059 # not for PA HP-UX.
12060 case "$host_cpu" in
12061 hppa*64*|ia64*)
12062 # +Z the default
12063 ;;
12064 *)
12065 lt_prog_compiler_pic='-fPIC'
12066 ;;
12067 esac
12068 ;;
12069
John Criswell7a73b802003-06-30 21:59:07 +000012070 *)
John Criswell47fdd832003-07-14 16:52:07 +000012071 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000012072 ;;
12073 esac
12074 else
John Criswell47fdd832003-07-14 16:52:07 +000012075 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000012076 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012077 aix*)
12078 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012079 if test "$host_cpu" = ia64; then
12080 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000012081 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012082 else
John Criswell47fdd832003-07-14 16:52:07 +000012083 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000012084 fi
12085 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012086 darwin*)
12087 # PIC is the default on this platform
12088 # Common symbols not allowed in MH_DYLIB files
12089 case "$cc_basename" in
12090 xlc*)
12091 lt_prog_compiler_pic='-qnocommon'
12092 lt_prog_compiler_wl='-Wl,'
12093 ;;
12094 esac
12095 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012096
John Criswell47fdd832003-07-14 16:52:07 +000012097 mingw* | pw32* | os2*)
12098 # This hack is so that the source file can tell whether it is being
12099 # built for inclusion in a dll (and should export symbols for example).
12100 lt_prog_compiler_pic='-DDLL_EXPORT'
12101 ;;
12102
John Criswell7a73b802003-06-30 21:59:07 +000012103 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000012104 lt_prog_compiler_wl='-Wl,'
12105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12106 # not for PA HP-UX.
12107 case "$host_cpu" in
12108 hppa*64*|ia64*)
12109 # +Z the default
12110 ;;
12111 *)
12112 lt_prog_compiler_pic='+Z'
12113 ;;
12114 esac
12115 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12116 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000012117 ;;
12118
John Criswell47fdd832003-07-14 16:52:07 +000012119 irix5* | irix6* | nonstopux*)
12120 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012121 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000012122 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012123 ;;
12124
12125 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000012126 lt_prog_compiler_pic='-KPIC'
12127 lt_prog_compiler_static='-Bstatic'
12128 ;;
12129
12130 linux*)
12131 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012132 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012133 lt_prog_compiler_wl='-Wl,'
12134 lt_prog_compiler_pic='-KPIC'
12135 lt_prog_compiler_static='-static'
12136 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012137 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000012138 lt_prog_compiler_wl='-Wl,'
12139 # All Alpha code is PIC.
12140 lt_prog_compiler_static='-non_shared'
12141 ;;
12142 esac
John Criswell7a73b802003-06-30 21:59:07 +000012143 ;;
12144
12145 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000012146 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012147 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000012148 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012149 ;;
12150
12151 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000012152 lt_prog_compiler_pic='-Kpic'
12153 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000012154 ;;
12155
12156 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012157 lt_prog_compiler_wl='-Wl,'
12158 lt_prog_compiler_pic='-KPIC'
12159 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012160 ;;
12161
12162 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012163 lt_prog_compiler_wl='-Qoption ld '
12164 lt_prog_compiler_pic='-PIC'
12165 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012166 ;;
12167
12168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012169 lt_prog_compiler_wl='-Wl,'
12170 lt_prog_compiler_pic='-KPIC'
12171 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012172 ;;
12173
12174 sysv4*MP*)
12175 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012176 lt_prog_compiler_pic='-Kconform_pic'
12177 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012178 fi
12179 ;;
12180
John Criswell47fdd832003-07-14 16:52:07 +000012181 uts4*)
12182 lt_prog_compiler_pic='-pic'
12183 lt_prog_compiler_static='-Bstatic'
12184 ;;
12185
John Criswell7a73b802003-06-30 21:59:07 +000012186 *)
John Criswell47fdd832003-07-14 16:52:07 +000012187 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012188 ;;
12189 esac
12190 fi
12191
John Criswell47fdd832003-07-14 16:52:07 +000012192echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12193echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012194
John Criswell47fdd832003-07-14 16:52:07 +000012195#
12196# Check to make sure the PIC flag actually works.
12197#
12198if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012199
12200echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012201echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12202if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012203 echo $ECHO_N "(cached) $ECHO_C" >&6
12204else
John Criswell47fdd832003-07-14 16:52:07 +000012205 lt_prog_compiler_pic_works=no
12206 ac_outfile=conftest.$ac_objext
12207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12208 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12209 # Insert the option either (1) after the last *FLAGS variable, or
12210 # (2) before a word containing "conftest.", or (3) at the end.
12211 # Note that $ac_compile itself does not contain backslashes and begins
12212 # with a dollar sign (not a hyphen), so the echo should work correctly.
12213 # The option is referenced via a variable to avoid confusing sed.
12214 lt_compile=`echo "$ac_compile" | $SED \
12215 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12217 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb195d9d2006-03-23 23:21:29 +000012218 (eval echo "\"\$as_me:12218: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012219 (eval "$lt_compile" 2>conftest.err)
12220 ac_status=$?
12221 cat conftest.err >&5
Reid Spencerb195d9d2006-03-23 23:21:29 +000012222 echo "$as_me:12222: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012223 if (exit $ac_status) && test -s "$ac_outfile"; then
12224 # The compiler can only warn and ignore the option if not recognized
12225 # So say no if there are warnings
12226 if test ! -s conftest.err; then
12227 lt_prog_compiler_pic_works=yes
12228 fi
12229 fi
12230 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012231
John Criswell47fdd832003-07-14 16:52:07 +000012232fi
12233echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12234echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012235
John Criswell47fdd832003-07-14 16:52:07 +000012236if test x"$lt_prog_compiler_pic_works" = xyes; then
12237 case $lt_prog_compiler_pic in
12238 "" | " "*) ;;
12239 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12240 esac
John Criswell7a73b802003-06-30 21:59:07 +000012241else
John Criswell47fdd832003-07-14 16:52:07 +000012242 lt_prog_compiler_pic=
12243 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012244fi
12245
John Criswell7a73b802003-06-30 21:59:07 +000012246fi
John Criswell47fdd832003-07-14 16:52:07 +000012247case "$host_os" in
12248 # For platforms which do not support PIC, -DPIC is meaningless:
12249 *djgpp*)
12250 lt_prog_compiler_pic=
12251 ;;
12252 *)
12253 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12254 ;;
12255esac
John Criswell7a73b802003-06-30 21:59:07 +000012256
John Criswell7a73b802003-06-30 21:59:07 +000012257echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12258echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012259if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012260 echo $ECHO_N "(cached) $ECHO_C" >&6
12261else
John Criswell47fdd832003-07-14 16:52:07 +000012262 lt_cv_prog_compiler_c_o=no
12263 $rm -r conftest 2>/dev/null
12264 mkdir conftest
12265 cd conftest
12266 mkdir out
12267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012268
John Criswell47fdd832003-07-14 16:52:07 +000012269 lt_compiler_flag="-o out/conftest2.$ac_objext"
12270 # Insert the option either (1) after the last *FLAGS variable, or
12271 # (2) before a word containing "conftest.", or (3) at the end.
12272 # Note that $ac_compile itself does not contain backslashes and begins
12273 # with a dollar sign (not a hyphen), so the echo should work correctly.
12274 lt_compile=`echo "$ac_compile" | $SED \
12275 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12277 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb195d9d2006-03-23 23:21:29 +000012278 (eval echo "\"\$as_me:12278: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012279 (eval "$lt_compile" 2>out/conftest.err)
12280 ac_status=$?
12281 cat out/conftest.err >&5
Reid Spencerb195d9d2006-03-23 23:21:29 +000012282 echo "$as_me:12282: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12284 then
12285 # The compiler can only warn and ignore the option if not recognized
12286 # So say no if there are warnings
12287 if test ! -s out/conftest.err; then
12288 lt_cv_prog_compiler_c_o=yes
12289 fi
12290 fi
12291 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012292 $rm conftest*
12293 # SGI C++ compiler will create directory out/ii_files/ for
12294 # template instantiation
12295 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12296 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012297 cd ..
12298 rmdir conftest
12299 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012300
12301fi
John Criswell47fdd832003-07-14 16:52:07 +000012302echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12303echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012304
John Criswell7a73b802003-06-30 21:59:07 +000012305
John Criswell7a73b802003-06-30 21:59:07 +000012306hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012307if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012308 # do not overwrite the value of need_locks provided by the user
12309 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12310echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12311 hard_links=yes
12312 $rm conftest*
12313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12314 touch conftest.a
12315 ln conftest.a conftest.b 2>&5 || hard_links=no
12316 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12317 echo "$as_me:$LINENO: result: $hard_links" >&5
12318echo "${ECHO_T}$hard_links" >&6
12319 if test "$hard_links" = no; then
12320 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12321echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12322 need_locks=warn
12323 fi
12324else
12325 need_locks=no
12326fi
John Criswell7a73b802003-06-30 21:59:07 +000012327
John Criswell47fdd832003-07-14 16:52:07 +000012328echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12329echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12330
12331 runpath_var=
12332 allow_undefined_flag=
12333 enable_shared_with_static_runtimes=no
12334 archive_cmds=
12335 archive_expsym_cmds=
12336 old_archive_From_new_cmds=
12337 old_archive_from_expsyms_cmds=
12338 export_dynamic_flag_spec=
12339 whole_archive_flag_spec=
12340 thread_safe_flag_spec=
12341 hardcode_libdir_flag_spec=
12342 hardcode_libdir_flag_spec_ld=
12343 hardcode_libdir_separator=
12344 hardcode_direct=no
12345 hardcode_minus_L=no
12346 hardcode_shlibpath_var=unsupported
12347 link_all_deplibs=unknown
12348 hardcode_automatic=no
12349 module_cmds=
12350 module_expsym_cmds=
12351 always_export_symbols=no
12352 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12353 # include_expsyms should be a list of space-separated symbols to be *always*
12354 # included in the symbol list
12355 include_expsyms=
12356 # exclude_expsyms can be an extended regexp of symbols to exclude
12357 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12358 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12359 # as well as any symbol that contains `d'.
12360 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12361 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12362 # platforms (ab)use it in PIC code, but their linkers get confused if
12363 # the symbol is explicitly referenced. Since portable code cannot
12364 # rely on this symbol name, it's probably fine to never include it in
12365 # preloaded symbol tables.
12366 extract_expsyms_cmds=
12367
12368 case $host_os in
12369 cygwin* | mingw* | pw32*)
12370 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12371 # When not using gcc, we currently assume that we are using
12372 # Microsoft Visual C++.
12373 if test "$GCC" != yes; then
12374 with_gnu_ld=no
12375 fi
12376 ;;
12377 openbsd*)
12378 with_gnu_ld=no
12379 ;;
12380 esac
12381
12382 ld_shlibs=yes
12383 if test "$with_gnu_ld" = yes; then
12384 # If archive_cmds runs LD, not CC, wlarc should be empty
12385 wlarc='${wl}'
12386
12387 # See if GNU ld supports shared libraries.
12388 case $host_os in
12389 aix3* | aix4* | aix5*)
12390 # On AIX/PPC, the GNU linker is very broken
12391 if test "$host_cpu" != ia64; then
12392 ld_shlibs=no
12393 cat <<EOF 1>&2
12394
12395*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12396*** to be unable to reliably create shared libraries on AIX.
12397*** Therefore, libtool is disabling shared libraries support. If you
12398*** really care for shared libraries, you may want to modify your PATH
12399*** so that a non-GNU linker is found, and then restart.
12400
12401EOF
12402 fi
12403 ;;
12404
12405 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012406 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 +000012407 hardcode_libdir_flag_spec='-L$libdir'
12408 hardcode_minus_L=yes
12409
12410 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12411 # that the semantics of dynamic libraries on AmigaOS, at least up
12412 # to version 4, is to share data among multiple programs linked
12413 # with the same dynamic library. Since this doesn't match the
12414 # behavior of shared libraries on other platforms, we can't use
12415 # them.
12416 ld_shlibs=no
12417 ;;
12418
12419 beos*)
12420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12421 allow_undefined_flag=unsupported
12422 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12423 # support --undefined. This deserves some investigation. FIXME
12424 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12425 else
12426 ld_shlibs=no
12427 fi
12428 ;;
12429
12430 cygwin* | mingw* | pw32*)
12431 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12432 # as there is no search path for DLLs.
12433 hardcode_libdir_flag_spec='-L$libdir'
12434 allow_undefined_flag=unsupported
12435 always_export_symbols=no
12436 enable_shared_with_static_runtimes=yes
12437 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12438
12439 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12440 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12441 # If the export-symbols file already is a .def file (1st line
12442 # is EXPORTS), use it as is; otherwise, prepend...
12443 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12444 cp $export_symbols $output_objdir/$soname.def;
12445 else
12446 echo EXPORTS > $output_objdir/$soname.def;
12447 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012448 fi~
12449 $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 +000012450 else
12451 ld_shlibs=no
12452 fi
12453 ;;
12454
12455 netbsd*)
12456 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12457 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12458 wlarc=
12459 else
12460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12462 fi
12463 ;;
12464
12465 solaris* | sysv5*)
12466 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12467 ld_shlibs=no
12468 cat <<EOF 1>&2
12469
12470*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12471*** create shared libraries on Solaris systems. Therefore, libtool
12472*** is disabling shared libraries support. We urge you to upgrade GNU
12473*** binutils to release 2.9.1 or newer. Another option is to modify
12474*** your PATH or compiler configuration so that the native linker is
12475*** used, and then restart.
12476
12477EOF
12478 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12480 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12481 else
12482 ld_shlibs=no
12483 fi
12484 ;;
12485
12486 sunos4*)
12487 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12488 wlarc=
12489 hardcode_direct=yes
12490 hardcode_shlibpath_var=no
12491 ;;
12492
Reid Spencer2706f8c2004-09-19 23:53:36 +000012493 linux*)
12494 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12495 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12496 archive_cmds="$tmp_archive_cmds"
12497 supports_anon_versioning=no
12498 case `$LD -v 2>/dev/null` in
12499 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12500 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12501 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12502 *\ 2.11.*) ;; # other 2.11 versions
12503 *) supports_anon_versioning=yes ;;
12504 esac
12505 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012506 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12507cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12508$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012509 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12510 else
12511 archive_expsym_cmds="$tmp_archive_cmds"
12512 fi
12513 else
12514 ld_shlibs=no
12515 fi
12516 ;;
12517
John Criswell47fdd832003-07-14 16:52:07 +000012518 *)
12519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12520 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12521 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12522 else
12523 ld_shlibs=no
12524 fi
12525 ;;
12526 esac
12527
12528 if test "$ld_shlibs" = yes; then
12529 runpath_var=LD_RUN_PATH
12530 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12531 export_dynamic_flag_spec='${wl}--export-dynamic'
12532 # ancient GNU ld didn't support --whole-archive et. al.
12533 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12534 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12535 else
12536 whole_archive_flag_spec=
12537 fi
12538 fi
12539 else
12540 # PORTME fill in a description of your system's linker (not GNU ld)
12541 case $host_os in
12542 aix3*)
12543 allow_undefined_flag=unsupported
12544 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012545 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 +000012546 # Note: this linker hardcodes the directories in LIBPATH if there
12547 # are no directories specified by -L.
12548 hardcode_minus_L=yes
12549 if test "$GCC" = yes && test -z "$link_static_flag"; then
12550 # Neither direct hardcoding nor static linking is supported with a
12551 # broken collect2.
12552 hardcode_direct=unsupported
12553 fi
12554 ;;
12555
12556 aix4* | aix5*)
12557 if test "$host_cpu" = ia64; then
12558 # On IA64, the linker does run time linking by default, so we don't
12559 # have to do anything special.
12560 aix_use_runtimelinking=no
12561 exp_sym_flag='-Bexport'
12562 no_entry_flag=""
12563 else
12564 # If we're using GNU nm, then we don't want the "-C" option.
12565 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12566 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12567 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'
12568 else
12569 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'
12570 fi
12571 aix_use_runtimelinking=no
12572
12573 # Test if we are trying to use run time linking or normal
12574 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12575 # need to do runtime linking.
12576 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12577 for ld_flag in $LDFLAGS; do
12578 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12579 aix_use_runtimelinking=yes
12580 break
12581 fi
12582 done
12583 esac
12584
12585 exp_sym_flag='-bexport'
12586 no_entry_flag='-bnoentry'
12587 fi
12588
12589 # When large executables or shared objects are built, AIX ld can
12590 # have problems creating the table of contents. If linking a library
12591 # or program results in "error TOC overflow" add -mminimal-toc to
12592 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12593 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12594
12595 archive_cmds=''
12596 hardcode_direct=yes
12597 hardcode_libdir_separator=':'
12598 link_all_deplibs=yes
12599
12600 if test "$GCC" = yes; then
12601 case $host_os in aix4.012|aix4.012.*)
12602 # We only want to do this on AIX 4.2 and lower, the check
12603 # below for broken collect2 doesn't work under 4.3+
12604 collect2name=`${CC} -print-prog-name=collect2`
12605 if test -f "$collect2name" && \
12606 strings "$collect2name" | grep resolve_lib_name >/dev/null
12607 then
12608 # We have reworked collect2
12609 hardcode_direct=yes
12610 else
12611 # We have old collect2
12612 hardcode_direct=unsupported
12613 # It fails to find uninstalled libraries when the uninstalled
12614 # path is not listed in the libpath. Setting hardcode_minus_L
12615 # to unsupported forces relinking
12616 hardcode_minus_L=yes
12617 hardcode_libdir_flag_spec='-L$libdir'
12618 hardcode_libdir_separator=
12619 fi
12620 esac
12621 shared_flag='-shared'
12622 else
12623 # not using gcc
12624 if test "$host_cpu" = ia64; then
12625 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12626 # chokes on -Wl,-G. The following line is correct:
12627 shared_flag='-G'
12628 else
12629 if test "$aix_use_runtimelinking" = yes; then
12630 shared_flag='${wl}-G'
12631 else
12632 shared_flag='${wl}-bM:SRE'
12633 fi
12634 fi
12635 fi
12636
12637 # It seems that -bexpall does not export symbols beginning with
12638 # underscore (_), so it is better to generate a list of symbols to export.
12639 always_export_symbols=yes
12640 if test "$aix_use_runtimelinking" = yes; then
12641 # Warning - without using the other runtime loading flags (-brtl),
12642 # -berok will link without error, but may produce a broken library.
12643 allow_undefined_flag='-berok'
12644 # Determine the default libpath from the value encoded in an empty executable.
12645 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012646/* confdefs.h. */
12647_ACEOF
12648cat confdefs.h >>conftest.$ac_ext
12649cat >>conftest.$ac_ext <<_ACEOF
12650/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012651
John Criswell7a73b802003-06-30 21:59:07 +000012652int
12653main ()
12654{
John Criswell47fdd832003-07-14 16:52:07 +000012655
John Criswell7a73b802003-06-30 21:59:07 +000012656 ;
12657 return 0;
12658}
12659_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012660rm -f conftest.$ac_objext conftest$ac_exeext
12661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012662 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012664 grep -v '^ *+' conftest.er1 >conftest.err
12665 rm -f conftest.er1
12666 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012669 { ac_try='test -z "$ac_c_werror_flag"
12670 || test ! -s conftest.err'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12673 ac_status=$?
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; } &&
12676 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12679 ac_status=$?
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012682
John Criswell47fdd832003-07-14 16:52:07 +000012683aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12684}'`
12685# Check for a 64-bit object if we didn't find anything.
12686if 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; }
12687}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012688else
12689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012690sed 's/^/| /' conftest.$ac_ext >&5
12691
John Criswell7a73b802003-06-30 21:59:07 +000012692fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012693rm -f conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012695if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012696
John Criswell47fdd832003-07-14 16:52:07 +000012697 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12698 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"
12699 else
12700 if test "$host_cpu" = ia64; then
12701 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12702 allow_undefined_flag="-z nodefs"
12703 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"
12704 else
12705 # Determine the default libpath from the value encoded in an empty executable.
12706 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012707/* confdefs.h. */
12708_ACEOF
12709cat confdefs.h >>conftest.$ac_ext
12710cat >>conftest.$ac_ext <<_ACEOF
12711/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012712
John Criswell47fdd832003-07-14 16:52:07 +000012713int
12714main ()
12715{
John Criswell7a73b802003-06-30 21:59:07 +000012716
John Criswell47fdd832003-07-14 16:52:07 +000012717 ;
12718 return 0;
12719}
12720_ACEOF
12721rm -f conftest.$ac_objext conftest$ac_exeext
12722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012723 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012724 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012725 grep -v '^ *+' conftest.er1 >conftest.err
12726 rm -f conftest.er1
12727 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012730 { ac_try='test -z "$ac_c_werror_flag"
12731 || test ! -s conftest.err'
12732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12733 (eval $ac_try) 2>&5
12734 ac_status=$?
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); }; } &&
12737 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012743
John Criswell47fdd832003-07-14 16:52:07 +000012744aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12745}'`
12746# Check for a 64-bit object if we didn't find anything.
12747if 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; }
12748}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012749else
John Criswell47fdd832003-07-14 16:52:07 +000012750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012751sed 's/^/| /' conftest.$ac_ext >&5
12752
John Criswell47fdd832003-07-14 16:52:07 +000012753fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012754rm -f conftest.err conftest.$ac_objext \
12755 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012756if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012757
John Criswell47fdd832003-07-14 16:52:07 +000012758 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12759 # Warning - without using the other run time loading flags,
12760 # -berok will link without error, but may produce a broken library.
12761 no_undefined_flag=' ${wl}-bernotok'
12762 allow_undefined_flag=' ${wl}-berok'
12763 # -bexpall does not export symbols beginning with underscore (_)
12764 always_export_symbols=yes
12765 # Exported symbols can be pulled into shared objects from archives
12766 whole_archive_flag_spec=' '
12767 archive_cmds_need_lc=yes
12768 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012769 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 +000012770 fi
12771 fi
John Criswell7a73b802003-06-30 21:59:07 +000012772 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012773
12774 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012775 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 +000012776 hardcode_libdir_flag_spec='-L$libdir'
12777 hardcode_minus_L=yes
12778 # see comment about different semantics on the GNU ld section
12779 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012780 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012781
Reid Spencer2706f8c2004-09-19 23:53:36 +000012782 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012783 export_dynamic_flag_spec=-rdynamic
12784 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012785
John Criswell47fdd832003-07-14 16:52:07 +000012786 cygwin* | mingw* | pw32*)
12787 # When not using gcc, we currently assume that we are using
12788 # Microsoft Visual C++.
12789 # hardcode_libdir_flag_spec is actually meaningless, as there is
12790 # no search path for DLLs.
12791 hardcode_libdir_flag_spec=' '
12792 allow_undefined_flag=unsupported
12793 # Tell ltmain to make .lib files, not .a files.
12794 libext=lib
12795 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012796 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012797 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012798 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012799 # The linker will automatically build a .lib file if we build a DLL.
12800 old_archive_From_new_cmds='true'
12801 # FIXME: Should let the user specify the lib program.
12802 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12803 fix_srcfile_path='`cygpath -w "$srcfile"`'
12804 enable_shared_with_static_runtimes=yes
12805 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012806
John Criswell47fdd832003-07-14 16:52:07 +000012807 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012808 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012809 rhapsody* | darwin1.[012])
12810 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12811 ;;
12812 *) # Darwin 1.3 on
12813 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12814 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12815 else
12816 case ${MACOSX_DEPLOYMENT_TARGET} in
12817 10.[012])
12818 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12819 ;;
12820 10.*)
12821 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12822 ;;
12823 esac
12824 fi
12825 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012826 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012827 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012828 hardcode_direct=no
12829 hardcode_automatic=yes
12830 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012831 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012832 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012833 if test "$GCC" = yes ; then
12834 output_verbose_link_cmd='echo'
12835 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12836 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12837 # 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 +000012838 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}'
12839 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 +000012840 else
12841 case "$cc_basename" in
12842 xlc*)
12843 output_verbose_link_cmd='echo'
12844 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12845 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12846 # 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 +000012847 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}'
12848 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 +000012849 ;;
12850 *)
12851 ld_shlibs=no
12852 ;;
12853 esac
John Criswell7a73b802003-06-30 21:59:07 +000012854 fi
John Criswell47fdd832003-07-14 16:52:07 +000012855 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012856
John Criswell47fdd832003-07-14 16:52:07 +000012857 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012859 hardcode_libdir_flag_spec='-L$libdir'
12860 hardcode_shlibpath_var=no
12861 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012862
John Criswell47fdd832003-07-14 16:52:07 +000012863 freebsd1*)
12864 ld_shlibs=no
12865 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012866
John Criswell47fdd832003-07-14 16:52:07 +000012867 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12868 # support. Future versions do this automatically, but an explicit c++rt0.o
12869 # does not break anything, and helps significantly (at the cost of a little
12870 # extra space).
12871 freebsd2.2*)
12872 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12873 hardcode_libdir_flag_spec='-R$libdir'
12874 hardcode_direct=yes
12875 hardcode_shlibpath_var=no
12876 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012877
John Criswell47fdd832003-07-14 16:52:07 +000012878 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12879 freebsd2*)
12880 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12881 hardcode_direct=yes
12882 hardcode_minus_L=yes
12883 hardcode_shlibpath_var=no
12884 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012885
John Criswell47fdd832003-07-14 16:52:07 +000012886 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012887 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012888 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12889 hardcode_libdir_flag_spec='-R$libdir'
12890 hardcode_direct=yes
12891 hardcode_shlibpath_var=no
12892 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012893
John Criswell47fdd832003-07-14 16:52:07 +000012894 hpux9*)
12895 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012896 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 +000012897 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012898 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 +000012899 fi
12900 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12901 hardcode_libdir_separator=:
12902 hardcode_direct=yes
12903
12904 # hardcode_minus_L: Not really in the search PATH,
12905 # but as the default location of the library.
12906 hardcode_minus_L=yes
12907 export_dynamic_flag_spec='${wl}-E'
12908 ;;
12909
12910 hpux10* | hpux11*)
12911 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12912 case "$host_cpu" in
12913 hppa*64*|ia64*)
12914 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12915 ;;
12916 *)
12917 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12918 ;;
12919 esac
12920 else
12921 case "$host_cpu" in
12922 hppa*64*|ia64*)
12923 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12924 ;;
12925 *)
12926 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12927 ;;
12928 esac
12929 fi
12930 if test "$with_gnu_ld" = no; then
12931 case "$host_cpu" in
12932 hppa*64*)
12933 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12934 hardcode_libdir_flag_spec_ld='+b $libdir'
12935 hardcode_libdir_separator=:
12936 hardcode_direct=no
12937 hardcode_shlibpath_var=no
12938 ;;
12939 ia64*)
12940 hardcode_libdir_flag_spec='-L$libdir'
12941 hardcode_direct=no
12942 hardcode_shlibpath_var=no
12943
12944 # hardcode_minus_L: Not really in the search PATH,
12945 # but as the default location of the library.
12946 hardcode_minus_L=yes
12947 ;;
12948 *)
12949 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12950 hardcode_libdir_separator=:
12951 hardcode_direct=yes
12952 export_dynamic_flag_spec='${wl}-E'
12953
12954 # hardcode_minus_L: Not really in the search PATH,
12955 # but as the default location of the library.
12956 hardcode_minus_L=yes
12957 ;;
12958 esac
12959 fi
12960 ;;
12961
12962 irix5* | irix6* | nonstopux*)
12963 if test "$GCC" = yes; then
12964 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'
12965 else
12966 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'
12967 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12968 fi
12969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12970 hardcode_libdir_separator=:
12971 link_all_deplibs=yes
12972 ;;
12973
12974 netbsd*)
12975 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12977 else
12978 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12979 fi
12980 hardcode_libdir_flag_spec='-R$libdir'
12981 hardcode_direct=yes
12982 hardcode_shlibpath_var=no
12983 ;;
12984
12985 newsos6)
12986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12987 hardcode_direct=yes
12988 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12989 hardcode_libdir_separator=:
12990 hardcode_shlibpath_var=no
12991 ;;
12992
12993 openbsd*)
12994 hardcode_direct=yes
12995 hardcode_shlibpath_var=no
12996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12997 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012998 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 +000012999 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13000 export_dynamic_flag_spec='${wl}-E'
13001 else
13002 case $host_os in
13003 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13004 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13005 hardcode_libdir_flag_spec='-R$libdir'
13006 ;;
13007 *)
13008 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13009 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13010 ;;
13011 esac
13012 fi
13013 ;;
13014
13015 os2*)
13016 hardcode_libdir_flag_spec='-L$libdir'
13017 hardcode_minus_L=yes
13018 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000013019 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 +000013020 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13021 ;;
13022
13023 osf3*)
13024 if test "$GCC" = yes; then
13025 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13026 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'
13027 else
13028 allow_undefined_flag=' -expect_unresolved \*'
13029 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'
13030 fi
13031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13032 hardcode_libdir_separator=:
13033 ;;
13034
13035 osf4* | osf5*) # as osf3* with the addition of -msym flag
13036 if test "$GCC" = yes; then
13037 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13038 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'
13039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13040 else
13041 allow_undefined_flag=' -expect_unresolved \*'
13042 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 +000013043 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13044 $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'
13045
John Criswell47fdd832003-07-14 16:52:07 +000013046 # Both c and cxx compiler support -rpath directly
13047 hardcode_libdir_flag_spec='-rpath $libdir'
13048 fi
13049 hardcode_libdir_separator=:
13050 ;;
13051
13052 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000013053 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13054 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000013055 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000013056 runpath_var=LD_RUN_PATH
13057 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000013058 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013059
John Criswell47fdd832003-07-14 16:52:07 +000013060 solaris*)
13061 no_undefined_flag=' -z text'
13062 if test "$GCC" = yes; then
13063 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013064 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13065 $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 +000013066 else
13067 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013068 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13069 $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 +000013070 fi
13071 hardcode_libdir_flag_spec='-R$libdir'
13072 hardcode_shlibpath_var=no
13073 case $host_os in
13074 solaris2.[0-5] | solaris2.[0-5].*) ;;
13075 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13076 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13077 esac
13078 link_all_deplibs=yes
13079 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013080
John Criswell47fdd832003-07-14 16:52:07 +000013081 sunos4*)
13082 if test "x$host_vendor" = xsequent; then
13083 # Use $CC to link under sequent, because it throws in some extra .o
13084 # files that make .init and .fini sections work.
13085 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13086 else
13087 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13088 fi
13089 hardcode_libdir_flag_spec='-L$libdir'
13090 hardcode_direct=yes
13091 hardcode_minus_L=yes
13092 hardcode_shlibpath_var=no
13093 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013094
John Criswell47fdd832003-07-14 16:52:07 +000013095 sysv4)
13096 case $host_vendor in
13097 sni)
13098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13099 hardcode_direct=yes # is this really true???
13100 ;;
13101 siemens)
13102 ## LD is ld it makes a PLAMLIB
13103 ## CC just makes a GrossModule.
13104 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13105 reload_cmds='$CC -r -o $output$reload_objs'
13106 hardcode_direct=no
13107 ;;
13108 motorola)
13109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13110 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13111 ;;
13112 esac
13113 runpath_var='LD_RUN_PATH'
13114 hardcode_shlibpath_var=no
13115 ;;
13116
13117 sysv4.3*)
13118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13119 hardcode_shlibpath_var=no
13120 export_dynamic_flag_spec='-Bexport'
13121 ;;
13122
13123 sysv4*MP*)
13124 if test -d /usr/nec; then
13125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13126 hardcode_shlibpath_var=no
13127 runpath_var=LD_RUN_PATH
13128 hardcode_runpath_var=yes
13129 ld_shlibs=yes
13130 fi
13131 ;;
13132
13133 sysv4.2uw2*)
13134 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13135 hardcode_direct=yes
13136 hardcode_minus_L=no
13137 hardcode_shlibpath_var=no
13138 hardcode_runpath_var=yes
13139 runpath_var=LD_RUN_PATH
13140 ;;
13141
13142 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13143 no_undefined_flag='${wl}-z ${wl}text'
13144 if test "$GCC" = yes; then
13145 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13146 else
13147 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13148 fi
13149 runpath_var='LD_RUN_PATH'
13150 hardcode_shlibpath_var=no
13151 ;;
13152
13153 sysv5*)
13154 no_undefined_flag=' -z text'
13155 # $CC -shared without GNU ld will not create a library from C++
13156 # object files and a static libstdc++, better avoid it by now
13157 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013158 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13159 $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 +000013160 hardcode_libdir_flag_spec=
13161 hardcode_shlibpath_var=no
13162 runpath_var='LD_RUN_PATH'
13163 ;;
13164
13165 uts4*)
13166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13167 hardcode_libdir_flag_spec='-L$libdir'
13168 hardcode_shlibpath_var=no
13169 ;;
13170
13171 *)
13172 ld_shlibs=no
13173 ;;
13174 esac
13175 fi
13176
John Criswell7a73b802003-06-30 21:59:07 +000013177echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13178echo "${ECHO_T}$ld_shlibs" >&6
13179test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013180
John Criswell47fdd832003-07-14 16:52:07 +000013181variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13182if test "$GCC" = yes; then
13183 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13184fi
13185
13186#
13187# Do we need to explicitly link libc?
13188#
13189case "x$archive_cmds_need_lc" in
13190x|xyes)
13191 # Assume -lc should be added
13192 archive_cmds_need_lc=yes
13193
13194 if test "$enable_shared" = yes && test "$GCC" = yes; then
13195 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013196 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013197 # FIXME: we may have to deal with multi-command sequences.
13198 ;;
13199 '$CC '*)
13200 # Test whether the compiler implicitly links with -lc since on some
13201 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13202 # to ld, don't add -lc before -lgcc.
13203 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13204echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13205 $rm conftest*
13206 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13207
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } 2>conftest.err; then
13213 soname=conftest
13214 lib=conftest
13215 libobjs=conftest.$ac_objext
13216 deplibs=
13217 wl=$lt_prog_compiler_wl
13218 compiler_flags=-v
13219 linker_flags=-v
13220 verstring=
13221 output_objdir=.
13222 libname=conftest
13223 lt_save_allow_undefined_flag=$allow_undefined_flag
13224 allow_undefined_flag=
13225 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13226 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13227 ac_status=$?
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }
13230 then
13231 archive_cmds_need_lc=no
13232 else
13233 archive_cmds_need_lc=yes
13234 fi
13235 allow_undefined_flag=$lt_save_allow_undefined_flag
13236 else
13237 cat conftest.err 1>&5
13238 fi
13239 $rm conftest*
13240 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13241echo "${ECHO_T}$archive_cmds_need_lc" >&6
13242 ;;
13243 esac
13244 fi
13245 ;;
13246esac
13247
John Criswell7a73b802003-06-30 21:59:07 +000013248echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13249echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13250library_names_spec=
13251libname_spec='lib$name'
13252soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013253shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013254postinstall_cmds=
13255postuninstall_cmds=
13256finish_cmds=
13257finish_eval=
13258shlibpath_var=
13259shlibpath_overrides_runpath=unknown
13260version_type=none
13261dynamic_linker="$host_os ld.so"
13262sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013263if test "$GCC" = yes; then
13264 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13265 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13266 # if the path contains ";" then we assume it to be the separator
13267 # otherwise default to the standard path separator (i.e. ":") - it is
13268 # assumed that no part of a normal pathname contains ";" but that should
13269 # okay in the real world where ";" in dirpaths is itself problematic.
13270 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13271 else
13272 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13273 fi
13274else
13275 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13276fi
13277need_lib_prefix=unknown
13278hardcode_into_libs=no
13279
13280# when you set need_version to no, make sure it does not cause -set_version
13281# flags to be left without arguments
13282need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013283
13284case $host_os in
13285aix3*)
13286 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013287 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013288 shlibpath_var=LIBPATH
13289
John Criswell47fdd832003-07-14 16:52:07 +000013290 # AIX 3 has no versioning support, so we append a major version to the name.
13291 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013292 ;;
13293
13294aix4* | aix5*)
13295 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013296 need_lib_prefix=no
13297 need_version=no
13298 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013299 if test "$host_cpu" = ia64; then
13300 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013301 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013302 shlibpath_var=LD_LIBRARY_PATH
13303 else
13304 # With GCC up to 2.95.x, collect2 would create an import file
13305 # for dependence libraries. The import file would start with
13306 # the line `#! .'. This would cause the generated library to
13307 # depend on `.', always an invalid library. This was fixed in
13308 # development snapshots of GCC prior to 3.0.
13309 case $host_os in
13310 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013311 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13312 echo ' yes '
13313 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13314 :
13315 else
13316 can_build_shared=no
13317 fi
13318 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013319 esac
John Criswell47fdd832003-07-14 16:52:07 +000013320 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13321 # soname into executable. Probably we can add versioning support to
13322 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013323 if test "$aix_use_runtimelinking" = yes; then
13324 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13325 # instead of lib<name>.a to let people know that these are not
13326 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013328 else
13329 # We preserve .a as extension for shared libraries through AIX4.2
13330 # and later when we are not doing run time linking.
13331 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013332 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013333 fi
13334 shlibpath_var=LIBPATH
13335 fi
13336 ;;
13337
13338amigaos*)
13339 library_names_spec='$libname.ixlibrary $libname.a'
13340 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013341 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 +000013342 ;;
13343
13344beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013345 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013346 dynamic_linker="$host_os ld.so"
13347 shlibpath_var=LIBRARY_PATH
13348 ;;
13349
Reid Spencer2706f8c2004-09-19 23:53:36 +000013350bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013351 version_type=linux
13352 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13354 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013355 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13356 shlibpath_var=LD_LIBRARY_PATH
13357 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13358 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013359 # the default ld.so.conf also contains /usr/contrib/lib and
13360 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13361 # libtool to hard-code these into programs
13362 ;;
13363
13364cygwin* | mingw* | pw32*)
13365 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013366 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013367 need_version=no
13368 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013369
John Criswell7a73b802003-06-30 21:59:07 +000013370 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013371 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013372 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013373 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013374 postinstall_cmds='base_file=`basename \${file}`~
13375 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13376 dldir=$destdir/`dirname \$dlpath`~
13377 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013378 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013379 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13380 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013381 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013382 shlibpath_overrides_runpath=yes
13383
13384 case $host_os in
13385 cygwin*)
13386 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13387 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 +000013388 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013389 ;;
13390 mingw*)
13391 # MinGW DLLs use traditional 'lib' prefix
13392 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13393 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13394 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13395 # It is most probably a Windows format PATH printed by
13396 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13397 # path with ; separators, and with drive letters. We can handle the
13398 # drive letters (cygwin fileutils understands them), so leave them,
13399 # especially as we might pass files found there to a mingw objdump,
13400 # which wouldn't understand a cygwinified path. Ahh.
13401 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13402 else
13403 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13404 fi
13405 ;;
13406 pw32*)
13407 # pw32 DLLs use 'pw' prefix rather than 'lib'
13408 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13409 ;;
13410 esac
John Criswell7a73b802003-06-30 21:59:07 +000013411 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013412
John Criswell7a73b802003-06-30 21:59:07 +000013413 *)
John Criswell47fdd832003-07-14 16:52:07 +000013414 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013415 ;;
13416 esac
13417 dynamic_linker='Win32 ld.exe'
13418 # FIXME: first we should search . and the directory the executable is in
13419 shlibpath_var=PATH
13420 ;;
13421
13422darwin* | rhapsody*)
13423 dynamic_linker="$host_os dyld"
13424 version_type=darwin
13425 need_lib_prefix=no
13426 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013427 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013428 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013429 shlibpath_overrides_runpath=yes
13430 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013431 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013432 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013433 if test "$GCC" = yes; then
13434 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"`
13435 else
13436 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013437 fi
13438 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13439 ;;
13440
13441dgux*)
13442 version_type=linux
13443 need_lib_prefix=no
13444 need_version=no
13445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13446 soname_spec='${libname}${release}${shared_ext}$major'
13447 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013448 ;;
13449
13450freebsd1*)
13451 dynamic_linker=no
13452 ;;
13453
Reid Spencer2706f8c2004-09-19 23:53:36 +000013454kfreebsd*-gnu)
13455 version_type=linux
13456 need_lib_prefix=no
13457 need_version=no
13458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13459 soname_spec='${libname}${release}${shared_ext}$major'
13460 shlibpath_var=LD_LIBRARY_PATH
13461 shlibpath_overrides_runpath=no
13462 hardcode_into_libs=yes
13463 dynamic_linker='GNU ld.so'
13464 ;;
13465
John Criswell7a73b802003-06-30 21:59:07 +000013466freebsd*)
13467 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13468 version_type=freebsd-$objformat
13469 case $version_type in
13470 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013472 need_version=no
13473 need_lib_prefix=no
13474 ;;
13475 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013477 need_version=yes
13478 ;;
13479 esac
13480 shlibpath_var=LD_LIBRARY_PATH
13481 case $host_os in
13482 freebsd2*)
13483 shlibpath_overrides_runpath=yes
13484 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013485 freebsd3.01* | freebsdelf3.01*)
13486 shlibpath_overrides_runpath=yes
13487 hardcode_into_libs=yes
13488 ;;
13489 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013490 shlibpath_overrides_runpath=no
13491 hardcode_into_libs=yes
13492 ;;
13493 esac
13494 ;;
13495
13496gnu*)
13497 version_type=linux
13498 need_lib_prefix=no
13499 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13501 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013502 shlibpath_var=LD_LIBRARY_PATH
13503 hardcode_into_libs=yes
13504 ;;
13505
13506hpux9* | hpux10* | hpux11*)
13507 # Give a soname corresponding to the major version so that dld.sl refuses to
13508 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013509 version_type=sunos
13510 need_lib_prefix=no
13511 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013512 case "$host_cpu" in
13513 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013514 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013515 hardcode_into_libs=yes
13516 dynamic_linker="$host_os dld.so"
13517 shlibpath_var=LD_LIBRARY_PATH
13518 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13520 soname_spec='${libname}${release}${shared_ext}$major'
13521 if test "X$HPUX_IA64_MODE" = X32; then
13522 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13523 else
13524 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13525 fi
13526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13527 ;;
13528 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013529 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013530 hardcode_into_libs=yes
13531 dynamic_linker="$host_os dld.sl"
13532 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13533 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13535 soname_spec='${libname}${release}${shared_ext}$major'
13536 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13537 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13538 ;;
13539 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013540 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013541 dynamic_linker="$host_os dld.sl"
13542 shlibpath_var=SHLIB_PATH
13543 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13545 soname_spec='${libname}${release}${shared_ext}$major'
13546 ;;
13547 esac
John Criswell7a73b802003-06-30 21:59:07 +000013548 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13549 postinstall_cmds='chmod 555 $lib'
13550 ;;
13551
John Criswell47fdd832003-07-14 16:52:07 +000013552irix5* | irix6* | nonstopux*)
13553 case $host_os in
13554 nonstopux*) version_type=nonstopux ;;
13555 *)
13556 if test "$lt_cv_prog_gnu_ld" = yes; then
13557 version_type=linux
13558 else
13559 version_type=irix
13560 fi ;;
13561 esac
John Criswell7a73b802003-06-30 21:59:07 +000013562 need_lib_prefix=no
13563 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013564 soname_spec='${libname}${release}${shared_ext}$major'
13565 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 +000013566 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013567 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013568 libsuff= shlibsuff=
13569 ;;
13570 *)
13571 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013572 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13573 libsuff= shlibsuff= libmagic=32-bit;;
13574 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13575 libsuff=32 shlibsuff=N32 libmagic=N32;;
13576 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13577 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013578 *) libsuff= shlibsuff= libmagic=never-match;;
13579 esac
13580 ;;
13581 esac
13582 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13583 shlibpath_overrides_runpath=no
13584 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13585 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013586 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013587 ;;
13588
13589# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013590linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013591 dynamic_linker=no
13592 ;;
13593
13594# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013595linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013596 version_type=linux
13597 need_lib_prefix=no
13598 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13600 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13602 shlibpath_var=LD_LIBRARY_PATH
13603 shlibpath_overrides_runpath=no
13604 # This implies no fast_install, which is unacceptable.
13605 # Some rework will be needed to allow for fast_install
13606 # before this can be enabled.
13607 hardcode_into_libs=yes
13608
Reid Spencer2706f8c2004-09-19 23:53:36 +000013609 # Append ld.so.conf contents to the search path
13610 if test -f /etc/ld.so.conf; then
13611 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13612 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13613 fi
13614
John Criswell7a73b802003-06-30 21:59:07 +000013615 # We used to test for /lib/ld.so.1 and disable shared libraries on
13616 # powerpc, because MkLinux only supported shared libraries with the
13617 # GNU dynamic linker. Since this was broken with cross compilers,
13618 # most powerpc-linux boxes support dynamic linking these days and
13619 # people can always --disable-shared, the test was removed, and we
13620 # assume the GNU/Linux dynamic linker is in use.
13621 dynamic_linker='GNU/Linux ld.so'
13622 ;;
13623
Reid Spencer2706f8c2004-09-19 23:53:36 +000013624knetbsd*-gnu)
13625 version_type=linux
13626 need_lib_prefix=no
13627 need_version=no
13628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13629 soname_spec='${libname}${release}${shared_ext}$major'
13630 shlibpath_var=LD_LIBRARY_PATH
13631 shlibpath_overrides_runpath=no
13632 hardcode_into_libs=yes
13633 dynamic_linker='GNU ld.so'
13634 ;;
13635
John Criswell7a73b802003-06-30 21:59:07 +000013636netbsd*)
13637 version_type=sunos
13638 need_lib_prefix=no
13639 need_version=no
13640 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013642 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13643 dynamic_linker='NetBSD (a.out) ld.so'
13644 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013646 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013647 dynamic_linker='NetBSD ld.elf_so'
13648 fi
13649 shlibpath_var=LD_LIBRARY_PATH
13650 shlibpath_overrides_runpath=yes
13651 hardcode_into_libs=yes
13652 ;;
13653
13654newsos6)
13655 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13657 shlibpath_var=LD_LIBRARY_PATH
13658 shlibpath_overrides_runpath=yes
13659 ;;
13660
Reid Spencer2706f8c2004-09-19 23:53:36 +000013661nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013662 version_type=linux
13663 need_lib_prefix=no
13664 need_version=no
13665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013667 shlibpath_var=LD_LIBRARY_PATH
13668 shlibpath_overrides_runpath=yes
13669 ;;
13670
13671openbsd*)
13672 version_type=sunos
13673 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013674 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13676 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13677 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013678 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 +000013679 case $host_os in
13680 openbsd2.[89] | openbsd2.[89].*)
13681 shlibpath_overrides_runpath=no
13682 ;;
13683 *)
13684 shlibpath_overrides_runpath=yes
13685 ;;
13686 esac
John Criswell7a73b802003-06-30 21:59:07 +000013687 else
13688 shlibpath_overrides_runpath=yes
13689 fi
John Criswell7a73b802003-06-30 21:59:07 +000013690 ;;
13691
13692os2*)
13693 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013694 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013695 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013696 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013697 dynamic_linker='OS/2 ld.exe'
13698 shlibpath_var=LIBPATH
13699 ;;
13700
13701osf3* | osf4* | osf5*)
13702 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013703 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013704 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013705 soname_spec='${libname}${release}${shared_ext}$major'
13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013707 shlibpath_var=LD_LIBRARY_PATH
13708 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13709 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13710 ;;
13711
13712sco3.2v5*)
13713 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013714 soname_spec='${libname}${release}${shared_ext}$major'
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013716 shlibpath_var=LD_LIBRARY_PATH
13717 ;;
13718
13719solaris*)
13720 version_type=linux
13721 need_lib_prefix=no
13722 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13724 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013725 shlibpath_var=LD_LIBRARY_PATH
13726 shlibpath_overrides_runpath=yes
13727 hardcode_into_libs=yes
13728 # ldd complains unless libraries are executable
13729 postinstall_cmds='chmod +x $lib'
13730 ;;
13731
13732sunos4*)
13733 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013735 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 shlibpath_overrides_runpath=yes
13738 if test "$with_gnu_ld" = yes; then
13739 need_lib_prefix=no
13740 fi
13741 need_version=yes
13742 ;;
13743
13744sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13745 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013748 shlibpath_var=LD_LIBRARY_PATH
13749 case $host_vendor in
13750 sni)
13751 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013752 need_lib_prefix=no
13753 export_dynamic_flag_spec='${wl}-Blargedynsym'
13754 runpath_var=LD_RUN_PATH
13755 ;;
13756 siemens)
13757 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013758 ;;
13759 motorola)
13760 need_lib_prefix=no
13761 need_version=no
13762 shlibpath_overrides_runpath=no
13763 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13764 ;;
13765 esac
13766 ;;
13767
John Criswell7a73b802003-06-30 21:59:07 +000013768sysv4*MP*)
13769 if test -d /usr/nec ;then
13770 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013771 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13772 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013773 shlibpath_var=LD_LIBRARY_PATH
13774 fi
13775 ;;
13776
John Criswell47fdd832003-07-14 16:52:07 +000013777uts4*)
13778 version_type=linux
13779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780 soname_spec='${libname}${release}${shared_ext}$major'
13781 shlibpath_var=LD_LIBRARY_PATH
13782 ;;
13783
John Criswell7a73b802003-06-30 21:59:07 +000013784*)
13785 dynamic_linker=no
13786 ;;
13787esac
13788echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13789echo "${ECHO_T}$dynamic_linker" >&6
13790test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013791
Reid Spencer2706f8c2004-09-19 23:53:36 +000013792echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13793echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13794hardcode_action=
13795if test -n "$hardcode_libdir_flag_spec" || \
13796 test -n "$runpath_var" || \
13797 test "X$hardcode_automatic" = "Xyes" ; then
13798
13799 # We can hardcode non-existant directories.
13800 if test "$hardcode_direct" != no &&
13801 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13802 # have to relink, otherwise we might link with an installed library
13803 # when we should be linking with a yet-to-be-installed one
13804 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13805 test "$hardcode_minus_L" != no; then
13806 # Linking always hardcodes the temporary library directory.
13807 hardcode_action=relink
13808 else
13809 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13810 hardcode_action=immediate
13811 fi
13812else
13813 # We cannot hardcode anything, or else we can only hardcode existing
13814 # directories.
13815 hardcode_action=unsupported
13816fi
13817echo "$as_me:$LINENO: result: $hardcode_action" >&5
13818echo "${ECHO_T}$hardcode_action" >&6
13819
13820if test "$hardcode_action" = relink; then
13821 # Fast installation is not supported
13822 enable_fast_install=no
13823elif test "$shlibpath_overrides_runpath" = yes ||
13824 test "$enable_shared" = no; then
13825 # Fast installation is not necessary
13826 enable_fast_install=needless
13827fi
13828
13829striplib=
13830old_striplib=
13831echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13832echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13833if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13834 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13835 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13836 echo "$as_me:$LINENO: result: yes" >&5
13837echo "${ECHO_T}yes" >&6
13838else
13839# FIXME - insert some real tests, host_os isn't really good enough
13840 case $host_os in
13841 darwin*)
13842 if test -n "$STRIP" ; then
13843 striplib="$STRIP -x"
13844 echo "$as_me:$LINENO: result: yes" >&5
13845echo "${ECHO_T}yes" >&6
13846 else
13847 echo "$as_me:$LINENO: result: no" >&5
13848echo "${ECHO_T}no" >&6
13849fi
13850 ;;
13851 *)
13852 echo "$as_me:$LINENO: result: no" >&5
13853echo "${ECHO_T}no" >&6
13854 ;;
13855 esac
13856fi
13857
John Criswell7a73b802003-06-30 21:59:07 +000013858if test "x$enable_dlopen" != xyes; then
13859 enable_dlopen=unknown
13860 enable_dlopen_self=unknown
13861 enable_dlopen_self_static=unknown
13862else
13863 lt_cv_dlopen=no
13864 lt_cv_dlopen_libs=
13865
13866 case $host_os in
13867 beos*)
13868 lt_cv_dlopen="load_add_on"
13869 lt_cv_dlopen_libs=
13870 lt_cv_dlopen_self=yes
13871 ;;
13872
John Criswell47fdd832003-07-14 16:52:07 +000013873 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013874 lt_cv_dlopen="LoadLibrary"
13875 lt_cv_dlopen_libs=
13876 ;;
13877
John Criswell47fdd832003-07-14 16:52:07 +000013878 cygwin*)
13879 lt_cv_dlopen="dlopen"
13880 lt_cv_dlopen_libs=
13881 ;;
13882
13883 darwin*)
13884 # if libdl is installed we need to link against it
13885 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13886echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13887if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13889else
13890 ac_check_lib_save_LIBS=$LIBS
13891LIBS="-ldl $LIBS"
13892cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013893/* confdefs.h. */
13894_ACEOF
13895cat confdefs.h >>conftest.$ac_ext
13896cat >>conftest.$ac_ext <<_ACEOF
13897/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013898
13899/* Override any gcc2 internal prototype to avoid an error. */
13900#ifdef __cplusplus
13901extern "C"
13902#endif
13903/* We use char because int might match the return type of a gcc2
13904 builtin and then its argument prototype would still apply. */
13905char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013906int
13907main ()
13908{
13909dlopen ();
13910 ;
13911 return 0;
13912}
13913_ACEOF
13914rm -f conftest.$ac_objext conftest$ac_exeext
13915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013916 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013917 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013918 grep -v '^ *+' conftest.er1 >conftest.err
13919 rm -f conftest.er1
13920 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013923 { ac_try='test -z "$ac_c_werror_flag"
13924 || test ! -s conftest.err'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; } &&
13930 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13936 ac_cv_lib_dl_dlopen=yes
13937else
13938 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013939sed 's/^/| /' conftest.$ac_ext >&5
13940
John Criswell47fdd832003-07-14 16:52:07 +000013941ac_cv_lib_dl_dlopen=no
13942fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013943rm -f conftest.err conftest.$ac_objext \
13944 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013945LIBS=$ac_check_lib_save_LIBS
13946fi
13947echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13948echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13949if test $ac_cv_lib_dl_dlopen = yes; then
13950 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13951else
13952
13953 lt_cv_dlopen="dyld"
13954 lt_cv_dlopen_libs=
13955 lt_cv_dlopen_self=yes
13956
13957fi
13958
13959 ;;
13960
John Criswell7a73b802003-06-30 21:59:07 +000013961 *)
13962 echo "$as_me:$LINENO: checking for shl_load" >&5
13963echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13964if test "${ac_cv_func_shl_load+set}" = set; then
13965 echo $ECHO_N "(cached) $ECHO_C" >&6
13966else
13967 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013968/* confdefs.h. */
13969_ACEOF
13970cat confdefs.h >>conftest.$ac_ext
13971cat >>conftest.$ac_ext <<_ACEOF
13972/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013973/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13975#define shl_load innocuous_shl_load
13976
John Criswell7a73b802003-06-30 21:59:07 +000013977/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013978 which can conflict with char shl_load (); below.
13979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13980 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013981
John Criswell0c38eaf2003-09-10 15:17:25 +000013982#ifdef __STDC__
13983# include <limits.h>
13984#else
13985# include <assert.h>
13986#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013987
13988#undef shl_load
13989
John Criswell7a73b802003-06-30 21:59:07 +000013990/* Override any gcc2 internal prototype to avoid an error. */
13991#ifdef __cplusplus
13992extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013993{
John Criswell7a73b802003-06-30 21:59:07 +000013994#endif
13995/* We use char because int might match the return type of a gcc2
13996 builtin and then its argument prototype would still apply. */
13997char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013998/* The GNU C library defines this for functions which it implements
13999 to always fail with ENOSYS. Some functions are actually named
14000 something starting with __ and the normal name is an alias. */
14001#if defined (__stub_shl_load) || defined (__stub___shl_load)
14002choke me
14003#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014004char (*f) () = shl_load;
14005#endif
14006#ifdef __cplusplus
14007}
John Criswell7a73b802003-06-30 21:59:07 +000014008#endif
14009
John Criswell0c38eaf2003-09-10 15:17:25 +000014010int
14011main ()
14012{
14013return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000014014 ;
14015 return 0;
14016}
14017_ACEOF
14018rm -f conftest.$ac_objext conftest$ac_exeext
14019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014020 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014021 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014022 grep -v '^ *+' conftest.er1 >conftest.err
14023 rm -f conftest.er1
14024 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014027 { ac_try='test -z "$ac_c_werror_flag"
14028 || test ! -s conftest.err'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14031 ac_status=$?
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; } &&
14034 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; }; then
14040 ac_cv_func_shl_load=yes
14041else
14042 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014043sed 's/^/| /' conftest.$ac_ext >&5
14044
John Criswell7a73b802003-06-30 21:59:07 +000014045ac_cv_func_shl_load=no
14046fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014047rm -f conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014049fi
14050echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14051echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14052if test $ac_cv_func_shl_load = yes; then
14053 lt_cv_dlopen="shl_load"
14054else
14055 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14056echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14057if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059else
14060 ac_check_lib_save_LIBS=$LIBS
14061LIBS="-ldld $LIBS"
14062cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014063/* confdefs.h. */
14064_ACEOF
14065cat confdefs.h >>conftest.$ac_ext
14066cat >>conftest.$ac_ext <<_ACEOF
14067/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014068
14069/* Override any gcc2 internal prototype to avoid an error. */
14070#ifdef __cplusplus
14071extern "C"
14072#endif
14073/* We use char because int might match the return type of a gcc2
14074 builtin and then its argument prototype would still apply. */
14075char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014076int
14077main ()
14078{
14079shl_load ();
14080 ;
14081 return 0;
14082}
14083_ACEOF
14084rm -f conftest.$ac_objext conftest$ac_exeext
14085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014086 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014087 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014088 grep -v '^ *+' conftest.er1 >conftest.err
14089 rm -f conftest.er1
14090 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014093 { ac_try='test -z "$ac_c_werror_flag"
14094 || test ! -s conftest.err'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14097 ac_status=$?
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; } &&
14100 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14103 ac_status=$?
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; }; then
14106 ac_cv_lib_dld_shl_load=yes
14107else
14108 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014109sed 's/^/| /' conftest.$ac_ext >&5
14110
John Criswell7a73b802003-06-30 21:59:07 +000014111ac_cv_lib_dld_shl_load=no
14112fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014113rm -f conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014115LIBS=$ac_check_lib_save_LIBS
14116fi
14117echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14118echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14119if test $ac_cv_lib_dld_shl_load = yes; then
14120 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14121else
14122 echo "$as_me:$LINENO: checking for dlopen" >&5
14123echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14124if test "${ac_cv_func_dlopen+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14126else
14127 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014128/* confdefs.h. */
14129_ACEOF
14130cat confdefs.h >>conftest.$ac_ext
14131cat >>conftest.$ac_ext <<_ACEOF
14132/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014133/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14135#define dlopen innocuous_dlopen
14136
John Criswell7a73b802003-06-30 21:59:07 +000014137/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014138 which can conflict with char dlopen (); below.
14139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14140 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014141
John Criswell0c38eaf2003-09-10 15:17:25 +000014142#ifdef __STDC__
14143# include <limits.h>
14144#else
14145# include <assert.h>
14146#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014147
14148#undef dlopen
14149
John Criswell7a73b802003-06-30 21:59:07 +000014150/* Override any gcc2 internal prototype to avoid an error. */
14151#ifdef __cplusplus
14152extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014153{
John Criswell7a73b802003-06-30 21:59:07 +000014154#endif
14155/* We use char because int might match the return type of a gcc2
14156 builtin and then its argument prototype would still apply. */
14157char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014158/* The GNU C library defines this for functions which it implements
14159 to always fail with ENOSYS. Some functions are actually named
14160 something starting with __ and the normal name is an alias. */
14161#if defined (__stub_dlopen) || defined (__stub___dlopen)
14162choke me
14163#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014164char (*f) () = dlopen;
14165#endif
14166#ifdef __cplusplus
14167}
John Criswell7a73b802003-06-30 21:59:07 +000014168#endif
14169
John Criswell0c38eaf2003-09-10 15:17:25 +000014170int
14171main ()
14172{
14173return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014174 ;
14175 return 0;
14176}
14177_ACEOF
14178rm -f conftest.$ac_objext conftest$ac_exeext
14179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014180 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014181 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014187 { ac_try='test -z "$ac_c_werror_flag"
14188 || test ! -s conftest.err'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14191 ac_status=$?
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; } &&
14194 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 ac_cv_func_dlopen=yes
14201else
14202 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014203sed 's/^/| /' conftest.$ac_ext >&5
14204
John Criswell7a73b802003-06-30 21:59:07 +000014205ac_cv_func_dlopen=no
14206fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014207rm -f conftest.err conftest.$ac_objext \
14208 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014209fi
14210echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14211echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14212if test $ac_cv_func_dlopen = yes; then
14213 lt_cv_dlopen="dlopen"
14214else
14215 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14216echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14217if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219else
14220 ac_check_lib_save_LIBS=$LIBS
14221LIBS="-ldl $LIBS"
14222cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014223/* confdefs.h. */
14224_ACEOF
14225cat confdefs.h >>conftest.$ac_ext
14226cat >>conftest.$ac_ext <<_ACEOF
14227/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014228
14229/* Override any gcc2 internal prototype to avoid an error. */
14230#ifdef __cplusplus
14231extern "C"
14232#endif
14233/* We use char because int might match the return type of a gcc2
14234 builtin and then its argument prototype would still apply. */
14235char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014236int
14237main ()
14238{
14239dlopen ();
14240 ;
14241 return 0;
14242}
14243_ACEOF
14244rm -f conftest.$ac_objext conftest$ac_exeext
14245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014246 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014247 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014248 grep -v '^ *+' conftest.er1 >conftest.err
14249 rm -f conftest.er1
14250 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014253 { ac_try='test -z "$ac_c_werror_flag"
14254 || test ! -s conftest.err'
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; } &&
14260 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 ac_cv_lib_dl_dlopen=yes
14267else
14268 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014269sed 's/^/| /' conftest.$ac_ext >&5
14270
John Criswell7a73b802003-06-30 21:59:07 +000014271ac_cv_lib_dl_dlopen=no
14272fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014273rm -f conftest.err conftest.$ac_objext \
14274 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014275LIBS=$ac_check_lib_save_LIBS
14276fi
14277echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14278echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14279if test $ac_cv_lib_dl_dlopen = yes; then
14280 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14281else
14282 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14283echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14284if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286else
14287 ac_check_lib_save_LIBS=$LIBS
14288LIBS="-lsvld $LIBS"
14289cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014290/* confdefs.h. */
14291_ACEOF
14292cat confdefs.h >>conftest.$ac_ext
14293cat >>conftest.$ac_ext <<_ACEOF
14294/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014295
14296/* Override any gcc2 internal prototype to avoid an error. */
14297#ifdef __cplusplus
14298extern "C"
14299#endif
14300/* We use char because int might match the return type of a gcc2
14301 builtin and then its argument prototype would still apply. */
14302char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014303int
14304main ()
14305{
14306dlopen ();
14307 ;
14308 return 0;
14309}
14310_ACEOF
14311rm -f conftest.$ac_objext conftest$ac_exeext
14312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014313 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014314 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014315 grep -v '^ *+' conftest.er1 >conftest.err
14316 rm -f conftest.er1
14317 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014320 { ac_try='test -z "$ac_c_werror_flag"
14321 || test ! -s conftest.err'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; } &&
14327 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329 (eval $ac_try) 2>&5
14330 ac_status=$?
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); }; }; then
14333 ac_cv_lib_svld_dlopen=yes
14334else
14335 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014336sed 's/^/| /' conftest.$ac_ext >&5
14337
John Criswell7a73b802003-06-30 21:59:07 +000014338ac_cv_lib_svld_dlopen=no
14339fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014340rm -f conftest.err conftest.$ac_objext \
14341 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014342LIBS=$ac_check_lib_save_LIBS
14343fi
14344echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14345echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14346if test $ac_cv_lib_svld_dlopen = yes; then
14347 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14348else
14349 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14350echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14351if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14353else
14354 ac_check_lib_save_LIBS=$LIBS
14355LIBS="-ldld $LIBS"
14356cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014357/* confdefs.h. */
14358_ACEOF
14359cat confdefs.h >>conftest.$ac_ext
14360cat >>conftest.$ac_ext <<_ACEOF
14361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014362
14363/* Override any gcc2 internal prototype to avoid an error. */
14364#ifdef __cplusplus
14365extern "C"
14366#endif
14367/* We use char because int might match the return type of a gcc2
14368 builtin and then its argument prototype would still apply. */
14369char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014370int
14371main ()
14372{
14373dld_link ();
14374 ;
14375 return 0;
14376}
14377_ACEOF
14378rm -f conftest.$ac_objext conftest$ac_exeext
14379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014380 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014382 grep -v '^ *+' conftest.er1 >conftest.err
14383 rm -f conftest.er1
14384 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014387 { ac_try='test -z "$ac_c_werror_flag"
14388 || test ! -s conftest.err'
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; } &&
14394 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14396 (eval $ac_try) 2>&5
14397 ac_status=$?
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); }; }; then
14400 ac_cv_lib_dld_dld_link=yes
14401else
14402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014403sed 's/^/| /' conftest.$ac_ext >&5
14404
John Criswell7a73b802003-06-30 21:59:07 +000014405ac_cv_lib_dld_dld_link=no
14406fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014407rm -f conftest.err conftest.$ac_objext \
14408 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014409LIBS=$ac_check_lib_save_LIBS
14410fi
14411echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14412echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14413if test $ac_cv_lib_dld_dld_link = yes; then
14414 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14415fi
14416
14417
14418fi
14419
14420
14421fi
14422
14423
14424fi
14425
14426
14427fi
14428
14429
14430fi
14431
14432 ;;
14433 esac
14434
14435 if test "x$lt_cv_dlopen" != xno; then
14436 enable_dlopen=yes
14437 else
14438 enable_dlopen=no
14439 fi
14440
14441 case $lt_cv_dlopen in
14442 dlopen)
14443 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014444 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014445
14446 save_LDFLAGS="$LDFLAGS"
14447 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14448
14449 save_LIBS="$LIBS"
14450 LIBS="$lt_cv_dlopen_libs $LIBS"
14451
14452 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14453echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14454if test "${lt_cv_dlopen_self+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14456else
14457 if test "$cross_compiling" = yes; then :
14458 lt_cv_dlopen_self=cross
14459else
John Criswell47fdd832003-07-14 16:52:07 +000014460 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014461 lt_status=$lt_dlunknown
14462 cat > conftest.$ac_ext <<EOF
Reid Spencerb195d9d2006-03-23 23:21:29 +000014463#line 14463 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014464#include "confdefs.h"
14465
14466#if HAVE_DLFCN_H
14467#include <dlfcn.h>
14468#endif
14469
14470#include <stdio.h>
14471
14472#ifdef RTLD_GLOBAL
14473# define LT_DLGLOBAL RTLD_GLOBAL
14474#else
14475# ifdef DL_GLOBAL
14476# define LT_DLGLOBAL DL_GLOBAL
14477# else
14478# define LT_DLGLOBAL 0
14479# endif
14480#endif
14481
14482/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14483 find out it does not work in some platform. */
14484#ifndef LT_DLLAZY_OR_NOW
14485# ifdef RTLD_LAZY
14486# define LT_DLLAZY_OR_NOW RTLD_LAZY
14487# else
14488# ifdef DL_LAZY
14489# define LT_DLLAZY_OR_NOW DL_LAZY
14490# else
14491# ifdef RTLD_NOW
14492# define LT_DLLAZY_OR_NOW RTLD_NOW
14493# else
14494# ifdef DL_NOW
14495# define LT_DLLAZY_OR_NOW DL_NOW
14496# else
14497# define LT_DLLAZY_OR_NOW 0
14498# endif
14499# endif
14500# endif
14501# endif
14502#endif
14503
14504#ifdef __cplusplus
14505extern "C" void exit (int);
14506#endif
14507
14508void fnord() { int i=42;}
14509int main ()
14510{
14511 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14512 int status = $lt_dlunknown;
14513
14514 if (self)
14515 {
14516 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14517 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14518 /* dlclose (self); */
14519 }
14520
14521 exit (status);
14522}
14523EOF
14524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14525 (eval $ac_link) 2>&5
14526 ac_status=$?
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14529 (./conftest; exit; ) 2>/dev/null
14530 lt_status=$?
14531 case x$lt_status in
14532 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14533 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14534 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14535 esac
14536 else :
14537 # compilation failed
14538 lt_cv_dlopen_self=no
14539 fi
14540fi
14541rm -fr conftest*
14542
14543
14544fi
14545echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14546echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14547
14548 if test "x$lt_cv_dlopen_self" = xyes; then
14549 LDFLAGS="$LDFLAGS $link_static_flag"
14550 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14551echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14552if test "${lt_cv_dlopen_self_static+set}" = set; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
14554else
14555 if test "$cross_compiling" = yes; then :
14556 lt_cv_dlopen_self_static=cross
14557else
John Criswell47fdd832003-07-14 16:52:07 +000014558 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014559 lt_status=$lt_dlunknown
14560 cat > conftest.$ac_ext <<EOF
Reid Spencerb195d9d2006-03-23 23:21:29 +000014561#line 14561 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014562#include "confdefs.h"
14563
14564#if HAVE_DLFCN_H
14565#include <dlfcn.h>
14566#endif
14567
14568#include <stdio.h>
14569
14570#ifdef RTLD_GLOBAL
14571# define LT_DLGLOBAL RTLD_GLOBAL
14572#else
14573# ifdef DL_GLOBAL
14574# define LT_DLGLOBAL DL_GLOBAL
14575# else
14576# define LT_DLGLOBAL 0
14577# endif
14578#endif
14579
14580/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14581 find out it does not work in some platform. */
14582#ifndef LT_DLLAZY_OR_NOW
14583# ifdef RTLD_LAZY
14584# define LT_DLLAZY_OR_NOW RTLD_LAZY
14585# else
14586# ifdef DL_LAZY
14587# define LT_DLLAZY_OR_NOW DL_LAZY
14588# else
14589# ifdef RTLD_NOW
14590# define LT_DLLAZY_OR_NOW RTLD_NOW
14591# else
14592# ifdef DL_NOW
14593# define LT_DLLAZY_OR_NOW DL_NOW
14594# else
14595# define LT_DLLAZY_OR_NOW 0
14596# endif
14597# endif
14598# endif
14599# endif
14600#endif
14601
14602#ifdef __cplusplus
14603extern "C" void exit (int);
14604#endif
14605
14606void fnord() { int i=42;}
14607int main ()
14608{
14609 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14610 int status = $lt_dlunknown;
14611
14612 if (self)
14613 {
14614 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14615 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14616 /* dlclose (self); */
14617 }
14618
14619 exit (status);
14620}
14621EOF
14622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14623 (eval $ac_link) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14627 (./conftest; exit; ) 2>/dev/null
14628 lt_status=$?
14629 case x$lt_status in
14630 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14631 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14632 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14633 esac
14634 else :
14635 # compilation failed
14636 lt_cv_dlopen_self_static=no
14637 fi
14638fi
14639rm -fr conftest*
14640
14641
14642fi
14643echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14644echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14645 fi
14646
14647 CPPFLAGS="$save_CPPFLAGS"
14648 LDFLAGS="$save_LDFLAGS"
14649 LIBS="$save_LIBS"
14650 ;;
14651 esac
14652
14653 case $lt_cv_dlopen_self in
14654 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14655 *) enable_dlopen_self=unknown ;;
14656 esac
14657
14658 case $lt_cv_dlopen_self_static in
14659 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14660 *) enable_dlopen_self_static=unknown ;;
14661 esac
14662fi
14663
14664
John Criswell47fdd832003-07-14 16:52:07 +000014665# Report which librarie types wil actually be built
14666echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14667echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14668echo "$as_me:$LINENO: result: $can_build_shared" >&5
14669echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014670
John Criswell47fdd832003-07-14 16:52:07 +000014671echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14672echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14673test "$can_build_shared" = "no" && enable_shared=no
14674
14675# On AIX, shared libraries and static libraries use the same namespace, and
14676# are all built from PIC.
14677case "$host_os" in
14678aix3*)
14679 test "$enable_shared" = yes && enable_static=no
14680 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014681 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014682 postinstall_cmds='$RANLIB $lib'
14683 fi
14684 ;;
14685
Reid Spencer2706f8c2004-09-19 23:53:36 +000014686aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014687 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14688 test "$enable_shared" = yes && enable_static=no
14689 fi
John Criswell7a73b802003-06-30 21:59:07 +000014690 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014691esac
14692echo "$as_me:$LINENO: result: $enable_shared" >&5
14693echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014694
John Criswell47fdd832003-07-14 16:52:07 +000014695echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14696echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14697# Make sure either enable_shared or enable_static is yes.
14698test "$enable_shared" = yes || enable_static=yes
14699echo "$as_me:$LINENO: result: $enable_static" >&5
14700echo "${ECHO_T}$enable_static" >&6
14701
14702# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014703# libtool distribution, otherwise you forgot to ship ltmain.sh
14704# with your package, and you will get complaints that there are
14705# no rules to generate ltmain.sh.
14706if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014707 # See if we are running on zsh, and set the options which allow our commands through
14708 # without removal of \ escapes.
14709 if test -n "${ZSH_VERSION+set}" ; then
14710 setopt NO_GLOB_SUBST
14711 fi
John Criswell7a73b802003-06-30 21:59:07 +000014712 # Now quote all the things that may contain metacharacters while being
14713 # careful not to overquote the AC_SUBSTed values. We take copies of the
14714 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014715 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14716 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014717 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14718 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14719 deplibs_check_method reload_flag reload_cmds need_locks \
14720 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14721 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014722 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014723 old_postinstall_cmds old_postuninstall_cmds \
14724 compiler \
14725 CC \
14726 LD \
14727 lt_prog_compiler_wl \
14728 lt_prog_compiler_pic \
14729 lt_prog_compiler_static \
14730 lt_prog_compiler_no_builtin_flag \
14731 export_dynamic_flag_spec \
14732 thread_safe_flag_spec \
14733 whole_archive_flag_spec \
14734 enable_shared_with_static_runtimes \
14735 old_archive_cmds \
14736 old_archive_from_new_cmds \
14737 predep_objects \
14738 postdep_objects \
14739 predeps \
14740 postdeps \
14741 compiler_lib_search_path \
14742 archive_cmds \
14743 archive_expsym_cmds \
14744 postinstall_cmds \
14745 postuninstall_cmds \
14746 old_archive_from_expsyms_cmds \
14747 allow_undefined_flag \
14748 no_undefined_flag \
14749 export_symbols_cmds \
14750 hardcode_libdir_flag_spec \
14751 hardcode_libdir_flag_spec_ld \
14752 hardcode_libdir_separator \
14753 hardcode_automatic \
14754 module_cmds \
14755 module_expsym_cmds \
14756 lt_cv_prog_compiler_c_o \
14757 exclude_expsyms \
14758 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014759
14760 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014761 old_archive_cmds | \
14762 old_archive_from_new_cmds | \
14763 archive_cmds | \
14764 archive_expsym_cmds | \
14765 module_cmds | \
14766 module_expsym_cmds | \
14767 old_archive_from_expsyms_cmds | \
14768 export_symbols_cmds | \
14769 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014770 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014771 old_postinstall_cmds | old_postuninstall_cmds | \
14772 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014773 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014774 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 +000014775 ;;
14776 *)
14777 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14778 ;;
14779 esac
14780 done
14781
John Criswell47fdd832003-07-14 16:52:07 +000014782 case $lt_echo in
14783 *'\$0 --fallback-echo"')
14784 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14785 ;;
14786 esac
14787
14788cfgfile="${ofile}T"
14789 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14790 $rm -f "$cfgfile"
14791 { echo "$as_me:$LINENO: creating $ofile" >&5
14792echo "$as_me: creating $ofile" >&6;}
14793
14794 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014795#! $SHELL
14796
John Criswell47fdd832003-07-14 16:52:07 +000014797# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014798# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14799# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14800#
John Criswell47fdd832003-07-14 16:52:07 +000014801# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14802# Free Software Foundation, Inc.
14803#
14804# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014805# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14806#
14807# This program is free software; you can redistribute it and/or modify
14808# it under the terms of the GNU General Public License as published by
14809# the Free Software Foundation; either version 2 of the License, or
14810# (at your option) any later version.
14811#
14812# This program is distributed in the hope that it will be useful, but
14813# WITHOUT ANY WARRANTY; without even the implied warranty of
14814# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14815# General Public License for more details.
14816#
14817# You should have received a copy of the GNU General Public License
14818# along with this program; if not, write to the Free Software
14819# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14820#
14821# As a special exception to the GNU General Public License, if you
14822# distribute this file as part of a program that contains a
14823# configuration script generated by Autoconf, you may include it under
14824# the same distribution terms that you use for the rest of that program.
14825
John Criswell47fdd832003-07-14 16:52:07 +000014826# A sed program that does not truncate output.
14827SED=$lt_SED
14828
John Criswell7a73b802003-06-30 21:59:07 +000014829# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014830Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014831
14832# The HP-UX ksh and POSIX shell print the target directory to stdout
14833# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014834(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014835
John Criswell47fdd832003-07-14 16:52:07 +000014836# The names of the tagged configurations supported by this script.
14837available_tags=
14838
John Criswell7a73b802003-06-30 21:59:07 +000014839# ### BEGIN LIBTOOL CONFIG
14840
14841# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14842
14843# Shell to use when invoking shell scripts.
14844SHELL=$lt_SHELL
14845
14846# Whether or not to build shared libraries.
14847build_libtool_libs=$enable_shared
14848
14849# Whether or not to build static libraries.
14850build_old_libs=$enable_static
14851
14852# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014853build_libtool_need_lc=$archive_cmds_need_lc
14854
14855# Whether or not to disallow shared libs when runtime libs are static
14856allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014857
14858# Whether or not to optimize for fast installation.
14859fast_install=$enable_fast_install
14860
14861# The host system.
14862host_alias=$host_alias
14863host=$host
14864
14865# An echo program that does not interpret backslashes.
14866echo=$lt_echo
14867
14868# The archiver.
14869AR=$lt_AR
14870AR_FLAGS=$lt_AR_FLAGS
14871
John Criswell47fdd832003-07-14 16:52:07 +000014872# A C compiler.
14873LTCC=$lt_LTCC
14874
14875# A language-specific compiler.
14876CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014877
14878# Is the compiler the GNU C compiler?
14879with_gcc=$GCC
14880
John Criswell47fdd832003-07-14 16:52:07 +000014881# An ERE matcher.
14882EGREP=$lt_EGREP
14883
John Criswell7a73b802003-06-30 21:59:07 +000014884# The linker used to build libraries.
14885LD=$lt_LD
14886
14887# Whether we need hard or soft links.
14888LN_S=$lt_LN_S
14889
14890# A BSD-compatible nm program.
14891NM=$lt_NM
14892
14893# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014894STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014895
14896# Used to examine libraries when file_magic_cmd begins "file"
14897MAGIC_CMD=$MAGIC_CMD
14898
14899# Used on cygwin: DLL creation program.
14900DLLTOOL="$DLLTOOL"
14901
14902# Used on cygwin: object dumper.
14903OBJDUMP="$OBJDUMP"
14904
14905# Used on cygwin: assembler.
14906AS="$AS"
14907
14908# The name of the directory that contains temporary libtool files.
14909objdir=$objdir
14910
14911# How to create reloadable object files.
14912reload_flag=$lt_reload_flag
14913reload_cmds=$lt_reload_cmds
14914
14915# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014916wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014917
14918# Object file suffix (normally "o").
14919objext="$ac_objext"
14920
14921# Old archive suffix (normally "a").
14922libext="$libext"
14923
John Criswell47fdd832003-07-14 16:52:07 +000014924# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014925shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014926
John Criswell7a73b802003-06-30 21:59:07 +000014927# Executable file suffix (normally "").
14928exeext="$exeext"
14929
14930# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014931pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014932pic_mode=$pic_mode
14933
John Criswell47fdd832003-07-14 16:52:07 +000014934# What is the maximum length of a command?
14935max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014936
John Criswell47fdd832003-07-14 16:52:07 +000014937# Does compiler simultaneously support -c and -o options?
14938compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014939
14940# Must we lock files when doing compilation ?
14941need_locks=$lt_need_locks
14942
14943# Do we need the lib prefix for modules?
14944need_lib_prefix=$need_lib_prefix
14945
14946# Do we need a version for libraries?
14947need_version=$need_version
14948
14949# Whether dlopen is supported.
14950dlopen_support=$enable_dlopen
14951
14952# Whether dlopen of programs is supported.
14953dlopen_self=$enable_dlopen_self
14954
14955# Whether dlopen of statically linked programs is supported.
14956dlopen_self_static=$enable_dlopen_self_static
14957
14958# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014959link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014960
14961# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014962no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014963
14964# Compiler flag to allow reflexive dlopens.
14965export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14966
14967# Compiler flag to generate shared objects directly from archives.
14968whole_archive_flag_spec=$lt_whole_archive_flag_spec
14969
14970# Compiler flag to generate thread-safe objects.
14971thread_safe_flag_spec=$lt_thread_safe_flag_spec
14972
14973# Library versioning type.
14974version_type=$version_type
14975
14976# Format of library name prefix.
14977libname_spec=$lt_libname_spec
14978
14979# List of archive names. First name is the real one, the rest are links.
14980# The last name is the one that the linker finds with -lNAME.
14981library_names_spec=$lt_library_names_spec
14982
14983# The coded name of the library, if different from the real name.
14984soname_spec=$lt_soname_spec
14985
14986# Commands used to build and install an old-style archive.
14987RANLIB=$lt_RANLIB
14988old_archive_cmds=$lt_old_archive_cmds
14989old_postinstall_cmds=$lt_old_postinstall_cmds
14990old_postuninstall_cmds=$lt_old_postuninstall_cmds
14991
14992# Create an old-style archive from a shared archive.
14993old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14994
14995# Create a temporary old-style archive to link instead of a shared archive.
14996old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14997
14998# Commands used to build and install a shared archive.
14999archive_cmds=$lt_archive_cmds
15000archive_expsym_cmds=$lt_archive_expsym_cmds
15001postinstall_cmds=$lt_postinstall_cmds
15002postuninstall_cmds=$lt_postuninstall_cmds
15003
John Criswell47fdd832003-07-14 16:52:07 +000015004# Commands used to build a loadable module (assumed same as above if empty)
15005module_cmds=$lt_module_cmds
15006module_expsym_cmds=$lt_module_expsym_cmds
15007
John Criswell7a73b802003-06-30 21:59:07 +000015008# Commands to strip libraries.
15009old_striplib=$lt_old_striplib
15010striplib=$lt_striplib
15011
John Criswell47fdd832003-07-14 16:52:07 +000015012# Dependencies to place before the objects being linked to create a
15013# shared library.
15014predep_objects=$lt_predep_objects
15015
15016# Dependencies to place after the objects being linked to create a
15017# shared library.
15018postdep_objects=$lt_postdep_objects
15019
15020# Dependencies to place before the objects being linked to create a
15021# shared library.
15022predeps=$lt_predeps
15023
15024# Dependencies to place after the objects being linked to create a
15025# shared library.
15026postdeps=$lt_postdeps
15027
15028# The library search path used internally by the compiler when linking
15029# a shared library.
15030compiler_lib_search_path=$lt_compiler_lib_search_path
15031
John Criswell7a73b802003-06-30 21:59:07 +000015032# Method to check whether dependent libraries are shared objects.
15033deplibs_check_method=$lt_deplibs_check_method
15034
15035# Command to use when deplibs_check_method == file_magic.
15036file_magic_cmd=$lt_file_magic_cmd
15037
15038# Flag that allows shared libraries with undefined symbols to be built.
15039allow_undefined_flag=$lt_allow_undefined_flag
15040
15041# Flag that forces no undefined symbols.
15042no_undefined_flag=$lt_no_undefined_flag
15043
15044# Commands used to finish a libtool library installation in a directory.
15045finish_cmds=$lt_finish_cmds
15046
15047# Same as above, but a single script fragment to be evaled but not shown.
15048finish_eval=$lt_finish_eval
15049
15050# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000015051global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000015052
15053# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000015054global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000015055
15056# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000015057global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000015058
15059# This is the shared library runtime path variable.
15060runpath_var=$runpath_var
15061
15062# This is the shared library path variable.
15063shlibpath_var=$shlibpath_var
15064
15065# Is shlibpath searched before the hard-coded library search path?
15066shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15067
15068# How to hardcode a shared library path into an executable.
15069hardcode_action=$hardcode_action
15070
15071# Whether we should hardcode library paths into libraries.
15072hardcode_into_libs=$hardcode_into_libs
15073
15074# Flag to hardcode \$libdir into a binary during linking.
15075# This must work even if \$libdir does not exist.
15076hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15077
John Criswell47fdd832003-07-14 16:52:07 +000015078# If ld is used when linking, flag to hardcode \$libdir into
15079# a binary during linking. This must work even if \$libdir does
15080# not exist.
15081hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15082
John Criswell7a73b802003-06-30 21:59:07 +000015083# Whether we need a single -rpath flag with a separated argument.
15084hardcode_libdir_separator=$lt_hardcode_libdir_separator
15085
John Criswell47fdd832003-07-14 16:52:07 +000015086# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000015087# resulting binary.
15088hardcode_direct=$hardcode_direct
15089
15090# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15091# resulting binary.
15092hardcode_minus_L=$hardcode_minus_L
15093
15094# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15095# the resulting binary.
15096hardcode_shlibpath_var=$hardcode_shlibpath_var
15097
John Criswell47fdd832003-07-14 16:52:07 +000015098# Set to yes if building a shared library automatically hardcodes DIR into the library
15099# and all subsequent libraries and executables linked against it.
15100hardcode_automatic=$hardcode_automatic
15101
John Criswell7a73b802003-06-30 21:59:07 +000015102# Variables whose values should be saved in libtool wrapper scripts and
15103# restored at relink time.
15104variables_saved_for_relink="$variables_saved_for_relink"
15105
15106# Whether libtool must link a program against all its dependency libraries.
15107link_all_deplibs=$link_all_deplibs
15108
15109# Compile-time system search path for libraries
15110sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15111
15112# Run-time system search path for libraries
15113sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15114
15115# Fix the shell variable \$srcfile for the compiler.
15116fix_srcfile_path="$fix_srcfile_path"
15117
15118# Set to yes if exported symbols are required.
15119always_export_symbols=$always_export_symbols
15120
15121# The commands to list exported symbols.
15122export_symbols_cmds=$lt_export_symbols_cmds
15123
15124# The commands to extract the exported symbol list from a shared archive.
15125extract_expsyms_cmds=$lt_extract_expsyms_cmds
15126
15127# Symbols that should not be listed in the preloaded symbols.
15128exclude_expsyms=$lt_exclude_expsyms
15129
15130# Symbols that must always be exported.
15131include_expsyms=$lt_include_expsyms
15132
15133# ### END LIBTOOL CONFIG
15134
15135__EOF__
15136
John Criswell47fdd832003-07-14 16:52:07 +000015137
John Criswell7a73b802003-06-30 21:59:07 +000015138 case $host_os in
15139 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000015140 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015141
15142# AIX sometimes has problems with the GCC collect2 program. For some
15143# reason, if we set the COLLECT_NAMES environment variable, the problems
15144# vanish in a puff of smoke.
15145if test "X${COLLECT_NAMES+set}" != Xset; then
15146 COLLECT_NAMES=
15147 export COLLECT_NAMES
15148fi
15149EOF
15150 ;;
15151 esac
15152
John Criswell7a73b802003-06-30 21:59:07 +000015153 # We use sed instead of cat because bash on DJGPP gets confused if
15154 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15155 # text mode, it properly converts lines to CR/LF. This bash problem
15156 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015157 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015158
John Criswell47fdd832003-07-14 16:52:07 +000015159 mv -f "$cfgfile" "$ofile" || \
15160 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015161 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015162
15163else
15164 # If there is no Makefile yet, we rely on a make rule to execute
15165 # `config.status --recheck' to rerun these tests and create the
15166 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015167 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15168 if test -f "$ltmain_in"; then
15169 test -f Makefile && make "$ltmain"
15170 fi
John Criswell7a73b802003-06-30 21:59:07 +000015171fi
John Criswell7a73b802003-06-30 21:59:07 +000015172
15173
John Criswell47fdd832003-07-14 16:52:07 +000015174ac_ext=c
15175ac_cpp='$CPP $CPPFLAGS'
15176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15178ac_compiler_gnu=$ac_cv_c_compiler_gnu
15179
15180CC="$lt_save_CC"
15181
15182
15183# Check whether --with-tags or --without-tags was given.
15184if test "${with_tags+set}" = set; then
15185 withval="$with_tags"
15186 tagnames="$withval"
15187fi;
15188
15189if test -f "$ltmain" && test -n "$tagnames"; then
15190 if test ! -f "${ofile}"; then
15191 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15192echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15193 fi
15194
15195 if test -z "$LTCC"; then
15196 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15197 if test -z "$LTCC"; then
15198 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15199echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15200 else
15201 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15202echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15203 fi
15204 fi
15205
15206 # Extract list of available tagged configurations in $ofile.
15207 # Note that this assumes the entire list is on one line.
15208 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15209
15210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15211 for tagname in $tagnames; do
15212 IFS="$lt_save_ifs"
15213 # Check whether tagname contains only valid characters
15214 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15215 "") ;;
15216 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15217echo "$as_me: error: invalid tag name: $tagname" >&2;}
15218 { (exit 1); exit 1; }; }
15219 ;;
15220 esac
15221
15222 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15223 then
15224 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15225echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15226 { (exit 1); exit 1; }; }
15227 fi
15228
15229 # Update the list of available tags.
15230 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015231 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015232
15233 case $tagname in
15234 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015235 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15236 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15237 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015238 ac_ext=cc
15239ac_cpp='$CXXCPP $CPPFLAGS'
15240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15243
15244
15245
15246
15247archive_cmds_need_lc_CXX=no
15248allow_undefined_flag_CXX=
15249always_export_symbols_CXX=no
15250archive_expsym_cmds_CXX=
15251export_dynamic_flag_spec_CXX=
15252hardcode_direct_CXX=no
15253hardcode_libdir_flag_spec_CXX=
15254hardcode_libdir_flag_spec_ld_CXX=
15255hardcode_libdir_separator_CXX=
15256hardcode_minus_L_CXX=no
15257hardcode_automatic_CXX=no
15258module_cmds_CXX=
15259module_expsym_cmds_CXX=
15260link_all_deplibs_CXX=unknown
15261old_archive_cmds_CXX=$old_archive_cmds
15262no_undefined_flag_CXX=
15263whole_archive_flag_spec_CXX=
15264enable_shared_with_static_runtimes_CXX=no
15265
15266# Dependencies to place before and after the object being linked:
15267predep_objects_CXX=
15268postdep_objects_CXX=
15269predeps_CXX=
15270postdeps_CXX=
15271compiler_lib_search_path_CXX=
15272
15273# Source file extension for C++ test sources.
15274ac_ext=cc
15275
15276# Object file extension for compiled C++ test sources.
15277objext=o
15278objext_CXX=$objext
15279
15280# Code to be used in simple compile tests
15281lt_simple_compile_test_code="int some_variable = 0;\n"
15282
15283# Code to be used in simple link tests
15284lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15285
15286# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15287
15288# If no C compiler was specified, use CC.
15289LTCC=${LTCC-"$CC"}
15290
15291# Allow CC to be a program name with arguments.
15292compiler=$CC
15293
15294
15295# Allow CC to be a program name with arguments.
15296lt_save_CC=$CC
15297lt_save_LD=$LD
15298lt_save_GCC=$GCC
15299GCC=$GXX
15300lt_save_with_gnu_ld=$with_gnu_ld
15301lt_save_path_LD=$lt_cv_path_LD
15302if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15303 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15304else
15305 unset lt_cv_prog_gnu_ld
15306fi
15307if test -n "${lt_cv_path_LDCXX+set}"; then
15308 lt_cv_path_LD=$lt_cv_path_LDCXX
15309else
15310 unset lt_cv_path_LD
15311fi
15312test -z "${LDCXX+set}" || LD=$LDCXX
15313CC=${CXX-"c++"}
15314compiler=$CC
15315compiler_CXX=$CC
15316cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15317
15318# We don't want -fno-exception wen compiling C++ code, so set the
15319# no_builtin_flag separately
15320if test "$GXX" = yes; then
15321 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15322else
15323 lt_prog_compiler_no_builtin_flag_CXX=
15324fi
15325
15326if test "$GXX" = yes; then
15327 # Set up default GNU C++ configuration
15328
15329
15330# Check whether --with-gnu-ld or --without-gnu-ld was given.
15331if test "${with_gnu_ld+set}" = set; then
15332 withval="$with_gnu_ld"
15333 test "$withval" = no || with_gnu_ld=yes
15334else
15335 with_gnu_ld=no
15336fi;
15337ac_prog=ld
15338if test "$GCC" = yes; then
15339 # Check if gcc -print-prog-name=ld gives a path.
15340 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15341echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15342 case $host in
15343 *-*-mingw*)
15344 # gcc leaves a trailing carriage return which upsets mingw
15345 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15346 *)
15347 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15348 esac
15349 case $ac_prog in
15350 # Accept absolute paths.
15351 [\\/]* | ?:[\\/]*)
15352 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015353 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015354 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15355 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15356 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15357 done
15358 test -z "$LD" && LD="$ac_prog"
15359 ;;
15360 "")
15361 # If it fails, then pretend we aren't using GCC.
15362 ac_prog=ld
15363 ;;
15364 *)
15365 # If it is relative, then search for the first ld in PATH.
15366 with_gnu_ld=unknown
15367 ;;
15368 esac
15369elif test "$with_gnu_ld" = yes; then
15370 echo "$as_me:$LINENO: checking for GNU ld" >&5
15371echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15372else
15373 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15374echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15375fi
15376if test "${lt_cv_path_LD+set}" = set; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15378else
15379 if test -z "$LD"; then
15380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15381 for ac_dir in $PATH; do
15382 IFS="$lt_save_ifs"
15383 test -z "$ac_dir" && ac_dir=.
15384 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15385 lt_cv_path_LD="$ac_dir/$ac_prog"
15386 # Check to see if the program is GNU ld. I'd rather use --version,
15387 # but apparently some GNU ld's only accept -v.
15388 # Break only if it was the GNU/non-GNU ld that we prefer.
15389 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15390 *GNU* | *'with BFD'*)
15391 test "$with_gnu_ld" != no && break
15392 ;;
15393 *)
15394 test "$with_gnu_ld" != yes && break
15395 ;;
15396 esac
15397 fi
15398 done
15399 IFS="$lt_save_ifs"
15400else
15401 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15402fi
15403fi
15404
15405LD="$lt_cv_path_LD"
15406if test -n "$LD"; then
15407 echo "$as_me:$LINENO: result: $LD" >&5
15408echo "${ECHO_T}$LD" >&6
15409else
15410 echo "$as_me:$LINENO: result: no" >&5
15411echo "${ECHO_T}no" >&6
15412fi
15413test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15414echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15415 { (exit 1); exit 1; }; }
15416echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15417echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15418if test "${lt_cv_prog_gnu_ld+set}" = set; then
15419 echo $ECHO_N "(cached) $ECHO_C" >&6
15420else
15421 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015422case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015423*GNU* | *'with BFD'*)
15424 lt_cv_prog_gnu_ld=yes
15425 ;;
15426*)
15427 lt_cv_prog_gnu_ld=no
15428 ;;
15429esac
15430fi
15431echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15432echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15433with_gnu_ld=$lt_cv_prog_gnu_ld
15434
15435
15436
15437 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15438 # archiving commands below assume that GNU ld is being used.
15439 if test "$with_gnu_ld" = yes; then
15440 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15441 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'
15442
15443 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15444 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15445
15446 # If archive_cmds runs LD, not CC, wlarc should be empty
15447 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15448 # investigate it a little bit more. (MM)
15449 wlarc='${wl}'
15450
15451 # ancient GNU ld didn't support --whole-archive et. al.
15452 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15453 grep 'no-whole-archive' > /dev/null; then
15454 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15455 else
15456 whole_archive_flag_spec_CXX=
15457 fi
15458 else
15459 with_gnu_ld=no
15460 wlarc=
15461
15462 # A generic and very simple default shared library creation
15463 # command for GNU C++ for the case where it uses the native
15464 # linker, instead of GNU ld. If possible, this setting should
15465 # overridden to take advantage of the native linker features on
15466 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015467 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015468 fi
15469
15470 # Commands to make compiler produce verbose output that lists
15471 # what "hidden" libraries, object files and flags are used when
15472 # linking a shared library.
15473 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15474
15475else
15476 GXX=no
15477 with_gnu_ld=no
15478 wlarc=
15479fi
15480
15481# PORTME: fill in a description of your system's C++ link characteristics
15482echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15483echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15484ld_shlibs_CXX=yes
15485case $host_os in
15486 aix3*)
15487 # FIXME: insert proper C++ library support
15488 ld_shlibs_CXX=no
15489 ;;
15490 aix4* | aix5*)
15491 if test "$host_cpu" = ia64; then
15492 # On IA64, the linker does run time linking by default, so we don't
15493 # have to do anything special.
15494 aix_use_runtimelinking=no
15495 exp_sym_flag='-Bexport'
15496 no_entry_flag=""
15497 else
15498 aix_use_runtimelinking=no
15499
15500 # Test if we are trying to use run time linking or normal
15501 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15502 # need to do runtime linking.
15503 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15504 for ld_flag in $LDFLAGS; do
15505 case $ld_flag in
15506 *-brtl*)
15507 aix_use_runtimelinking=yes
15508 break
15509 ;;
15510 esac
15511 done
15512 esac
15513
15514 exp_sym_flag='-bexport'
15515 no_entry_flag='-bnoentry'
15516 fi
15517
15518 # When large executables or shared objects are built, AIX ld can
15519 # have problems creating the table of contents. If linking a library
15520 # or program results in "error TOC overflow" add -mminimal-toc to
15521 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15522 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15523
15524 archive_cmds_CXX=''
15525 hardcode_direct_CXX=yes
15526 hardcode_libdir_separator_CXX=':'
15527 link_all_deplibs_CXX=yes
15528
15529 if test "$GXX" = yes; then
15530 case $host_os in aix4.012|aix4.012.*)
15531 # We only want to do this on AIX 4.2 and lower, the check
15532 # below for broken collect2 doesn't work under 4.3+
15533 collect2name=`${CC} -print-prog-name=collect2`
15534 if test -f "$collect2name" && \
15535 strings "$collect2name" | grep resolve_lib_name >/dev/null
15536 then
15537 # We have reworked collect2
15538 hardcode_direct_CXX=yes
15539 else
15540 # We have old collect2
15541 hardcode_direct_CXX=unsupported
15542 # It fails to find uninstalled libraries when the uninstalled
15543 # path is not listed in the libpath. Setting hardcode_minus_L
15544 # to unsupported forces relinking
15545 hardcode_minus_L_CXX=yes
15546 hardcode_libdir_flag_spec_CXX='-L$libdir'
15547 hardcode_libdir_separator_CXX=
15548 fi
15549 esac
15550 shared_flag='-shared'
15551 else
15552 # not using gcc
15553 if test "$host_cpu" = ia64; then
15554 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15555 # chokes on -Wl,-G. The following line is correct:
15556 shared_flag='-G'
15557 else
15558 if test "$aix_use_runtimelinking" = yes; then
15559 shared_flag='${wl}-G'
15560 else
15561 shared_flag='${wl}-bM:SRE'
15562 fi
15563 fi
15564 fi
15565
15566 # It seems that -bexpall does not export symbols beginning with
15567 # underscore (_), so it is better to generate a list of symbols to export.
15568 always_export_symbols_CXX=yes
15569 if test "$aix_use_runtimelinking" = yes; then
15570 # Warning - without using the other runtime loading flags (-brtl),
15571 # -berok will link without error, but may produce a broken library.
15572 allow_undefined_flag_CXX='-berok'
15573 # Determine the default libpath from the value encoded in an empty executable.
15574 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015575/* confdefs.h. */
15576_ACEOF
15577cat confdefs.h >>conftest.$ac_ext
15578cat >>conftest.$ac_ext <<_ACEOF
15579/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015580
John Criswell47fdd832003-07-14 16:52:07 +000015581int
15582main ()
15583{
15584
15585 ;
15586 return 0;
15587}
15588_ACEOF
15589rm -f conftest.$ac_objext conftest$ac_exeext
15590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015591 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015592 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015593 grep -v '^ *+' conftest.er1 >conftest.err
15594 rm -f conftest.er1
15595 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015598 { ac_try='test -z "$ac_cxx_werror_flag"
15599 || test ! -s conftest.err'
15600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15601 (eval $ac_try) 2>&5
15602 ac_status=$?
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); }; } &&
15605 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15607 (eval $ac_try) 2>&5
15608 ac_status=$?
15609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610 (exit $ac_status); }; }; then
15611
15612aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15613}'`
15614# Check for a 64-bit object if we didn't find anything.
15615if 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; }
15616}'`; fi
15617else
15618 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015619sed 's/^/| /' conftest.$ac_ext >&5
15620
John Criswell47fdd832003-07-14 16:52:07 +000015621fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015622rm -f conftest.err conftest.$ac_objext \
15623 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015624if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15625
15626 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15627
15628 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"
15629 else
15630 if test "$host_cpu" = ia64; then
15631 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15632 allow_undefined_flag_CXX="-z nodefs"
15633 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"
15634 else
15635 # Determine the default libpath from the value encoded in an empty executable.
15636 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015637/* confdefs.h. */
15638_ACEOF
15639cat confdefs.h >>conftest.$ac_ext
15640cat >>conftest.$ac_ext <<_ACEOF
15641/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015642
John Criswell47fdd832003-07-14 16:52:07 +000015643int
15644main ()
15645{
15646
15647 ;
15648 return 0;
15649}
15650_ACEOF
15651rm -f conftest.$ac_objext conftest$ac_exeext
15652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015653 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015654 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015655 grep -v '^ *+' conftest.er1 >conftest.err
15656 rm -f conftest.er1
15657 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015660 { ac_try='test -z "$ac_cxx_werror_flag"
15661 || test ! -s conftest.err'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; } &&
15667 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15670 ac_status=$?
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15673
15674aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15675}'`
15676# Check for a 64-bit object if we didn't find anything.
15677if 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; }
15678}'`; fi
15679else
15680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015681sed 's/^/| /' conftest.$ac_ext >&5
15682
John Criswell47fdd832003-07-14 16:52:07 +000015683fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015684rm -f conftest.err conftest.$ac_objext \
15685 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015686if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15687
15688 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15689 # Warning - without using the other run time loading flags,
15690 # -berok will link without error, but may produce a broken library.
15691 no_undefined_flag_CXX=' ${wl}-bernotok'
15692 allow_undefined_flag_CXX=' ${wl}-berok'
15693 # -bexpall does not export symbols beginning with underscore (_)
15694 always_export_symbols_CXX=yes
15695 # Exported symbols can be pulled into shared objects from archives
15696 whole_archive_flag_spec_CXX=' '
15697 archive_cmds_need_lc_CXX=yes
15698 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015699 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 +000015700 fi
15701 fi
15702 ;;
15703 chorus*)
15704 case $cc_basename in
15705 *)
15706 # FIXME: insert proper C++ library support
15707 ld_shlibs_CXX=no
15708 ;;
15709 esac
15710 ;;
15711
Reid Spencer2706f8c2004-09-19 23:53:36 +000015712
John Criswell47fdd832003-07-14 16:52:07 +000015713 cygwin* | mingw* | pw32*)
15714 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15715 # as there is no search path for DLLs.
15716 hardcode_libdir_flag_spec_CXX='-L$libdir'
15717 allow_undefined_flag_CXX=unsupported
15718 always_export_symbols_CXX=no
15719 enable_shared_with_static_runtimes_CXX=yes
15720
15721 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15722 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'
15723 # If the export-symbols file already is a .def file (1st line
15724 # is EXPORTS), use it as is; otherwise, prepend...
15725 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15726 cp $export_symbols $output_objdir/$soname.def;
15727 else
15728 echo EXPORTS > $output_objdir/$soname.def;
15729 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015730 fi~
15731 $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 +000015732 else
15733 ld_shlibs_CXX=no
15734 fi
15735 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015736 darwin* | rhapsody*)
15737 case "$host_os" in
15738 rhapsody* | darwin1.[012])
15739 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15740 ;;
15741 *) # Darwin 1.3 on
15742 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15743 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15744 else
15745 case ${MACOSX_DEPLOYMENT_TARGET} in
15746 10.[012])
15747 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15748 ;;
15749 10.*)
15750 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15751 ;;
15752 esac
15753 fi
15754 ;;
15755 esac
15756 archive_cmds_need_lc_CXX=no
15757 hardcode_direct_CXX=no
15758 hardcode_automatic_CXX=yes
15759 hardcode_shlibpath_var_CXX=unsupported
15760 whole_archive_flag_spec_CXX=''
15761 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015762
Reid Spencer2706f8c2004-09-19 23:53:36 +000015763 if test "$GXX" = yes ; then
15764 lt_int_apple_cc_single_mod=no
15765 output_verbose_link_cmd='echo'
15766 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15767 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015768 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015769 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015770 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 +000015771 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015772 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 +000015773 fi
15774 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15775 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15776 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015777 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 +000015778 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015779 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 +000015780 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015781 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 +000015782 else
15783 case "$cc_basename" in
15784 xlc*)
15785 output_verbose_link_cmd='echo'
15786 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'
15787 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15788 # 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 +000015789 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}'
15790 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 +000015791 ;;
15792 *)
15793 ld_shlibs_CXX=no
15794 ;;
15795 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015796 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015797 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015798
15799 dgux*)
15800 case $cc_basename in
15801 ec++)
15802 # FIXME: insert proper C++ library support
15803 ld_shlibs_CXX=no
15804 ;;
15805 ghcx)
15806 # Green Hills C++ Compiler
15807 # FIXME: insert proper C++ library support
15808 ld_shlibs_CXX=no
15809 ;;
15810 *)
15811 # FIXME: insert proper C++ library support
15812 ld_shlibs_CXX=no
15813 ;;
15814 esac
15815 ;;
15816 freebsd12*)
15817 # C++ shared libraries reported to be fairly broken before switch to ELF
15818 ld_shlibs_CXX=no
15819 ;;
15820 freebsd-elf*)
15821 archive_cmds_need_lc_CXX=no
15822 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015823 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015824 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15825 # conventions
15826 ld_shlibs_CXX=yes
15827 ;;
15828 gnu*)
15829 ;;
15830 hpux9*)
15831 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15832 hardcode_libdir_separator_CXX=:
15833 export_dynamic_flag_spec_CXX='${wl}-E'
15834 hardcode_direct_CXX=yes
15835 hardcode_minus_L_CXX=yes # Not in the search PATH,
15836 # but as the default
15837 # location of the library.
15838
15839 case $cc_basename in
15840 CC)
15841 # FIXME: insert proper C++ library support
15842 ld_shlibs_CXX=no
15843 ;;
15844 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015845 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 +000015846 # Commands to make compiler produce verbose output that lists
15847 # what "hidden" libraries, object files and flags are used when
15848 # linking a shared library.
15849 #
15850 # There doesn't appear to be a way to prevent this compiler from
15851 # explicitly linking system object files so we need to strip them
15852 # from the output so that they don't get included in the library
15853 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015854 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 +000015855 ;;
15856 *)
15857 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015858 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 +000015859 else
15860 # FIXME: insert proper C++ library support
15861 ld_shlibs_CXX=no
15862 fi
15863 ;;
15864 esac
15865 ;;
15866 hpux10*|hpux11*)
15867 if test $with_gnu_ld = no; then
15868 case "$host_cpu" in
15869 hppa*64*)
15870 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15871 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15872 hardcode_libdir_separator_CXX=:
15873 ;;
15874 ia64*)
15875 hardcode_libdir_flag_spec_CXX='-L$libdir'
15876 ;;
15877 *)
15878 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15879 hardcode_libdir_separator_CXX=:
15880 export_dynamic_flag_spec_CXX='${wl}-E'
15881 ;;
15882 esac
15883 fi
15884 case "$host_cpu" in
15885 hppa*64*)
15886 hardcode_direct_CXX=no
15887 hardcode_shlibpath_var_CXX=no
15888 ;;
15889 ia64*)
15890 hardcode_direct_CXX=no
15891 hardcode_shlibpath_var_CXX=no
15892 hardcode_minus_L_CXX=yes # Not in the search PATH,
15893 # but as the default
15894 # location of the library.
15895 ;;
15896 *)
15897 hardcode_direct_CXX=yes
15898 hardcode_minus_L_CXX=yes # Not in the search PATH,
15899 # but as the default
15900 # location of the library.
15901 ;;
15902 esac
15903
15904 case $cc_basename in
15905 CC)
15906 # FIXME: insert proper C++ library support
15907 ld_shlibs_CXX=no
15908 ;;
15909 aCC)
15910 case "$host_cpu" in
15911 hppa*64*|ia64*)
15912 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15913 ;;
15914 *)
15915 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15916 ;;
15917 esac
15918 # Commands to make compiler produce verbose output that lists
15919 # what "hidden" libraries, object files and flags are used when
15920 # linking a shared library.
15921 #
15922 # There doesn't appear to be a way to prevent this compiler from
15923 # explicitly linking system object files so we need to strip them
15924 # from the output so that they don't get included in the library
15925 # dependencies.
15926 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'
15927 ;;
15928 *)
15929 if test "$GXX" = yes; then
15930 if test $with_gnu_ld = no; then
15931 case "$host_cpu" in
15932 ia64*|hppa*64*)
15933 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15934 ;;
15935 *)
15936 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'
15937 ;;
15938 esac
15939 fi
15940 else
15941 # FIXME: insert proper C++ library support
15942 ld_shlibs_CXX=no
15943 fi
15944 ;;
15945 esac
15946 ;;
15947 irix5* | irix6*)
15948 case $cc_basename in
15949 CC)
15950 # SGI C++
15951 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'
15952
15953 # Archives containing C++ object files must be created using
15954 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15955 # necessary to make sure instantiated templates are included
15956 # in the archive.
15957 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15958 ;;
15959 *)
15960 if test "$GXX" = yes; then
15961 if test "$with_gnu_ld" = no; then
15962 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'
15963 else
15964 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'
15965 fi
15966 fi
15967 link_all_deplibs_CXX=yes
15968 ;;
15969 esac
15970 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15971 hardcode_libdir_separator_CXX=:
15972 ;;
15973 linux*)
15974 case $cc_basename in
15975 KCC)
15976 # Kuck and Associates, Inc. (KAI) C++ Compiler
15977
15978 # KCC will only create a shared library if the output file
15979 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15980 # to its proper name (with version) after linking.
15981 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'
15982 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'
15983 # Commands to make compiler produce verbose output that lists
15984 # what "hidden" libraries, object files and flags are used when
15985 # linking a shared library.
15986 #
15987 # There doesn't appear to be a way to prevent this compiler from
15988 # explicitly linking system object files so we need to strip them
15989 # from the output so that they don't get included in the library
15990 # dependencies.
15991 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'
15992
15993 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15994 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15995
15996 # Archives containing C++ object files must be created using
15997 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15998 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15999 ;;
16000 icpc)
16001 # Intel C++
16002 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016003 # version 8.0 and above of icpc choke on multiply defined symbols
16004 # if we add $predep_objects and $postdep_objects, however 7.1 and
16005 # earlier do not add the objects themselves.
16006 case `$CC -V 2>&1` in
16007 *"Version 7."*)
16008 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16009 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'
16010 ;;
16011 *) # Version 8.0 or newer
16012 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16013 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16014 ;;
16015 esac
John Criswell47fdd832003-07-14 16:52:07 +000016016 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000016017 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16018 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16019 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16020 ;;
16021 cxx)
16022 # Compaq C++
16023 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16024 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'
16025
16026 runpath_var=LD_RUN_PATH
16027 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16028 hardcode_libdir_separator_CXX=:
16029
16030 # Commands to make compiler produce verbose output that lists
16031 # what "hidden" libraries, object files and flags are used when
16032 # linking a shared library.
16033 #
16034 # There doesn't appear to be a way to prevent this compiler from
16035 # explicitly linking system object files so we need to strip them
16036 # from the output so that they don't get included in the library
16037 # dependencies.
16038 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'
16039 ;;
16040 esac
16041 ;;
16042 lynxos*)
16043 # FIXME: insert proper C++ library support
16044 ld_shlibs_CXX=no
16045 ;;
16046 m88k*)
16047 # FIXME: insert proper C++ library support
16048 ld_shlibs_CXX=no
16049 ;;
16050 mvs*)
16051 case $cc_basename in
16052 cxx)
16053 # FIXME: insert proper C++ library support
16054 ld_shlibs_CXX=no
16055 ;;
16056 *)
16057 # FIXME: insert proper C++ library support
16058 ld_shlibs_CXX=no
16059 ;;
16060 esac
16061 ;;
16062 netbsd*)
16063 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16064 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16065 wlarc=
16066 hardcode_libdir_flag_spec_CXX='-R$libdir'
16067 hardcode_direct_CXX=yes
16068 hardcode_shlibpath_var_CXX=no
16069 fi
16070 # Workaround some broken pre-1.5 toolchains
16071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16072 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016073 openbsd2*)
16074 # C++ shared libraries are fairly broken
16075 ld_shlibs_CXX=no
16076 ;;
16077 openbsd*)
16078 hardcode_direct_CXX=yes
16079 hardcode_shlibpath_var_CXX=no
16080 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16081 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16083 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16084 export_dynamic_flag_spec_CXX='${wl}-E'
16085 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16086 fi
16087 output_verbose_link_cmd='echo'
16088 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016089 osf3*)
16090 case $cc_basename in
16091 KCC)
16092 # Kuck and Associates, Inc. (KAI) C++ Compiler
16093
16094 # KCC will only create a shared library if the output file
16095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16096 # to its proper name (with version) after linking.
16097 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'
16098
16099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16100 hardcode_libdir_separator_CXX=:
16101
16102 # Archives containing C++ object files must be created using
16103 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16104 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16105
16106 ;;
16107 RCC)
16108 # Rational C++ 2.4.1
16109 # FIXME: insert proper C++ library support
16110 ld_shlibs_CXX=no
16111 ;;
16112 cxx)
16113 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16114 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'
16115
16116 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16117 hardcode_libdir_separator_CXX=:
16118
16119 # Commands to make compiler produce verbose output that lists
16120 # what "hidden" libraries, object files and flags are used when
16121 # linking a shared library.
16122 #
16123 # There doesn't appear to be a way to prevent this compiler from
16124 # explicitly linking system object files so we need to strip them
16125 # from the output so that they don't get included in the library
16126 # dependencies.
16127 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'
16128 ;;
16129 *)
16130 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16131 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16132 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'
16133
16134 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16135 hardcode_libdir_separator_CXX=:
16136
16137 # Commands to make compiler produce verbose output that lists
16138 # what "hidden" libraries, object files and flags are used when
16139 # linking a shared library.
16140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16141
16142 else
16143 # FIXME: insert proper C++ library support
16144 ld_shlibs_CXX=no
16145 fi
16146 ;;
16147 esac
16148 ;;
16149 osf4* | osf5*)
16150 case $cc_basename in
16151 KCC)
16152 # Kuck and Associates, Inc. (KAI) C++ Compiler
16153
16154 # KCC will only create a shared library if the output file
16155 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16156 # to its proper name (with version) after linking.
16157 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'
16158
16159 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16160 hardcode_libdir_separator_CXX=:
16161
16162 # Archives containing C++ object files must be created using
16163 # the KAI C++ compiler.
16164 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16165 ;;
16166 RCC)
16167 # Rational C++ 2.4.1
16168 # FIXME: insert proper C++ library support
16169 ld_shlibs_CXX=no
16170 ;;
16171 cxx)
16172 allow_undefined_flag_CXX=' -expect_unresolved \*'
16173 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 +000016174 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16175 echo "-hidden">> $lib.exp~
16176 $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~
16177 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016178
16179 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16180 hardcode_libdir_separator_CXX=:
16181
16182 # Commands to make compiler produce verbose output that lists
16183 # what "hidden" libraries, object files and flags are used when
16184 # linking a shared library.
16185 #
16186 # There doesn't appear to be a way to prevent this compiler from
16187 # explicitly linking system object files so we need to strip them
16188 # from the output so that they don't get included in the library
16189 # dependencies.
16190 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'
16191 ;;
16192 *)
16193 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16194 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16195 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'
16196
16197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16198 hardcode_libdir_separator_CXX=:
16199
16200 # Commands to make compiler produce verbose output that lists
16201 # what "hidden" libraries, object files and flags are used when
16202 # linking a shared library.
16203 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16204
16205 else
16206 # FIXME: insert proper C++ library support
16207 ld_shlibs_CXX=no
16208 fi
16209 ;;
16210 esac
16211 ;;
16212 psos*)
16213 # FIXME: insert proper C++ library support
16214 ld_shlibs_CXX=no
16215 ;;
16216 sco*)
16217 archive_cmds_need_lc_CXX=no
16218 case $cc_basename in
16219 CC)
16220 # FIXME: insert proper C++ library support
16221 ld_shlibs_CXX=no
16222 ;;
16223 *)
16224 # FIXME: insert proper C++ library support
16225 ld_shlibs_CXX=no
16226 ;;
16227 esac
16228 ;;
16229 sunos4*)
16230 case $cc_basename in
16231 CC)
16232 # Sun C++ 4.x
16233 # FIXME: insert proper C++ library support
16234 ld_shlibs_CXX=no
16235 ;;
16236 lcc)
16237 # Lucid
16238 # FIXME: insert proper C++ library support
16239 ld_shlibs_CXX=no
16240 ;;
16241 *)
16242 # FIXME: insert proper C++ library support
16243 ld_shlibs_CXX=no
16244 ;;
16245 esac
16246 ;;
16247 solaris*)
16248 case $cc_basename in
16249 CC)
16250 # Sun C++ 4.2, 5.x and Centerline C++
16251 no_undefined_flag_CXX=' -zdefs'
16252 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 +000016253 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16254 $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 +000016255
16256 hardcode_libdir_flag_spec_CXX='-R$libdir'
16257 hardcode_shlibpath_var_CXX=no
16258 case $host_os in
16259 solaris2.0-5 | solaris2.0-5.*) ;;
16260 *)
16261 # The C++ compiler is used as linker so we must use $wl
16262 # flag to pass the commands to the underlying system
16263 # linker.
16264 # Supported since Solaris 2.6 (maybe 2.5.1?)
16265 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16266 ;;
16267 esac
16268 link_all_deplibs_CXX=yes
16269
16270 # Commands to make compiler produce verbose output that lists
16271 # what "hidden" libraries, object files and flags are used when
16272 # linking a shared library.
16273 #
16274 # There doesn't appear to be a way to prevent this compiler from
16275 # explicitly linking system object files so we need to strip them
16276 # from the output so that they don't get included in the library
16277 # dependencies.
16278 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'
16279
16280 # Archives containing C++ object files must be created using
16281 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16282 # necessary to make sure instantiated templates are included
16283 # in the archive.
16284 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16285 ;;
16286 gcx)
16287 # Green Hills C++ Compiler
16288 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16289
16290 # The C++ compiler must be used to create the archive.
16291 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16292 ;;
16293 *)
16294 # GNU C++ compiler with Solaris linker
16295 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16296 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16297 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016298 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 +000016299 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16300 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16301
John Criswell47fdd832003-07-14 16:52:07 +000016302 # Commands to make compiler produce verbose output that lists
16303 # what "hidden" libraries, object files and flags are used when
16304 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016305 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016306 else
16307 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16308 # platform.
16309 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 +000016310 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16311 $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 +000016312
16313 # Commands to make compiler produce verbose output that lists
16314 # what "hidden" libraries, object files and flags are used when
16315 # linking a shared library.
16316 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16317 fi
16318
16319 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16320 fi
16321 ;;
16322 esac
16323 ;;
16324 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16325 archive_cmds_need_lc_CXX=no
16326 ;;
16327 tandem*)
16328 case $cc_basename in
16329 NCC)
16330 # NonStop-UX NCC 3.20
16331 # FIXME: insert proper C++ library support
16332 ld_shlibs_CXX=no
16333 ;;
16334 *)
16335 # FIXME: insert proper C++ library support
16336 ld_shlibs_CXX=no
16337 ;;
16338 esac
16339 ;;
16340 vxworks*)
16341 # FIXME: insert proper C++ library support
16342 ld_shlibs_CXX=no
16343 ;;
16344 *)
16345 # FIXME: insert proper C++ library support
16346 ld_shlibs_CXX=no
16347 ;;
16348esac
16349echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16350echo "${ECHO_T}$ld_shlibs_CXX" >&6
16351test "$ld_shlibs_CXX" = no && can_build_shared=no
16352
16353GCC_CXX="$GXX"
16354LD_CXX="$LD"
16355
John Criswell47fdd832003-07-14 16:52:07 +000016356
16357cat > conftest.$ac_ext <<EOF
16358class Foo
16359{
16360public:
16361 Foo (void) { a = 0; }
16362private:
16363 int a;
16364};
16365EOF
16366
16367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16368 (eval $ac_compile) 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; then
16372 # Parse the compiler output and extract the necessary
16373 # objects, libraries and library flags.
16374
16375 # Sentinel used to keep track of whether or not we are before
16376 # the conftest object file.
16377 pre_test_object_deps_done=no
16378
16379 # The `*' in the case matches for architectures that use `case' in
16380 # $output_verbose_cmd can trigger glob expansion during the loop
16381 # eval without this substitution.
16382 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16383
16384 for p in `eval $output_verbose_link_cmd`; do
16385 case $p in
16386
16387 -L* | -R* | -l*)
16388 # Some compilers place space between "-{L,R}" and the path.
16389 # Remove the space.
16390 if test $p = "-L" \
16391 || test $p = "-R"; then
16392 prev=$p
16393 continue
16394 else
16395 prev=
16396 fi
16397
16398 if test "$pre_test_object_deps_done" = no; then
16399 case $p in
16400 -L* | -R*)
16401 # Internal compiler library paths should come after those
16402 # provided the user. The postdeps already come after the
16403 # user supplied libs so there is no need to process them.
16404 if test -z "$compiler_lib_search_path_CXX"; then
16405 compiler_lib_search_path_CXX="${prev}${p}"
16406 else
16407 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16408 fi
16409 ;;
16410 # The "-l" case would never come before the object being
16411 # linked, so don't bother handling this case.
16412 esac
16413 else
16414 if test -z "$postdeps_CXX"; then
16415 postdeps_CXX="${prev}${p}"
16416 else
16417 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16418 fi
16419 fi
16420 ;;
16421
16422 *.$objext)
16423 # This assumes that the test object file only shows up
16424 # once in the compiler output.
16425 if test "$p" = "conftest.$objext"; then
16426 pre_test_object_deps_done=yes
16427 continue
16428 fi
16429
16430 if test "$pre_test_object_deps_done" = no; then
16431 if test -z "$predep_objects_CXX"; then
16432 predep_objects_CXX="$p"
16433 else
16434 predep_objects_CXX="$predep_objects_CXX $p"
16435 fi
16436 else
16437 if test -z "$postdep_objects_CXX"; then
16438 postdep_objects_CXX="$p"
16439 else
16440 postdep_objects_CXX="$postdep_objects_CXX $p"
16441 fi
16442 fi
16443 ;;
16444
16445 *) ;; # Ignore the rest.
16446
16447 esac
16448 done
16449
16450 # Clean up.
16451 rm -f a.out a.exe
16452else
16453 echo "libtool.m4: error: problem compiling CXX test program"
16454fi
16455
16456$rm -f confest.$objext
16457
16458case " $postdeps_CXX " in
16459*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16460esac
16461
16462lt_prog_compiler_wl_CXX=
16463lt_prog_compiler_pic_CXX=
16464lt_prog_compiler_static_CXX=
16465
16466echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16467echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16468
16469 # C++ specific cases for pic, static, wl, etc.
16470 if test "$GXX" = yes; then
16471 lt_prog_compiler_wl_CXX='-Wl,'
16472 lt_prog_compiler_static_CXX='-static'
16473
16474 case $host_os in
16475 aix*)
16476 # All AIX code is PIC.
16477 if test "$host_cpu" = ia64; then
16478 # AIX 5 now supports IA64 processor
16479 lt_prog_compiler_static_CXX='-Bstatic'
16480 fi
16481 ;;
16482 amigaos*)
16483 # FIXME: we need at least 68020 code to build shared libraries, but
16484 # adding the `-m68020' flag to GCC prevents building anything better,
16485 # like `-m68040'.
16486 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16487 ;;
16488 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16489 # PIC is the default for these OSes.
16490 ;;
16491 mingw* | os2* | pw32*)
16492 # This hack is so that the source file can tell whether it is being
16493 # built for inclusion in a dll (and should export symbols for example).
16494 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16495 ;;
16496 darwin* | rhapsody*)
16497 # PIC is the default on this platform
16498 # Common symbols not allowed in MH_DYLIB files
16499 lt_prog_compiler_pic_CXX='-fno-common'
16500 ;;
16501 *djgpp*)
16502 # DJGPP does not support shared libraries at all
16503 lt_prog_compiler_pic_CXX=
16504 ;;
16505 sysv4*MP*)
16506 if test -d /usr/nec; then
16507 lt_prog_compiler_pic_CXX=-Kconform_pic
16508 fi
16509 ;;
16510 hpux*)
16511 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16512 # not for PA HP-UX.
16513 case "$host_cpu" in
16514 hppa*64*|ia64*)
16515 ;;
16516 *)
16517 lt_prog_compiler_pic_CXX='-fPIC'
16518 ;;
16519 esac
16520 ;;
16521 *)
16522 lt_prog_compiler_pic_CXX='-fPIC'
16523 ;;
16524 esac
16525 else
16526 case $host_os in
16527 aix4* | aix5*)
16528 # All AIX code is PIC.
16529 if test "$host_cpu" = ia64; then
16530 # AIX 5 now supports IA64 processor
16531 lt_prog_compiler_static_CXX='-Bstatic'
16532 else
16533 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16534 fi
16535 ;;
16536 chorus*)
16537 case $cc_basename in
16538 cxch68)
16539 # Green Hills C++ Compiler
16540 # _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"
16541 ;;
16542 esac
16543 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016544 darwin*)
16545 # PIC is the default on this platform
16546 # Common symbols not allowed in MH_DYLIB files
16547 case "$cc_basename" in
16548 xlc*)
16549 lt_prog_compiler_pic_CXX='-qnocommon'
16550 lt_prog_compiler_wl_CXX='-Wl,'
16551 ;;
16552 esac
16553 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016554 dgux*)
16555 case $cc_basename in
16556 ec++)
16557 lt_prog_compiler_pic_CXX='-KPIC'
16558 ;;
16559 ghcx)
16560 # Green Hills C++ Compiler
16561 lt_prog_compiler_pic_CXX='-pic'
16562 ;;
16563 *)
16564 ;;
16565 esac
16566 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016567 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016568 # FreeBSD uses GNU C++
16569 ;;
16570 hpux9* | hpux10* | hpux11*)
16571 case $cc_basename in
16572 CC)
16573 lt_prog_compiler_wl_CXX='-Wl,'
16574 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16575 if test "$host_cpu" != ia64; then
16576 lt_prog_compiler_pic_CXX='+Z'
16577 fi
16578 ;;
16579 aCC)
16580 lt_prog_compiler_wl_CXX='-Wl,'
16581 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16582 case "$host_cpu" in
16583 hppa*64*|ia64*)
16584 # +Z the default
16585 ;;
16586 *)
16587 lt_prog_compiler_pic_CXX='+Z'
16588 ;;
16589 esac
16590 ;;
16591 *)
16592 ;;
16593 esac
16594 ;;
16595 irix5* | irix6* | nonstopux*)
16596 case $cc_basename in
16597 CC)
16598 lt_prog_compiler_wl_CXX='-Wl,'
16599 lt_prog_compiler_static_CXX='-non_shared'
16600 # CC pic flag -KPIC is the default.
16601 ;;
16602 *)
16603 ;;
16604 esac
16605 ;;
16606 linux*)
16607 case $cc_basename in
16608 KCC)
16609 # KAI C++ Compiler
16610 lt_prog_compiler_wl_CXX='--backend -Wl,'
16611 lt_prog_compiler_pic_CXX='-fPIC'
16612 ;;
16613 icpc)
16614 # Intel C++
16615 lt_prog_compiler_wl_CXX='-Wl,'
16616 lt_prog_compiler_pic_CXX='-KPIC'
16617 lt_prog_compiler_static_CXX='-static'
16618 ;;
16619 cxx)
16620 # Compaq C++
16621 # Make sure the PIC flag is empty. It appears that all Alpha
16622 # Linux and Compaq Tru64 Unix objects are PIC.
16623 lt_prog_compiler_pic_CXX=
16624 lt_prog_compiler_static_CXX='-non_shared'
16625 ;;
16626 *)
16627 ;;
16628 esac
16629 ;;
16630 lynxos*)
16631 ;;
16632 m88k*)
16633 ;;
16634 mvs*)
16635 case $cc_basename in
16636 cxx)
16637 lt_prog_compiler_pic_CXX='-W c,exportall'
16638 ;;
16639 *)
16640 ;;
16641 esac
16642 ;;
16643 netbsd*)
16644 ;;
16645 osf3* | osf4* | osf5*)
16646 case $cc_basename in
16647 KCC)
16648 lt_prog_compiler_wl_CXX='--backend -Wl,'
16649 ;;
16650 RCC)
16651 # Rational C++ 2.4.1
16652 lt_prog_compiler_pic_CXX='-pic'
16653 ;;
16654 cxx)
16655 # Digital/Compaq C++
16656 lt_prog_compiler_wl_CXX='-Wl,'
16657 # Make sure the PIC flag is empty. It appears that all Alpha
16658 # Linux and Compaq Tru64 Unix objects are PIC.
16659 lt_prog_compiler_pic_CXX=
16660 lt_prog_compiler_static_CXX='-non_shared'
16661 ;;
16662 *)
16663 ;;
16664 esac
16665 ;;
16666 psos*)
16667 ;;
16668 sco*)
16669 case $cc_basename in
16670 CC)
16671 lt_prog_compiler_pic_CXX='-fPIC'
16672 ;;
16673 *)
16674 ;;
16675 esac
16676 ;;
16677 solaris*)
16678 case $cc_basename in
16679 CC)
16680 # Sun C++ 4.2, 5.x and Centerline C++
16681 lt_prog_compiler_pic_CXX='-KPIC'
16682 lt_prog_compiler_static_CXX='-Bstatic'
16683 lt_prog_compiler_wl_CXX='-Qoption ld '
16684 ;;
16685 gcx)
16686 # Green Hills C++ Compiler
16687 lt_prog_compiler_pic_CXX='-PIC'
16688 ;;
16689 *)
16690 ;;
16691 esac
16692 ;;
16693 sunos4*)
16694 case $cc_basename in
16695 CC)
16696 # Sun C++ 4.x
16697 lt_prog_compiler_pic_CXX='-pic'
16698 lt_prog_compiler_static_CXX='-Bstatic'
16699 ;;
16700 lcc)
16701 # Lucid
16702 lt_prog_compiler_pic_CXX='-pic'
16703 ;;
16704 *)
16705 ;;
16706 esac
16707 ;;
16708 tandem*)
16709 case $cc_basename in
16710 NCC)
16711 # NonStop-UX NCC 3.20
16712 lt_prog_compiler_pic_CXX='-KPIC'
16713 ;;
16714 *)
16715 ;;
16716 esac
16717 ;;
16718 unixware*)
16719 ;;
16720 vxworks*)
16721 ;;
16722 *)
16723 lt_prog_compiler_can_build_shared_CXX=no
16724 ;;
16725 esac
16726 fi
16727
16728echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16729echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16730
16731#
16732# Check to make sure the PIC flag actually works.
16733#
16734if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016735
16736echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016737echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16738if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16740else
16741 lt_prog_compiler_pic_works_CXX=no
16742 ac_outfile=conftest.$ac_objext
16743 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16744 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16745 # Insert the option either (1) after the last *FLAGS variable, or
16746 # (2) before a word containing "conftest.", or (3) at the end.
16747 # Note that $ac_compile itself does not contain backslashes and begins
16748 # with a dollar sign (not a hyphen), so the echo should work correctly.
16749 # The option is referenced via a variable to avoid confusing sed.
16750 lt_compile=`echo "$ac_compile" | $SED \
16751 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16752 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16753 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb195d9d2006-03-23 23:21:29 +000016754 (eval echo "\"\$as_me:16754: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016755 (eval "$lt_compile" 2>conftest.err)
16756 ac_status=$?
16757 cat conftest.err >&5
Reid Spencerb195d9d2006-03-23 23:21:29 +000016758 echo "$as_me:16758: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016759 if (exit $ac_status) && test -s "$ac_outfile"; then
16760 # The compiler can only warn and ignore the option if not recognized
16761 # So say no if there are warnings
16762 if test ! -s conftest.err; then
16763 lt_prog_compiler_pic_works_CXX=yes
16764 fi
16765 fi
16766 $rm conftest*
16767
16768fi
16769echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16770echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16771
16772if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16773 case $lt_prog_compiler_pic_CXX in
16774 "" | " "*) ;;
16775 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16776 esac
16777else
16778 lt_prog_compiler_pic_CXX=
16779 lt_prog_compiler_can_build_shared_CXX=no
16780fi
16781
16782fi
16783case "$host_os" in
16784 # For platforms which do not support PIC, -DPIC is meaningless:
16785 *djgpp*)
16786 lt_prog_compiler_pic_CXX=
16787 ;;
16788 *)
16789 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16790 ;;
16791esac
16792
16793echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16794echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16795if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16796 echo $ECHO_N "(cached) $ECHO_C" >&6
16797else
16798 lt_cv_prog_compiler_c_o_CXX=no
16799 $rm -r conftest 2>/dev/null
16800 mkdir conftest
16801 cd conftest
16802 mkdir out
16803 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16804
John Criswell47fdd832003-07-14 16:52:07 +000016805 lt_compiler_flag="-o out/conftest2.$ac_objext"
16806 # Insert the option either (1) after the last *FLAGS variable, or
16807 # (2) before a word containing "conftest.", or (3) at the end.
16808 # Note that $ac_compile itself does not contain backslashes and begins
16809 # with a dollar sign (not a hyphen), so the echo should work correctly.
16810 lt_compile=`echo "$ac_compile" | $SED \
16811 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16813 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb195d9d2006-03-23 23:21:29 +000016814 (eval echo "\"\$as_me:16814: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016815 (eval "$lt_compile" 2>out/conftest.err)
16816 ac_status=$?
16817 cat out/conftest.err >&5
Reid Spencerb195d9d2006-03-23 23:21:29 +000016818 echo "$as_me:16818: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016819 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16820 then
16821 # The compiler can only warn and ignore the option if not recognized
16822 # So say no if there are warnings
16823 if test ! -s out/conftest.err; then
16824 lt_cv_prog_compiler_c_o_CXX=yes
16825 fi
16826 fi
16827 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016828 $rm conftest*
16829 # SGI C++ compiler will create directory out/ii_files/ for
16830 # template instantiation
16831 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16832 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016833 cd ..
16834 rmdir conftest
16835 $rm conftest*
16836
16837fi
16838echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16839echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16840
16841
16842hard_links="nottested"
16843if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16844 # do not overwrite the value of need_locks provided by the user
16845 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16846echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16847 hard_links=yes
16848 $rm conftest*
16849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16850 touch conftest.a
16851 ln conftest.a conftest.b 2>&5 || hard_links=no
16852 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16853 echo "$as_me:$LINENO: result: $hard_links" >&5
16854echo "${ECHO_T}$hard_links" >&6
16855 if test "$hard_links" = no; then
16856 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16857echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16858 need_locks=warn
16859 fi
16860else
16861 need_locks=no
16862fi
16863
16864echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16865echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16866
16867 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16868 case $host_os in
16869 aix4* | aix5*)
16870 # If we're using GNU nm, then we don't want the "-C" option.
16871 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16872 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16873 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'
16874 else
16875 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'
16876 fi
16877 ;;
16878 pw32*)
16879 export_symbols_cmds_CXX="$ltdll_cmds"
16880 ;;
16881 cygwin* | mingw*)
16882 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16883 ;;
16884 *)
16885 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16886 ;;
16887 esac
16888
16889echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16890echo "${ECHO_T}$ld_shlibs_CXX" >&6
16891test "$ld_shlibs_CXX" = no && can_build_shared=no
16892
16893variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16894if test "$GCC" = yes; then
16895 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16896fi
16897
16898#
16899# Do we need to explicitly link libc?
16900#
16901case "x$archive_cmds_need_lc_CXX" in
16902x|xyes)
16903 # Assume -lc should be added
16904 archive_cmds_need_lc_CXX=yes
16905
16906 if test "$enable_shared" = yes && test "$GCC" = yes; then
16907 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016908 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016909 # FIXME: we may have to deal with multi-command sequences.
16910 ;;
16911 '$CC '*)
16912 # Test whether the compiler implicitly links with -lc since on some
16913 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16914 # to ld, don't add -lc before -lgcc.
16915 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16916echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16917 $rm conftest*
16918 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16919
16920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16921 (eval $ac_compile) 2>&5
16922 ac_status=$?
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); } 2>conftest.err; then
16925 soname=conftest
16926 lib=conftest
16927 libobjs=conftest.$ac_objext
16928 deplibs=
16929 wl=$lt_prog_compiler_wl_CXX
16930 compiler_flags=-v
16931 linker_flags=-v
16932 verstring=
16933 output_objdir=.
16934 libname=conftest
16935 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16936 allow_undefined_flag_CXX=
16937 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16938 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16939 ac_status=$?
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); }
16942 then
16943 archive_cmds_need_lc_CXX=no
16944 else
16945 archive_cmds_need_lc_CXX=yes
16946 fi
16947 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16948 else
16949 cat conftest.err 1>&5
16950 fi
16951 $rm conftest*
16952 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16953echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16954 ;;
16955 esac
16956 fi
16957 ;;
16958esac
16959
John Criswell47fdd832003-07-14 16:52:07 +000016960echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16961echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16962library_names_spec=
16963libname_spec='lib$name'
16964soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016965shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016966postinstall_cmds=
16967postuninstall_cmds=
16968finish_cmds=
16969finish_eval=
16970shlibpath_var=
16971shlibpath_overrides_runpath=unknown
16972version_type=none
16973dynamic_linker="$host_os ld.so"
16974sys_lib_dlsearch_path_spec="/lib /usr/lib"
16975if test "$GCC" = yes; then
16976 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16977 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16978 # if the path contains ";" then we assume it to be the separator
16979 # otherwise default to the standard path separator (i.e. ":") - it is
16980 # assumed that no part of a normal pathname contains ";" but that should
16981 # okay in the real world where ";" in dirpaths is itself problematic.
16982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16983 else
16984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16985 fi
16986else
16987 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16988fi
16989need_lib_prefix=unknown
16990hardcode_into_libs=no
16991
16992# when you set need_version to no, make sure it does not cause -set_version
16993# flags to be left without arguments
16994need_version=unknown
16995
16996case $host_os in
16997aix3*)
16998 version_type=linux
16999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17000 shlibpath_var=LIBPATH
17001
17002 # AIX 3 has no versioning support, so we append a major version to the name.
17003 soname_spec='${libname}${release}${shared_ext}$major'
17004 ;;
17005
17006aix4* | aix5*)
17007 version_type=linux
17008 need_lib_prefix=no
17009 need_version=no
17010 hardcode_into_libs=yes
17011 if test "$host_cpu" = ia64; then
17012 # AIX 5 supports IA64
17013 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17014 shlibpath_var=LD_LIBRARY_PATH
17015 else
17016 # With GCC up to 2.95.x, collect2 would create an import file
17017 # for dependence libraries. The import file would start with
17018 # the line `#! .'. This would cause the generated library to
17019 # depend on `.', always an invalid library. This was fixed in
17020 # development snapshots of GCC prior to 3.0.
17021 case $host_os in
17022 aix4 | aix4.[01] | aix4.[01].*)
17023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17024 echo ' yes '
17025 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17026 :
17027 else
17028 can_build_shared=no
17029 fi
17030 ;;
17031 esac
17032 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17033 # soname into executable. Probably we can add versioning support to
17034 # collect2, so additional links can be useful in future.
17035 if test "$aix_use_runtimelinking" = yes; then
17036 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17037 # instead of lib<name>.a to let people know that these are not
17038 # typical AIX shared libraries.
17039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17040 else
17041 # We preserve .a as extension for shared libraries through AIX4.2
17042 # and later when we are not doing run time linking.
17043 library_names_spec='${libname}${release}.a $libname.a'
17044 soname_spec='${libname}${release}${shared_ext}$major'
17045 fi
17046 shlibpath_var=LIBPATH
17047 fi
17048 ;;
17049
17050amigaos*)
17051 library_names_spec='$libname.ixlibrary $libname.a'
17052 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017053 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 +000017054 ;;
17055
17056beos*)
17057 library_names_spec='${libname}${shared_ext}'
17058 dynamic_linker="$host_os ld.so"
17059 shlibpath_var=LIBRARY_PATH
17060 ;;
17061
Reid Spencer2706f8c2004-09-19 23:53:36 +000017062bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000017063 version_type=linux
17064 need_version=no
17065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17066 soname_spec='${libname}${release}${shared_ext}$major'
17067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17068 shlibpath_var=LD_LIBRARY_PATH
17069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17071 # the default ld.so.conf also contains /usr/contrib/lib and
17072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17073 # libtool to hard-code these into programs
17074 ;;
17075
17076cygwin* | mingw* | pw32*)
17077 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017078 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017079 need_version=no
17080 need_lib_prefix=no
17081
17082 case $GCC,$host_os in
17083 yes,cygwin* | yes,mingw* | yes,pw32*)
17084 library_names_spec='$libname.dll.a'
17085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017086 postinstall_cmds='base_file=`basename \${file}`~
17087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17088 dldir=$destdir/`dirname \$dlpath`~
17089 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017090 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17092 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017093 $rm \$dlpath'
17094 shlibpath_overrides_runpath=yes
17095
17096 case $host_os in
17097 cygwin*)
17098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17099 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 +000017100 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017101 ;;
17102 mingw*)
17103 # MinGW DLLs use traditional 'lib' prefix
17104 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17105 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17106 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17107 # It is most probably a Windows format PATH printed by
17108 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17109 # path with ; separators, and with drive letters. We can handle the
17110 # drive letters (cygwin fileutils understands them), so leave them,
17111 # especially as we might pass files found there to a mingw objdump,
17112 # which wouldn't understand a cygwinified path. Ahh.
17113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17114 else
17115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17116 fi
17117 ;;
17118 pw32*)
17119 # pw32 DLLs use 'pw' prefix rather than 'lib'
17120 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17121 ;;
17122 esac
17123 ;;
17124
17125 *)
17126 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17127 ;;
17128 esac
17129 dynamic_linker='Win32 ld.exe'
17130 # FIXME: first we should search . and the directory the executable is in
17131 shlibpath_var=PATH
17132 ;;
17133
17134darwin* | rhapsody*)
17135 dynamic_linker="$host_os dyld"
17136 version_type=darwin
17137 need_lib_prefix=no
17138 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017139 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017140 soname_spec='${libname}${release}${major}$shared_ext'
17141 shlibpath_overrides_runpath=yes
17142 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017143 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017144 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017145 if test "$GCC" = yes; then
17146 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"`
17147 else
17148 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017149 fi
17150 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17151 ;;
17152
17153dgux*)
17154 version_type=linux
17155 need_lib_prefix=no
17156 need_version=no
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17158 soname_spec='${libname}${release}${shared_ext}$major'
17159 shlibpath_var=LD_LIBRARY_PATH
17160 ;;
17161
17162freebsd1*)
17163 dynamic_linker=no
17164 ;;
17165
Reid Spencer2706f8c2004-09-19 23:53:36 +000017166kfreebsd*-gnu)
17167 version_type=linux
17168 need_lib_prefix=no
17169 need_version=no
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17171 soname_spec='${libname}${release}${shared_ext}$major'
17172 shlibpath_var=LD_LIBRARY_PATH
17173 shlibpath_overrides_runpath=no
17174 hardcode_into_libs=yes
17175 dynamic_linker='GNU ld.so'
17176 ;;
17177
John Criswell47fdd832003-07-14 16:52:07 +000017178freebsd*)
17179 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17180 version_type=freebsd-$objformat
17181 case $version_type in
17182 freebsd-elf*)
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17184 need_version=no
17185 need_lib_prefix=no
17186 ;;
17187 freebsd-*)
17188 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17189 need_version=yes
17190 ;;
17191 esac
17192 shlibpath_var=LD_LIBRARY_PATH
17193 case $host_os in
17194 freebsd2*)
17195 shlibpath_overrides_runpath=yes
17196 ;;
17197 freebsd3.01* | freebsdelf3.01*)
17198 shlibpath_overrides_runpath=yes
17199 hardcode_into_libs=yes
17200 ;;
17201 *) # from 3.2 on
17202 shlibpath_overrides_runpath=no
17203 hardcode_into_libs=yes
17204 ;;
17205 esac
17206 ;;
17207
17208gnu*)
17209 version_type=linux
17210 need_lib_prefix=no
17211 need_version=no
17212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 shlibpath_var=LD_LIBRARY_PATH
17215 hardcode_into_libs=yes
17216 ;;
17217
17218hpux9* | hpux10* | hpux11*)
17219 # Give a soname corresponding to the major version so that dld.sl refuses to
17220 # link against other versions.
17221 version_type=sunos
17222 need_lib_prefix=no
17223 need_version=no
17224 case "$host_cpu" in
17225 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017226 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017227 hardcode_into_libs=yes
17228 dynamic_linker="$host_os dld.so"
17229 shlibpath_var=LD_LIBRARY_PATH
17230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 if test "X$HPUX_IA64_MODE" = X32; then
17234 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17235 else
17236 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17237 fi
17238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17239 ;;
17240 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017241 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017242 hardcode_into_libs=yes
17243 dynamic_linker="$host_os dld.sl"
17244 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17247 soname_spec='${libname}${release}${shared_ext}$major'
17248 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17250 ;;
17251 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017252 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017253 dynamic_linker="$host_os dld.sl"
17254 shlibpath_var=SHLIB_PATH
17255 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17257 soname_spec='${libname}${release}${shared_ext}$major'
17258 ;;
17259 esac
17260 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17261 postinstall_cmds='chmod 555 $lib'
17262 ;;
17263
17264irix5* | irix6* | nonstopux*)
17265 case $host_os in
17266 nonstopux*) version_type=nonstopux ;;
17267 *)
17268 if test "$lt_cv_prog_gnu_ld" = yes; then
17269 version_type=linux
17270 else
17271 version_type=irix
17272 fi ;;
17273 esac
17274 need_lib_prefix=no
17275 need_version=no
17276 soname_spec='${libname}${release}${shared_ext}$major'
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17278 case $host_os in
17279 irix5* | nonstopux*)
17280 libsuff= shlibsuff=
17281 ;;
17282 *)
17283 case $LD in # libtool.m4 will add one of these switches to LD
17284 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17285 libsuff= shlibsuff= libmagic=32-bit;;
17286 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17287 libsuff=32 shlibsuff=N32 libmagic=N32;;
17288 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17289 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17290 *) libsuff= shlibsuff= libmagic=never-match;;
17291 esac
17292 ;;
17293 esac
17294 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17295 shlibpath_overrides_runpath=no
17296 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17297 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17298 hardcode_into_libs=yes
17299 ;;
17300
17301# No shared lib support for Linux oldld, aout, or coff.
17302linux*oldld* | linux*aout* | linux*coff*)
17303 dynamic_linker=no
17304 ;;
17305
17306# This must be Linux ELF.
17307linux*)
17308 version_type=linux
17309 need_lib_prefix=no
17310 need_version=no
17311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17312 soname_spec='${libname}${release}${shared_ext}$major'
17313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17314 shlibpath_var=LD_LIBRARY_PATH
17315 shlibpath_overrides_runpath=no
17316 # This implies no fast_install, which is unacceptable.
17317 # Some rework will be needed to allow for fast_install
17318 # before this can be enabled.
17319 hardcode_into_libs=yes
17320
Reid Spencer2706f8c2004-09-19 23:53:36 +000017321 # Append ld.so.conf contents to the search path
17322 if test -f /etc/ld.so.conf; then
17323 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17324 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17325 fi
17326
John Criswell47fdd832003-07-14 16:52:07 +000017327 # We used to test for /lib/ld.so.1 and disable shared libraries on
17328 # powerpc, because MkLinux only supported shared libraries with the
17329 # GNU dynamic linker. Since this was broken with cross compilers,
17330 # most powerpc-linux boxes support dynamic linking these days and
17331 # people can always --disable-shared, the test was removed, and we
17332 # assume the GNU/Linux dynamic linker is in use.
17333 dynamic_linker='GNU/Linux ld.so'
17334 ;;
17335
Reid Spencer2706f8c2004-09-19 23:53:36 +000017336knetbsd*-gnu)
17337 version_type=linux
17338 need_lib_prefix=no
17339 need_version=no
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17341 soname_spec='${libname}${release}${shared_ext}$major'
17342 shlibpath_var=LD_LIBRARY_PATH
17343 shlibpath_overrides_runpath=no
17344 hardcode_into_libs=yes
17345 dynamic_linker='GNU ld.so'
17346 ;;
17347
John Criswell47fdd832003-07-14 16:52:07 +000017348netbsd*)
17349 version_type=sunos
17350 need_lib_prefix=no
17351 need_version=no
17352 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17355 dynamic_linker='NetBSD (a.out) ld.so'
17356 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017358 soname_spec='${libname}${release}${shared_ext}$major'
17359 dynamic_linker='NetBSD ld.elf_so'
17360 fi
17361 shlibpath_var=LD_LIBRARY_PATH
17362 shlibpath_overrides_runpath=yes
17363 hardcode_into_libs=yes
17364 ;;
17365
17366newsos6)
17367 version_type=linux
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17369 shlibpath_var=LD_LIBRARY_PATH
17370 shlibpath_overrides_runpath=yes
17371 ;;
17372
Reid Spencer2706f8c2004-09-19 23:53:36 +000017373nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017374 version_type=linux
17375 need_lib_prefix=no
17376 need_version=no
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 soname_spec='${libname}${release}${shared_ext}$major'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 shlibpath_overrides_runpath=yes
17381 ;;
17382
17383openbsd*)
17384 version_type=sunos
17385 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017386 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17389 shlibpath_var=LD_LIBRARY_PATH
17390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17391 case $host_os in
17392 openbsd2.[89] | openbsd2.[89].*)
17393 shlibpath_overrides_runpath=no
17394 ;;
17395 *)
17396 shlibpath_overrides_runpath=yes
17397 ;;
17398 esac
17399 else
17400 shlibpath_overrides_runpath=yes
17401 fi
17402 ;;
17403
17404os2*)
17405 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017406 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017407 need_lib_prefix=no
17408 library_names_spec='$libname${shared_ext} $libname.a'
17409 dynamic_linker='OS/2 ld.exe'
17410 shlibpath_var=LIBPATH
17411 ;;
17412
17413osf3* | osf4* | osf5*)
17414 version_type=osf
17415 need_lib_prefix=no
17416 need_version=no
17417 soname_spec='${libname}${release}${shared_ext}$major'
17418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17419 shlibpath_var=LD_LIBRARY_PATH
17420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17422 ;;
17423
17424sco3.2v5*)
17425 version_type=osf
17426 soname_spec='${libname}${release}${shared_ext}$major'
17427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17428 shlibpath_var=LD_LIBRARY_PATH
17429 ;;
17430
17431solaris*)
17432 version_type=linux
17433 need_lib_prefix=no
17434 need_version=no
17435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17436 soname_spec='${libname}${release}${shared_ext}$major'
17437 shlibpath_var=LD_LIBRARY_PATH
17438 shlibpath_overrides_runpath=yes
17439 hardcode_into_libs=yes
17440 # ldd complains unless libraries are executable
17441 postinstall_cmds='chmod +x $lib'
17442 ;;
17443
17444sunos4*)
17445 version_type=sunos
17446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17447 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17448 shlibpath_var=LD_LIBRARY_PATH
17449 shlibpath_overrides_runpath=yes
17450 if test "$with_gnu_ld" = yes; then
17451 need_lib_prefix=no
17452 fi
17453 need_version=yes
17454 ;;
17455
17456sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17457 version_type=linux
17458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17459 soname_spec='${libname}${release}${shared_ext}$major'
17460 shlibpath_var=LD_LIBRARY_PATH
17461 case $host_vendor in
17462 sni)
17463 shlibpath_overrides_runpath=no
17464 need_lib_prefix=no
17465 export_dynamic_flag_spec='${wl}-Blargedynsym'
17466 runpath_var=LD_RUN_PATH
17467 ;;
17468 siemens)
17469 need_lib_prefix=no
17470 ;;
17471 motorola)
17472 need_lib_prefix=no
17473 need_version=no
17474 shlibpath_overrides_runpath=no
17475 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17476 ;;
17477 esac
17478 ;;
17479
17480sysv4*MP*)
17481 if test -d /usr/nec ;then
17482 version_type=linux
17483 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17484 soname_spec='$libname${shared_ext}.$major'
17485 shlibpath_var=LD_LIBRARY_PATH
17486 fi
17487 ;;
17488
17489uts4*)
17490 version_type=linux
17491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17492 soname_spec='${libname}${release}${shared_ext}$major'
17493 shlibpath_var=LD_LIBRARY_PATH
17494 ;;
17495
17496*)
17497 dynamic_linker=no
17498 ;;
17499esac
17500echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17501echo "${ECHO_T}$dynamic_linker" >&6
17502test "$dynamic_linker" = no && can_build_shared=no
17503
Reid Spencer2706f8c2004-09-19 23:53:36 +000017504echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17505echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17506hardcode_action_CXX=
17507if test -n "$hardcode_libdir_flag_spec_CXX" || \
17508 test -n "$runpath_var_CXX" || \
17509 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17510
17511 # We can hardcode non-existant directories.
17512 if test "$hardcode_direct_CXX" != no &&
17513 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17514 # have to relink, otherwise we might link with an installed library
17515 # when we should be linking with a yet-to-be-installed one
17516 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17517 test "$hardcode_minus_L_CXX" != no; then
17518 # Linking always hardcodes the temporary library directory.
17519 hardcode_action_CXX=relink
17520 else
17521 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17522 hardcode_action_CXX=immediate
17523 fi
17524else
17525 # We cannot hardcode anything, or else we can only hardcode existing
17526 # directories.
17527 hardcode_action_CXX=unsupported
17528fi
17529echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17530echo "${ECHO_T}$hardcode_action_CXX" >&6
17531
17532if test "$hardcode_action_CXX" = relink; then
17533 # Fast installation is not supported
17534 enable_fast_install=no
17535elif test "$shlibpath_overrides_runpath" = yes ||
17536 test "$enable_shared" = no; then
17537 # Fast installation is not necessary
17538 enable_fast_install=needless
17539fi
17540
17541striplib=
17542old_striplib=
17543echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17544echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17545if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17546 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17547 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17548 echo "$as_me:$LINENO: result: yes" >&5
17549echo "${ECHO_T}yes" >&6
17550else
17551# FIXME - insert some real tests, host_os isn't really good enough
17552 case $host_os in
17553 darwin*)
17554 if test -n "$STRIP" ; then
17555 striplib="$STRIP -x"
17556 echo "$as_me:$LINENO: result: yes" >&5
17557echo "${ECHO_T}yes" >&6
17558 else
17559 echo "$as_me:$LINENO: result: no" >&5
17560echo "${ECHO_T}no" >&6
17561fi
17562 ;;
17563 *)
17564 echo "$as_me:$LINENO: result: no" >&5
17565echo "${ECHO_T}no" >&6
17566 ;;
17567 esac
17568fi
17569
John Criswell47fdd832003-07-14 16:52:07 +000017570if test "x$enable_dlopen" != xyes; then
17571 enable_dlopen=unknown
17572 enable_dlopen_self=unknown
17573 enable_dlopen_self_static=unknown
17574else
17575 lt_cv_dlopen=no
17576 lt_cv_dlopen_libs=
17577
17578 case $host_os in
17579 beos*)
17580 lt_cv_dlopen="load_add_on"
17581 lt_cv_dlopen_libs=
17582 lt_cv_dlopen_self=yes
17583 ;;
17584
17585 mingw* | pw32*)
17586 lt_cv_dlopen="LoadLibrary"
17587 lt_cv_dlopen_libs=
17588 ;;
17589
17590 cygwin*)
17591 lt_cv_dlopen="dlopen"
17592 lt_cv_dlopen_libs=
17593 ;;
17594
17595 darwin*)
17596 # if libdl is installed we need to link against it
17597 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17598echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17599if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17601else
17602 ac_check_lib_save_LIBS=$LIBS
17603LIBS="-ldl $LIBS"
17604cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017605/* confdefs.h. */
17606_ACEOF
17607cat confdefs.h >>conftest.$ac_ext
17608cat >>conftest.$ac_ext <<_ACEOF
17609/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017610
17611/* Override any gcc2 internal prototype to avoid an error. */
17612#ifdef __cplusplus
17613extern "C"
17614#endif
17615/* We use char because int might match the return type of a gcc2
17616 builtin and then its argument prototype would still apply. */
17617char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017618int
17619main ()
17620{
17621dlopen ();
17622 ;
17623 return 0;
17624}
17625_ACEOF
17626rm -f conftest.$ac_objext conftest$ac_exeext
17627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017628 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017629 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017630 grep -v '^ *+' conftest.er1 >conftest.err
17631 rm -f conftest.er1
17632 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017635 { ac_try='test -z "$ac_cxx_werror_flag"
17636 || test ! -s conftest.err'
17637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; } &&
17642 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17644 (eval $ac_try) 2>&5
17645 ac_status=$?
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); }; }; then
17648 ac_cv_lib_dl_dlopen=yes
17649else
17650 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017651sed 's/^/| /' conftest.$ac_ext >&5
17652
John Criswell47fdd832003-07-14 16:52:07 +000017653ac_cv_lib_dl_dlopen=no
17654fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017655rm -f conftest.err conftest.$ac_objext \
17656 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017657LIBS=$ac_check_lib_save_LIBS
17658fi
17659echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17660echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17661if test $ac_cv_lib_dl_dlopen = yes; then
17662 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17663else
17664
17665 lt_cv_dlopen="dyld"
17666 lt_cv_dlopen_libs=
17667 lt_cv_dlopen_self=yes
17668
17669fi
17670
17671 ;;
17672
17673 *)
17674 echo "$as_me:$LINENO: checking for shl_load" >&5
17675echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17676if test "${ac_cv_func_shl_load+set}" = set; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17678else
17679 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017680/* confdefs.h. */
17681_ACEOF
17682cat confdefs.h >>conftest.$ac_ext
17683cat >>conftest.$ac_ext <<_ACEOF
17684/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017685/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17687#define shl_load innocuous_shl_load
17688
John Criswell47fdd832003-07-14 16:52:07 +000017689/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017690 which can conflict with char shl_load (); below.
17691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17692 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017693
John Criswell0c38eaf2003-09-10 15:17:25 +000017694#ifdef __STDC__
17695# include <limits.h>
17696#else
17697# include <assert.h>
17698#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017699
17700#undef shl_load
17701
John Criswell47fdd832003-07-14 16:52:07 +000017702/* Override any gcc2 internal prototype to avoid an error. */
17703#ifdef __cplusplus
17704extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017705{
John Criswell47fdd832003-07-14 16:52:07 +000017706#endif
17707/* We use char because int might match the return type of a gcc2
17708 builtin and then its argument prototype would still apply. */
17709char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017710/* The GNU C library defines this for functions which it implements
17711 to always fail with ENOSYS. Some functions are actually named
17712 something starting with __ and the normal name is an alias. */
17713#if defined (__stub_shl_load) || defined (__stub___shl_load)
17714choke me
17715#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017716char (*f) () = shl_load;
17717#endif
17718#ifdef __cplusplus
17719}
John Criswell47fdd832003-07-14 16:52:07 +000017720#endif
17721
John Criswell0c38eaf2003-09-10 15:17:25 +000017722int
17723main ()
17724{
17725return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017726 ;
17727 return 0;
17728}
17729_ACEOF
17730rm -f conftest.$ac_objext conftest$ac_exeext
17731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017732 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017733 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017734 grep -v '^ *+' conftest.er1 >conftest.err
17735 rm -f conftest.er1
17736 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017739 { ac_try='test -z "$ac_cxx_werror_flag"
17740 || test ! -s conftest.err'
17741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17742 (eval $ac_try) 2>&5
17743 ac_status=$?
17744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745 (exit $ac_status); }; } &&
17746 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17748 (eval $ac_try) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_func_shl_load=yes
17753else
17754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017755sed 's/^/| /' conftest.$ac_ext >&5
17756
John Criswell47fdd832003-07-14 16:52:07 +000017757ac_cv_func_shl_load=no
17758fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017759rm -f conftest.err conftest.$ac_objext \
17760 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017761fi
17762echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17763echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17764if test $ac_cv_func_shl_load = yes; then
17765 lt_cv_dlopen="shl_load"
17766else
17767 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17768echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17769if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17771else
17772 ac_check_lib_save_LIBS=$LIBS
17773LIBS="-ldld $LIBS"
17774cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017775/* confdefs.h. */
17776_ACEOF
17777cat confdefs.h >>conftest.$ac_ext
17778cat >>conftest.$ac_ext <<_ACEOF
17779/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017780
17781/* Override any gcc2 internal prototype to avoid an error. */
17782#ifdef __cplusplus
17783extern "C"
17784#endif
17785/* We use char because int might match the return type of a gcc2
17786 builtin and then its argument prototype would still apply. */
17787char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017788int
17789main ()
17790{
17791shl_load ();
17792 ;
17793 return 0;
17794}
17795_ACEOF
17796rm -f conftest.$ac_objext conftest$ac_exeext
17797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017798 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017799 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017800 grep -v '^ *+' conftest.er1 >conftest.err
17801 rm -f conftest.er1
17802 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017805 { ac_try='test -z "$ac_cxx_werror_flag"
17806 || test ! -s conftest.err'
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; } &&
17812 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814 (eval $ac_try) 2>&5
17815 ac_status=$?
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); }; }; then
17818 ac_cv_lib_dld_shl_load=yes
17819else
17820 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017821sed 's/^/| /' conftest.$ac_ext >&5
17822
John Criswell47fdd832003-07-14 16:52:07 +000017823ac_cv_lib_dld_shl_load=no
17824fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017825rm -f conftest.err conftest.$ac_objext \
17826 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017827LIBS=$ac_check_lib_save_LIBS
17828fi
17829echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17830echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17831if test $ac_cv_lib_dld_shl_load = yes; then
17832 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17833else
17834 echo "$as_me:$LINENO: checking for dlopen" >&5
17835echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17836if test "${ac_cv_func_dlopen+set}" = set; then
17837 echo $ECHO_N "(cached) $ECHO_C" >&6
17838else
17839 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017840/* confdefs.h. */
17841_ACEOF
17842cat confdefs.h >>conftest.$ac_ext
17843cat >>conftest.$ac_ext <<_ACEOF
17844/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017845/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17847#define dlopen innocuous_dlopen
17848
John Criswell47fdd832003-07-14 16:52:07 +000017849/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017850 which can conflict with char dlopen (); below.
17851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17852 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017853
John Criswell0c38eaf2003-09-10 15:17:25 +000017854#ifdef __STDC__
17855# include <limits.h>
17856#else
17857# include <assert.h>
17858#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017859
17860#undef dlopen
17861
John Criswell47fdd832003-07-14 16:52:07 +000017862/* Override any gcc2 internal prototype to avoid an error. */
17863#ifdef __cplusplus
17864extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017865{
John Criswell47fdd832003-07-14 16:52:07 +000017866#endif
17867/* We use char because int might match the return type of a gcc2
17868 builtin and then its argument prototype would still apply. */
17869char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017870/* The GNU C library defines this for functions which it implements
17871 to always fail with ENOSYS. Some functions are actually named
17872 something starting with __ and the normal name is an alias. */
17873#if defined (__stub_dlopen) || defined (__stub___dlopen)
17874choke me
17875#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017876char (*f) () = dlopen;
17877#endif
17878#ifdef __cplusplus
17879}
John Criswell47fdd832003-07-14 16:52:07 +000017880#endif
17881
John Criswell0c38eaf2003-09-10 15:17:25 +000017882int
17883main ()
17884{
17885return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017886 ;
17887 return 0;
17888}
17889_ACEOF
17890rm -f conftest.$ac_objext conftest$ac_exeext
17891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017892 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017893 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017894 grep -v '^ *+' conftest.er1 >conftest.err
17895 rm -f conftest.er1
17896 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17898 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017899 { ac_try='test -z "$ac_cxx_werror_flag"
17900 || test ! -s conftest.err'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; }; then
17912 ac_cv_func_dlopen=yes
17913else
17914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017915sed 's/^/| /' conftest.$ac_ext >&5
17916
John Criswell47fdd832003-07-14 16:52:07 +000017917ac_cv_func_dlopen=no
17918fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017919rm -f conftest.err conftest.$ac_objext \
17920 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017921fi
17922echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17923echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17924if test $ac_cv_func_dlopen = yes; then
17925 lt_cv_dlopen="dlopen"
17926else
17927 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17928echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17929if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931else
17932 ac_check_lib_save_LIBS=$LIBS
17933LIBS="-ldl $LIBS"
17934cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017935/* confdefs.h. */
17936_ACEOF
17937cat confdefs.h >>conftest.$ac_ext
17938cat >>conftest.$ac_ext <<_ACEOF
17939/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017940
17941/* Override any gcc2 internal prototype to avoid an error. */
17942#ifdef __cplusplus
17943extern "C"
17944#endif
17945/* We use char because int might match the return type of a gcc2
17946 builtin and then its argument prototype would still apply. */
17947char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017948int
17949main ()
17950{
17951dlopen ();
17952 ;
17953 return 0;
17954}
17955_ACEOF
17956rm -f conftest.$ac_objext conftest$ac_exeext
17957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017958 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017959 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017960 grep -v '^ *+' conftest.er1 >conftest.err
17961 rm -f conftest.er1
17962 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017965 { ac_try='test -z "$ac_cxx_werror_flag"
17966 || test ! -s conftest.err'
17967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17968 (eval $ac_try) 2>&5
17969 ac_status=$?
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); }; } &&
17972 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17974 (eval $ac_try) 2>&5
17975 ac_status=$?
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }; }; then
17978 ac_cv_lib_dl_dlopen=yes
17979else
17980 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017981sed 's/^/| /' conftest.$ac_ext >&5
17982
John Criswell47fdd832003-07-14 16:52:07 +000017983ac_cv_lib_dl_dlopen=no
17984fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017985rm -f conftest.err conftest.$ac_objext \
17986 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017987LIBS=$ac_check_lib_save_LIBS
17988fi
17989echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17990echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17991if test $ac_cv_lib_dl_dlopen = yes; then
17992 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17993else
17994 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17995echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17996if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17997 echo $ECHO_N "(cached) $ECHO_C" >&6
17998else
17999 ac_check_lib_save_LIBS=$LIBS
18000LIBS="-lsvld $LIBS"
18001cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018002/* confdefs.h. */
18003_ACEOF
18004cat confdefs.h >>conftest.$ac_ext
18005cat >>conftest.$ac_ext <<_ACEOF
18006/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018007
18008/* Override any gcc2 internal prototype to avoid an error. */
18009#ifdef __cplusplus
18010extern "C"
18011#endif
18012/* We use char because int might match the return type of a gcc2
18013 builtin and then its argument prototype would still apply. */
18014char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000018015int
18016main ()
18017{
18018dlopen ();
18019 ;
18020 return 0;
18021}
18022_ACEOF
18023rm -f conftest.$ac_objext conftest$ac_exeext
18024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018025 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018026 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018027 grep -v '^ *+' conftest.er1 >conftest.err
18028 rm -f conftest.er1
18029 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018032 { ac_try='test -z "$ac_cxx_werror_flag"
18033 || test ! -s conftest.err'
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; } &&
18039 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041 (eval $ac_try) 2>&5
18042 ac_status=$?
18043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); }; }; then
18045 ac_cv_lib_svld_dlopen=yes
18046else
18047 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018048sed 's/^/| /' conftest.$ac_ext >&5
18049
John Criswell47fdd832003-07-14 16:52:07 +000018050ac_cv_lib_svld_dlopen=no
18051fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018052rm -f conftest.err conftest.$ac_objext \
18053 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018054LIBS=$ac_check_lib_save_LIBS
18055fi
18056echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18057echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18058if test $ac_cv_lib_svld_dlopen = yes; then
18059 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18060else
18061 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18062echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18063if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18064 echo $ECHO_N "(cached) $ECHO_C" >&6
18065else
18066 ac_check_lib_save_LIBS=$LIBS
18067LIBS="-ldld $LIBS"
18068cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018069/* confdefs.h. */
18070_ACEOF
18071cat confdefs.h >>conftest.$ac_ext
18072cat >>conftest.$ac_ext <<_ACEOF
18073/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018074
18075/* Override any gcc2 internal prototype to avoid an error. */
18076#ifdef __cplusplus
18077extern "C"
18078#endif
18079/* We use char because int might match the return type of a gcc2
18080 builtin and then its argument prototype would still apply. */
18081char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018082int
18083main ()
18084{
18085dld_link ();
18086 ;
18087 return 0;
18088}
18089_ACEOF
18090rm -f conftest.$ac_objext conftest$ac_exeext
18091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018092 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018093 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018094 grep -v '^ *+' conftest.er1 >conftest.err
18095 rm -f conftest.er1
18096 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018099 { ac_try='test -z "$ac_cxx_werror_flag"
18100 || test ! -s conftest.err'
18101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102 (eval $ac_try) 2>&5
18103 ac_status=$?
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); }; } &&
18106 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108 (eval $ac_try) 2>&5
18109 ac_status=$?
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); }; }; then
18112 ac_cv_lib_dld_dld_link=yes
18113else
18114 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018115sed 's/^/| /' conftest.$ac_ext >&5
18116
John Criswell47fdd832003-07-14 16:52:07 +000018117ac_cv_lib_dld_dld_link=no
18118fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018119rm -f conftest.err conftest.$ac_objext \
18120 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018121LIBS=$ac_check_lib_save_LIBS
18122fi
18123echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18124echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18125if test $ac_cv_lib_dld_dld_link = yes; then
18126 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18127fi
18128
18129
18130fi
18131
18132
18133fi
18134
18135
18136fi
18137
18138
18139fi
18140
18141
18142fi
18143
18144 ;;
18145 esac
18146
18147 if test "x$lt_cv_dlopen" != xno; then
18148 enable_dlopen=yes
18149 else
18150 enable_dlopen=no
18151 fi
18152
18153 case $lt_cv_dlopen in
18154 dlopen)
18155 save_CPPFLAGS="$CPPFLAGS"
18156 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18157
18158 save_LDFLAGS="$LDFLAGS"
18159 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18160
18161 save_LIBS="$LIBS"
18162 LIBS="$lt_cv_dlopen_libs $LIBS"
18163
18164 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18165echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18166if test "${lt_cv_dlopen_self+set}" = set; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18168else
18169 if test "$cross_compiling" = yes; then :
18170 lt_cv_dlopen_self=cross
18171else
18172 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18173 lt_status=$lt_dlunknown
18174 cat > conftest.$ac_ext <<EOF
Reid Spencerb195d9d2006-03-23 23:21:29 +000018175#line 18175 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018176#include "confdefs.h"
18177
18178#if HAVE_DLFCN_H
18179#include <dlfcn.h>
18180#endif
18181
18182#include <stdio.h>
18183
18184#ifdef RTLD_GLOBAL
18185# define LT_DLGLOBAL RTLD_GLOBAL
18186#else
18187# ifdef DL_GLOBAL
18188# define LT_DLGLOBAL DL_GLOBAL
18189# else
18190# define LT_DLGLOBAL 0
18191# endif
18192#endif
18193
18194/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18195 find out it does not work in some platform. */
18196#ifndef LT_DLLAZY_OR_NOW
18197# ifdef RTLD_LAZY
18198# define LT_DLLAZY_OR_NOW RTLD_LAZY
18199# else
18200# ifdef DL_LAZY
18201# define LT_DLLAZY_OR_NOW DL_LAZY
18202# else
18203# ifdef RTLD_NOW
18204# define LT_DLLAZY_OR_NOW RTLD_NOW
18205# else
18206# ifdef DL_NOW
18207# define LT_DLLAZY_OR_NOW DL_NOW
18208# else
18209# define LT_DLLAZY_OR_NOW 0
18210# endif
18211# endif
18212# endif
18213# endif
18214#endif
18215
18216#ifdef __cplusplus
18217extern "C" void exit (int);
18218#endif
18219
18220void fnord() { int i=42;}
18221int main ()
18222{
18223 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18224 int status = $lt_dlunknown;
18225
18226 if (self)
18227 {
18228 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18229 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18230 /* dlclose (self); */
18231 }
18232
18233 exit (status);
18234}
18235EOF
18236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18237 (eval $ac_link) 2>&5
18238 ac_status=$?
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18241 (./conftest; exit; ) 2>/dev/null
18242 lt_status=$?
18243 case x$lt_status in
18244 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18245 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18246 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18247 esac
18248 else :
18249 # compilation failed
18250 lt_cv_dlopen_self=no
18251 fi
18252fi
18253rm -fr conftest*
18254
18255
18256fi
18257echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18258echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18259
18260 if test "x$lt_cv_dlopen_self" = xyes; then
18261 LDFLAGS="$LDFLAGS $link_static_flag"
18262 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18263echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18264if test "${lt_cv_dlopen_self_static+set}" = set; then
18265 echo $ECHO_N "(cached) $ECHO_C" >&6
18266else
18267 if test "$cross_compiling" = yes; then :
18268 lt_cv_dlopen_self_static=cross
18269else
18270 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18271 lt_status=$lt_dlunknown
18272 cat > conftest.$ac_ext <<EOF
Reid Spencerb195d9d2006-03-23 23:21:29 +000018273#line 18273 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018274#include "confdefs.h"
18275
18276#if HAVE_DLFCN_H
18277#include <dlfcn.h>
18278#endif
18279
18280#include <stdio.h>
18281
18282#ifdef RTLD_GLOBAL
18283# define LT_DLGLOBAL RTLD_GLOBAL
18284#else
18285# ifdef DL_GLOBAL
18286# define LT_DLGLOBAL DL_GLOBAL
18287# else
18288# define LT_DLGLOBAL 0
18289# endif
18290#endif
18291
18292/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18293 find out it does not work in some platform. */
18294#ifndef LT_DLLAZY_OR_NOW
18295# ifdef RTLD_LAZY
18296# define LT_DLLAZY_OR_NOW RTLD_LAZY
18297# else
18298# ifdef DL_LAZY
18299# define LT_DLLAZY_OR_NOW DL_LAZY
18300# else
18301# ifdef RTLD_NOW
18302# define LT_DLLAZY_OR_NOW RTLD_NOW
18303# else
18304# ifdef DL_NOW
18305# define LT_DLLAZY_OR_NOW DL_NOW
18306# else
18307# define LT_DLLAZY_OR_NOW 0
18308# endif
18309# endif
18310# endif
18311# endif
18312#endif
18313
18314#ifdef __cplusplus
18315extern "C" void exit (int);
18316#endif
18317
18318void fnord() { int i=42;}
18319int main ()
18320{
18321 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18322 int status = $lt_dlunknown;
18323
18324 if (self)
18325 {
18326 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18327 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18328 /* dlclose (self); */
18329 }
18330
18331 exit (status);
18332}
18333EOF
18334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18335 (eval $ac_link) 2>&5
18336 ac_status=$?
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18339 (./conftest; exit; ) 2>/dev/null
18340 lt_status=$?
18341 case x$lt_status in
18342 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18343 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18344 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18345 esac
18346 else :
18347 # compilation failed
18348 lt_cv_dlopen_self_static=no
18349 fi
18350fi
18351rm -fr conftest*
18352
18353
18354fi
18355echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18356echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18357 fi
18358
18359 CPPFLAGS="$save_CPPFLAGS"
18360 LDFLAGS="$save_LDFLAGS"
18361 LIBS="$save_LIBS"
18362 ;;
18363 esac
18364
18365 case $lt_cv_dlopen_self in
18366 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18367 *) enable_dlopen_self=unknown ;;
18368 esac
18369
18370 case $lt_cv_dlopen_self_static in
18371 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18372 *) enable_dlopen_self_static=unknown ;;
18373 esac
18374fi
18375
18376
18377# The else clause should only fire when bootstrapping the
18378# libtool distribution, otherwise you forgot to ship ltmain.sh
18379# with your package, and you will get complaints that there are
18380# no rules to generate ltmain.sh.
18381if test -f "$ltmain"; then
18382 # See if we are running on zsh, and set the options which allow our commands through
18383 # without removal of \ escapes.
18384 if test -n "${ZSH_VERSION+set}" ; then
18385 setopt NO_GLOB_SUBST
18386 fi
18387 # Now quote all the things that may contain metacharacters while being
18388 # careful not to overquote the AC_SUBSTed values. We take copies of the
18389 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018390 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18391 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018392 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18393 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18394 deplibs_check_method reload_flag reload_cmds need_locks \
18395 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18396 lt_cv_sys_global_symbol_to_c_name_address \
18397 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18398 old_postinstall_cmds old_postuninstall_cmds \
18399 compiler_CXX \
18400 CC_CXX \
18401 LD_CXX \
18402 lt_prog_compiler_wl_CXX \
18403 lt_prog_compiler_pic_CXX \
18404 lt_prog_compiler_static_CXX \
18405 lt_prog_compiler_no_builtin_flag_CXX \
18406 export_dynamic_flag_spec_CXX \
18407 thread_safe_flag_spec_CXX \
18408 whole_archive_flag_spec_CXX \
18409 enable_shared_with_static_runtimes_CXX \
18410 old_archive_cmds_CXX \
18411 old_archive_from_new_cmds_CXX \
18412 predep_objects_CXX \
18413 postdep_objects_CXX \
18414 predeps_CXX \
18415 postdeps_CXX \
18416 compiler_lib_search_path_CXX \
18417 archive_cmds_CXX \
18418 archive_expsym_cmds_CXX \
18419 postinstall_cmds_CXX \
18420 postuninstall_cmds_CXX \
18421 old_archive_from_expsyms_cmds_CXX \
18422 allow_undefined_flag_CXX \
18423 no_undefined_flag_CXX \
18424 export_symbols_cmds_CXX \
18425 hardcode_libdir_flag_spec_CXX \
18426 hardcode_libdir_flag_spec_ld_CXX \
18427 hardcode_libdir_separator_CXX \
18428 hardcode_automatic_CXX \
18429 module_cmds_CXX \
18430 module_expsym_cmds_CXX \
18431 lt_cv_prog_compiler_c_o_CXX \
18432 exclude_expsyms_CXX \
18433 include_expsyms_CXX; do
18434
18435 case $var in
18436 old_archive_cmds_CXX | \
18437 old_archive_from_new_cmds_CXX | \
18438 archive_cmds_CXX | \
18439 archive_expsym_cmds_CXX | \
18440 module_cmds_CXX | \
18441 module_expsym_cmds_CXX | \
18442 old_archive_from_expsyms_cmds_CXX | \
18443 export_symbols_cmds_CXX | \
18444 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18445 postinstall_cmds | postuninstall_cmds | \
18446 old_postinstall_cmds | old_postuninstall_cmds | \
18447 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18448 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018449 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 +000018450 ;;
18451 *)
18452 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18453 ;;
18454 esac
18455 done
18456
18457 case $lt_echo in
18458 *'\$0 --fallback-echo"')
18459 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18460 ;;
18461 esac
18462
18463cfgfile="$ofile"
18464
18465 cat <<__EOF__ >> "$cfgfile"
18466# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18467
18468# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18469
18470# Shell to use when invoking shell scripts.
18471SHELL=$lt_SHELL
18472
18473# Whether or not to build shared libraries.
18474build_libtool_libs=$enable_shared
18475
18476# Whether or not to build static libraries.
18477build_old_libs=$enable_static
18478
18479# Whether or not to add -lc for building shared libraries.
18480build_libtool_need_lc=$archive_cmds_need_lc_CXX
18481
18482# Whether or not to disallow shared libs when runtime libs are static
18483allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18484
18485# Whether or not to optimize for fast installation.
18486fast_install=$enable_fast_install
18487
18488# The host system.
18489host_alias=$host_alias
18490host=$host
18491
18492# An echo program that does not interpret backslashes.
18493echo=$lt_echo
18494
18495# The archiver.
18496AR=$lt_AR
18497AR_FLAGS=$lt_AR_FLAGS
18498
18499# A C compiler.
18500LTCC=$lt_LTCC
18501
18502# A language-specific compiler.
18503CC=$lt_compiler_CXX
18504
18505# Is the compiler the GNU C compiler?
18506with_gcc=$GCC_CXX
18507
18508# An ERE matcher.
18509EGREP=$lt_EGREP
18510
18511# The linker used to build libraries.
18512LD=$lt_LD_CXX
18513
18514# Whether we need hard or soft links.
18515LN_S=$lt_LN_S
18516
18517# A BSD-compatible nm program.
18518NM=$lt_NM
18519
18520# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018521STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018522
18523# Used to examine libraries when file_magic_cmd begins "file"
18524MAGIC_CMD=$MAGIC_CMD
18525
18526# Used on cygwin: DLL creation program.
18527DLLTOOL="$DLLTOOL"
18528
18529# Used on cygwin: object dumper.
18530OBJDUMP="$OBJDUMP"
18531
18532# Used on cygwin: assembler.
18533AS="$AS"
18534
18535# The name of the directory that contains temporary libtool files.
18536objdir=$objdir
18537
18538# How to create reloadable object files.
18539reload_flag=$lt_reload_flag
18540reload_cmds=$lt_reload_cmds
18541
18542# How to pass a linker flag through the compiler.
18543wl=$lt_lt_prog_compiler_wl_CXX
18544
18545# Object file suffix (normally "o").
18546objext="$ac_objext"
18547
18548# Old archive suffix (normally "a").
18549libext="$libext"
18550
18551# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018552shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018553
18554# Executable file suffix (normally "").
18555exeext="$exeext"
18556
18557# Additional compiler flags for building library objects.
18558pic_flag=$lt_lt_prog_compiler_pic_CXX
18559pic_mode=$pic_mode
18560
18561# What is the maximum length of a command?
18562max_cmd_len=$lt_cv_sys_max_cmd_len
18563
18564# Does compiler simultaneously support -c and -o options?
18565compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18566
18567# Must we lock files when doing compilation ?
18568need_locks=$lt_need_locks
18569
18570# Do we need the lib prefix for modules?
18571need_lib_prefix=$need_lib_prefix
18572
18573# Do we need a version for libraries?
18574need_version=$need_version
18575
18576# Whether dlopen is supported.
18577dlopen_support=$enable_dlopen
18578
18579# Whether dlopen of programs is supported.
18580dlopen_self=$enable_dlopen_self
18581
18582# Whether dlopen of statically linked programs is supported.
18583dlopen_self_static=$enable_dlopen_self_static
18584
18585# Compiler flag to prevent dynamic linking.
18586link_static_flag=$lt_lt_prog_compiler_static_CXX
18587
18588# Compiler flag to turn off builtin functions.
18589no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18590
18591# Compiler flag to allow reflexive dlopens.
18592export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18593
18594# Compiler flag to generate shared objects directly from archives.
18595whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18596
18597# Compiler flag to generate thread-safe objects.
18598thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18599
18600# Library versioning type.
18601version_type=$version_type
18602
18603# Format of library name prefix.
18604libname_spec=$lt_libname_spec
18605
18606# List of archive names. First name is the real one, the rest are links.
18607# The last name is the one that the linker finds with -lNAME.
18608library_names_spec=$lt_library_names_spec
18609
18610# The coded name of the library, if different from the real name.
18611soname_spec=$lt_soname_spec
18612
18613# Commands used to build and install an old-style archive.
18614RANLIB=$lt_RANLIB
18615old_archive_cmds=$lt_old_archive_cmds_CXX
18616old_postinstall_cmds=$lt_old_postinstall_cmds
18617old_postuninstall_cmds=$lt_old_postuninstall_cmds
18618
18619# Create an old-style archive from a shared archive.
18620old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18621
18622# Create a temporary old-style archive to link instead of a shared archive.
18623old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18624
18625# Commands used to build and install a shared archive.
18626archive_cmds=$lt_archive_cmds_CXX
18627archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18628postinstall_cmds=$lt_postinstall_cmds
18629postuninstall_cmds=$lt_postuninstall_cmds
18630
18631# Commands used to build a loadable module (assumed same as above if empty)
18632module_cmds=$lt_module_cmds_CXX
18633module_expsym_cmds=$lt_module_expsym_cmds_CXX
18634
18635# Commands to strip libraries.
18636old_striplib=$lt_old_striplib
18637striplib=$lt_striplib
18638
18639# Dependencies to place before the objects being linked to create a
18640# shared library.
18641predep_objects=$lt_predep_objects_CXX
18642
18643# Dependencies to place after the objects being linked to create a
18644# shared library.
18645postdep_objects=$lt_postdep_objects_CXX
18646
18647# Dependencies to place before the objects being linked to create a
18648# shared library.
18649predeps=$lt_predeps_CXX
18650
18651# Dependencies to place after the objects being linked to create a
18652# shared library.
18653postdeps=$lt_postdeps_CXX
18654
18655# The library search path used internally by the compiler when linking
18656# a shared library.
18657compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18658
18659# Method to check whether dependent libraries are shared objects.
18660deplibs_check_method=$lt_deplibs_check_method
18661
18662# Command to use when deplibs_check_method == file_magic.
18663file_magic_cmd=$lt_file_magic_cmd
18664
18665# Flag that allows shared libraries with undefined symbols to be built.
18666allow_undefined_flag=$lt_allow_undefined_flag_CXX
18667
18668# Flag that forces no undefined symbols.
18669no_undefined_flag=$lt_no_undefined_flag_CXX
18670
18671# Commands used to finish a libtool library installation in a directory.
18672finish_cmds=$lt_finish_cmds
18673
18674# Same as above, but a single script fragment to be evaled but not shown.
18675finish_eval=$lt_finish_eval
18676
18677# Take the output of nm and produce a listing of raw symbols and C names.
18678global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18679
18680# Transform the output of nm in a proper C declaration
18681global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18682
18683# Transform the output of nm in a C name address pair
18684global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18685
18686# This is the shared library runtime path variable.
18687runpath_var=$runpath_var
18688
18689# This is the shared library path variable.
18690shlibpath_var=$shlibpath_var
18691
18692# Is shlibpath searched before the hard-coded library search path?
18693shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18694
18695# How to hardcode a shared library path into an executable.
18696hardcode_action=$hardcode_action_CXX
18697
18698# Whether we should hardcode library paths into libraries.
18699hardcode_into_libs=$hardcode_into_libs
18700
18701# Flag to hardcode \$libdir into a binary during linking.
18702# This must work even if \$libdir does not exist.
18703hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18704
18705# If ld is used when linking, flag to hardcode \$libdir into
18706# a binary during linking. This must work even if \$libdir does
18707# not exist.
18708hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18709
18710# Whether we need a single -rpath flag with a separated argument.
18711hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18712
18713# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18714# resulting binary.
18715hardcode_direct=$hardcode_direct_CXX
18716
18717# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18718# resulting binary.
18719hardcode_minus_L=$hardcode_minus_L_CXX
18720
18721# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18722# the resulting binary.
18723hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18724
18725# Set to yes if building a shared library automatically hardcodes DIR into the library
18726# and all subsequent libraries and executables linked against it.
18727hardcode_automatic=$hardcode_automatic_CXX
18728
18729# Variables whose values should be saved in libtool wrapper scripts and
18730# restored at relink time.
18731variables_saved_for_relink="$variables_saved_for_relink"
18732
18733# Whether libtool must link a program against all its dependency libraries.
18734link_all_deplibs=$link_all_deplibs_CXX
18735
18736# Compile-time system search path for libraries
18737sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18738
18739# Run-time system search path for libraries
18740sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18741
18742# Fix the shell variable \$srcfile for the compiler.
18743fix_srcfile_path="$fix_srcfile_path_CXX"
18744
18745# Set to yes if exported symbols are required.
18746always_export_symbols=$always_export_symbols_CXX
18747
18748# The commands to list exported symbols.
18749export_symbols_cmds=$lt_export_symbols_cmds_CXX
18750
18751# The commands to extract the exported symbol list from a shared archive.
18752extract_expsyms_cmds=$lt_extract_expsyms_cmds
18753
18754# Symbols that should not be listed in the preloaded symbols.
18755exclude_expsyms=$lt_exclude_expsyms_CXX
18756
18757# Symbols that must always be exported.
18758include_expsyms=$lt_include_expsyms_CXX
18759
18760# ### END LIBTOOL TAG CONFIG: $tagname
18761
18762__EOF__
18763
18764
18765else
18766 # If there is no Makefile yet, we rely on a make rule to execute
18767 # `config.status --recheck' to rerun these tests and create the
18768 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018769 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18770 if test -f "$ltmain_in"; then
18771 test -f Makefile && make "$ltmain"
18772 fi
John Criswell47fdd832003-07-14 16:52:07 +000018773fi
18774
18775
18776ac_ext=c
18777ac_cpp='$CPP $CPPFLAGS'
18778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18780ac_compiler_gnu=$ac_cv_c_compiler_gnu
18781
18782CC=$lt_save_CC
18783LDCXX=$LD
18784LD=$lt_save_LD
18785GCC=$lt_save_GCC
18786with_gnu_ldcxx=$with_gnu_ld
18787with_gnu_ld=$lt_save_with_gnu_ld
18788lt_cv_path_LDCXX=$lt_cv_path_LD
18789lt_cv_path_LD=$lt_save_path_LD
18790lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18791lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18792
18793 else
18794 tagname=""
18795 fi
18796 ;;
18797
18798 F77)
18799 if test -n "$F77" && test "X$F77" != "Xno"; then
18800
18801ac_ext=f
18802ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18803ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18804ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18805
18806
18807archive_cmds_need_lc_F77=no
18808allow_undefined_flag_F77=
18809always_export_symbols_F77=no
18810archive_expsym_cmds_F77=
18811export_dynamic_flag_spec_F77=
18812hardcode_direct_F77=no
18813hardcode_libdir_flag_spec_F77=
18814hardcode_libdir_flag_spec_ld_F77=
18815hardcode_libdir_separator_F77=
18816hardcode_minus_L_F77=no
18817hardcode_automatic_F77=no
18818module_cmds_F77=
18819module_expsym_cmds_F77=
18820link_all_deplibs_F77=unknown
18821old_archive_cmds_F77=$old_archive_cmds
18822no_undefined_flag_F77=
18823whole_archive_flag_spec_F77=
18824enable_shared_with_static_runtimes_F77=no
18825
18826# Source file extension for f77 test sources.
18827ac_ext=f
18828
18829# Object file extension for compiled f77 test sources.
18830objext=o
18831objext_F77=$objext
18832
18833# Code to be used in simple compile tests
18834lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18835
18836# Code to be used in simple link tests
18837lt_simple_link_test_code=" program t\n end\n"
18838
18839# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18840
18841# If no C compiler was specified, use CC.
18842LTCC=${LTCC-"$CC"}
18843
18844# Allow CC to be a program name with arguments.
18845compiler=$CC
18846
18847
18848# Allow CC to be a program name with arguments.
18849lt_save_CC="$CC"
18850CC=${F77-"f77"}
18851compiler=$CC
18852compiler_F77=$CC
18853cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18854
18855echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18856echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18857echo "$as_me:$LINENO: result: $can_build_shared" >&5
18858echo "${ECHO_T}$can_build_shared" >&6
18859
18860echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18861echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18862test "$can_build_shared" = "no" && enable_shared=no
18863
18864# On AIX, shared libraries and static libraries use the same namespace, and
18865# are all built from PIC.
18866case "$host_os" in
18867aix3*)
18868 test "$enable_shared" = yes && enable_static=no
18869 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018870 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018871 postinstall_cmds='$RANLIB $lib'
18872 fi
18873 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018874aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018875 test "$enable_shared" = yes && enable_static=no
18876 ;;
18877esac
18878echo "$as_me:$LINENO: result: $enable_shared" >&5
18879echo "${ECHO_T}$enable_shared" >&6
18880
18881echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18882echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18883# Make sure either enable_shared or enable_static is yes.
18884test "$enable_shared" = yes || enable_static=yes
18885echo "$as_me:$LINENO: result: $enable_static" >&5
18886echo "${ECHO_T}$enable_static" >&6
18887
18888test "$ld_shlibs_F77" = no && can_build_shared=no
18889
18890GCC_F77="$G77"
18891LD_F77="$LD"
18892
18893lt_prog_compiler_wl_F77=
18894lt_prog_compiler_pic_F77=
18895lt_prog_compiler_static_F77=
18896
18897echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18898echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18899
18900 if test "$GCC" = yes; then
18901 lt_prog_compiler_wl_F77='-Wl,'
18902 lt_prog_compiler_static_F77='-static'
18903
18904 case $host_os in
18905 aix*)
18906 # All AIX code is PIC.
18907 if test "$host_cpu" = ia64; then
18908 # AIX 5 now supports IA64 processor
18909 lt_prog_compiler_static_F77='-Bstatic'
18910 fi
18911 ;;
18912
18913 amigaos*)
18914 # FIXME: we need at least 68020 code to build shared libraries, but
18915 # adding the `-m68020' flag to GCC prevents building anything better,
18916 # like `-m68040'.
18917 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18918 ;;
18919
18920 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18921 # PIC is the default for these OSes.
18922 ;;
18923
18924 mingw* | pw32* | os2*)
18925 # This hack is so that the source file can tell whether it is being
18926 # built for inclusion in a dll (and should export symbols for example).
18927 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18928 ;;
18929
18930 darwin* | rhapsody*)
18931 # PIC is the default on this platform
18932 # Common symbols not allowed in MH_DYLIB files
18933 lt_prog_compiler_pic_F77='-fno-common'
18934 ;;
18935
18936 msdosdjgpp*)
18937 # Just because we use GCC doesn't mean we suddenly get shared libraries
18938 # on systems that don't support them.
18939 lt_prog_compiler_can_build_shared_F77=no
18940 enable_shared=no
18941 ;;
18942
18943 sysv4*MP*)
18944 if test -d /usr/nec; then
18945 lt_prog_compiler_pic_F77=-Kconform_pic
18946 fi
18947 ;;
18948
18949 hpux*)
18950 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18951 # not for PA HP-UX.
18952 case "$host_cpu" in
18953 hppa*64*|ia64*)
18954 # +Z the default
18955 ;;
18956 *)
18957 lt_prog_compiler_pic_F77='-fPIC'
18958 ;;
18959 esac
18960 ;;
18961
18962 *)
18963 lt_prog_compiler_pic_F77='-fPIC'
18964 ;;
18965 esac
18966 else
18967 # PORTME Check for flag to pass linker flags through the system compiler.
18968 case $host_os in
18969 aix*)
18970 lt_prog_compiler_wl_F77='-Wl,'
18971 if test "$host_cpu" = ia64; then
18972 # AIX 5 now supports IA64 processor
18973 lt_prog_compiler_static_F77='-Bstatic'
18974 else
18975 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18976 fi
18977 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018978 darwin*)
18979 # PIC is the default on this platform
18980 # Common symbols not allowed in MH_DYLIB files
18981 case "$cc_basename" in
18982 xlc*)
18983 lt_prog_compiler_pic_F77='-qnocommon'
18984 lt_prog_compiler_wl_F77='-Wl,'
18985 ;;
18986 esac
18987 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018988
18989 mingw* | pw32* | os2*)
18990 # This hack is so that the source file can tell whether it is being
18991 # built for inclusion in a dll (and should export symbols for example).
18992 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18993 ;;
18994
18995 hpux9* | hpux10* | hpux11*)
18996 lt_prog_compiler_wl_F77='-Wl,'
18997 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18998 # not for PA HP-UX.
18999 case "$host_cpu" in
19000 hppa*64*|ia64*)
19001 # +Z the default
19002 ;;
19003 *)
19004 lt_prog_compiler_pic_F77='+Z'
19005 ;;
19006 esac
19007 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19008 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
19009 ;;
19010
19011 irix5* | irix6* | nonstopux*)
19012 lt_prog_compiler_wl_F77='-Wl,'
19013 # PIC (with -KPIC) is the default.
19014 lt_prog_compiler_static_F77='-non_shared'
19015 ;;
19016
19017 newsos6)
19018 lt_prog_compiler_pic_F77='-KPIC'
19019 lt_prog_compiler_static_F77='-Bstatic'
19020 ;;
19021
19022 linux*)
19023 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019024 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000019025 lt_prog_compiler_wl_F77='-Wl,'
19026 lt_prog_compiler_pic_F77='-KPIC'
19027 lt_prog_compiler_static_F77='-static'
19028 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019029 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000019030 lt_prog_compiler_wl_F77='-Wl,'
19031 # All Alpha code is PIC.
19032 lt_prog_compiler_static_F77='-non_shared'
19033 ;;
19034 esac
19035 ;;
19036
19037 osf3* | osf4* | osf5*)
19038 lt_prog_compiler_wl_F77='-Wl,'
19039 # All OSF/1 code is PIC.
19040 lt_prog_compiler_static_F77='-non_shared'
19041 ;;
19042
19043 sco3.2v5*)
19044 lt_prog_compiler_pic_F77='-Kpic'
19045 lt_prog_compiler_static_F77='-dn'
19046 ;;
19047
19048 solaris*)
19049 lt_prog_compiler_wl_F77='-Wl,'
19050 lt_prog_compiler_pic_F77='-KPIC'
19051 lt_prog_compiler_static_F77='-Bstatic'
19052 ;;
19053
19054 sunos4*)
19055 lt_prog_compiler_wl_F77='-Qoption ld '
19056 lt_prog_compiler_pic_F77='-PIC'
19057 lt_prog_compiler_static_F77='-Bstatic'
19058 ;;
19059
19060 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19061 lt_prog_compiler_wl_F77='-Wl,'
19062 lt_prog_compiler_pic_F77='-KPIC'
19063 lt_prog_compiler_static_F77='-Bstatic'
19064 ;;
19065
19066 sysv4*MP*)
19067 if test -d /usr/nec ;then
19068 lt_prog_compiler_pic_F77='-Kconform_pic'
19069 lt_prog_compiler_static_F77='-Bstatic'
19070 fi
19071 ;;
19072
19073 uts4*)
19074 lt_prog_compiler_pic_F77='-pic'
19075 lt_prog_compiler_static_F77='-Bstatic'
19076 ;;
19077
19078 *)
19079 lt_prog_compiler_can_build_shared_F77=no
19080 ;;
19081 esac
19082 fi
19083
19084echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19085echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19086
19087#
19088# Check to make sure the PIC flag actually works.
19089#
19090if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019091
19092echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019093echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19094if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19096else
19097 lt_prog_compiler_pic_works_F77=no
19098 ac_outfile=conftest.$ac_objext
19099 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19100 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19101 # Insert the option either (1) after the last *FLAGS variable, or
19102 # (2) before a word containing "conftest.", or (3) at the end.
19103 # Note that $ac_compile itself does not contain backslashes and begins
19104 # with a dollar sign (not a hyphen), so the echo should work correctly.
19105 # The option is referenced via a variable to avoid confusing sed.
19106 lt_compile=`echo "$ac_compile" | $SED \
19107 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19108 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19109 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb195d9d2006-03-23 23:21:29 +000019110 (eval echo "\"\$as_me:19110: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019111 (eval "$lt_compile" 2>conftest.err)
19112 ac_status=$?
19113 cat conftest.err >&5
Reid Spencerb195d9d2006-03-23 23:21:29 +000019114 echo "$as_me:19114: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019115 if (exit $ac_status) && test -s "$ac_outfile"; then
19116 # The compiler can only warn and ignore the option if not recognized
19117 # So say no if there are warnings
19118 if test ! -s conftest.err; then
19119 lt_prog_compiler_pic_works_F77=yes
19120 fi
19121 fi
19122 $rm conftest*
19123
19124fi
19125echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19126echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19127
19128if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19129 case $lt_prog_compiler_pic_F77 in
19130 "" | " "*) ;;
19131 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19132 esac
19133else
19134 lt_prog_compiler_pic_F77=
19135 lt_prog_compiler_can_build_shared_F77=no
19136fi
19137
19138fi
19139case "$host_os" in
19140 # For platforms which do not support PIC, -DPIC is meaningless:
19141 *djgpp*)
19142 lt_prog_compiler_pic_F77=
19143 ;;
19144 *)
19145 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19146 ;;
19147esac
19148
19149echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19150echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19151if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19152 echo $ECHO_N "(cached) $ECHO_C" >&6
19153else
19154 lt_cv_prog_compiler_c_o_F77=no
19155 $rm -r conftest 2>/dev/null
19156 mkdir conftest
19157 cd conftest
19158 mkdir out
19159 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19160
John Criswell47fdd832003-07-14 16:52:07 +000019161 lt_compiler_flag="-o out/conftest2.$ac_objext"
19162 # Insert the option either (1) after the last *FLAGS variable, or
19163 # (2) before a word containing "conftest.", or (3) at the end.
19164 # Note that $ac_compile itself does not contain backslashes and begins
19165 # with a dollar sign (not a hyphen), so the echo should work correctly.
19166 lt_compile=`echo "$ac_compile" | $SED \
19167 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19169 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb195d9d2006-03-23 23:21:29 +000019170 (eval echo "\"\$as_me:19170: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019171 (eval "$lt_compile" 2>out/conftest.err)
19172 ac_status=$?
19173 cat out/conftest.err >&5
Reid Spencerb195d9d2006-03-23 23:21:29 +000019174 echo "$as_me:19174: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019175 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19176 then
19177 # The compiler can only warn and ignore the option if not recognized
19178 # So say no if there are warnings
19179 if test ! -s out/conftest.err; then
19180 lt_cv_prog_compiler_c_o_F77=yes
19181 fi
19182 fi
19183 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019184 $rm conftest*
19185 # SGI C++ compiler will create directory out/ii_files/ for
19186 # template instantiation
19187 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19188 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019189 cd ..
19190 rmdir conftest
19191 $rm conftest*
19192
19193fi
19194echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19195echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19196
19197
19198hard_links="nottested"
19199if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19200 # do not overwrite the value of need_locks provided by the user
19201 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19202echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19203 hard_links=yes
19204 $rm conftest*
19205 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19206 touch conftest.a
19207 ln conftest.a conftest.b 2>&5 || hard_links=no
19208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19209 echo "$as_me:$LINENO: result: $hard_links" >&5
19210echo "${ECHO_T}$hard_links" >&6
19211 if test "$hard_links" = no; then
19212 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19213echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19214 need_locks=warn
19215 fi
19216else
19217 need_locks=no
19218fi
19219
19220echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19221echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19222
19223 runpath_var=
19224 allow_undefined_flag_F77=
19225 enable_shared_with_static_runtimes_F77=no
19226 archive_cmds_F77=
19227 archive_expsym_cmds_F77=
19228 old_archive_From_new_cmds_F77=
19229 old_archive_from_expsyms_cmds_F77=
19230 export_dynamic_flag_spec_F77=
19231 whole_archive_flag_spec_F77=
19232 thread_safe_flag_spec_F77=
19233 hardcode_libdir_flag_spec_F77=
19234 hardcode_libdir_flag_spec_ld_F77=
19235 hardcode_libdir_separator_F77=
19236 hardcode_direct_F77=no
19237 hardcode_minus_L_F77=no
19238 hardcode_shlibpath_var_F77=unsupported
19239 link_all_deplibs_F77=unknown
19240 hardcode_automatic_F77=no
19241 module_cmds_F77=
19242 module_expsym_cmds_F77=
19243 always_export_symbols_F77=no
19244 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19245 # include_expsyms should be a list of space-separated symbols to be *always*
19246 # included in the symbol list
19247 include_expsyms_F77=
19248 # exclude_expsyms can be an extended regexp of symbols to exclude
19249 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19250 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19251 # as well as any symbol that contains `d'.
19252 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19253 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19254 # platforms (ab)use it in PIC code, but their linkers get confused if
19255 # the symbol is explicitly referenced. Since portable code cannot
19256 # rely on this symbol name, it's probably fine to never include it in
19257 # preloaded symbol tables.
19258 extract_expsyms_cmds=
19259
19260 case $host_os in
19261 cygwin* | mingw* | pw32*)
19262 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19263 # When not using gcc, we currently assume that we are using
19264 # Microsoft Visual C++.
19265 if test "$GCC" != yes; then
19266 with_gnu_ld=no
19267 fi
19268 ;;
19269 openbsd*)
19270 with_gnu_ld=no
19271 ;;
19272 esac
19273
19274 ld_shlibs_F77=yes
19275 if test "$with_gnu_ld" = yes; then
19276 # If archive_cmds runs LD, not CC, wlarc should be empty
19277 wlarc='${wl}'
19278
19279 # See if GNU ld supports shared libraries.
19280 case $host_os in
19281 aix3* | aix4* | aix5*)
19282 # On AIX/PPC, the GNU linker is very broken
19283 if test "$host_cpu" != ia64; then
19284 ld_shlibs_F77=no
19285 cat <<EOF 1>&2
19286
19287*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19288*** to be unable to reliably create shared libraries on AIX.
19289*** Therefore, libtool is disabling shared libraries support. If you
19290*** really care for shared libraries, you may want to modify your PATH
19291*** so that a non-GNU linker is found, and then restart.
19292
19293EOF
19294 fi
19295 ;;
19296
19297 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019298 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 +000019299 hardcode_libdir_flag_spec_F77='-L$libdir'
19300 hardcode_minus_L_F77=yes
19301
19302 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19303 # that the semantics of dynamic libraries on AmigaOS, at least up
19304 # to version 4, is to share data among multiple programs linked
19305 # with the same dynamic library. Since this doesn't match the
19306 # behavior of shared libraries on other platforms, we can't use
19307 # them.
19308 ld_shlibs_F77=no
19309 ;;
19310
19311 beos*)
19312 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19313 allow_undefined_flag_F77=unsupported
19314 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19315 # support --undefined. This deserves some investigation. FIXME
19316 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19317 else
19318 ld_shlibs_F77=no
19319 fi
19320 ;;
19321
19322 cygwin* | mingw* | pw32*)
19323 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19324 # as there is no search path for DLLs.
19325 hardcode_libdir_flag_spec_F77='-L$libdir'
19326 allow_undefined_flag_F77=unsupported
19327 always_export_symbols_F77=no
19328 enable_shared_with_static_runtimes_F77=yes
19329 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19330
19331 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19332 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19333 # If the export-symbols file already is a .def file (1st line
19334 # is EXPORTS), use it as is; otherwise, prepend...
19335 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19336 cp $export_symbols $output_objdir/$soname.def;
19337 else
19338 echo EXPORTS > $output_objdir/$soname.def;
19339 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019340 fi~
19341 $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 +000019342 else
19343 ld_shlibs=no
19344 fi
19345 ;;
19346
19347 netbsd*)
19348 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19349 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19350 wlarc=
19351 else
19352 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19353 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19354 fi
19355 ;;
19356
19357 solaris* | sysv5*)
19358 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19359 ld_shlibs_F77=no
19360 cat <<EOF 1>&2
19361
19362*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19363*** create shared libraries on Solaris systems. Therefore, libtool
19364*** is disabling shared libraries support. We urge you to upgrade GNU
19365*** binutils to release 2.9.1 or newer. Another option is to modify
19366*** your PATH or compiler configuration so that the native linker is
19367*** used, and then restart.
19368
19369EOF
19370 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19371 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19372 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19373 else
19374 ld_shlibs_F77=no
19375 fi
19376 ;;
19377
19378 sunos4*)
19379 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19380 wlarc=
19381 hardcode_direct_F77=yes
19382 hardcode_shlibpath_var_F77=no
19383 ;;
19384
Reid Spencer2706f8c2004-09-19 23:53:36 +000019385 linux*)
19386 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19387 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19388 archive_cmds_F77="$tmp_archive_cmds"
19389 supports_anon_versioning=no
19390 case `$LD -v 2>/dev/null` in
19391 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19392 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19393 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19394 *\ 2.11.*) ;; # other 2.11 versions
19395 *) supports_anon_versioning=yes ;;
19396 esac
19397 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019398 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19399cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19400$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019401 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19402 else
19403 archive_expsym_cmds_F77="$tmp_archive_cmds"
19404 fi
19405 else
19406 ld_shlibs_F77=no
19407 fi
19408 ;;
19409
John Criswell47fdd832003-07-14 16:52:07 +000019410 *)
19411 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19412 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19413 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19414 else
19415 ld_shlibs_F77=no
19416 fi
19417 ;;
19418 esac
19419
19420 if test "$ld_shlibs_F77" = yes; then
19421 runpath_var=LD_RUN_PATH
19422 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19423 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19424 # ancient GNU ld didn't support --whole-archive et. al.
19425 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19426 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19427 else
19428 whole_archive_flag_spec_F77=
19429 fi
19430 fi
19431 else
19432 # PORTME fill in a description of your system's linker (not GNU ld)
19433 case $host_os in
19434 aix3*)
19435 allow_undefined_flag_F77=unsupported
19436 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019437 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 +000019438 # Note: this linker hardcodes the directories in LIBPATH if there
19439 # are no directories specified by -L.
19440 hardcode_minus_L_F77=yes
19441 if test "$GCC" = yes && test -z "$link_static_flag"; then
19442 # Neither direct hardcoding nor static linking is supported with a
19443 # broken collect2.
19444 hardcode_direct_F77=unsupported
19445 fi
19446 ;;
19447
19448 aix4* | aix5*)
19449 if test "$host_cpu" = ia64; then
19450 # On IA64, the linker does run time linking by default, so we don't
19451 # have to do anything special.
19452 aix_use_runtimelinking=no
19453 exp_sym_flag='-Bexport'
19454 no_entry_flag=""
19455 else
19456 # If we're using GNU nm, then we don't want the "-C" option.
19457 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19458 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19459 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'
19460 else
19461 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'
19462 fi
19463 aix_use_runtimelinking=no
19464
19465 # Test if we are trying to use run time linking or normal
19466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19467 # need to do runtime linking.
19468 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19469 for ld_flag in $LDFLAGS; do
19470 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19471 aix_use_runtimelinking=yes
19472 break
19473 fi
19474 done
19475 esac
19476
19477 exp_sym_flag='-bexport'
19478 no_entry_flag='-bnoentry'
19479 fi
19480
19481 # When large executables or shared objects are built, AIX ld can
19482 # have problems creating the table of contents. If linking a library
19483 # or program results in "error TOC overflow" add -mminimal-toc to
19484 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19485 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19486
19487 archive_cmds_F77=''
19488 hardcode_direct_F77=yes
19489 hardcode_libdir_separator_F77=':'
19490 link_all_deplibs_F77=yes
19491
19492 if test "$GCC" = yes; then
19493 case $host_os in aix4.012|aix4.012.*)
19494 # We only want to do this on AIX 4.2 and lower, the check
19495 # below for broken collect2 doesn't work under 4.3+
19496 collect2name=`${CC} -print-prog-name=collect2`
19497 if test -f "$collect2name" && \
19498 strings "$collect2name" | grep resolve_lib_name >/dev/null
19499 then
19500 # We have reworked collect2
19501 hardcode_direct_F77=yes
19502 else
19503 # We have old collect2
19504 hardcode_direct_F77=unsupported
19505 # It fails to find uninstalled libraries when the uninstalled
19506 # path is not listed in the libpath. Setting hardcode_minus_L
19507 # to unsupported forces relinking
19508 hardcode_minus_L_F77=yes
19509 hardcode_libdir_flag_spec_F77='-L$libdir'
19510 hardcode_libdir_separator_F77=
19511 fi
19512 esac
19513 shared_flag='-shared'
19514 else
19515 # not using gcc
19516 if test "$host_cpu" = ia64; then
19517 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19518 # chokes on -Wl,-G. The following line is correct:
19519 shared_flag='-G'
19520 else
19521 if test "$aix_use_runtimelinking" = yes; then
19522 shared_flag='${wl}-G'
19523 else
19524 shared_flag='${wl}-bM:SRE'
19525 fi
19526 fi
19527 fi
19528
19529 # It seems that -bexpall does not export symbols beginning with
19530 # underscore (_), so it is better to generate a list of symbols to export.
19531 always_export_symbols_F77=yes
19532 if test "$aix_use_runtimelinking" = yes; then
19533 # Warning - without using the other runtime loading flags (-brtl),
19534 # -berok will link without error, but may produce a broken library.
19535 allow_undefined_flag_F77='-berok'
19536 # Determine the default libpath from the value encoded in an empty executable.
19537 cat >conftest.$ac_ext <<_ACEOF
19538 program main
19539
19540 end
19541_ACEOF
19542rm -f conftest.$ac_objext conftest$ac_exeext
19543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019544 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019545 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019546 grep -v '^ *+' conftest.er1 >conftest.err
19547 rm -f conftest.er1
19548 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019551 { ac_try='test -z "$ac_f77_werror_flag"
19552 || test ! -s conftest.err'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564
19565aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19566}'`
19567# Check for a 64-bit object if we didn't find anything.
19568if 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; }
19569}'`; fi
19570else
19571 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019572sed 's/^/| /' conftest.$ac_ext >&5
19573
John Criswell47fdd832003-07-14 16:52:07 +000019574fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019575rm -f conftest.err conftest.$ac_objext \
19576 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019577if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19578
19579 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19580 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"
19581 else
19582 if test "$host_cpu" = ia64; then
19583 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19584 allow_undefined_flag_F77="-z nodefs"
19585 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"
19586 else
19587 # Determine the default libpath from the value encoded in an empty executable.
19588 cat >conftest.$ac_ext <<_ACEOF
19589 program main
19590
19591 end
19592_ACEOF
19593rm -f conftest.$ac_objext conftest$ac_exeext
19594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019595 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019596 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019602 { ac_try='test -z "$ac_f77_werror_flag"
19603 || test ! -s conftest.err'
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; } &&
19609 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; }; then
19615
19616aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19617}'`
19618# Check for a 64-bit object if we didn't find anything.
19619if 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; }
19620}'`; fi
19621else
19622 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019623sed 's/^/| /' conftest.$ac_ext >&5
19624
John Criswell47fdd832003-07-14 16:52:07 +000019625fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019626rm -f conftest.err conftest.$ac_objext \
19627 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19629
19630 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19631 # Warning - without using the other run time loading flags,
19632 # -berok will link without error, but may produce a broken library.
19633 no_undefined_flag_F77=' ${wl}-bernotok'
19634 allow_undefined_flag_F77=' ${wl}-berok'
19635 # -bexpall does not export symbols beginning with underscore (_)
19636 always_export_symbols_F77=yes
19637 # Exported symbols can be pulled into shared objects from archives
19638 whole_archive_flag_spec_F77=' '
19639 archive_cmds_need_lc_F77=yes
19640 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019641 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 +000019642 fi
19643 fi
19644 ;;
19645
19646 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019647 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 +000019648 hardcode_libdir_flag_spec_F77='-L$libdir'
19649 hardcode_minus_L_F77=yes
19650 # see comment about different semantics on the GNU ld section
19651 ld_shlibs_F77=no
19652 ;;
19653
Reid Spencer2706f8c2004-09-19 23:53:36 +000019654 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019655 export_dynamic_flag_spec_F77=-rdynamic
19656 ;;
19657
19658 cygwin* | mingw* | pw32*)
19659 # When not using gcc, we currently assume that we are using
19660 # Microsoft Visual C++.
19661 # hardcode_libdir_flag_spec is actually meaningless, as there is
19662 # no search path for DLLs.
19663 hardcode_libdir_flag_spec_F77=' '
19664 allow_undefined_flag_F77=unsupported
19665 # Tell ltmain to make .lib files, not .a files.
19666 libext=lib
19667 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019668 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019669 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019670 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 +000019671 # The linker will automatically build a .lib file if we build a DLL.
19672 old_archive_From_new_cmds_F77='true'
19673 # FIXME: Should let the user specify the lib program.
19674 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19675 fix_srcfile_path='`cygpath -w "$srcfile"`'
19676 enable_shared_with_static_runtimes_F77=yes
19677 ;;
19678
19679 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019680 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019681 rhapsody* | darwin1.[012])
19682 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19683 ;;
19684 *) # Darwin 1.3 on
19685 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19686 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19687 else
19688 case ${MACOSX_DEPLOYMENT_TARGET} in
19689 10.[012])
19690 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19691 ;;
19692 10.*)
19693 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19694 ;;
19695 esac
19696 fi
19697 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019698 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019699 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019700 hardcode_direct_F77=no
19701 hardcode_automatic_F77=yes
19702 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019703 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019704 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019705 if test "$GCC" = yes ; then
19706 output_verbose_link_cmd='echo'
19707 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19708 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19709 # 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 +000019710 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}'
19711 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 +000019712 else
19713 case "$cc_basename" in
19714 xlc*)
19715 output_verbose_link_cmd='echo'
19716 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19717 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19718 # 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 +000019719 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}'
19720 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 +000019721 ;;
19722 *)
19723 ld_shlibs_F77=no
19724 ;;
19725 esac
John Criswell47fdd832003-07-14 16:52:07 +000019726 fi
19727 ;;
19728
19729 dgux*)
19730 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19731 hardcode_libdir_flag_spec_F77='-L$libdir'
19732 hardcode_shlibpath_var_F77=no
19733 ;;
19734
19735 freebsd1*)
19736 ld_shlibs_F77=no
19737 ;;
19738
19739 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19740 # support. Future versions do this automatically, but an explicit c++rt0.o
19741 # does not break anything, and helps significantly (at the cost of a little
19742 # extra space).
19743 freebsd2.2*)
19744 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19745 hardcode_libdir_flag_spec_F77='-R$libdir'
19746 hardcode_direct_F77=yes
19747 hardcode_shlibpath_var_F77=no
19748 ;;
19749
19750 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19751 freebsd2*)
19752 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19753 hardcode_direct_F77=yes
19754 hardcode_minus_L_F77=yes
19755 hardcode_shlibpath_var_F77=no
19756 ;;
19757
19758 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019759 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019760 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19761 hardcode_libdir_flag_spec_F77='-R$libdir'
19762 hardcode_direct_F77=yes
19763 hardcode_shlibpath_var_F77=no
19764 ;;
19765
19766 hpux9*)
19767 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019768 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 +000019769 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019770 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 +000019771 fi
19772 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19773 hardcode_libdir_separator_F77=:
19774 hardcode_direct_F77=yes
19775
19776 # hardcode_minus_L: Not really in the search PATH,
19777 # but as the default location of the library.
19778 hardcode_minus_L_F77=yes
19779 export_dynamic_flag_spec_F77='${wl}-E'
19780 ;;
19781
19782 hpux10* | hpux11*)
19783 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19784 case "$host_cpu" in
19785 hppa*64*|ia64*)
19786 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19787 ;;
19788 *)
19789 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19790 ;;
19791 esac
19792 else
19793 case "$host_cpu" in
19794 hppa*64*|ia64*)
19795 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19796 ;;
19797 *)
19798 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19799 ;;
19800 esac
19801 fi
19802 if test "$with_gnu_ld" = no; then
19803 case "$host_cpu" in
19804 hppa*64*)
19805 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19806 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19807 hardcode_libdir_separator_F77=:
19808 hardcode_direct_F77=no
19809 hardcode_shlibpath_var_F77=no
19810 ;;
19811 ia64*)
19812 hardcode_libdir_flag_spec_F77='-L$libdir'
19813 hardcode_direct_F77=no
19814 hardcode_shlibpath_var_F77=no
19815
19816 # hardcode_minus_L: Not really in the search PATH,
19817 # but as the default location of the library.
19818 hardcode_minus_L_F77=yes
19819 ;;
19820 *)
19821 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19822 hardcode_libdir_separator_F77=:
19823 hardcode_direct_F77=yes
19824 export_dynamic_flag_spec_F77='${wl}-E'
19825
19826 # hardcode_minus_L: Not really in the search PATH,
19827 # but as the default location of the library.
19828 hardcode_minus_L_F77=yes
19829 ;;
19830 esac
19831 fi
19832 ;;
19833
19834 irix5* | irix6* | nonstopux*)
19835 if test "$GCC" = yes; then
19836 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'
19837 else
19838 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'
19839 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19840 fi
19841 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19842 hardcode_libdir_separator_F77=:
19843 link_all_deplibs_F77=yes
19844 ;;
19845
19846 netbsd*)
19847 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19848 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19849 else
19850 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19851 fi
19852 hardcode_libdir_flag_spec_F77='-R$libdir'
19853 hardcode_direct_F77=yes
19854 hardcode_shlibpath_var_F77=no
19855 ;;
19856
19857 newsos6)
19858 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19859 hardcode_direct_F77=yes
19860 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19861 hardcode_libdir_separator_F77=:
19862 hardcode_shlibpath_var_F77=no
19863 ;;
19864
19865 openbsd*)
19866 hardcode_direct_F77=yes
19867 hardcode_shlibpath_var_F77=no
19868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19869 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019870 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 +000019871 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19872 export_dynamic_flag_spec_F77='${wl}-E'
19873 else
19874 case $host_os in
19875 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19876 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19877 hardcode_libdir_flag_spec_F77='-R$libdir'
19878 ;;
19879 *)
19880 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19881 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19882 ;;
19883 esac
19884 fi
19885 ;;
19886
19887 os2*)
19888 hardcode_libdir_flag_spec_F77='-L$libdir'
19889 hardcode_minus_L_F77=yes
19890 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019891 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 +000019892 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19893 ;;
19894
19895 osf3*)
19896 if test "$GCC" = yes; then
19897 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19898 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'
19899 else
19900 allow_undefined_flag_F77=' -expect_unresolved \*'
19901 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'
19902 fi
19903 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19904 hardcode_libdir_separator_F77=:
19905 ;;
19906
19907 osf4* | osf5*) # as osf3* with the addition of -msym flag
19908 if test "$GCC" = yes; then
19909 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19910 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'
19911 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19912 else
19913 allow_undefined_flag_F77=' -expect_unresolved \*'
19914 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 +000019915 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~
19916 $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'
19917
John Criswell47fdd832003-07-14 16:52:07 +000019918 # Both c and cxx compiler support -rpath directly
19919 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19920 fi
19921 hardcode_libdir_separator_F77=:
19922 ;;
19923
19924 sco3.2v5*)
19925 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19926 hardcode_shlibpath_var_F77=no
19927 export_dynamic_flag_spec_F77='${wl}-Bexport'
19928 runpath_var=LD_RUN_PATH
19929 hardcode_runpath_var=yes
19930 ;;
19931
19932 solaris*)
19933 no_undefined_flag_F77=' -z text'
19934 if test "$GCC" = yes; then
19935 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019936 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19937 $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 +000019938 else
19939 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019940 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19941 $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 +000019942 fi
19943 hardcode_libdir_flag_spec_F77='-R$libdir'
19944 hardcode_shlibpath_var_F77=no
19945 case $host_os in
19946 solaris2.[0-5] | solaris2.[0-5].*) ;;
19947 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19948 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19949 esac
19950 link_all_deplibs_F77=yes
19951 ;;
19952
19953 sunos4*)
19954 if test "x$host_vendor" = xsequent; then
19955 # Use $CC to link under sequent, because it throws in some extra .o
19956 # files that make .init and .fini sections work.
19957 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19958 else
19959 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19960 fi
19961 hardcode_libdir_flag_spec_F77='-L$libdir'
19962 hardcode_direct_F77=yes
19963 hardcode_minus_L_F77=yes
19964 hardcode_shlibpath_var_F77=no
19965 ;;
19966
19967 sysv4)
19968 case $host_vendor in
19969 sni)
19970 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19971 hardcode_direct_F77=yes # is this really true???
19972 ;;
19973 siemens)
19974 ## LD is ld it makes a PLAMLIB
19975 ## CC just makes a GrossModule.
19976 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19977 reload_cmds_F77='$CC -r -o $output$reload_objs'
19978 hardcode_direct_F77=no
19979 ;;
19980 motorola)
19981 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19982 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19983 ;;
19984 esac
19985 runpath_var='LD_RUN_PATH'
19986 hardcode_shlibpath_var_F77=no
19987 ;;
19988
19989 sysv4.3*)
19990 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19991 hardcode_shlibpath_var_F77=no
19992 export_dynamic_flag_spec_F77='-Bexport'
19993 ;;
19994
19995 sysv4*MP*)
19996 if test -d /usr/nec; then
19997 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19998 hardcode_shlibpath_var_F77=no
19999 runpath_var=LD_RUN_PATH
20000 hardcode_runpath_var=yes
20001 ld_shlibs_F77=yes
20002 fi
20003 ;;
20004
20005 sysv4.2uw2*)
20006 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20007 hardcode_direct_F77=yes
20008 hardcode_minus_L_F77=no
20009 hardcode_shlibpath_var_F77=no
20010 hardcode_runpath_var=yes
20011 runpath_var=LD_RUN_PATH
20012 ;;
20013
20014 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20015 no_undefined_flag_F77='${wl}-z ${wl}text'
20016 if test "$GCC" = yes; then
20017 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20018 else
20019 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20020 fi
20021 runpath_var='LD_RUN_PATH'
20022 hardcode_shlibpath_var_F77=no
20023 ;;
20024
20025 sysv5*)
20026 no_undefined_flag_F77=' -z text'
20027 # $CC -shared without GNU ld will not create a library from C++
20028 # object files and a static libstdc++, better avoid it by now
20029 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000020030 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20031 $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 +000020032 hardcode_libdir_flag_spec_F77=
20033 hardcode_shlibpath_var_F77=no
20034 runpath_var='LD_RUN_PATH'
20035 ;;
20036
20037 uts4*)
20038 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20039 hardcode_libdir_flag_spec_F77='-L$libdir'
20040 hardcode_shlibpath_var_F77=no
20041 ;;
20042
20043 *)
20044 ld_shlibs_F77=no
20045 ;;
20046 esac
20047 fi
20048
20049echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20050echo "${ECHO_T}$ld_shlibs_F77" >&6
20051test "$ld_shlibs_F77" = no && can_build_shared=no
20052
20053variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20054if test "$GCC" = yes; then
20055 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20056fi
20057
20058#
20059# Do we need to explicitly link libc?
20060#
20061case "x$archive_cmds_need_lc_F77" in
20062x|xyes)
20063 # Assume -lc should be added
20064 archive_cmds_need_lc_F77=yes
20065
20066 if test "$enable_shared" = yes && test "$GCC" = yes; then
20067 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020068 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020069 # FIXME: we may have to deal with multi-command sequences.
20070 ;;
20071 '$CC '*)
20072 # Test whether the compiler implicitly links with -lc since on some
20073 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20074 # to ld, don't add -lc before -lgcc.
20075 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20076echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20077 $rm conftest*
20078 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20079
20080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20081 (eval $ac_compile) 2>&5
20082 ac_status=$?
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } 2>conftest.err; then
20085 soname=conftest
20086 lib=conftest
20087 libobjs=conftest.$ac_objext
20088 deplibs=
20089 wl=$lt_prog_compiler_wl_F77
20090 compiler_flags=-v
20091 linker_flags=-v
20092 verstring=
20093 output_objdir=.
20094 libname=conftest
20095 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20096 allow_undefined_flag_F77=
20097 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20098 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20099 ac_status=$?
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }
20102 then
20103 archive_cmds_need_lc_F77=no
20104 else
20105 archive_cmds_need_lc_F77=yes
20106 fi
20107 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20108 else
20109 cat conftest.err 1>&5
20110 fi
20111 $rm conftest*
20112 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20113echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20114 ;;
20115 esac
20116 fi
20117 ;;
20118esac
20119
John Criswell47fdd832003-07-14 16:52:07 +000020120echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20121echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20122library_names_spec=
20123libname_spec='lib$name'
20124soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020125shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020126postinstall_cmds=
20127postuninstall_cmds=
20128finish_cmds=
20129finish_eval=
20130shlibpath_var=
20131shlibpath_overrides_runpath=unknown
20132version_type=none
20133dynamic_linker="$host_os ld.so"
20134sys_lib_dlsearch_path_spec="/lib /usr/lib"
20135if test "$GCC" = yes; then
20136 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20137 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20138 # if the path contains ";" then we assume it to be the separator
20139 # otherwise default to the standard path separator (i.e. ":") - it is
20140 # assumed that no part of a normal pathname contains ";" but that should
20141 # okay in the real world where ";" in dirpaths is itself problematic.
20142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20143 else
20144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20145 fi
20146else
20147 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20148fi
20149need_lib_prefix=unknown
20150hardcode_into_libs=no
20151
20152# when you set need_version to no, make sure it does not cause -set_version
20153# flags to be left without arguments
20154need_version=unknown
20155
20156case $host_os in
20157aix3*)
20158 version_type=linux
20159 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20160 shlibpath_var=LIBPATH
20161
20162 # AIX 3 has no versioning support, so we append a major version to the name.
20163 soname_spec='${libname}${release}${shared_ext}$major'
20164 ;;
20165
20166aix4* | aix5*)
20167 version_type=linux
20168 need_lib_prefix=no
20169 need_version=no
20170 hardcode_into_libs=yes
20171 if test "$host_cpu" = ia64; then
20172 # AIX 5 supports IA64
20173 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20174 shlibpath_var=LD_LIBRARY_PATH
20175 else
20176 # With GCC up to 2.95.x, collect2 would create an import file
20177 # for dependence libraries. The import file would start with
20178 # the line `#! .'. This would cause the generated library to
20179 # depend on `.', always an invalid library. This was fixed in
20180 # development snapshots of GCC prior to 3.0.
20181 case $host_os in
20182 aix4 | aix4.[01] | aix4.[01].*)
20183 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20184 echo ' yes '
20185 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20186 :
20187 else
20188 can_build_shared=no
20189 fi
20190 ;;
20191 esac
20192 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20193 # soname into executable. Probably we can add versioning support to
20194 # collect2, so additional links can be useful in future.
20195 if test "$aix_use_runtimelinking" = yes; then
20196 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20197 # instead of lib<name>.a to let people know that these are not
20198 # typical AIX shared libraries.
20199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20200 else
20201 # We preserve .a as extension for shared libraries through AIX4.2
20202 # and later when we are not doing run time linking.
20203 library_names_spec='${libname}${release}.a $libname.a'
20204 soname_spec='${libname}${release}${shared_ext}$major'
20205 fi
20206 shlibpath_var=LIBPATH
20207 fi
20208 ;;
20209
20210amigaos*)
20211 library_names_spec='$libname.ixlibrary $libname.a'
20212 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020213 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 +000020214 ;;
20215
20216beos*)
20217 library_names_spec='${libname}${shared_ext}'
20218 dynamic_linker="$host_os ld.so"
20219 shlibpath_var=LIBRARY_PATH
20220 ;;
20221
Reid Spencer2706f8c2004-09-19 23:53:36 +000020222bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020223 version_type=linux
20224 need_version=no
20225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20226 soname_spec='${libname}${release}${shared_ext}$major'
20227 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20228 shlibpath_var=LD_LIBRARY_PATH
20229 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20230 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20231 # the default ld.so.conf also contains /usr/contrib/lib and
20232 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20233 # libtool to hard-code these into programs
20234 ;;
20235
20236cygwin* | mingw* | pw32*)
20237 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020238 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020239 need_version=no
20240 need_lib_prefix=no
20241
20242 case $GCC,$host_os in
20243 yes,cygwin* | yes,mingw* | yes,pw32*)
20244 library_names_spec='$libname.dll.a'
20245 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020246 postinstall_cmds='base_file=`basename \${file}`~
20247 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20248 dldir=$destdir/`dirname \$dlpath`~
20249 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020250 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20252 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020253 $rm \$dlpath'
20254 shlibpath_overrides_runpath=yes
20255
20256 case $host_os in
20257 cygwin*)
20258 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20259 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 +000020260 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020261 ;;
20262 mingw*)
20263 # MinGW DLLs use traditional 'lib' prefix
20264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20265 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20266 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20267 # It is most probably a Windows format PATH printed by
20268 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20269 # path with ; separators, and with drive letters. We can handle the
20270 # drive letters (cygwin fileutils understands them), so leave them,
20271 # especially as we might pass files found there to a mingw objdump,
20272 # which wouldn't understand a cygwinified path. Ahh.
20273 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20274 else
20275 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20276 fi
20277 ;;
20278 pw32*)
20279 # pw32 DLLs use 'pw' prefix rather than 'lib'
20280 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20281 ;;
20282 esac
20283 ;;
20284
20285 *)
20286 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20287 ;;
20288 esac
20289 dynamic_linker='Win32 ld.exe'
20290 # FIXME: first we should search . and the directory the executable is in
20291 shlibpath_var=PATH
20292 ;;
20293
20294darwin* | rhapsody*)
20295 dynamic_linker="$host_os dyld"
20296 version_type=darwin
20297 need_lib_prefix=no
20298 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020299 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020300 soname_spec='${libname}${release}${major}$shared_ext'
20301 shlibpath_overrides_runpath=yes
20302 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020303 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020304 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020305 if test "$GCC" = yes; then
20306 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"`
20307 else
20308 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020309 fi
20310 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20311 ;;
20312
20313dgux*)
20314 version_type=linux
20315 need_lib_prefix=no
20316 need_version=no
20317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20318 soname_spec='${libname}${release}${shared_ext}$major'
20319 shlibpath_var=LD_LIBRARY_PATH
20320 ;;
20321
20322freebsd1*)
20323 dynamic_linker=no
20324 ;;
20325
Reid Spencer2706f8c2004-09-19 23:53:36 +000020326kfreebsd*-gnu)
20327 version_type=linux
20328 need_lib_prefix=no
20329 need_version=no
20330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20331 soname_spec='${libname}${release}${shared_ext}$major'
20332 shlibpath_var=LD_LIBRARY_PATH
20333 shlibpath_overrides_runpath=no
20334 hardcode_into_libs=yes
20335 dynamic_linker='GNU ld.so'
20336 ;;
20337
John Criswell47fdd832003-07-14 16:52:07 +000020338freebsd*)
20339 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20340 version_type=freebsd-$objformat
20341 case $version_type in
20342 freebsd-elf*)
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20344 need_version=no
20345 need_lib_prefix=no
20346 ;;
20347 freebsd-*)
20348 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20349 need_version=yes
20350 ;;
20351 esac
20352 shlibpath_var=LD_LIBRARY_PATH
20353 case $host_os in
20354 freebsd2*)
20355 shlibpath_overrides_runpath=yes
20356 ;;
20357 freebsd3.01* | freebsdelf3.01*)
20358 shlibpath_overrides_runpath=yes
20359 hardcode_into_libs=yes
20360 ;;
20361 *) # from 3.2 on
20362 shlibpath_overrides_runpath=no
20363 hardcode_into_libs=yes
20364 ;;
20365 esac
20366 ;;
20367
20368gnu*)
20369 version_type=linux
20370 need_lib_prefix=no
20371 need_version=no
20372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20373 soname_spec='${libname}${release}${shared_ext}$major'
20374 shlibpath_var=LD_LIBRARY_PATH
20375 hardcode_into_libs=yes
20376 ;;
20377
20378hpux9* | hpux10* | hpux11*)
20379 # Give a soname corresponding to the major version so that dld.sl refuses to
20380 # link against other versions.
20381 version_type=sunos
20382 need_lib_prefix=no
20383 need_version=no
20384 case "$host_cpu" in
20385 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020386 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020387 hardcode_into_libs=yes
20388 dynamic_linker="$host_os dld.so"
20389 shlibpath_var=LD_LIBRARY_PATH
20390 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20392 soname_spec='${libname}${release}${shared_ext}$major'
20393 if test "X$HPUX_IA64_MODE" = X32; then
20394 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20395 else
20396 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20397 fi
20398 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20399 ;;
20400 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020401 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020402 hardcode_into_libs=yes
20403 dynamic_linker="$host_os dld.sl"
20404 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20405 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20407 soname_spec='${libname}${release}${shared_ext}$major'
20408 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20409 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20410 ;;
20411 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020412 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020413 dynamic_linker="$host_os dld.sl"
20414 shlibpath_var=SHLIB_PATH
20415 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20417 soname_spec='${libname}${release}${shared_ext}$major'
20418 ;;
20419 esac
20420 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20421 postinstall_cmds='chmod 555 $lib'
20422 ;;
20423
20424irix5* | irix6* | nonstopux*)
20425 case $host_os in
20426 nonstopux*) version_type=nonstopux ;;
20427 *)
20428 if test "$lt_cv_prog_gnu_ld" = yes; then
20429 version_type=linux
20430 else
20431 version_type=irix
20432 fi ;;
20433 esac
20434 need_lib_prefix=no
20435 need_version=no
20436 soname_spec='${libname}${release}${shared_ext}$major'
20437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20438 case $host_os in
20439 irix5* | nonstopux*)
20440 libsuff= shlibsuff=
20441 ;;
20442 *)
20443 case $LD in # libtool.m4 will add one of these switches to LD
20444 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20445 libsuff= shlibsuff= libmagic=32-bit;;
20446 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20447 libsuff=32 shlibsuff=N32 libmagic=N32;;
20448 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20449 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20450 *) libsuff= shlibsuff= libmagic=never-match;;
20451 esac
20452 ;;
20453 esac
20454 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20455 shlibpath_overrides_runpath=no
20456 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20457 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20458 hardcode_into_libs=yes
20459 ;;
20460
20461# No shared lib support for Linux oldld, aout, or coff.
20462linux*oldld* | linux*aout* | linux*coff*)
20463 dynamic_linker=no
20464 ;;
20465
20466# This must be Linux ELF.
20467linux*)
20468 version_type=linux
20469 need_lib_prefix=no
20470 need_version=no
20471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20472 soname_spec='${libname}${release}${shared_ext}$major'
20473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20474 shlibpath_var=LD_LIBRARY_PATH
20475 shlibpath_overrides_runpath=no
20476 # This implies no fast_install, which is unacceptable.
20477 # Some rework will be needed to allow for fast_install
20478 # before this can be enabled.
20479 hardcode_into_libs=yes
20480
Reid Spencer2706f8c2004-09-19 23:53:36 +000020481 # Append ld.so.conf contents to the search path
20482 if test -f /etc/ld.so.conf; then
20483 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20484 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20485 fi
20486
John Criswell47fdd832003-07-14 16:52:07 +000020487 # We used to test for /lib/ld.so.1 and disable shared libraries on
20488 # powerpc, because MkLinux only supported shared libraries with the
20489 # GNU dynamic linker. Since this was broken with cross compilers,
20490 # most powerpc-linux boxes support dynamic linking these days and
20491 # people can always --disable-shared, the test was removed, and we
20492 # assume the GNU/Linux dynamic linker is in use.
20493 dynamic_linker='GNU/Linux ld.so'
20494 ;;
20495
Reid Spencer2706f8c2004-09-19 23:53:36 +000020496knetbsd*-gnu)
20497 version_type=linux
20498 need_lib_prefix=no
20499 need_version=no
20500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20501 soname_spec='${libname}${release}${shared_ext}$major'
20502 shlibpath_var=LD_LIBRARY_PATH
20503 shlibpath_overrides_runpath=no
20504 hardcode_into_libs=yes
20505 dynamic_linker='GNU ld.so'
20506 ;;
20507
John Criswell47fdd832003-07-14 16:52:07 +000020508netbsd*)
20509 version_type=sunos
20510 need_lib_prefix=no
20511 need_version=no
20512 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20515 dynamic_linker='NetBSD (a.out) ld.so'
20516 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020518 soname_spec='${libname}${release}${shared_ext}$major'
20519 dynamic_linker='NetBSD ld.elf_so'
20520 fi
20521 shlibpath_var=LD_LIBRARY_PATH
20522 shlibpath_overrides_runpath=yes
20523 hardcode_into_libs=yes
20524 ;;
20525
20526newsos6)
20527 version_type=linux
20528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20529 shlibpath_var=LD_LIBRARY_PATH
20530 shlibpath_overrides_runpath=yes
20531 ;;
20532
Reid Spencer2706f8c2004-09-19 23:53:36 +000020533nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020534 version_type=linux
20535 need_lib_prefix=no
20536 need_version=no
20537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20538 soname_spec='${libname}${release}${shared_ext}$major'
20539 shlibpath_var=LD_LIBRARY_PATH
20540 shlibpath_overrides_runpath=yes
20541 ;;
20542
20543openbsd*)
20544 version_type=sunos
20545 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020546 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20548 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20549 shlibpath_var=LD_LIBRARY_PATH
20550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20551 case $host_os in
20552 openbsd2.[89] | openbsd2.[89].*)
20553 shlibpath_overrides_runpath=no
20554 ;;
20555 *)
20556 shlibpath_overrides_runpath=yes
20557 ;;
20558 esac
20559 else
20560 shlibpath_overrides_runpath=yes
20561 fi
20562 ;;
20563
20564os2*)
20565 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020566 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020567 need_lib_prefix=no
20568 library_names_spec='$libname${shared_ext} $libname.a'
20569 dynamic_linker='OS/2 ld.exe'
20570 shlibpath_var=LIBPATH
20571 ;;
20572
20573osf3* | osf4* | osf5*)
20574 version_type=osf
20575 need_lib_prefix=no
20576 need_version=no
20577 soname_spec='${libname}${release}${shared_ext}$major'
20578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20579 shlibpath_var=LD_LIBRARY_PATH
20580 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20581 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20582 ;;
20583
20584sco3.2v5*)
20585 version_type=osf
20586 soname_spec='${libname}${release}${shared_ext}$major'
20587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20588 shlibpath_var=LD_LIBRARY_PATH
20589 ;;
20590
20591solaris*)
20592 version_type=linux
20593 need_lib_prefix=no
20594 need_version=no
20595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20596 soname_spec='${libname}${release}${shared_ext}$major'
20597 shlibpath_var=LD_LIBRARY_PATH
20598 shlibpath_overrides_runpath=yes
20599 hardcode_into_libs=yes
20600 # ldd complains unless libraries are executable
20601 postinstall_cmds='chmod +x $lib'
20602 ;;
20603
20604sunos4*)
20605 version_type=sunos
20606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20607 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20608 shlibpath_var=LD_LIBRARY_PATH
20609 shlibpath_overrides_runpath=yes
20610 if test "$with_gnu_ld" = yes; then
20611 need_lib_prefix=no
20612 fi
20613 need_version=yes
20614 ;;
20615
20616sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20617 version_type=linux
20618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20619 soname_spec='${libname}${release}${shared_ext}$major'
20620 shlibpath_var=LD_LIBRARY_PATH
20621 case $host_vendor in
20622 sni)
20623 shlibpath_overrides_runpath=no
20624 need_lib_prefix=no
20625 export_dynamic_flag_spec='${wl}-Blargedynsym'
20626 runpath_var=LD_RUN_PATH
20627 ;;
20628 siemens)
20629 need_lib_prefix=no
20630 ;;
20631 motorola)
20632 need_lib_prefix=no
20633 need_version=no
20634 shlibpath_overrides_runpath=no
20635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20636 ;;
20637 esac
20638 ;;
20639
20640sysv4*MP*)
20641 if test -d /usr/nec ;then
20642 version_type=linux
20643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20644 soname_spec='$libname${shared_ext}.$major'
20645 shlibpath_var=LD_LIBRARY_PATH
20646 fi
20647 ;;
20648
20649uts4*)
20650 version_type=linux
20651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20652 soname_spec='${libname}${release}${shared_ext}$major'
20653 shlibpath_var=LD_LIBRARY_PATH
20654 ;;
20655
20656*)
20657 dynamic_linker=no
20658 ;;
20659esac
20660echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20661echo "${ECHO_T}$dynamic_linker" >&6
20662test "$dynamic_linker" = no && can_build_shared=no
20663
Reid Spencer2706f8c2004-09-19 23:53:36 +000020664echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20665echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20666hardcode_action_F77=
20667if test -n "$hardcode_libdir_flag_spec_F77" || \
20668 test -n "$runpath_var_F77" || \
20669 test "X$hardcode_automatic_F77" = "Xyes" ; then
20670
20671 # We can hardcode non-existant directories.
20672 if test "$hardcode_direct_F77" != no &&
20673 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20674 # have to relink, otherwise we might link with an installed library
20675 # when we should be linking with a yet-to-be-installed one
20676 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20677 test "$hardcode_minus_L_F77" != no; then
20678 # Linking always hardcodes the temporary library directory.
20679 hardcode_action_F77=relink
20680 else
20681 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20682 hardcode_action_F77=immediate
20683 fi
20684else
20685 # We cannot hardcode anything, or else we can only hardcode existing
20686 # directories.
20687 hardcode_action_F77=unsupported
20688fi
20689echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20690echo "${ECHO_T}$hardcode_action_F77" >&6
20691
20692if test "$hardcode_action_F77" = relink; then
20693 # Fast installation is not supported
20694 enable_fast_install=no
20695elif test "$shlibpath_overrides_runpath" = yes ||
20696 test "$enable_shared" = no; then
20697 # Fast installation is not necessary
20698 enable_fast_install=needless
20699fi
20700
20701striplib=
20702old_striplib=
20703echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20704echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20705if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20706 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20707 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20708 echo "$as_me:$LINENO: result: yes" >&5
20709echo "${ECHO_T}yes" >&6
20710else
20711# FIXME - insert some real tests, host_os isn't really good enough
20712 case $host_os in
20713 darwin*)
20714 if test -n "$STRIP" ; then
20715 striplib="$STRIP -x"
20716 echo "$as_me:$LINENO: result: yes" >&5
20717echo "${ECHO_T}yes" >&6
20718 else
20719 echo "$as_me:$LINENO: result: no" >&5
20720echo "${ECHO_T}no" >&6
20721fi
20722 ;;
20723 *)
20724 echo "$as_me:$LINENO: result: no" >&5
20725echo "${ECHO_T}no" >&6
20726 ;;
20727 esac
20728fi
20729
20730
John Criswell47fdd832003-07-14 16:52:07 +000020731
20732# The else clause should only fire when bootstrapping the
20733# libtool distribution, otherwise you forgot to ship ltmain.sh
20734# with your package, and you will get complaints that there are
20735# no rules to generate ltmain.sh.
20736if test -f "$ltmain"; then
20737 # See if we are running on zsh, and set the options which allow our commands through
20738 # without removal of \ escapes.
20739 if test -n "${ZSH_VERSION+set}" ; then
20740 setopt NO_GLOB_SUBST
20741 fi
20742 # Now quote all the things that may contain metacharacters while being
20743 # careful not to overquote the AC_SUBSTed values. We take copies of the
20744 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020745 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20746 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020747 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20748 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20749 deplibs_check_method reload_flag reload_cmds need_locks \
20750 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20751 lt_cv_sys_global_symbol_to_c_name_address \
20752 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20753 old_postinstall_cmds old_postuninstall_cmds \
20754 compiler_F77 \
20755 CC_F77 \
20756 LD_F77 \
20757 lt_prog_compiler_wl_F77 \
20758 lt_prog_compiler_pic_F77 \
20759 lt_prog_compiler_static_F77 \
20760 lt_prog_compiler_no_builtin_flag_F77 \
20761 export_dynamic_flag_spec_F77 \
20762 thread_safe_flag_spec_F77 \
20763 whole_archive_flag_spec_F77 \
20764 enable_shared_with_static_runtimes_F77 \
20765 old_archive_cmds_F77 \
20766 old_archive_from_new_cmds_F77 \
20767 predep_objects_F77 \
20768 postdep_objects_F77 \
20769 predeps_F77 \
20770 postdeps_F77 \
20771 compiler_lib_search_path_F77 \
20772 archive_cmds_F77 \
20773 archive_expsym_cmds_F77 \
20774 postinstall_cmds_F77 \
20775 postuninstall_cmds_F77 \
20776 old_archive_from_expsyms_cmds_F77 \
20777 allow_undefined_flag_F77 \
20778 no_undefined_flag_F77 \
20779 export_symbols_cmds_F77 \
20780 hardcode_libdir_flag_spec_F77 \
20781 hardcode_libdir_flag_spec_ld_F77 \
20782 hardcode_libdir_separator_F77 \
20783 hardcode_automatic_F77 \
20784 module_cmds_F77 \
20785 module_expsym_cmds_F77 \
20786 lt_cv_prog_compiler_c_o_F77 \
20787 exclude_expsyms_F77 \
20788 include_expsyms_F77; do
20789
20790 case $var in
20791 old_archive_cmds_F77 | \
20792 old_archive_from_new_cmds_F77 | \
20793 archive_cmds_F77 | \
20794 archive_expsym_cmds_F77 | \
20795 module_cmds_F77 | \
20796 module_expsym_cmds_F77 | \
20797 old_archive_from_expsyms_cmds_F77 | \
20798 export_symbols_cmds_F77 | \
20799 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20800 postinstall_cmds | postuninstall_cmds | \
20801 old_postinstall_cmds | old_postuninstall_cmds | \
20802 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20803 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020804 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 +000020805 ;;
20806 *)
20807 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20808 ;;
20809 esac
20810 done
20811
20812 case $lt_echo in
20813 *'\$0 --fallback-echo"')
20814 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20815 ;;
20816 esac
20817
20818cfgfile="$ofile"
20819
20820 cat <<__EOF__ >> "$cfgfile"
20821# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20822
20823# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20824
20825# Shell to use when invoking shell scripts.
20826SHELL=$lt_SHELL
20827
20828# Whether or not to build shared libraries.
20829build_libtool_libs=$enable_shared
20830
20831# Whether or not to build static libraries.
20832build_old_libs=$enable_static
20833
20834# Whether or not to add -lc for building shared libraries.
20835build_libtool_need_lc=$archive_cmds_need_lc_F77
20836
20837# Whether or not to disallow shared libs when runtime libs are static
20838allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20839
20840# Whether or not to optimize for fast installation.
20841fast_install=$enable_fast_install
20842
20843# The host system.
20844host_alias=$host_alias
20845host=$host
20846
20847# An echo program that does not interpret backslashes.
20848echo=$lt_echo
20849
20850# The archiver.
20851AR=$lt_AR
20852AR_FLAGS=$lt_AR_FLAGS
20853
20854# A C compiler.
20855LTCC=$lt_LTCC
20856
20857# A language-specific compiler.
20858CC=$lt_compiler_F77
20859
20860# Is the compiler the GNU C compiler?
20861with_gcc=$GCC_F77
20862
20863# An ERE matcher.
20864EGREP=$lt_EGREP
20865
20866# The linker used to build libraries.
20867LD=$lt_LD_F77
20868
20869# Whether we need hard or soft links.
20870LN_S=$lt_LN_S
20871
20872# A BSD-compatible nm program.
20873NM=$lt_NM
20874
20875# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020876STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020877
20878# Used to examine libraries when file_magic_cmd begins "file"
20879MAGIC_CMD=$MAGIC_CMD
20880
20881# Used on cygwin: DLL creation program.
20882DLLTOOL="$DLLTOOL"
20883
20884# Used on cygwin: object dumper.
20885OBJDUMP="$OBJDUMP"
20886
20887# Used on cygwin: assembler.
20888AS="$AS"
20889
20890# The name of the directory that contains temporary libtool files.
20891objdir=$objdir
20892
20893# How to create reloadable object files.
20894reload_flag=$lt_reload_flag
20895reload_cmds=$lt_reload_cmds
20896
20897# How to pass a linker flag through the compiler.
20898wl=$lt_lt_prog_compiler_wl_F77
20899
20900# Object file suffix (normally "o").
20901objext="$ac_objext"
20902
20903# Old archive suffix (normally "a").
20904libext="$libext"
20905
20906# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020907shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020908
20909# Executable file suffix (normally "").
20910exeext="$exeext"
20911
20912# Additional compiler flags for building library objects.
20913pic_flag=$lt_lt_prog_compiler_pic_F77
20914pic_mode=$pic_mode
20915
20916# What is the maximum length of a command?
20917max_cmd_len=$lt_cv_sys_max_cmd_len
20918
20919# Does compiler simultaneously support -c and -o options?
20920compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20921
20922# Must we lock files when doing compilation ?
20923need_locks=$lt_need_locks
20924
20925# Do we need the lib prefix for modules?
20926need_lib_prefix=$need_lib_prefix
20927
20928# Do we need a version for libraries?
20929need_version=$need_version
20930
20931# Whether dlopen is supported.
20932dlopen_support=$enable_dlopen
20933
20934# Whether dlopen of programs is supported.
20935dlopen_self=$enable_dlopen_self
20936
20937# Whether dlopen of statically linked programs is supported.
20938dlopen_self_static=$enable_dlopen_self_static
20939
20940# Compiler flag to prevent dynamic linking.
20941link_static_flag=$lt_lt_prog_compiler_static_F77
20942
20943# Compiler flag to turn off builtin functions.
20944no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20945
20946# Compiler flag to allow reflexive dlopens.
20947export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20948
20949# Compiler flag to generate shared objects directly from archives.
20950whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20951
20952# Compiler flag to generate thread-safe objects.
20953thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20954
20955# Library versioning type.
20956version_type=$version_type
20957
20958# Format of library name prefix.
20959libname_spec=$lt_libname_spec
20960
20961# List of archive names. First name is the real one, the rest are links.
20962# The last name is the one that the linker finds with -lNAME.
20963library_names_spec=$lt_library_names_spec
20964
20965# The coded name of the library, if different from the real name.
20966soname_spec=$lt_soname_spec
20967
20968# Commands used to build and install an old-style archive.
20969RANLIB=$lt_RANLIB
20970old_archive_cmds=$lt_old_archive_cmds_F77
20971old_postinstall_cmds=$lt_old_postinstall_cmds
20972old_postuninstall_cmds=$lt_old_postuninstall_cmds
20973
20974# Create an old-style archive from a shared archive.
20975old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20976
20977# Create a temporary old-style archive to link instead of a shared archive.
20978old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20979
20980# Commands used to build and install a shared archive.
20981archive_cmds=$lt_archive_cmds_F77
20982archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20983postinstall_cmds=$lt_postinstall_cmds
20984postuninstall_cmds=$lt_postuninstall_cmds
20985
20986# Commands used to build a loadable module (assumed same as above if empty)
20987module_cmds=$lt_module_cmds_F77
20988module_expsym_cmds=$lt_module_expsym_cmds_F77
20989
20990# Commands to strip libraries.
20991old_striplib=$lt_old_striplib
20992striplib=$lt_striplib
20993
20994# Dependencies to place before the objects being linked to create a
20995# shared library.
20996predep_objects=$lt_predep_objects_F77
20997
20998# Dependencies to place after the objects being linked to create a
20999# shared library.
21000postdep_objects=$lt_postdep_objects_F77
21001
21002# Dependencies to place before the objects being linked to create a
21003# shared library.
21004predeps=$lt_predeps_F77
21005
21006# Dependencies to place after the objects being linked to create a
21007# shared library.
21008postdeps=$lt_postdeps_F77
21009
21010# The library search path used internally by the compiler when linking
21011# a shared library.
21012compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21013
21014# Method to check whether dependent libraries are shared objects.
21015deplibs_check_method=$lt_deplibs_check_method
21016
21017# Command to use when deplibs_check_method == file_magic.
21018file_magic_cmd=$lt_file_magic_cmd
21019
21020# Flag that allows shared libraries with undefined symbols to be built.
21021allow_undefined_flag=$lt_allow_undefined_flag_F77
21022
21023# Flag that forces no undefined symbols.
21024no_undefined_flag=$lt_no_undefined_flag_F77
21025
21026# Commands used to finish a libtool library installation in a directory.
21027finish_cmds=$lt_finish_cmds
21028
21029# Same as above, but a single script fragment to be evaled but not shown.
21030finish_eval=$lt_finish_eval
21031
21032# Take the output of nm and produce a listing of raw symbols and C names.
21033global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21034
21035# Transform the output of nm in a proper C declaration
21036global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21037
21038# Transform the output of nm in a C name address pair
21039global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21040
21041# This is the shared library runtime path variable.
21042runpath_var=$runpath_var
21043
21044# This is the shared library path variable.
21045shlibpath_var=$shlibpath_var
21046
21047# Is shlibpath searched before the hard-coded library search path?
21048shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21049
21050# How to hardcode a shared library path into an executable.
21051hardcode_action=$hardcode_action_F77
21052
21053# Whether we should hardcode library paths into libraries.
21054hardcode_into_libs=$hardcode_into_libs
21055
21056# Flag to hardcode \$libdir into a binary during linking.
21057# This must work even if \$libdir does not exist.
21058hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21059
21060# If ld is used when linking, flag to hardcode \$libdir into
21061# a binary during linking. This must work even if \$libdir does
21062# not exist.
21063hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21064
21065# Whether we need a single -rpath flag with a separated argument.
21066hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21067
21068# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21069# resulting binary.
21070hardcode_direct=$hardcode_direct_F77
21071
21072# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21073# resulting binary.
21074hardcode_minus_L=$hardcode_minus_L_F77
21075
21076# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21077# the resulting binary.
21078hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21079
21080# Set to yes if building a shared library automatically hardcodes DIR into the library
21081# and all subsequent libraries and executables linked against it.
21082hardcode_automatic=$hardcode_automatic_F77
21083
21084# Variables whose values should be saved in libtool wrapper scripts and
21085# restored at relink time.
21086variables_saved_for_relink="$variables_saved_for_relink"
21087
21088# Whether libtool must link a program against all its dependency libraries.
21089link_all_deplibs=$link_all_deplibs_F77
21090
21091# Compile-time system search path for libraries
21092sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21093
21094# Run-time system search path for libraries
21095sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21096
21097# Fix the shell variable \$srcfile for the compiler.
21098fix_srcfile_path="$fix_srcfile_path_F77"
21099
21100# Set to yes if exported symbols are required.
21101always_export_symbols=$always_export_symbols_F77
21102
21103# The commands to list exported symbols.
21104export_symbols_cmds=$lt_export_symbols_cmds_F77
21105
21106# The commands to extract the exported symbol list from a shared archive.
21107extract_expsyms_cmds=$lt_extract_expsyms_cmds
21108
21109# Symbols that should not be listed in the preloaded symbols.
21110exclude_expsyms=$lt_exclude_expsyms_F77
21111
21112# Symbols that must always be exported.
21113include_expsyms=$lt_include_expsyms_F77
21114
21115# ### END LIBTOOL TAG CONFIG: $tagname
21116
21117__EOF__
21118
21119
21120else
21121 # If there is no Makefile yet, we rely on a make rule to execute
21122 # `config.status --recheck' to rerun these tests and create the
21123 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021124 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21125 if test -f "$ltmain_in"; then
21126 test -f Makefile && make "$ltmain"
21127 fi
John Criswell47fdd832003-07-14 16:52:07 +000021128fi
21129
21130
21131ac_ext=c
21132ac_cpp='$CPP $CPPFLAGS'
21133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135ac_compiler_gnu=$ac_cv_c_compiler_gnu
21136
21137CC="$lt_save_CC"
21138
21139 else
21140 tagname=""
21141 fi
21142 ;;
21143
21144 GCJ)
21145 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021146 ac_ext=c
21147ac_cpp='$CPP $CPPFLAGS'
21148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21150ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000021151
21152
21153# Source file extension for Java test sources.
21154ac_ext=java
21155
21156# Object file extension for compiled Java test sources.
21157objext=o
21158objext_GCJ=$objext
21159
21160# Code to be used in simple compile tests
21161lt_simple_compile_test_code="class foo {}\n"
21162
21163# Code to be used in simple link tests
21164lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21165
21166# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21167
21168# If no C compiler was specified, use CC.
21169LTCC=${LTCC-"$CC"}
21170
21171# Allow CC to be a program name with arguments.
21172compiler=$CC
21173
21174
21175# Allow CC to be a program name with arguments.
21176lt_save_CC="$CC"
21177CC=${GCJ-"gcj"}
21178compiler=$CC
21179compiler_GCJ=$CC
21180
21181# GCJ did not exist at the time GCC didn't implicitly link libc in.
21182archive_cmds_need_lc_GCJ=no
21183
John Criswell47fdd832003-07-14 16:52:07 +000021184
21185lt_prog_compiler_no_builtin_flag_GCJ=
21186
21187if test "$GCC" = yes; then
21188 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21189
Reid Spencer2706f8c2004-09-19 23:53:36 +000021190
21191echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021192echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21193if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21195else
21196 lt_cv_prog_compiler_rtti_exceptions=no
21197 ac_outfile=conftest.$ac_objext
21198 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21199 lt_compiler_flag="-fno-rtti -fno-exceptions"
21200 # Insert the option either (1) after the last *FLAGS variable, or
21201 # (2) before a word containing "conftest.", or (3) at the end.
21202 # Note that $ac_compile itself does not contain backslashes and begins
21203 # with a dollar sign (not a hyphen), so the echo should work correctly.
21204 # The option is referenced via a variable to avoid confusing sed.
21205 lt_compile=`echo "$ac_compile" | $SED \
21206 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21208 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb195d9d2006-03-23 23:21:29 +000021209 (eval echo "\"\$as_me:21209: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021210 (eval "$lt_compile" 2>conftest.err)
21211 ac_status=$?
21212 cat conftest.err >&5
Reid Spencerb195d9d2006-03-23 23:21:29 +000021213 echo "$as_me:21213: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021214 if (exit $ac_status) && test -s "$ac_outfile"; then
21215 # The compiler can only warn and ignore the option if not recognized
21216 # So say no if there are warnings
21217 if test ! -s conftest.err; then
21218 lt_cv_prog_compiler_rtti_exceptions=yes
21219 fi
21220 fi
21221 $rm conftest*
21222
21223fi
21224echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21225echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21226
21227if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21228 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21229else
21230 :
21231fi
21232
21233fi
21234
21235lt_prog_compiler_wl_GCJ=
21236lt_prog_compiler_pic_GCJ=
21237lt_prog_compiler_static_GCJ=
21238
21239echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21240echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21241
21242 if test "$GCC" = yes; then
21243 lt_prog_compiler_wl_GCJ='-Wl,'
21244 lt_prog_compiler_static_GCJ='-static'
21245
21246 case $host_os in
21247 aix*)
21248 # All AIX code is PIC.
21249 if test "$host_cpu" = ia64; then
21250 # AIX 5 now supports IA64 processor
21251 lt_prog_compiler_static_GCJ='-Bstatic'
21252 fi
21253 ;;
21254
21255 amigaos*)
21256 # FIXME: we need at least 68020 code to build shared libraries, but
21257 # adding the `-m68020' flag to GCC prevents building anything better,
21258 # like `-m68040'.
21259 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21260 ;;
21261
21262 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21263 # PIC is the default for these OSes.
21264 ;;
21265
21266 mingw* | pw32* | os2*)
21267 # This hack is so that the source file can tell whether it is being
21268 # built for inclusion in a dll (and should export symbols for example).
21269 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21270 ;;
21271
21272 darwin* | rhapsody*)
21273 # PIC is the default on this platform
21274 # Common symbols not allowed in MH_DYLIB files
21275 lt_prog_compiler_pic_GCJ='-fno-common'
21276 ;;
21277
21278 msdosdjgpp*)
21279 # Just because we use GCC doesn't mean we suddenly get shared libraries
21280 # on systems that don't support them.
21281 lt_prog_compiler_can_build_shared_GCJ=no
21282 enable_shared=no
21283 ;;
21284
21285 sysv4*MP*)
21286 if test -d /usr/nec; then
21287 lt_prog_compiler_pic_GCJ=-Kconform_pic
21288 fi
21289 ;;
21290
21291 hpux*)
21292 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21293 # not for PA HP-UX.
21294 case "$host_cpu" in
21295 hppa*64*|ia64*)
21296 # +Z the default
21297 ;;
21298 *)
21299 lt_prog_compiler_pic_GCJ='-fPIC'
21300 ;;
21301 esac
21302 ;;
21303
21304 *)
21305 lt_prog_compiler_pic_GCJ='-fPIC'
21306 ;;
21307 esac
21308 else
21309 # PORTME Check for flag to pass linker flags through the system compiler.
21310 case $host_os in
21311 aix*)
21312 lt_prog_compiler_wl_GCJ='-Wl,'
21313 if test "$host_cpu" = ia64; then
21314 # AIX 5 now supports IA64 processor
21315 lt_prog_compiler_static_GCJ='-Bstatic'
21316 else
21317 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21318 fi
21319 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021320 darwin*)
21321 # PIC is the default on this platform
21322 # Common symbols not allowed in MH_DYLIB files
21323 case "$cc_basename" in
21324 xlc*)
21325 lt_prog_compiler_pic_GCJ='-qnocommon'
21326 lt_prog_compiler_wl_GCJ='-Wl,'
21327 ;;
21328 esac
21329 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021330
21331 mingw* | pw32* | os2*)
21332 # This hack is so that the source file can tell whether it is being
21333 # built for inclusion in a dll (and should export symbols for example).
21334 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21335 ;;
21336
21337 hpux9* | hpux10* | hpux11*)
21338 lt_prog_compiler_wl_GCJ='-Wl,'
21339 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21340 # not for PA HP-UX.
21341 case "$host_cpu" in
21342 hppa*64*|ia64*)
21343 # +Z the default
21344 ;;
21345 *)
21346 lt_prog_compiler_pic_GCJ='+Z'
21347 ;;
21348 esac
21349 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21350 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21351 ;;
21352
21353 irix5* | irix6* | nonstopux*)
21354 lt_prog_compiler_wl_GCJ='-Wl,'
21355 # PIC (with -KPIC) is the default.
21356 lt_prog_compiler_static_GCJ='-non_shared'
21357 ;;
21358
21359 newsos6)
21360 lt_prog_compiler_pic_GCJ='-KPIC'
21361 lt_prog_compiler_static_GCJ='-Bstatic'
21362 ;;
21363
21364 linux*)
21365 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021366 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021367 lt_prog_compiler_wl_GCJ='-Wl,'
21368 lt_prog_compiler_pic_GCJ='-KPIC'
21369 lt_prog_compiler_static_GCJ='-static'
21370 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021371 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021372 lt_prog_compiler_wl_GCJ='-Wl,'
21373 # All Alpha code is PIC.
21374 lt_prog_compiler_static_GCJ='-non_shared'
21375 ;;
21376 esac
21377 ;;
21378
21379 osf3* | osf4* | osf5*)
21380 lt_prog_compiler_wl_GCJ='-Wl,'
21381 # All OSF/1 code is PIC.
21382 lt_prog_compiler_static_GCJ='-non_shared'
21383 ;;
21384
21385 sco3.2v5*)
21386 lt_prog_compiler_pic_GCJ='-Kpic'
21387 lt_prog_compiler_static_GCJ='-dn'
21388 ;;
21389
21390 solaris*)
21391 lt_prog_compiler_wl_GCJ='-Wl,'
21392 lt_prog_compiler_pic_GCJ='-KPIC'
21393 lt_prog_compiler_static_GCJ='-Bstatic'
21394 ;;
21395
21396 sunos4*)
21397 lt_prog_compiler_wl_GCJ='-Qoption ld '
21398 lt_prog_compiler_pic_GCJ='-PIC'
21399 lt_prog_compiler_static_GCJ='-Bstatic'
21400 ;;
21401
21402 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21403 lt_prog_compiler_wl_GCJ='-Wl,'
21404 lt_prog_compiler_pic_GCJ='-KPIC'
21405 lt_prog_compiler_static_GCJ='-Bstatic'
21406 ;;
21407
21408 sysv4*MP*)
21409 if test -d /usr/nec ;then
21410 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21411 lt_prog_compiler_static_GCJ='-Bstatic'
21412 fi
21413 ;;
21414
21415 uts4*)
21416 lt_prog_compiler_pic_GCJ='-pic'
21417 lt_prog_compiler_static_GCJ='-Bstatic'
21418 ;;
21419
21420 *)
21421 lt_prog_compiler_can_build_shared_GCJ=no
21422 ;;
21423 esac
21424 fi
21425
21426echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21427echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21428
21429#
21430# Check to make sure the PIC flag actually works.
21431#
21432if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021433
21434echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021435echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21436if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21438else
21439 lt_prog_compiler_pic_works_GCJ=no
21440 ac_outfile=conftest.$ac_objext
21441 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21442 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21443 # Insert the option either (1) after the last *FLAGS variable, or
21444 # (2) before a word containing "conftest.", or (3) at the end.
21445 # Note that $ac_compile itself does not contain backslashes and begins
21446 # with a dollar sign (not a hyphen), so the echo should work correctly.
21447 # The option is referenced via a variable to avoid confusing sed.
21448 lt_compile=`echo "$ac_compile" | $SED \
21449 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21451 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb195d9d2006-03-23 23:21:29 +000021452 (eval echo "\"\$as_me:21452: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021453 (eval "$lt_compile" 2>conftest.err)
21454 ac_status=$?
21455 cat conftest.err >&5
Reid Spencerb195d9d2006-03-23 23:21:29 +000021456 echo "$as_me:21456: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021457 if (exit $ac_status) && test -s "$ac_outfile"; then
21458 # The compiler can only warn and ignore the option if not recognized
21459 # So say no if there are warnings
21460 if test ! -s conftest.err; then
21461 lt_prog_compiler_pic_works_GCJ=yes
21462 fi
21463 fi
21464 $rm conftest*
21465
21466fi
21467echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21468echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21469
21470if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21471 case $lt_prog_compiler_pic_GCJ in
21472 "" | " "*) ;;
21473 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21474 esac
21475else
21476 lt_prog_compiler_pic_GCJ=
21477 lt_prog_compiler_can_build_shared_GCJ=no
21478fi
21479
21480fi
21481case "$host_os" in
21482 # For platforms which do not support PIC, -DPIC is meaningless:
21483 *djgpp*)
21484 lt_prog_compiler_pic_GCJ=
21485 ;;
21486 *)
21487 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21488 ;;
21489esac
21490
21491echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21492echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21493if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21494 echo $ECHO_N "(cached) $ECHO_C" >&6
21495else
21496 lt_cv_prog_compiler_c_o_GCJ=no
21497 $rm -r conftest 2>/dev/null
21498 mkdir conftest
21499 cd conftest
21500 mkdir out
21501 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21502
John Criswell47fdd832003-07-14 16:52:07 +000021503 lt_compiler_flag="-o out/conftest2.$ac_objext"
21504 # Insert the option either (1) after the last *FLAGS variable, or
21505 # (2) before a word containing "conftest.", or (3) at the end.
21506 # Note that $ac_compile itself does not contain backslashes and begins
21507 # with a dollar sign (not a hyphen), so the echo should work correctly.
21508 lt_compile=`echo "$ac_compile" | $SED \
21509 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21510 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21511 -e 's:$: $lt_compiler_flag:'`
Reid Spencerb195d9d2006-03-23 23:21:29 +000021512 (eval echo "\"\$as_me:21512: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021513 (eval "$lt_compile" 2>out/conftest.err)
21514 ac_status=$?
21515 cat out/conftest.err >&5
Reid Spencerb195d9d2006-03-23 23:21:29 +000021516 echo "$as_me:21516: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021517 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21518 then
21519 # The compiler can only warn and ignore the option if not recognized
21520 # So say no if there are warnings
21521 if test ! -s out/conftest.err; then
21522 lt_cv_prog_compiler_c_o_GCJ=yes
21523 fi
21524 fi
21525 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021526 $rm conftest*
21527 # SGI C++ compiler will create directory out/ii_files/ for
21528 # template instantiation
21529 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21530 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021531 cd ..
21532 rmdir conftest
21533 $rm conftest*
21534
21535fi
21536echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21537echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21538
21539
21540hard_links="nottested"
21541if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21542 # do not overwrite the value of need_locks provided by the user
21543 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21544echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21545 hard_links=yes
21546 $rm conftest*
21547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21548 touch conftest.a
21549 ln conftest.a conftest.b 2>&5 || hard_links=no
21550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21551 echo "$as_me:$LINENO: result: $hard_links" >&5
21552echo "${ECHO_T}$hard_links" >&6
21553 if test "$hard_links" = no; then
21554 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21555echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21556 need_locks=warn
21557 fi
21558else
21559 need_locks=no
21560fi
21561
21562echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21563echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21564
21565 runpath_var=
21566 allow_undefined_flag_GCJ=
21567 enable_shared_with_static_runtimes_GCJ=no
21568 archive_cmds_GCJ=
21569 archive_expsym_cmds_GCJ=
21570 old_archive_From_new_cmds_GCJ=
21571 old_archive_from_expsyms_cmds_GCJ=
21572 export_dynamic_flag_spec_GCJ=
21573 whole_archive_flag_spec_GCJ=
21574 thread_safe_flag_spec_GCJ=
21575 hardcode_libdir_flag_spec_GCJ=
21576 hardcode_libdir_flag_spec_ld_GCJ=
21577 hardcode_libdir_separator_GCJ=
21578 hardcode_direct_GCJ=no
21579 hardcode_minus_L_GCJ=no
21580 hardcode_shlibpath_var_GCJ=unsupported
21581 link_all_deplibs_GCJ=unknown
21582 hardcode_automatic_GCJ=no
21583 module_cmds_GCJ=
21584 module_expsym_cmds_GCJ=
21585 always_export_symbols_GCJ=no
21586 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21587 # include_expsyms should be a list of space-separated symbols to be *always*
21588 # included in the symbol list
21589 include_expsyms_GCJ=
21590 # exclude_expsyms can be an extended regexp of symbols to exclude
21591 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21592 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21593 # as well as any symbol that contains `d'.
21594 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21595 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21596 # platforms (ab)use it in PIC code, but their linkers get confused if
21597 # the symbol is explicitly referenced. Since portable code cannot
21598 # rely on this symbol name, it's probably fine to never include it in
21599 # preloaded symbol tables.
21600 extract_expsyms_cmds=
21601
21602 case $host_os in
21603 cygwin* | mingw* | pw32*)
21604 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21605 # When not using gcc, we currently assume that we are using
21606 # Microsoft Visual C++.
21607 if test "$GCC" != yes; then
21608 with_gnu_ld=no
21609 fi
21610 ;;
21611 openbsd*)
21612 with_gnu_ld=no
21613 ;;
21614 esac
21615
21616 ld_shlibs_GCJ=yes
21617 if test "$with_gnu_ld" = yes; then
21618 # If archive_cmds runs LD, not CC, wlarc should be empty
21619 wlarc='${wl}'
21620
21621 # See if GNU ld supports shared libraries.
21622 case $host_os in
21623 aix3* | aix4* | aix5*)
21624 # On AIX/PPC, the GNU linker is very broken
21625 if test "$host_cpu" != ia64; then
21626 ld_shlibs_GCJ=no
21627 cat <<EOF 1>&2
21628
21629*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21630*** to be unable to reliably create shared libraries on AIX.
21631*** Therefore, libtool is disabling shared libraries support. If you
21632*** really care for shared libraries, you may want to modify your PATH
21633*** so that a non-GNU linker is found, and then restart.
21634
21635EOF
21636 fi
21637 ;;
21638
21639 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021640 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 +000021641 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21642 hardcode_minus_L_GCJ=yes
21643
21644 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21645 # that the semantics of dynamic libraries on AmigaOS, at least up
21646 # to version 4, is to share data among multiple programs linked
21647 # with the same dynamic library. Since this doesn't match the
21648 # behavior of shared libraries on other platforms, we can't use
21649 # them.
21650 ld_shlibs_GCJ=no
21651 ;;
21652
21653 beos*)
21654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21655 allow_undefined_flag_GCJ=unsupported
21656 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21657 # support --undefined. This deserves some investigation. FIXME
21658 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21659 else
21660 ld_shlibs_GCJ=no
21661 fi
21662 ;;
21663
21664 cygwin* | mingw* | pw32*)
21665 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21666 # as there is no search path for DLLs.
21667 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21668 allow_undefined_flag_GCJ=unsupported
21669 always_export_symbols_GCJ=no
21670 enable_shared_with_static_runtimes_GCJ=yes
21671 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21672
21673 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21674 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21675 # If the export-symbols file already is a .def file (1st line
21676 # is EXPORTS), use it as is; otherwise, prepend...
21677 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21678 cp $export_symbols $output_objdir/$soname.def;
21679 else
21680 echo EXPORTS > $output_objdir/$soname.def;
21681 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021682 fi~
21683 $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 +000021684 else
21685 ld_shlibs=no
21686 fi
21687 ;;
21688
21689 netbsd*)
21690 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21691 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21692 wlarc=
21693 else
21694 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21695 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21696 fi
21697 ;;
21698
21699 solaris* | sysv5*)
21700 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21701 ld_shlibs_GCJ=no
21702 cat <<EOF 1>&2
21703
21704*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21705*** create shared libraries on Solaris systems. Therefore, libtool
21706*** is disabling shared libraries support. We urge you to upgrade GNU
21707*** binutils to release 2.9.1 or newer. Another option is to modify
21708*** your PATH or compiler configuration so that the native linker is
21709*** used, and then restart.
21710
21711EOF
21712 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21713 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21714 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21715 else
21716 ld_shlibs_GCJ=no
21717 fi
21718 ;;
21719
21720 sunos4*)
21721 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21722 wlarc=
21723 hardcode_direct_GCJ=yes
21724 hardcode_shlibpath_var_GCJ=no
21725 ;;
21726
Reid Spencer2706f8c2004-09-19 23:53:36 +000021727 linux*)
21728 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21729 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21730 archive_cmds_GCJ="$tmp_archive_cmds"
21731 supports_anon_versioning=no
21732 case `$LD -v 2>/dev/null` in
21733 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21734 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21735 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21736 *\ 2.11.*) ;; # other 2.11 versions
21737 *) supports_anon_versioning=yes ;;
21738 esac
21739 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021740 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21741cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21742$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021743 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21744 else
21745 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21746 fi
21747 else
21748 ld_shlibs_GCJ=no
21749 fi
21750 ;;
21751
John Criswell47fdd832003-07-14 16:52:07 +000021752 *)
21753 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21754 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21755 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21756 else
21757 ld_shlibs_GCJ=no
21758 fi
21759 ;;
21760 esac
21761
21762 if test "$ld_shlibs_GCJ" = yes; then
21763 runpath_var=LD_RUN_PATH
21764 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21765 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21766 # ancient GNU ld didn't support --whole-archive et. al.
21767 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21768 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21769 else
21770 whole_archive_flag_spec_GCJ=
21771 fi
21772 fi
21773 else
21774 # PORTME fill in a description of your system's linker (not GNU ld)
21775 case $host_os in
21776 aix3*)
21777 allow_undefined_flag_GCJ=unsupported
21778 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021779 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 +000021780 # Note: this linker hardcodes the directories in LIBPATH if there
21781 # are no directories specified by -L.
21782 hardcode_minus_L_GCJ=yes
21783 if test "$GCC" = yes && test -z "$link_static_flag"; then
21784 # Neither direct hardcoding nor static linking is supported with a
21785 # broken collect2.
21786 hardcode_direct_GCJ=unsupported
21787 fi
21788 ;;
21789
21790 aix4* | aix5*)
21791 if test "$host_cpu" = ia64; then
21792 # On IA64, the linker does run time linking by default, so we don't
21793 # have to do anything special.
21794 aix_use_runtimelinking=no
21795 exp_sym_flag='-Bexport'
21796 no_entry_flag=""
21797 else
21798 # If we're using GNU nm, then we don't want the "-C" option.
21799 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21800 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21801 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'
21802 else
21803 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'
21804 fi
21805 aix_use_runtimelinking=no
21806
21807 # Test if we are trying to use run time linking or normal
21808 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21809 # need to do runtime linking.
21810 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21811 for ld_flag in $LDFLAGS; do
21812 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21813 aix_use_runtimelinking=yes
21814 break
21815 fi
21816 done
21817 esac
21818
21819 exp_sym_flag='-bexport'
21820 no_entry_flag='-bnoentry'
21821 fi
21822
21823 # When large executables or shared objects are built, AIX ld can
21824 # have problems creating the table of contents. If linking a library
21825 # or program results in "error TOC overflow" add -mminimal-toc to
21826 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21827 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21828
21829 archive_cmds_GCJ=''
21830 hardcode_direct_GCJ=yes
21831 hardcode_libdir_separator_GCJ=':'
21832 link_all_deplibs_GCJ=yes
21833
21834 if test "$GCC" = yes; then
21835 case $host_os in aix4.012|aix4.012.*)
21836 # We only want to do this on AIX 4.2 and lower, the check
21837 # below for broken collect2 doesn't work under 4.3+
21838 collect2name=`${CC} -print-prog-name=collect2`
21839 if test -f "$collect2name" && \
21840 strings "$collect2name" | grep resolve_lib_name >/dev/null
21841 then
21842 # We have reworked collect2
21843 hardcode_direct_GCJ=yes
21844 else
21845 # We have old collect2
21846 hardcode_direct_GCJ=unsupported
21847 # It fails to find uninstalled libraries when the uninstalled
21848 # path is not listed in the libpath. Setting hardcode_minus_L
21849 # to unsupported forces relinking
21850 hardcode_minus_L_GCJ=yes
21851 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21852 hardcode_libdir_separator_GCJ=
21853 fi
21854 esac
21855 shared_flag='-shared'
21856 else
21857 # not using gcc
21858 if test "$host_cpu" = ia64; then
21859 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21860 # chokes on -Wl,-G. The following line is correct:
21861 shared_flag='-G'
21862 else
21863 if test "$aix_use_runtimelinking" = yes; then
21864 shared_flag='${wl}-G'
21865 else
21866 shared_flag='${wl}-bM:SRE'
21867 fi
21868 fi
21869 fi
21870
21871 # It seems that -bexpall does not export symbols beginning with
21872 # underscore (_), so it is better to generate a list of symbols to export.
21873 always_export_symbols_GCJ=yes
21874 if test "$aix_use_runtimelinking" = yes; then
21875 # Warning - without using the other runtime loading flags (-brtl),
21876 # -berok will link without error, but may produce a broken library.
21877 allow_undefined_flag_GCJ='-berok'
21878 # Determine the default libpath from the value encoded in an empty executable.
21879 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021880/* confdefs.h. */
21881_ACEOF
21882cat confdefs.h >>conftest.$ac_ext
21883cat >>conftest.$ac_ext <<_ACEOF
21884/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021885
John Criswell47fdd832003-07-14 16:52:07 +000021886int
21887main ()
21888{
21889
21890 ;
21891 return 0;
21892}
21893_ACEOF
21894rm -f conftest.$ac_objext conftest$ac_exeext
21895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021896 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021897 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021898 grep -v '^ *+' conftest.er1 >conftest.err
21899 rm -f conftest.er1
21900 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021903 { ac_try='test -z "$ac_c_werror_flag"
21904 || test ! -s conftest.err'
21905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906 (eval $ac_try) 2>&5
21907 ac_status=$?
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); }; } &&
21910 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21912 (eval $ac_try) 2>&5
21913 ac_status=$?
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); }; }; then
21916
21917aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21918}'`
21919# Check for a 64-bit object if we didn't find anything.
21920if 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; }
21921}'`; fi
21922else
21923 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021924sed 's/^/| /' conftest.$ac_ext >&5
21925
John Criswell47fdd832003-07-14 16:52:07 +000021926fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021927rm -f conftest.err conftest.$ac_objext \
21928 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021929if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21930
21931 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21932 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"
21933 else
21934 if test "$host_cpu" = ia64; then
21935 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21936 allow_undefined_flag_GCJ="-z nodefs"
21937 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"
21938 else
21939 # Determine the default libpath from the value encoded in an empty executable.
21940 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021941/* confdefs.h. */
21942_ACEOF
21943cat confdefs.h >>conftest.$ac_ext
21944cat >>conftest.$ac_ext <<_ACEOF
21945/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021946
John Criswell47fdd832003-07-14 16:52:07 +000021947int
21948main ()
21949{
21950
21951 ;
21952 return 0;
21953}
21954_ACEOF
21955rm -f conftest.$ac_objext conftest$ac_exeext
21956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021957 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021958 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021959 grep -v '^ *+' conftest.er1 >conftest.err
21960 rm -f conftest.er1
21961 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021964 { ac_try='test -z "$ac_c_werror_flag"
21965 || test ! -s conftest.err'
21966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; } &&
21971 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21974 ac_status=$?
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; }; then
21977
21978aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21979}'`
21980# Check for a 64-bit object if we didn't find anything.
21981if 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; }
21982}'`; fi
21983else
21984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021985sed 's/^/| /' conftest.$ac_ext >&5
21986
John Criswell47fdd832003-07-14 16:52:07 +000021987fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021988rm -f conftest.err conftest.$ac_objext \
21989 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021990if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21991
21992 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21993 # Warning - without using the other run time loading flags,
21994 # -berok will link without error, but may produce a broken library.
21995 no_undefined_flag_GCJ=' ${wl}-bernotok'
21996 allow_undefined_flag_GCJ=' ${wl}-berok'
21997 # -bexpall does not export symbols beginning with underscore (_)
21998 always_export_symbols_GCJ=yes
21999 # Exported symbols can be pulled into shared objects from archives
22000 whole_archive_flag_spec_GCJ=' '
22001 archive_cmds_need_lc_GCJ=yes
22002 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000022003 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 +000022004 fi
22005 fi
22006 ;;
22007
22008 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000022009 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 +000022010 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22011 hardcode_minus_L_GCJ=yes
22012 # see comment about different semantics on the GNU ld section
22013 ld_shlibs_GCJ=no
22014 ;;
22015
Reid Spencer2706f8c2004-09-19 23:53:36 +000022016 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022017 export_dynamic_flag_spec_GCJ=-rdynamic
22018 ;;
22019
22020 cygwin* | mingw* | pw32*)
22021 # When not using gcc, we currently assume that we are using
22022 # Microsoft Visual C++.
22023 # hardcode_libdir_flag_spec is actually meaningless, as there is
22024 # no search path for DLLs.
22025 hardcode_libdir_flag_spec_GCJ=' '
22026 allow_undefined_flag_GCJ=unsupported
22027 # Tell ltmain to make .lib files, not .a files.
22028 libext=lib
22029 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022030 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022031 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000022032 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 +000022033 # The linker will automatically build a .lib file if we build a DLL.
22034 old_archive_From_new_cmds_GCJ='true'
22035 # FIXME: Should let the user specify the lib program.
22036 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
22037 fix_srcfile_path='`cygpath -w "$srcfile"`'
22038 enable_shared_with_static_runtimes_GCJ=yes
22039 ;;
22040
22041 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000022042 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022043 rhapsody* | darwin1.[012])
22044 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
22045 ;;
22046 *) # Darwin 1.3 on
22047 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22048 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22049 else
22050 case ${MACOSX_DEPLOYMENT_TARGET} in
22051 10.[012])
22052 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22053 ;;
22054 10.*)
22055 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
22056 ;;
22057 esac
22058 fi
22059 ;;
John Criswell47fdd832003-07-14 16:52:07 +000022060 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000022061 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000022062 hardcode_direct_GCJ=no
22063 hardcode_automatic_GCJ=yes
22064 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022065 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000022066 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022067 if test "$GCC" = yes ; then
22068 output_verbose_link_cmd='echo'
22069 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22070 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22071 # 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 +000022072 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}'
22073 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 +000022074 else
22075 case "$cc_basename" in
22076 xlc*)
22077 output_verbose_link_cmd='echo'
22078 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22079 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22080 # 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 +000022081 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}'
22082 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 +000022083 ;;
22084 *)
22085 ld_shlibs_GCJ=no
22086 ;;
22087 esac
John Criswell47fdd832003-07-14 16:52:07 +000022088 fi
22089 ;;
22090
22091 dgux*)
22092 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22093 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22094 hardcode_shlibpath_var_GCJ=no
22095 ;;
22096
22097 freebsd1*)
22098 ld_shlibs_GCJ=no
22099 ;;
22100
22101 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22102 # support. Future versions do this automatically, but an explicit c++rt0.o
22103 # does not break anything, and helps significantly (at the cost of a little
22104 # extra space).
22105 freebsd2.2*)
22106 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22107 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22108 hardcode_direct_GCJ=yes
22109 hardcode_shlibpath_var_GCJ=no
22110 ;;
22111
22112 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22113 freebsd2*)
22114 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22115 hardcode_direct_GCJ=yes
22116 hardcode_minus_L_GCJ=yes
22117 hardcode_shlibpath_var_GCJ=no
22118 ;;
22119
22120 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022121 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000022122 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22123 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22124 hardcode_direct_GCJ=yes
22125 hardcode_shlibpath_var_GCJ=no
22126 ;;
22127
22128 hpux9*)
22129 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022130 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 +000022131 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022132 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 +000022133 fi
22134 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22135 hardcode_libdir_separator_GCJ=:
22136 hardcode_direct_GCJ=yes
22137
22138 # hardcode_minus_L: Not really in the search PATH,
22139 # but as the default location of the library.
22140 hardcode_minus_L_GCJ=yes
22141 export_dynamic_flag_spec_GCJ='${wl}-E'
22142 ;;
22143
22144 hpux10* | hpux11*)
22145 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22146 case "$host_cpu" in
22147 hppa*64*|ia64*)
22148 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22149 ;;
22150 *)
22151 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22152 ;;
22153 esac
22154 else
22155 case "$host_cpu" in
22156 hppa*64*|ia64*)
22157 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22158 ;;
22159 *)
22160 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22161 ;;
22162 esac
22163 fi
22164 if test "$with_gnu_ld" = no; then
22165 case "$host_cpu" in
22166 hppa*64*)
22167 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22168 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22169 hardcode_libdir_separator_GCJ=:
22170 hardcode_direct_GCJ=no
22171 hardcode_shlibpath_var_GCJ=no
22172 ;;
22173 ia64*)
22174 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22175 hardcode_direct_GCJ=no
22176 hardcode_shlibpath_var_GCJ=no
22177
22178 # hardcode_minus_L: Not really in the search PATH,
22179 # but as the default location of the library.
22180 hardcode_minus_L_GCJ=yes
22181 ;;
22182 *)
22183 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22184 hardcode_libdir_separator_GCJ=:
22185 hardcode_direct_GCJ=yes
22186 export_dynamic_flag_spec_GCJ='${wl}-E'
22187
22188 # hardcode_minus_L: Not really in the search PATH,
22189 # but as the default location of the library.
22190 hardcode_minus_L_GCJ=yes
22191 ;;
22192 esac
22193 fi
22194 ;;
22195
22196 irix5* | irix6* | nonstopux*)
22197 if test "$GCC" = yes; then
22198 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'
22199 else
22200 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'
22201 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22202 fi
22203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22204 hardcode_libdir_separator_GCJ=:
22205 link_all_deplibs_GCJ=yes
22206 ;;
22207
22208 netbsd*)
22209 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22210 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22211 else
22212 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22213 fi
22214 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22215 hardcode_direct_GCJ=yes
22216 hardcode_shlibpath_var_GCJ=no
22217 ;;
22218
22219 newsos6)
22220 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22221 hardcode_direct_GCJ=yes
22222 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22223 hardcode_libdir_separator_GCJ=:
22224 hardcode_shlibpath_var_GCJ=no
22225 ;;
22226
22227 openbsd*)
22228 hardcode_direct_GCJ=yes
22229 hardcode_shlibpath_var_GCJ=no
22230 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22231 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022232 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 +000022233 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22234 export_dynamic_flag_spec_GCJ='${wl}-E'
22235 else
22236 case $host_os in
22237 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22238 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22239 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22240 ;;
22241 *)
22242 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22243 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22244 ;;
22245 esac
22246 fi
22247 ;;
22248
22249 os2*)
22250 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22251 hardcode_minus_L_GCJ=yes
22252 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022253 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 +000022254 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22255 ;;
22256
22257 osf3*)
22258 if test "$GCC" = yes; then
22259 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22260 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'
22261 else
22262 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22263 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'
22264 fi
22265 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22266 hardcode_libdir_separator_GCJ=:
22267 ;;
22268
22269 osf4* | osf5*) # as osf3* with the addition of -msym flag
22270 if test "$GCC" = yes; then
22271 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22272 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'
22273 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22274 else
22275 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22276 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 +000022277 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~
22278 $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'
22279
John Criswell47fdd832003-07-14 16:52:07 +000022280 # Both c and cxx compiler support -rpath directly
22281 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22282 fi
22283 hardcode_libdir_separator_GCJ=:
22284 ;;
22285
22286 sco3.2v5*)
22287 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22288 hardcode_shlibpath_var_GCJ=no
22289 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22290 runpath_var=LD_RUN_PATH
22291 hardcode_runpath_var=yes
22292 ;;
22293
22294 solaris*)
22295 no_undefined_flag_GCJ=' -z text'
22296 if test "$GCC" = yes; then
22297 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022298 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22299 $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 +000022300 else
22301 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022302 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22303 $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 +000022304 fi
22305 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22306 hardcode_shlibpath_var_GCJ=no
22307 case $host_os in
22308 solaris2.[0-5] | solaris2.[0-5].*) ;;
22309 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22310 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22311 esac
22312 link_all_deplibs_GCJ=yes
22313 ;;
22314
22315 sunos4*)
22316 if test "x$host_vendor" = xsequent; then
22317 # Use $CC to link under sequent, because it throws in some extra .o
22318 # files that make .init and .fini sections work.
22319 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22320 else
22321 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22322 fi
22323 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22324 hardcode_direct_GCJ=yes
22325 hardcode_minus_L_GCJ=yes
22326 hardcode_shlibpath_var_GCJ=no
22327 ;;
22328
22329 sysv4)
22330 case $host_vendor in
22331 sni)
22332 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22333 hardcode_direct_GCJ=yes # is this really true???
22334 ;;
22335 siemens)
22336 ## LD is ld it makes a PLAMLIB
22337 ## CC just makes a GrossModule.
22338 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22339 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22340 hardcode_direct_GCJ=no
22341 ;;
22342 motorola)
22343 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22344 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22345 ;;
22346 esac
22347 runpath_var='LD_RUN_PATH'
22348 hardcode_shlibpath_var_GCJ=no
22349 ;;
22350
22351 sysv4.3*)
22352 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22353 hardcode_shlibpath_var_GCJ=no
22354 export_dynamic_flag_spec_GCJ='-Bexport'
22355 ;;
22356
22357 sysv4*MP*)
22358 if test -d /usr/nec; then
22359 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22360 hardcode_shlibpath_var_GCJ=no
22361 runpath_var=LD_RUN_PATH
22362 hardcode_runpath_var=yes
22363 ld_shlibs_GCJ=yes
22364 fi
22365 ;;
22366
22367 sysv4.2uw2*)
22368 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22369 hardcode_direct_GCJ=yes
22370 hardcode_minus_L_GCJ=no
22371 hardcode_shlibpath_var_GCJ=no
22372 hardcode_runpath_var=yes
22373 runpath_var=LD_RUN_PATH
22374 ;;
22375
22376 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22377 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22378 if test "$GCC" = yes; then
22379 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22380 else
22381 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22382 fi
22383 runpath_var='LD_RUN_PATH'
22384 hardcode_shlibpath_var_GCJ=no
22385 ;;
22386
22387 sysv5*)
22388 no_undefined_flag_GCJ=' -z text'
22389 # $CC -shared without GNU ld will not create a library from C++
22390 # object files and a static libstdc++, better avoid it by now
22391 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022392 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22393 $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 +000022394 hardcode_libdir_flag_spec_GCJ=
22395 hardcode_shlibpath_var_GCJ=no
22396 runpath_var='LD_RUN_PATH'
22397 ;;
22398
22399 uts4*)
22400 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22401 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22402 hardcode_shlibpath_var_GCJ=no
22403 ;;
22404
22405 *)
22406 ld_shlibs_GCJ=no
22407 ;;
22408 esac
22409 fi
22410
22411echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22412echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22413test "$ld_shlibs_GCJ" = no && can_build_shared=no
22414
22415variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22416if test "$GCC" = yes; then
22417 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22418fi
22419
22420#
22421# Do we need to explicitly link libc?
22422#
22423case "x$archive_cmds_need_lc_GCJ" in
22424x|xyes)
22425 # Assume -lc should be added
22426 archive_cmds_need_lc_GCJ=yes
22427
22428 if test "$enable_shared" = yes && test "$GCC" = yes; then
22429 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022430 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022431 # FIXME: we may have to deal with multi-command sequences.
22432 ;;
22433 '$CC '*)
22434 # Test whether the compiler implicitly links with -lc since on some
22435 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22436 # to ld, don't add -lc before -lgcc.
22437 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22438echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22439 $rm conftest*
22440 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22441
22442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22443 (eval $ac_compile) 2>&5
22444 ac_status=$?
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } 2>conftest.err; then
22447 soname=conftest
22448 lib=conftest
22449 libobjs=conftest.$ac_objext
22450 deplibs=
22451 wl=$lt_prog_compiler_wl_GCJ
22452 compiler_flags=-v
22453 linker_flags=-v
22454 verstring=
22455 output_objdir=.
22456 libname=conftest
22457 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22458 allow_undefined_flag_GCJ=
22459 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22460 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22461 ac_status=$?
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }
22464 then
22465 archive_cmds_need_lc_GCJ=no
22466 else
22467 archive_cmds_need_lc_GCJ=yes
22468 fi
22469 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22470 else
22471 cat conftest.err 1>&5
22472 fi
22473 $rm conftest*
22474 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22475echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22476 ;;
22477 esac
22478 fi
22479 ;;
22480esac
22481
John Criswell47fdd832003-07-14 16:52:07 +000022482echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22483echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22484library_names_spec=
22485libname_spec='lib$name'
22486soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022487shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022488postinstall_cmds=
22489postuninstall_cmds=
22490finish_cmds=
22491finish_eval=
22492shlibpath_var=
22493shlibpath_overrides_runpath=unknown
22494version_type=none
22495dynamic_linker="$host_os ld.so"
22496sys_lib_dlsearch_path_spec="/lib /usr/lib"
22497if test "$GCC" = yes; then
22498 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22499 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22500 # if the path contains ";" then we assume it to be the separator
22501 # otherwise default to the standard path separator (i.e. ":") - it is
22502 # assumed that no part of a normal pathname contains ";" but that should
22503 # okay in the real world where ";" in dirpaths is itself problematic.
22504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22505 else
22506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22507 fi
22508else
22509 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22510fi
22511need_lib_prefix=unknown
22512hardcode_into_libs=no
22513
22514# when you set need_version to no, make sure it does not cause -set_version
22515# flags to be left without arguments
22516need_version=unknown
22517
22518case $host_os in
22519aix3*)
22520 version_type=linux
22521 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22522 shlibpath_var=LIBPATH
22523
22524 # AIX 3 has no versioning support, so we append a major version to the name.
22525 soname_spec='${libname}${release}${shared_ext}$major'
22526 ;;
22527
22528aix4* | aix5*)
22529 version_type=linux
22530 need_lib_prefix=no
22531 need_version=no
22532 hardcode_into_libs=yes
22533 if test "$host_cpu" = ia64; then
22534 # AIX 5 supports IA64
22535 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22536 shlibpath_var=LD_LIBRARY_PATH
22537 else
22538 # With GCC up to 2.95.x, collect2 would create an import file
22539 # for dependence libraries. The import file would start with
22540 # the line `#! .'. This would cause the generated library to
22541 # depend on `.', always an invalid library. This was fixed in
22542 # development snapshots of GCC prior to 3.0.
22543 case $host_os in
22544 aix4 | aix4.[01] | aix4.[01].*)
22545 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22546 echo ' yes '
22547 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22548 :
22549 else
22550 can_build_shared=no
22551 fi
22552 ;;
22553 esac
22554 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22555 # soname into executable. Probably we can add versioning support to
22556 # collect2, so additional links can be useful in future.
22557 if test "$aix_use_runtimelinking" = yes; then
22558 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22559 # instead of lib<name>.a to let people know that these are not
22560 # typical AIX shared libraries.
22561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22562 else
22563 # We preserve .a as extension for shared libraries through AIX4.2
22564 # and later when we are not doing run time linking.
22565 library_names_spec='${libname}${release}.a $libname.a'
22566 soname_spec='${libname}${release}${shared_ext}$major'
22567 fi
22568 shlibpath_var=LIBPATH
22569 fi
22570 ;;
22571
22572amigaos*)
22573 library_names_spec='$libname.ixlibrary $libname.a'
22574 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022575 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 +000022576 ;;
22577
22578beos*)
22579 library_names_spec='${libname}${shared_ext}'
22580 dynamic_linker="$host_os ld.so"
22581 shlibpath_var=LIBRARY_PATH
22582 ;;
22583
Reid Spencer2706f8c2004-09-19 23:53:36 +000022584bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022585 version_type=linux
22586 need_version=no
22587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22588 soname_spec='${libname}${release}${shared_ext}$major'
22589 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22590 shlibpath_var=LD_LIBRARY_PATH
22591 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22592 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22593 # the default ld.so.conf also contains /usr/contrib/lib and
22594 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22595 # libtool to hard-code these into programs
22596 ;;
22597
22598cygwin* | mingw* | pw32*)
22599 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022600 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022601 need_version=no
22602 need_lib_prefix=no
22603
22604 case $GCC,$host_os in
22605 yes,cygwin* | yes,mingw* | yes,pw32*)
22606 library_names_spec='$libname.dll.a'
22607 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022608 postinstall_cmds='base_file=`basename \${file}`~
22609 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22610 dldir=$destdir/`dirname \$dlpath`~
22611 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022612 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022613 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22614 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022615 $rm \$dlpath'
22616 shlibpath_overrides_runpath=yes
22617
22618 case $host_os in
22619 cygwin*)
22620 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22621 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 +000022622 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022623 ;;
22624 mingw*)
22625 # MinGW DLLs use traditional 'lib' prefix
22626 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22627 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22628 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22629 # It is most probably a Windows format PATH printed by
22630 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22631 # path with ; separators, and with drive letters. We can handle the
22632 # drive letters (cygwin fileutils understands them), so leave them,
22633 # especially as we might pass files found there to a mingw objdump,
22634 # which wouldn't understand a cygwinified path. Ahh.
22635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22636 else
22637 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22638 fi
22639 ;;
22640 pw32*)
22641 # pw32 DLLs use 'pw' prefix rather than 'lib'
22642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22643 ;;
22644 esac
22645 ;;
22646
22647 *)
22648 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22649 ;;
22650 esac
22651 dynamic_linker='Win32 ld.exe'
22652 # FIXME: first we should search . and the directory the executable is in
22653 shlibpath_var=PATH
22654 ;;
22655
22656darwin* | rhapsody*)
22657 dynamic_linker="$host_os dyld"
22658 version_type=darwin
22659 need_lib_prefix=no
22660 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022661 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022662 soname_spec='${libname}${release}${major}$shared_ext'
22663 shlibpath_overrides_runpath=yes
22664 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022665 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022666 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022667 if test "$GCC" = yes; then
22668 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"`
22669 else
22670 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022671 fi
22672 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22673 ;;
22674
22675dgux*)
22676 version_type=linux
22677 need_lib_prefix=no
22678 need_version=no
22679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22680 soname_spec='${libname}${release}${shared_ext}$major'
22681 shlibpath_var=LD_LIBRARY_PATH
22682 ;;
22683
22684freebsd1*)
22685 dynamic_linker=no
22686 ;;
22687
Reid Spencer2706f8c2004-09-19 23:53:36 +000022688kfreebsd*-gnu)
22689 version_type=linux
22690 need_lib_prefix=no
22691 need_version=no
22692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22693 soname_spec='${libname}${release}${shared_ext}$major'
22694 shlibpath_var=LD_LIBRARY_PATH
22695 shlibpath_overrides_runpath=no
22696 hardcode_into_libs=yes
22697 dynamic_linker='GNU ld.so'
22698 ;;
22699
John Criswell47fdd832003-07-14 16:52:07 +000022700freebsd*)
22701 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22702 version_type=freebsd-$objformat
22703 case $version_type in
22704 freebsd-elf*)
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22706 need_version=no
22707 need_lib_prefix=no
22708 ;;
22709 freebsd-*)
22710 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22711 need_version=yes
22712 ;;
22713 esac
22714 shlibpath_var=LD_LIBRARY_PATH
22715 case $host_os in
22716 freebsd2*)
22717 shlibpath_overrides_runpath=yes
22718 ;;
22719 freebsd3.01* | freebsdelf3.01*)
22720 shlibpath_overrides_runpath=yes
22721 hardcode_into_libs=yes
22722 ;;
22723 *) # from 3.2 on
22724 shlibpath_overrides_runpath=no
22725 hardcode_into_libs=yes
22726 ;;
22727 esac
22728 ;;
22729
22730gnu*)
22731 version_type=linux
22732 need_lib_prefix=no
22733 need_version=no
22734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22735 soname_spec='${libname}${release}${shared_ext}$major'
22736 shlibpath_var=LD_LIBRARY_PATH
22737 hardcode_into_libs=yes
22738 ;;
22739
22740hpux9* | hpux10* | hpux11*)
22741 # Give a soname corresponding to the major version so that dld.sl refuses to
22742 # link against other versions.
22743 version_type=sunos
22744 need_lib_prefix=no
22745 need_version=no
22746 case "$host_cpu" in
22747 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022748 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022749 hardcode_into_libs=yes
22750 dynamic_linker="$host_os dld.so"
22751 shlibpath_var=LD_LIBRARY_PATH
22752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22754 soname_spec='${libname}${release}${shared_ext}$major'
22755 if test "X$HPUX_IA64_MODE" = X32; then
22756 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22757 else
22758 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22759 fi
22760 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22761 ;;
22762 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022763 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022764 hardcode_into_libs=yes
22765 dynamic_linker="$host_os dld.sl"
22766 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22767 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22769 soname_spec='${libname}${release}${shared_ext}$major'
22770 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22771 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22772 ;;
22773 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022774 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022775 dynamic_linker="$host_os dld.sl"
22776 shlibpath_var=SHLIB_PATH
22777 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22779 soname_spec='${libname}${release}${shared_ext}$major'
22780 ;;
22781 esac
22782 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22783 postinstall_cmds='chmod 555 $lib'
22784 ;;
22785
22786irix5* | irix6* | nonstopux*)
22787 case $host_os in
22788 nonstopux*) version_type=nonstopux ;;
22789 *)
22790 if test "$lt_cv_prog_gnu_ld" = yes; then
22791 version_type=linux
22792 else
22793 version_type=irix
22794 fi ;;
22795 esac
22796 need_lib_prefix=no
22797 need_version=no
22798 soname_spec='${libname}${release}${shared_ext}$major'
22799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22800 case $host_os in
22801 irix5* | nonstopux*)
22802 libsuff= shlibsuff=
22803 ;;
22804 *)
22805 case $LD in # libtool.m4 will add one of these switches to LD
22806 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22807 libsuff= shlibsuff= libmagic=32-bit;;
22808 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22809 libsuff=32 shlibsuff=N32 libmagic=N32;;
22810 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22811 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22812 *) libsuff= shlibsuff= libmagic=never-match;;
22813 esac
22814 ;;
22815 esac
22816 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22817 shlibpath_overrides_runpath=no
22818 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22819 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22820 hardcode_into_libs=yes
22821 ;;
22822
22823# No shared lib support for Linux oldld, aout, or coff.
22824linux*oldld* | linux*aout* | linux*coff*)
22825 dynamic_linker=no
22826 ;;
22827
22828# This must be Linux ELF.
22829linux*)
22830 version_type=linux
22831 need_lib_prefix=no
22832 need_version=no
22833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22834 soname_spec='${libname}${release}${shared_ext}$major'
22835 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22836 shlibpath_var=LD_LIBRARY_PATH
22837 shlibpath_overrides_runpath=no
22838 # This implies no fast_install, which is unacceptable.
22839 # Some rework will be needed to allow for fast_install
22840 # before this can be enabled.
22841 hardcode_into_libs=yes
22842
Reid Spencer2706f8c2004-09-19 23:53:36 +000022843 # Append ld.so.conf contents to the search path
22844 if test -f /etc/ld.so.conf; then
22845 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22846 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22847 fi
22848
John Criswell47fdd832003-07-14 16:52:07 +000022849 # We used to test for /lib/ld.so.1 and disable shared libraries on
22850 # powerpc, because MkLinux only supported shared libraries with the
22851 # GNU dynamic linker. Since this was broken with cross compilers,
22852 # most powerpc-linux boxes support dynamic linking these days and
22853 # people can always --disable-shared, the test was removed, and we
22854 # assume the GNU/Linux dynamic linker is in use.
22855 dynamic_linker='GNU/Linux ld.so'
22856 ;;
22857
Reid Spencer2706f8c2004-09-19 23:53:36 +000022858knetbsd*-gnu)
22859 version_type=linux
22860 need_lib_prefix=no
22861 need_version=no
22862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22863 soname_spec='${libname}${release}${shared_ext}$major'
22864 shlibpath_var=LD_LIBRARY_PATH
22865 shlibpath_overrides_runpath=no
22866 hardcode_into_libs=yes
22867 dynamic_linker='GNU ld.so'
22868 ;;
22869
John Criswell47fdd832003-07-14 16:52:07 +000022870netbsd*)
22871 version_type=sunos
22872 need_lib_prefix=no
22873 need_version=no
22874 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22877 dynamic_linker='NetBSD (a.out) ld.so'
22878 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022880 soname_spec='${libname}${release}${shared_ext}$major'
22881 dynamic_linker='NetBSD ld.elf_so'
22882 fi
22883 shlibpath_var=LD_LIBRARY_PATH
22884 shlibpath_overrides_runpath=yes
22885 hardcode_into_libs=yes
22886 ;;
22887
22888newsos6)
22889 version_type=linux
22890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22891 shlibpath_var=LD_LIBRARY_PATH
22892 shlibpath_overrides_runpath=yes
22893 ;;
22894
Reid Spencer2706f8c2004-09-19 23:53:36 +000022895nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022896 version_type=linux
22897 need_lib_prefix=no
22898 need_version=no
22899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22900 soname_spec='${libname}${release}${shared_ext}$major'
22901 shlibpath_var=LD_LIBRARY_PATH
22902 shlibpath_overrides_runpath=yes
22903 ;;
22904
22905openbsd*)
22906 version_type=sunos
22907 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022908 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22910 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22911 shlibpath_var=LD_LIBRARY_PATH
22912 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22913 case $host_os in
22914 openbsd2.[89] | openbsd2.[89].*)
22915 shlibpath_overrides_runpath=no
22916 ;;
22917 *)
22918 shlibpath_overrides_runpath=yes
22919 ;;
22920 esac
22921 else
22922 shlibpath_overrides_runpath=yes
22923 fi
22924 ;;
22925
22926os2*)
22927 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022928 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022929 need_lib_prefix=no
22930 library_names_spec='$libname${shared_ext} $libname.a'
22931 dynamic_linker='OS/2 ld.exe'
22932 shlibpath_var=LIBPATH
22933 ;;
22934
22935osf3* | osf4* | osf5*)
22936 version_type=osf
22937 need_lib_prefix=no
22938 need_version=no
22939 soname_spec='${libname}${release}${shared_ext}$major'
22940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22941 shlibpath_var=LD_LIBRARY_PATH
22942 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22943 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22944 ;;
22945
22946sco3.2v5*)
22947 version_type=osf
22948 soname_spec='${libname}${release}${shared_ext}$major'
22949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22950 shlibpath_var=LD_LIBRARY_PATH
22951 ;;
22952
22953solaris*)
22954 version_type=linux
22955 need_lib_prefix=no
22956 need_version=no
22957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22958 soname_spec='${libname}${release}${shared_ext}$major'
22959 shlibpath_var=LD_LIBRARY_PATH
22960 shlibpath_overrides_runpath=yes
22961 hardcode_into_libs=yes
22962 # ldd complains unless libraries are executable
22963 postinstall_cmds='chmod +x $lib'
22964 ;;
22965
22966sunos4*)
22967 version_type=sunos
22968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22969 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22970 shlibpath_var=LD_LIBRARY_PATH
22971 shlibpath_overrides_runpath=yes
22972 if test "$with_gnu_ld" = yes; then
22973 need_lib_prefix=no
22974 fi
22975 need_version=yes
22976 ;;
22977
22978sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22979 version_type=linux
22980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22981 soname_spec='${libname}${release}${shared_ext}$major'
22982 shlibpath_var=LD_LIBRARY_PATH
22983 case $host_vendor in
22984 sni)
22985 shlibpath_overrides_runpath=no
22986 need_lib_prefix=no
22987 export_dynamic_flag_spec='${wl}-Blargedynsym'
22988 runpath_var=LD_RUN_PATH
22989 ;;
22990 siemens)
22991 need_lib_prefix=no
22992 ;;
22993 motorola)
22994 need_lib_prefix=no
22995 need_version=no
22996 shlibpath_overrides_runpath=no
22997 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22998 ;;
22999 esac
23000 ;;
23001
23002sysv4*MP*)
23003 if test -d /usr/nec ;then
23004 version_type=linux
23005 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23006 soname_spec='$libname${shared_ext}.$major'
23007 shlibpath_var=LD_LIBRARY_PATH
23008 fi
23009 ;;
23010
23011uts4*)
23012 version_type=linux
23013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23014 soname_spec='${libname}${release}${shared_ext}$major'
23015 shlibpath_var=LD_LIBRARY_PATH
23016 ;;
23017
23018*)
23019 dynamic_linker=no
23020 ;;
23021esac
23022echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23023echo "${ECHO_T}$dynamic_linker" >&6
23024test "$dynamic_linker" = no && can_build_shared=no
23025
Reid Spencer2706f8c2004-09-19 23:53:36 +000023026echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23027echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23028hardcode_action_GCJ=
23029if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23030 test -n "$runpath_var_GCJ" || \
23031 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23032
23033 # We can hardcode non-existant directories.
23034 if test "$hardcode_direct_GCJ" != no &&
23035 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23036 # have to relink, otherwise we might link with an installed library
23037 # when we should be linking with a yet-to-be-installed one
23038 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23039 test "$hardcode_minus_L_GCJ" != no; then
23040 # Linking always hardcodes the temporary library directory.
23041 hardcode_action_GCJ=relink
23042 else
23043 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23044 hardcode_action_GCJ=immediate
23045 fi
23046else
23047 # We cannot hardcode anything, or else we can only hardcode existing
23048 # directories.
23049 hardcode_action_GCJ=unsupported
23050fi
23051echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23052echo "${ECHO_T}$hardcode_action_GCJ" >&6
23053
23054if test "$hardcode_action_GCJ" = relink; then
23055 # Fast installation is not supported
23056 enable_fast_install=no
23057elif test "$shlibpath_overrides_runpath" = yes ||
23058 test "$enable_shared" = no; then
23059 # Fast installation is not necessary
23060 enable_fast_install=needless
23061fi
23062
23063striplib=
23064old_striplib=
23065echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23066echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23067if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23068 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23069 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23070 echo "$as_me:$LINENO: result: yes" >&5
23071echo "${ECHO_T}yes" >&6
23072else
23073# FIXME - insert some real tests, host_os isn't really good enough
23074 case $host_os in
23075 darwin*)
23076 if test -n "$STRIP" ; then
23077 striplib="$STRIP -x"
23078 echo "$as_me:$LINENO: result: yes" >&5
23079echo "${ECHO_T}yes" >&6
23080 else
23081 echo "$as_me:$LINENO: result: no" >&5
23082echo "${ECHO_T}no" >&6
23083fi
23084 ;;
23085 *)
23086 echo "$as_me:$LINENO: result: no" >&5
23087echo "${ECHO_T}no" >&6
23088 ;;
23089 esac
23090fi
23091
John Criswell47fdd832003-07-14 16:52:07 +000023092if test "x$enable_dlopen" != xyes; then
23093 enable_dlopen=unknown
23094 enable_dlopen_self=unknown
23095 enable_dlopen_self_static=unknown
23096else
23097 lt_cv_dlopen=no
23098 lt_cv_dlopen_libs=
23099
23100 case $host_os in
23101 beos*)
23102 lt_cv_dlopen="load_add_on"
23103 lt_cv_dlopen_libs=
23104 lt_cv_dlopen_self=yes
23105 ;;
23106
23107 mingw* | pw32*)
23108 lt_cv_dlopen="LoadLibrary"
23109 lt_cv_dlopen_libs=
23110 ;;
23111
23112 cygwin*)
23113 lt_cv_dlopen="dlopen"
23114 lt_cv_dlopen_libs=
23115 ;;
23116
23117 darwin*)
23118 # if libdl is installed we need to link against it
23119 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23120echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23121if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23122 echo $ECHO_N "(cached) $ECHO_C" >&6
23123else
23124 ac_check_lib_save_LIBS=$LIBS
23125LIBS="-ldl $LIBS"
23126cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023127/* confdefs.h. */
23128_ACEOF
23129cat confdefs.h >>conftest.$ac_ext
23130cat >>conftest.$ac_ext <<_ACEOF
23131/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023132
23133/* Override any gcc2 internal prototype to avoid an error. */
23134#ifdef __cplusplus
23135extern "C"
23136#endif
23137/* We use char because int might match the return type of a gcc2
23138 builtin and then its argument prototype would still apply. */
23139char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023140int
23141main ()
23142{
23143dlopen ();
23144 ;
23145 return 0;
23146}
23147_ACEOF
23148rm -f conftest.$ac_objext conftest$ac_exeext
23149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023150 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023157 { ac_try='test -z "$ac_c_werror_flag"
23158 || test ! -s conftest.err'
23159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160 (eval $ac_try) 2>&5
23161 ac_status=$?
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; } &&
23164 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23167 ac_status=$?
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; }; then
23170 ac_cv_lib_dl_dlopen=yes
23171else
23172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023173sed 's/^/| /' conftest.$ac_ext >&5
23174
John Criswell47fdd832003-07-14 16:52:07 +000023175ac_cv_lib_dl_dlopen=no
23176fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023177rm -f conftest.err conftest.$ac_objext \
23178 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023179LIBS=$ac_check_lib_save_LIBS
23180fi
23181echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23182echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23183if test $ac_cv_lib_dl_dlopen = yes; then
23184 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23185else
23186
23187 lt_cv_dlopen="dyld"
23188 lt_cv_dlopen_libs=
23189 lt_cv_dlopen_self=yes
23190
23191fi
23192
23193 ;;
23194
23195 *)
23196 echo "$as_me:$LINENO: checking for shl_load" >&5
23197echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23198if test "${ac_cv_func_shl_load+set}" = set; then
23199 echo $ECHO_N "(cached) $ECHO_C" >&6
23200else
23201 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023202/* confdefs.h. */
23203_ACEOF
23204cat confdefs.h >>conftest.$ac_ext
23205cat >>conftest.$ac_ext <<_ACEOF
23206/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023207/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23209#define shl_load innocuous_shl_load
23210
John Criswell47fdd832003-07-14 16:52:07 +000023211/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023212 which can conflict with char shl_load (); below.
23213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23214 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023215
John Criswell0c38eaf2003-09-10 15:17:25 +000023216#ifdef __STDC__
23217# include <limits.h>
23218#else
23219# include <assert.h>
23220#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023221
23222#undef shl_load
23223
John Criswell47fdd832003-07-14 16:52:07 +000023224/* Override any gcc2 internal prototype to avoid an error. */
23225#ifdef __cplusplus
23226extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023227{
John Criswell47fdd832003-07-14 16:52:07 +000023228#endif
23229/* We use char because int might match the return type of a gcc2
23230 builtin and then its argument prototype would still apply. */
23231char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023232/* The GNU C library defines this for functions which it implements
23233 to always fail with ENOSYS. Some functions are actually named
23234 something starting with __ and the normal name is an alias. */
23235#if defined (__stub_shl_load) || defined (__stub___shl_load)
23236choke me
23237#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023238char (*f) () = shl_load;
23239#endif
23240#ifdef __cplusplus
23241}
John Criswell47fdd832003-07-14 16:52:07 +000023242#endif
23243
John Criswell0c38eaf2003-09-10 15:17:25 +000023244int
23245main ()
23246{
23247return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023248 ;
23249 return 0;
23250}
23251_ACEOF
23252rm -f conftest.$ac_objext conftest$ac_exeext
23253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023254 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023255 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023256 grep -v '^ *+' conftest.er1 >conftest.err
23257 rm -f conftest.er1
23258 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023261 { ac_try='test -z "$ac_c_werror_flag"
23262 || test ! -s conftest.err'
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23265 ac_status=$?
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; } &&
23268 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270 (eval $ac_try) 2>&5
23271 ac_status=$?
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); }; }; then
23274 ac_cv_func_shl_load=yes
23275else
23276 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023277sed 's/^/| /' conftest.$ac_ext >&5
23278
John Criswell47fdd832003-07-14 16:52:07 +000023279ac_cv_func_shl_load=no
23280fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023281rm -f conftest.err conftest.$ac_objext \
23282 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023283fi
23284echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23285echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23286if test $ac_cv_func_shl_load = yes; then
23287 lt_cv_dlopen="shl_load"
23288else
23289 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23290echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23291if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23292 echo $ECHO_N "(cached) $ECHO_C" >&6
23293else
23294 ac_check_lib_save_LIBS=$LIBS
23295LIBS="-ldld $LIBS"
23296cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023297/* confdefs.h. */
23298_ACEOF
23299cat confdefs.h >>conftest.$ac_ext
23300cat >>conftest.$ac_ext <<_ACEOF
23301/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023302
23303/* Override any gcc2 internal prototype to avoid an error. */
23304#ifdef __cplusplus
23305extern "C"
23306#endif
23307/* We use char because int might match the return type of a gcc2
23308 builtin and then its argument prototype would still apply. */
23309char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023310int
23311main ()
23312{
23313shl_load ();
23314 ;
23315 return 0;
23316}
23317_ACEOF
23318rm -f conftest.$ac_objext conftest$ac_exeext
23319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023320 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023321 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023322 grep -v '^ *+' conftest.er1 >conftest.err
23323 rm -f conftest.er1
23324 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023327 { ac_try='test -z "$ac_c_werror_flag"
23328 || test ! -s conftest.err'
23329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330 (eval $ac_try) 2>&5
23331 ac_status=$?
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); }; } &&
23334 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336 (eval $ac_try) 2>&5
23337 ac_status=$?
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; }; then
23340 ac_cv_lib_dld_shl_load=yes
23341else
23342 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023343sed 's/^/| /' conftest.$ac_ext >&5
23344
John Criswell47fdd832003-07-14 16:52:07 +000023345ac_cv_lib_dld_shl_load=no
23346fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023347rm -f conftest.err conftest.$ac_objext \
23348 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023349LIBS=$ac_check_lib_save_LIBS
23350fi
23351echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23352echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23353if test $ac_cv_lib_dld_shl_load = yes; then
23354 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23355else
23356 echo "$as_me:$LINENO: checking for dlopen" >&5
23357echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23358if test "${ac_cv_func_dlopen+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23360else
23361 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023362/* confdefs.h. */
23363_ACEOF
23364cat confdefs.h >>conftest.$ac_ext
23365cat >>conftest.$ac_ext <<_ACEOF
23366/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023367/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23369#define dlopen innocuous_dlopen
23370
John Criswell47fdd832003-07-14 16:52:07 +000023371/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023372 which can conflict with char dlopen (); below.
23373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23374 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023375
John Criswell0c38eaf2003-09-10 15:17:25 +000023376#ifdef __STDC__
23377# include <limits.h>
23378#else
23379# include <assert.h>
23380#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023381
23382#undef dlopen
23383
John Criswell47fdd832003-07-14 16:52:07 +000023384/* Override any gcc2 internal prototype to avoid an error. */
23385#ifdef __cplusplus
23386extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023387{
John Criswell47fdd832003-07-14 16:52:07 +000023388#endif
23389/* We use char because int might match the return type of a gcc2
23390 builtin and then its argument prototype would still apply. */
23391char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023392/* The GNU C library defines this for functions which it implements
23393 to always fail with ENOSYS. Some functions are actually named
23394 something starting with __ and the normal name is an alias. */
23395#if defined (__stub_dlopen) || defined (__stub___dlopen)
23396choke me
23397#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023398char (*f) () = dlopen;
23399#endif
23400#ifdef __cplusplus
23401}
John Criswell47fdd832003-07-14 16:52:07 +000023402#endif
23403
John Criswell0c38eaf2003-09-10 15:17:25 +000023404int
23405main ()
23406{
23407return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023408 ;
23409 return 0;
23410}
23411_ACEOF
23412rm -f conftest.$ac_objext conftest$ac_exeext
23413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023414 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023415 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023416 grep -v '^ *+' conftest.er1 >conftest.err
23417 rm -f conftest.er1
23418 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023421 { ac_try='test -z "$ac_c_werror_flag"
23422 || test ! -s conftest.err'
23423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424 (eval $ac_try) 2>&5
23425 ac_status=$?
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; } &&
23428 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23431 ac_status=$?
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; }; then
23434 ac_cv_func_dlopen=yes
23435else
23436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023437sed 's/^/| /' conftest.$ac_ext >&5
23438
John Criswell47fdd832003-07-14 16:52:07 +000023439ac_cv_func_dlopen=no
23440fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023441rm -f conftest.err conftest.$ac_objext \
23442 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023443fi
23444echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23445echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23446if test $ac_cv_func_dlopen = yes; then
23447 lt_cv_dlopen="dlopen"
23448else
23449 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23450echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23451if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23452 echo $ECHO_N "(cached) $ECHO_C" >&6
23453else
23454 ac_check_lib_save_LIBS=$LIBS
23455LIBS="-ldl $LIBS"
23456cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023457/* confdefs.h. */
23458_ACEOF
23459cat confdefs.h >>conftest.$ac_ext
23460cat >>conftest.$ac_ext <<_ACEOF
23461/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023462
23463/* Override any gcc2 internal prototype to avoid an error. */
23464#ifdef __cplusplus
23465extern "C"
23466#endif
23467/* We use char because int might match the return type of a gcc2
23468 builtin and then its argument prototype would still apply. */
23469char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023470int
23471main ()
23472{
23473dlopen ();
23474 ;
23475 return 0;
23476}
23477_ACEOF
23478rm -f conftest.$ac_objext conftest$ac_exeext
23479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023480 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023481 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023482 grep -v '^ *+' conftest.er1 >conftest.err
23483 rm -f conftest.er1
23484 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023487 { ac_try='test -z "$ac_c_werror_flag"
23488 || test ! -s conftest.err'
23489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490 (eval $ac_try) 2>&5
23491 ac_status=$?
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); }; } &&
23494 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23496 (eval $ac_try) 2>&5
23497 ac_status=$?
23498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23499 (exit $ac_status); }; }; then
23500 ac_cv_lib_dl_dlopen=yes
23501else
23502 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023503sed 's/^/| /' conftest.$ac_ext >&5
23504
John Criswell47fdd832003-07-14 16:52:07 +000023505ac_cv_lib_dl_dlopen=no
23506fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023507rm -f conftest.err conftest.$ac_objext \
23508 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023509LIBS=$ac_check_lib_save_LIBS
23510fi
23511echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23512echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23513if test $ac_cv_lib_dl_dlopen = yes; then
23514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23515else
23516 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23517echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23518if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23519 echo $ECHO_N "(cached) $ECHO_C" >&6
23520else
23521 ac_check_lib_save_LIBS=$LIBS
23522LIBS="-lsvld $LIBS"
23523cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023524/* confdefs.h. */
23525_ACEOF
23526cat confdefs.h >>conftest.$ac_ext
23527cat >>conftest.$ac_ext <<_ACEOF
23528/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023529
23530/* Override any gcc2 internal prototype to avoid an error. */
23531#ifdef __cplusplus
23532extern "C"
23533#endif
23534/* We use char because int might match the return type of a gcc2
23535 builtin and then its argument prototype would still apply. */
23536char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023537int
23538main ()
23539{
23540dlopen ();
23541 ;
23542 return 0;
23543}
23544_ACEOF
23545rm -f conftest.$ac_objext conftest$ac_exeext
23546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023547 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023548 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023549 grep -v '^ *+' conftest.er1 >conftest.err
23550 rm -f conftest.er1
23551 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023554 { ac_try='test -z "$ac_c_werror_flag"
23555 || test ! -s conftest.err'
23556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23557 (eval $ac_try) 2>&5
23558 ac_status=$?
23559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23560 (exit $ac_status); }; } &&
23561 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563 (eval $ac_try) 2>&5
23564 ac_status=$?
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); }; }; then
23567 ac_cv_lib_svld_dlopen=yes
23568else
23569 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023570sed 's/^/| /' conftest.$ac_ext >&5
23571
John Criswell47fdd832003-07-14 16:52:07 +000023572ac_cv_lib_svld_dlopen=no
23573fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023574rm -f conftest.err conftest.$ac_objext \
23575 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023576LIBS=$ac_check_lib_save_LIBS
23577fi
23578echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23579echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23580if test $ac_cv_lib_svld_dlopen = yes; then
23581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23582else
23583 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23584echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23585if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23586 echo $ECHO_N "(cached) $ECHO_C" >&6
23587else
23588 ac_check_lib_save_LIBS=$LIBS
23589LIBS="-ldld $LIBS"
23590cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023591/* confdefs.h. */
23592_ACEOF
23593cat confdefs.h >>conftest.$ac_ext
23594cat >>conftest.$ac_ext <<_ACEOF
23595/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023596
23597/* Override any gcc2 internal prototype to avoid an error. */
23598#ifdef __cplusplus
23599extern "C"
23600#endif
23601/* We use char because int might match the return type of a gcc2
23602 builtin and then its argument prototype would still apply. */
23603char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023604int
23605main ()
23606{
23607dld_link ();
23608 ;
23609 return 0;
23610}
23611_ACEOF
23612rm -f conftest.$ac_objext conftest$ac_exeext
23613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023614 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023615 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023616 grep -v '^ *+' conftest.er1 >conftest.err
23617 rm -f conftest.er1
23618 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023621 { ac_try='test -z "$ac_c_werror_flag"
23622 || test ! -s conftest.err'
23623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624 (eval $ac_try) 2>&5
23625 ac_status=$?
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; } &&
23628 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23631 ac_status=$?
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; }; then
23634 ac_cv_lib_dld_dld_link=yes
23635else
23636 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023637sed 's/^/| /' conftest.$ac_ext >&5
23638
John Criswell47fdd832003-07-14 16:52:07 +000023639ac_cv_lib_dld_dld_link=no
23640fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023641rm -f conftest.err conftest.$ac_objext \
23642 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023643LIBS=$ac_check_lib_save_LIBS
23644fi
23645echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23646echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23647if test $ac_cv_lib_dld_dld_link = yes; then
23648 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23649fi
23650
23651
23652fi
23653
23654
23655fi
23656
23657
23658fi
23659
23660
23661fi
23662
23663
23664fi
23665
23666 ;;
23667 esac
23668
23669 if test "x$lt_cv_dlopen" != xno; then
23670 enable_dlopen=yes
23671 else
23672 enable_dlopen=no
23673 fi
23674
23675 case $lt_cv_dlopen in
23676 dlopen)
23677 save_CPPFLAGS="$CPPFLAGS"
23678 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23679
23680 save_LDFLAGS="$LDFLAGS"
23681 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23682
23683 save_LIBS="$LIBS"
23684 LIBS="$lt_cv_dlopen_libs $LIBS"
23685
23686 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23687echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23688if test "${lt_cv_dlopen_self+set}" = set; then
23689 echo $ECHO_N "(cached) $ECHO_C" >&6
23690else
23691 if test "$cross_compiling" = yes; then :
23692 lt_cv_dlopen_self=cross
23693else
23694 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23695 lt_status=$lt_dlunknown
23696 cat > conftest.$ac_ext <<EOF
Reid Spencerb195d9d2006-03-23 23:21:29 +000023697#line 23697 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023698#include "confdefs.h"
23699
23700#if HAVE_DLFCN_H
23701#include <dlfcn.h>
23702#endif
23703
23704#include <stdio.h>
23705
23706#ifdef RTLD_GLOBAL
23707# define LT_DLGLOBAL RTLD_GLOBAL
23708#else
23709# ifdef DL_GLOBAL
23710# define LT_DLGLOBAL DL_GLOBAL
23711# else
23712# define LT_DLGLOBAL 0
23713# endif
23714#endif
23715
23716/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23717 find out it does not work in some platform. */
23718#ifndef LT_DLLAZY_OR_NOW
23719# ifdef RTLD_LAZY
23720# define LT_DLLAZY_OR_NOW RTLD_LAZY
23721# else
23722# ifdef DL_LAZY
23723# define LT_DLLAZY_OR_NOW DL_LAZY
23724# else
23725# ifdef RTLD_NOW
23726# define LT_DLLAZY_OR_NOW RTLD_NOW
23727# else
23728# ifdef DL_NOW
23729# define LT_DLLAZY_OR_NOW DL_NOW
23730# else
23731# define LT_DLLAZY_OR_NOW 0
23732# endif
23733# endif
23734# endif
23735# endif
23736#endif
23737
23738#ifdef __cplusplus
23739extern "C" void exit (int);
23740#endif
23741
23742void fnord() { int i=42;}
23743int main ()
23744{
23745 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23746 int status = $lt_dlunknown;
23747
23748 if (self)
23749 {
23750 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23751 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23752 /* dlclose (self); */
23753 }
23754
23755 exit (status);
23756}
23757EOF
23758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23759 (eval $ac_link) 2>&5
23760 ac_status=$?
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23763 (./conftest; exit; ) 2>/dev/null
23764 lt_status=$?
23765 case x$lt_status in
23766 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23767 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23768 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23769 esac
23770 else :
23771 # compilation failed
23772 lt_cv_dlopen_self=no
23773 fi
23774fi
23775rm -fr conftest*
23776
23777
23778fi
23779echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23780echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23781
23782 if test "x$lt_cv_dlopen_self" = xyes; then
23783 LDFLAGS="$LDFLAGS $link_static_flag"
23784 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23785echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23786if test "${lt_cv_dlopen_self_static+set}" = set; then
23787 echo $ECHO_N "(cached) $ECHO_C" >&6
23788else
23789 if test "$cross_compiling" = yes; then :
23790 lt_cv_dlopen_self_static=cross
23791else
23792 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23793 lt_status=$lt_dlunknown
23794 cat > conftest.$ac_ext <<EOF
Reid Spencerb195d9d2006-03-23 23:21:29 +000023795#line 23795 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023796#include "confdefs.h"
23797
23798#if HAVE_DLFCN_H
23799#include <dlfcn.h>
23800#endif
23801
23802#include <stdio.h>
23803
23804#ifdef RTLD_GLOBAL
23805# define LT_DLGLOBAL RTLD_GLOBAL
23806#else
23807# ifdef DL_GLOBAL
23808# define LT_DLGLOBAL DL_GLOBAL
23809# else
23810# define LT_DLGLOBAL 0
23811# endif
23812#endif
23813
23814/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23815 find out it does not work in some platform. */
23816#ifndef LT_DLLAZY_OR_NOW
23817# ifdef RTLD_LAZY
23818# define LT_DLLAZY_OR_NOW RTLD_LAZY
23819# else
23820# ifdef DL_LAZY
23821# define LT_DLLAZY_OR_NOW DL_LAZY
23822# else
23823# ifdef RTLD_NOW
23824# define LT_DLLAZY_OR_NOW RTLD_NOW
23825# else
23826# ifdef DL_NOW
23827# define LT_DLLAZY_OR_NOW DL_NOW
23828# else
23829# define LT_DLLAZY_OR_NOW 0
23830# endif
23831# endif
23832# endif
23833# endif
23834#endif
23835
23836#ifdef __cplusplus
23837extern "C" void exit (int);
23838#endif
23839
23840void fnord() { int i=42;}
23841int main ()
23842{
23843 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23844 int status = $lt_dlunknown;
23845
23846 if (self)
23847 {
23848 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23849 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23850 /* dlclose (self); */
23851 }
23852
23853 exit (status);
23854}
23855EOF
23856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23857 (eval $ac_link) 2>&5
23858 ac_status=$?
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23861 (./conftest; exit; ) 2>/dev/null
23862 lt_status=$?
23863 case x$lt_status in
23864 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23865 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23866 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23867 esac
23868 else :
23869 # compilation failed
23870 lt_cv_dlopen_self_static=no
23871 fi
23872fi
23873rm -fr conftest*
23874
23875
23876fi
23877echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23878echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23879 fi
23880
23881 CPPFLAGS="$save_CPPFLAGS"
23882 LDFLAGS="$save_LDFLAGS"
23883 LIBS="$save_LIBS"
23884 ;;
23885 esac
23886
23887 case $lt_cv_dlopen_self in
23888 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23889 *) enable_dlopen_self=unknown ;;
23890 esac
23891
23892 case $lt_cv_dlopen_self_static in
23893 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23894 *) enable_dlopen_self_static=unknown ;;
23895 esac
23896fi
23897
23898
23899# The else clause should only fire when bootstrapping the
23900# libtool distribution, otherwise you forgot to ship ltmain.sh
23901# with your package, and you will get complaints that there are
23902# no rules to generate ltmain.sh.
23903if test -f "$ltmain"; then
23904 # See if we are running on zsh, and set the options which allow our commands through
23905 # without removal of \ escapes.
23906 if test -n "${ZSH_VERSION+set}" ; then
23907 setopt NO_GLOB_SUBST
23908 fi
23909 # Now quote all the things that may contain metacharacters while being
23910 # careful not to overquote the AC_SUBSTed values. We take copies of the
23911 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023912 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23913 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023914 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23915 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23916 deplibs_check_method reload_flag reload_cmds need_locks \
23917 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23918 lt_cv_sys_global_symbol_to_c_name_address \
23919 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23920 old_postinstall_cmds old_postuninstall_cmds \
23921 compiler_GCJ \
23922 CC_GCJ \
23923 LD_GCJ \
23924 lt_prog_compiler_wl_GCJ \
23925 lt_prog_compiler_pic_GCJ \
23926 lt_prog_compiler_static_GCJ \
23927 lt_prog_compiler_no_builtin_flag_GCJ \
23928 export_dynamic_flag_spec_GCJ \
23929 thread_safe_flag_spec_GCJ \
23930 whole_archive_flag_spec_GCJ \
23931 enable_shared_with_static_runtimes_GCJ \
23932 old_archive_cmds_GCJ \
23933 old_archive_from_new_cmds_GCJ \
23934 predep_objects_GCJ \
23935 postdep_objects_GCJ \
23936 predeps_GCJ \
23937 postdeps_GCJ \
23938 compiler_lib_search_path_GCJ \
23939 archive_cmds_GCJ \
23940 archive_expsym_cmds_GCJ \
23941 postinstall_cmds_GCJ \
23942 postuninstall_cmds_GCJ \
23943 old_archive_from_expsyms_cmds_GCJ \
23944 allow_undefined_flag_GCJ \
23945 no_undefined_flag_GCJ \
23946 export_symbols_cmds_GCJ \
23947 hardcode_libdir_flag_spec_GCJ \
23948 hardcode_libdir_flag_spec_ld_GCJ \
23949 hardcode_libdir_separator_GCJ \
23950 hardcode_automatic_GCJ \
23951 module_cmds_GCJ \
23952 module_expsym_cmds_GCJ \
23953 lt_cv_prog_compiler_c_o_GCJ \
23954 exclude_expsyms_GCJ \
23955 include_expsyms_GCJ; do
23956
23957 case $var in
23958 old_archive_cmds_GCJ | \
23959 old_archive_from_new_cmds_GCJ | \
23960 archive_cmds_GCJ | \
23961 archive_expsym_cmds_GCJ | \
23962 module_cmds_GCJ | \
23963 module_expsym_cmds_GCJ | \
23964 old_archive_from_expsyms_cmds_GCJ | \
23965 export_symbols_cmds_GCJ | \
23966 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23967 postinstall_cmds | postuninstall_cmds | \
23968 old_postinstall_cmds | old_postuninstall_cmds | \
23969 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23970 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023971 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 +000023972 ;;
23973 *)
23974 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23975 ;;
23976 esac
23977 done
23978
23979 case $lt_echo in
23980 *'\$0 --fallback-echo"')
23981 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23982 ;;
23983 esac
23984
23985cfgfile="$ofile"
23986
23987 cat <<__EOF__ >> "$cfgfile"
23988# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23989
23990# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23991
23992# Shell to use when invoking shell scripts.
23993SHELL=$lt_SHELL
23994
23995# Whether or not to build shared libraries.
23996build_libtool_libs=$enable_shared
23997
23998# Whether or not to build static libraries.
23999build_old_libs=$enable_static
24000
24001# Whether or not to add -lc for building shared libraries.
24002build_libtool_need_lc=$archive_cmds_need_lc_GCJ
24003
24004# Whether or not to disallow shared libs when runtime libs are static
24005allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
24006
24007# Whether or not to optimize for fast installation.
24008fast_install=$enable_fast_install
24009
24010# The host system.
24011host_alias=$host_alias
24012host=$host
24013
24014# An echo program that does not interpret backslashes.
24015echo=$lt_echo
24016
24017# The archiver.
24018AR=$lt_AR
24019AR_FLAGS=$lt_AR_FLAGS
24020
24021# A C compiler.
24022LTCC=$lt_LTCC
24023
24024# A language-specific compiler.
24025CC=$lt_compiler_GCJ
24026
24027# Is the compiler the GNU C compiler?
24028with_gcc=$GCC_GCJ
24029
24030# An ERE matcher.
24031EGREP=$lt_EGREP
24032
24033# The linker used to build libraries.
24034LD=$lt_LD_GCJ
24035
24036# Whether we need hard or soft links.
24037LN_S=$lt_LN_S
24038
24039# A BSD-compatible nm program.
24040NM=$lt_NM
24041
24042# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024043STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024044
24045# Used to examine libraries when file_magic_cmd begins "file"
24046MAGIC_CMD=$MAGIC_CMD
24047
24048# Used on cygwin: DLL creation program.
24049DLLTOOL="$DLLTOOL"
24050
24051# Used on cygwin: object dumper.
24052OBJDUMP="$OBJDUMP"
24053
24054# Used on cygwin: assembler.
24055AS="$AS"
24056
24057# The name of the directory that contains temporary libtool files.
24058objdir=$objdir
24059
24060# How to create reloadable object files.
24061reload_flag=$lt_reload_flag
24062reload_cmds=$lt_reload_cmds
24063
24064# How to pass a linker flag through the compiler.
24065wl=$lt_lt_prog_compiler_wl_GCJ
24066
24067# Object file suffix (normally "o").
24068objext="$ac_objext"
24069
24070# Old archive suffix (normally "a").
24071libext="$libext"
24072
24073# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024074shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024075
24076# Executable file suffix (normally "").
24077exeext="$exeext"
24078
24079# Additional compiler flags for building library objects.
24080pic_flag=$lt_lt_prog_compiler_pic_GCJ
24081pic_mode=$pic_mode
24082
24083# What is the maximum length of a command?
24084max_cmd_len=$lt_cv_sys_max_cmd_len
24085
24086# Does compiler simultaneously support -c and -o options?
24087compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24088
24089# Must we lock files when doing compilation ?
24090need_locks=$lt_need_locks
24091
24092# Do we need the lib prefix for modules?
24093need_lib_prefix=$need_lib_prefix
24094
24095# Do we need a version for libraries?
24096need_version=$need_version
24097
24098# Whether dlopen is supported.
24099dlopen_support=$enable_dlopen
24100
24101# Whether dlopen of programs is supported.
24102dlopen_self=$enable_dlopen_self
24103
24104# Whether dlopen of statically linked programs is supported.
24105dlopen_self_static=$enable_dlopen_self_static
24106
24107# Compiler flag to prevent dynamic linking.
24108link_static_flag=$lt_lt_prog_compiler_static_GCJ
24109
24110# Compiler flag to turn off builtin functions.
24111no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24112
24113# Compiler flag to allow reflexive dlopens.
24114export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24115
24116# Compiler flag to generate shared objects directly from archives.
24117whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24118
24119# Compiler flag to generate thread-safe objects.
24120thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24121
24122# Library versioning type.
24123version_type=$version_type
24124
24125# Format of library name prefix.
24126libname_spec=$lt_libname_spec
24127
24128# List of archive names. First name is the real one, the rest are links.
24129# The last name is the one that the linker finds with -lNAME.
24130library_names_spec=$lt_library_names_spec
24131
24132# The coded name of the library, if different from the real name.
24133soname_spec=$lt_soname_spec
24134
24135# Commands used to build and install an old-style archive.
24136RANLIB=$lt_RANLIB
24137old_archive_cmds=$lt_old_archive_cmds_GCJ
24138old_postinstall_cmds=$lt_old_postinstall_cmds
24139old_postuninstall_cmds=$lt_old_postuninstall_cmds
24140
24141# Create an old-style archive from a shared archive.
24142old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24143
24144# Create a temporary old-style archive to link instead of a shared archive.
24145old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24146
24147# Commands used to build and install a shared archive.
24148archive_cmds=$lt_archive_cmds_GCJ
24149archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24150postinstall_cmds=$lt_postinstall_cmds
24151postuninstall_cmds=$lt_postuninstall_cmds
24152
24153# Commands used to build a loadable module (assumed same as above if empty)
24154module_cmds=$lt_module_cmds_GCJ
24155module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24156
24157# Commands to strip libraries.
24158old_striplib=$lt_old_striplib
24159striplib=$lt_striplib
24160
24161# Dependencies to place before the objects being linked to create a
24162# shared library.
24163predep_objects=$lt_predep_objects_GCJ
24164
24165# Dependencies to place after the objects being linked to create a
24166# shared library.
24167postdep_objects=$lt_postdep_objects_GCJ
24168
24169# Dependencies to place before the objects being linked to create a
24170# shared library.
24171predeps=$lt_predeps_GCJ
24172
24173# Dependencies to place after the objects being linked to create a
24174# shared library.
24175postdeps=$lt_postdeps_GCJ
24176
24177# The library search path used internally by the compiler when linking
24178# a shared library.
24179compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24180
24181# Method to check whether dependent libraries are shared objects.
24182deplibs_check_method=$lt_deplibs_check_method
24183
24184# Command to use when deplibs_check_method == file_magic.
24185file_magic_cmd=$lt_file_magic_cmd
24186
24187# Flag that allows shared libraries with undefined symbols to be built.
24188allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24189
24190# Flag that forces no undefined symbols.
24191no_undefined_flag=$lt_no_undefined_flag_GCJ
24192
24193# Commands used to finish a libtool library installation in a directory.
24194finish_cmds=$lt_finish_cmds
24195
24196# Same as above, but a single script fragment to be evaled but not shown.
24197finish_eval=$lt_finish_eval
24198
24199# Take the output of nm and produce a listing of raw symbols and C names.
24200global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24201
24202# Transform the output of nm in a proper C declaration
24203global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24204
24205# Transform the output of nm in a C name address pair
24206global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24207
24208# This is the shared library runtime path variable.
24209runpath_var=$runpath_var
24210
24211# This is the shared library path variable.
24212shlibpath_var=$shlibpath_var
24213
24214# Is shlibpath searched before the hard-coded library search path?
24215shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24216
24217# How to hardcode a shared library path into an executable.
24218hardcode_action=$hardcode_action_GCJ
24219
24220# Whether we should hardcode library paths into libraries.
24221hardcode_into_libs=$hardcode_into_libs
24222
24223# Flag to hardcode \$libdir into a binary during linking.
24224# This must work even if \$libdir does not exist.
24225hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24226
24227# If ld is used when linking, flag to hardcode \$libdir into
24228# a binary during linking. This must work even if \$libdir does
24229# not exist.
24230hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24231
24232# Whether we need a single -rpath flag with a separated argument.
24233hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24234
24235# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24236# resulting binary.
24237hardcode_direct=$hardcode_direct_GCJ
24238
24239# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24240# resulting binary.
24241hardcode_minus_L=$hardcode_minus_L_GCJ
24242
24243# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24244# the resulting binary.
24245hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24246
24247# Set to yes if building a shared library automatically hardcodes DIR into the library
24248# and all subsequent libraries and executables linked against it.
24249hardcode_automatic=$hardcode_automatic_GCJ
24250
24251# Variables whose values should be saved in libtool wrapper scripts and
24252# restored at relink time.
24253variables_saved_for_relink="$variables_saved_for_relink"
24254
24255# Whether libtool must link a program against all its dependency libraries.
24256link_all_deplibs=$link_all_deplibs_GCJ
24257
24258# Compile-time system search path for libraries
24259sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24260
24261# Run-time system search path for libraries
24262sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24263
24264# Fix the shell variable \$srcfile for the compiler.
24265fix_srcfile_path="$fix_srcfile_path_GCJ"
24266
24267# Set to yes if exported symbols are required.
24268always_export_symbols=$always_export_symbols_GCJ
24269
24270# The commands to list exported symbols.
24271export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24272
24273# The commands to extract the exported symbol list from a shared archive.
24274extract_expsyms_cmds=$lt_extract_expsyms_cmds
24275
24276# Symbols that should not be listed in the preloaded symbols.
24277exclude_expsyms=$lt_exclude_expsyms_GCJ
24278
24279# Symbols that must always be exported.
24280include_expsyms=$lt_include_expsyms_GCJ
24281
24282# ### END LIBTOOL TAG CONFIG: $tagname
24283
24284__EOF__
24285
24286
24287else
24288 # If there is no Makefile yet, we rely on a make rule to execute
24289 # `config.status --recheck' to rerun these tests and create the
24290 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024291 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24292 if test -f "$ltmain_in"; then
24293 test -f Makefile && make "$ltmain"
24294 fi
John Criswell47fdd832003-07-14 16:52:07 +000024295fi
24296
24297
24298ac_ext=c
24299ac_cpp='$CPP $CPPFLAGS'
24300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24302ac_compiler_gnu=$ac_cv_c_compiler_gnu
24303
24304CC="$lt_save_CC"
24305
24306 else
24307 tagname=""
24308 fi
24309 ;;
24310
24311 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024312 ac_ext=c
24313ac_cpp='$CPP $CPPFLAGS'
24314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24316ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024317
24318
24319# Source file extension for RC test sources.
24320ac_ext=rc
24321
24322# Object file extension for compiled RC test sources.
24323objext=o
24324objext_RC=$objext
24325
24326# Code to be used in simple compile tests
24327lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24328
24329# Code to be used in simple link tests
24330lt_simple_link_test_code="$lt_simple_compile_test_code"
24331
24332# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24333
24334# If no C compiler was specified, use CC.
24335LTCC=${LTCC-"$CC"}
24336
24337# Allow CC to be a program name with arguments.
24338compiler=$CC
24339
24340
24341# Allow CC to be a program name with arguments.
24342lt_save_CC="$CC"
24343CC=${RC-"windres"}
24344compiler=$CC
24345compiler_RC=$CC
24346lt_cv_prog_compiler_c_o_RC=yes
24347
24348# The else clause should only fire when bootstrapping the
24349# libtool distribution, otherwise you forgot to ship ltmain.sh
24350# with your package, and you will get complaints that there are
24351# no rules to generate ltmain.sh.
24352if test -f "$ltmain"; then
24353 # See if we are running on zsh, and set the options which allow our commands through
24354 # without removal of \ escapes.
24355 if test -n "${ZSH_VERSION+set}" ; then
24356 setopt NO_GLOB_SUBST
24357 fi
24358 # Now quote all the things that may contain metacharacters while being
24359 # careful not to overquote the AC_SUBSTed values. We take copies of the
24360 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024361 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24362 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024363 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24364 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24365 deplibs_check_method reload_flag reload_cmds need_locks \
24366 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24367 lt_cv_sys_global_symbol_to_c_name_address \
24368 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24369 old_postinstall_cmds old_postuninstall_cmds \
24370 compiler_RC \
24371 CC_RC \
24372 LD_RC \
24373 lt_prog_compiler_wl_RC \
24374 lt_prog_compiler_pic_RC \
24375 lt_prog_compiler_static_RC \
24376 lt_prog_compiler_no_builtin_flag_RC \
24377 export_dynamic_flag_spec_RC \
24378 thread_safe_flag_spec_RC \
24379 whole_archive_flag_spec_RC \
24380 enable_shared_with_static_runtimes_RC \
24381 old_archive_cmds_RC \
24382 old_archive_from_new_cmds_RC \
24383 predep_objects_RC \
24384 postdep_objects_RC \
24385 predeps_RC \
24386 postdeps_RC \
24387 compiler_lib_search_path_RC \
24388 archive_cmds_RC \
24389 archive_expsym_cmds_RC \
24390 postinstall_cmds_RC \
24391 postuninstall_cmds_RC \
24392 old_archive_from_expsyms_cmds_RC \
24393 allow_undefined_flag_RC \
24394 no_undefined_flag_RC \
24395 export_symbols_cmds_RC \
24396 hardcode_libdir_flag_spec_RC \
24397 hardcode_libdir_flag_spec_ld_RC \
24398 hardcode_libdir_separator_RC \
24399 hardcode_automatic_RC \
24400 module_cmds_RC \
24401 module_expsym_cmds_RC \
24402 lt_cv_prog_compiler_c_o_RC \
24403 exclude_expsyms_RC \
24404 include_expsyms_RC; do
24405
24406 case $var in
24407 old_archive_cmds_RC | \
24408 old_archive_from_new_cmds_RC | \
24409 archive_cmds_RC | \
24410 archive_expsym_cmds_RC | \
24411 module_cmds_RC | \
24412 module_expsym_cmds_RC | \
24413 old_archive_from_expsyms_cmds_RC | \
24414 export_symbols_cmds_RC | \
24415 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24416 postinstall_cmds | postuninstall_cmds | \
24417 old_postinstall_cmds | old_postuninstall_cmds | \
24418 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24419 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024420 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 +000024421 ;;
24422 *)
24423 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24424 ;;
24425 esac
24426 done
24427
24428 case $lt_echo in
24429 *'\$0 --fallback-echo"')
24430 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24431 ;;
24432 esac
24433
24434cfgfile="$ofile"
24435
24436 cat <<__EOF__ >> "$cfgfile"
24437# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24438
24439# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24440
24441# Shell to use when invoking shell scripts.
24442SHELL=$lt_SHELL
24443
24444# Whether or not to build shared libraries.
24445build_libtool_libs=$enable_shared
24446
24447# Whether or not to build static libraries.
24448build_old_libs=$enable_static
24449
24450# Whether or not to add -lc for building shared libraries.
24451build_libtool_need_lc=$archive_cmds_need_lc_RC
24452
24453# Whether or not to disallow shared libs when runtime libs are static
24454allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24455
24456# Whether or not to optimize for fast installation.
24457fast_install=$enable_fast_install
24458
24459# The host system.
24460host_alias=$host_alias
24461host=$host
24462
24463# An echo program that does not interpret backslashes.
24464echo=$lt_echo
24465
24466# The archiver.
24467AR=$lt_AR
24468AR_FLAGS=$lt_AR_FLAGS
24469
24470# A C compiler.
24471LTCC=$lt_LTCC
24472
24473# A language-specific compiler.
24474CC=$lt_compiler_RC
24475
24476# Is the compiler the GNU C compiler?
24477with_gcc=$GCC_RC
24478
24479# An ERE matcher.
24480EGREP=$lt_EGREP
24481
24482# The linker used to build libraries.
24483LD=$lt_LD_RC
24484
24485# Whether we need hard or soft links.
24486LN_S=$lt_LN_S
24487
24488# A BSD-compatible nm program.
24489NM=$lt_NM
24490
24491# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024492STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024493
24494# Used to examine libraries when file_magic_cmd begins "file"
24495MAGIC_CMD=$MAGIC_CMD
24496
24497# Used on cygwin: DLL creation program.
24498DLLTOOL="$DLLTOOL"
24499
24500# Used on cygwin: object dumper.
24501OBJDUMP="$OBJDUMP"
24502
24503# Used on cygwin: assembler.
24504AS="$AS"
24505
24506# The name of the directory that contains temporary libtool files.
24507objdir=$objdir
24508
24509# How to create reloadable object files.
24510reload_flag=$lt_reload_flag
24511reload_cmds=$lt_reload_cmds
24512
24513# How to pass a linker flag through the compiler.
24514wl=$lt_lt_prog_compiler_wl_RC
24515
24516# Object file suffix (normally "o").
24517objext="$ac_objext"
24518
24519# Old archive suffix (normally "a").
24520libext="$libext"
24521
24522# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024523shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024524
24525# Executable file suffix (normally "").
24526exeext="$exeext"
24527
24528# Additional compiler flags for building library objects.
24529pic_flag=$lt_lt_prog_compiler_pic_RC
24530pic_mode=$pic_mode
24531
24532# What is the maximum length of a command?
24533max_cmd_len=$lt_cv_sys_max_cmd_len
24534
24535# Does compiler simultaneously support -c and -o options?
24536compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24537
24538# Must we lock files when doing compilation ?
24539need_locks=$lt_need_locks
24540
24541# Do we need the lib prefix for modules?
24542need_lib_prefix=$need_lib_prefix
24543
24544# Do we need a version for libraries?
24545need_version=$need_version
24546
24547# Whether dlopen is supported.
24548dlopen_support=$enable_dlopen
24549
24550# Whether dlopen of programs is supported.
24551dlopen_self=$enable_dlopen_self
24552
24553# Whether dlopen of statically linked programs is supported.
24554dlopen_self_static=$enable_dlopen_self_static
24555
24556# Compiler flag to prevent dynamic linking.
24557link_static_flag=$lt_lt_prog_compiler_static_RC
24558
24559# Compiler flag to turn off builtin functions.
24560no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24561
24562# Compiler flag to allow reflexive dlopens.
24563export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24564
24565# Compiler flag to generate shared objects directly from archives.
24566whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24567
24568# Compiler flag to generate thread-safe objects.
24569thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24570
24571# Library versioning type.
24572version_type=$version_type
24573
24574# Format of library name prefix.
24575libname_spec=$lt_libname_spec
24576
24577# List of archive names. First name is the real one, the rest are links.
24578# The last name is the one that the linker finds with -lNAME.
24579library_names_spec=$lt_library_names_spec
24580
24581# The coded name of the library, if different from the real name.
24582soname_spec=$lt_soname_spec
24583
24584# Commands used to build and install an old-style archive.
24585RANLIB=$lt_RANLIB
24586old_archive_cmds=$lt_old_archive_cmds_RC
24587old_postinstall_cmds=$lt_old_postinstall_cmds
24588old_postuninstall_cmds=$lt_old_postuninstall_cmds
24589
24590# Create an old-style archive from a shared archive.
24591old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24592
24593# Create a temporary old-style archive to link instead of a shared archive.
24594old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24595
24596# Commands used to build and install a shared archive.
24597archive_cmds=$lt_archive_cmds_RC
24598archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24599postinstall_cmds=$lt_postinstall_cmds
24600postuninstall_cmds=$lt_postuninstall_cmds
24601
24602# Commands used to build a loadable module (assumed same as above if empty)
24603module_cmds=$lt_module_cmds_RC
24604module_expsym_cmds=$lt_module_expsym_cmds_RC
24605
24606# Commands to strip libraries.
24607old_striplib=$lt_old_striplib
24608striplib=$lt_striplib
24609
24610# Dependencies to place before the objects being linked to create a
24611# shared library.
24612predep_objects=$lt_predep_objects_RC
24613
24614# Dependencies to place after the objects being linked to create a
24615# shared library.
24616postdep_objects=$lt_postdep_objects_RC
24617
24618# Dependencies to place before the objects being linked to create a
24619# shared library.
24620predeps=$lt_predeps_RC
24621
24622# Dependencies to place after the objects being linked to create a
24623# shared library.
24624postdeps=$lt_postdeps_RC
24625
24626# The library search path used internally by the compiler when linking
24627# a shared library.
24628compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24629
24630# Method to check whether dependent libraries are shared objects.
24631deplibs_check_method=$lt_deplibs_check_method
24632
24633# Command to use when deplibs_check_method == file_magic.
24634file_magic_cmd=$lt_file_magic_cmd
24635
24636# Flag that allows shared libraries with undefined symbols to be built.
24637allow_undefined_flag=$lt_allow_undefined_flag_RC
24638
24639# Flag that forces no undefined symbols.
24640no_undefined_flag=$lt_no_undefined_flag_RC
24641
24642# Commands used to finish a libtool library installation in a directory.
24643finish_cmds=$lt_finish_cmds
24644
24645# Same as above, but a single script fragment to be evaled but not shown.
24646finish_eval=$lt_finish_eval
24647
24648# Take the output of nm and produce a listing of raw symbols and C names.
24649global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24650
24651# Transform the output of nm in a proper C declaration
24652global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24653
24654# Transform the output of nm in a C name address pair
24655global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24656
24657# This is the shared library runtime path variable.
24658runpath_var=$runpath_var
24659
24660# This is the shared library path variable.
24661shlibpath_var=$shlibpath_var
24662
24663# Is shlibpath searched before the hard-coded library search path?
24664shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24665
24666# How to hardcode a shared library path into an executable.
24667hardcode_action=$hardcode_action_RC
24668
24669# Whether we should hardcode library paths into libraries.
24670hardcode_into_libs=$hardcode_into_libs
24671
24672# Flag to hardcode \$libdir into a binary during linking.
24673# This must work even if \$libdir does not exist.
24674hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24675
24676# If ld is used when linking, flag to hardcode \$libdir into
24677# a binary during linking. This must work even if \$libdir does
24678# not exist.
24679hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24680
24681# Whether we need a single -rpath flag with a separated argument.
24682hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24683
24684# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24685# resulting binary.
24686hardcode_direct=$hardcode_direct_RC
24687
24688# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24689# resulting binary.
24690hardcode_minus_L=$hardcode_minus_L_RC
24691
24692# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24693# the resulting binary.
24694hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24695
24696# Set to yes if building a shared library automatically hardcodes DIR into the library
24697# and all subsequent libraries and executables linked against it.
24698hardcode_automatic=$hardcode_automatic_RC
24699
24700# Variables whose values should be saved in libtool wrapper scripts and
24701# restored at relink time.
24702variables_saved_for_relink="$variables_saved_for_relink"
24703
24704# Whether libtool must link a program against all its dependency libraries.
24705link_all_deplibs=$link_all_deplibs_RC
24706
24707# Compile-time system search path for libraries
24708sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24709
24710# Run-time system search path for libraries
24711sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24712
24713# Fix the shell variable \$srcfile for the compiler.
24714fix_srcfile_path="$fix_srcfile_path_RC"
24715
24716# Set to yes if exported symbols are required.
24717always_export_symbols=$always_export_symbols_RC
24718
24719# The commands to list exported symbols.
24720export_symbols_cmds=$lt_export_symbols_cmds_RC
24721
24722# The commands to extract the exported symbol list from a shared archive.
24723extract_expsyms_cmds=$lt_extract_expsyms_cmds
24724
24725# Symbols that should not be listed in the preloaded symbols.
24726exclude_expsyms=$lt_exclude_expsyms_RC
24727
24728# Symbols that must always be exported.
24729include_expsyms=$lt_include_expsyms_RC
24730
24731# ### END LIBTOOL TAG CONFIG: $tagname
24732
24733__EOF__
24734
24735
24736else
24737 # If there is no Makefile yet, we rely on a make rule to execute
24738 # `config.status --recheck' to rerun these tests and create the
24739 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024740 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24741 if test -f "$ltmain_in"; then
24742 test -f Makefile && make "$ltmain"
24743 fi
John Criswell47fdd832003-07-14 16:52:07 +000024744fi
24745
24746
24747ac_ext=c
24748ac_cpp='$CPP $CPPFLAGS'
24749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24751ac_compiler_gnu=$ac_cv_c_compiler_gnu
24752
24753CC="$lt_save_CC"
24754
24755 ;;
24756
24757 *)
24758 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24759echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24760 { (exit 1); exit 1; }; }
24761 ;;
24762 esac
24763
24764 # Append the new tag name to the list of available tags.
24765 if test -n "$tagname" ; then
24766 available_tags="$available_tags $tagname"
24767 fi
24768 fi
24769 done
24770 IFS="$lt_save_ifs"
24771
24772 # Now substitute the updated list of available tags.
24773 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24774 mv "${ofile}T" "$ofile"
24775 chmod +x "$ofile"
24776 else
24777 rm -f "${ofile}T"
24778 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24779echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24780 { (exit 1); exit 1; }; }
24781 fi
24782fi
John Criswell7a73b802003-06-30 21:59:07 +000024783
24784
24785
24786# This can be used to rebuild libtool when needed
24787LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24788
24789# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024790LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024791
24792# Prevent multiple expansion
24793
24794
24795
John Criswell47fdd832003-07-14 16:52:07 +000024796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024813
Reid Spencer582a23c2004-12-29 07:07:57 +000024814if test "$lt_cv_dlopen_self" = "yes" ; then
24815
24816cat >>confdefs.h <<\_ACEOF
24817#define CAN_DLOPEN_SELF 1
24818_ACEOF
24819
24820fi
24821
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024822etags_version=`$ETAGS --version 2>&1`
24823case "$etags_version" in
24824 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24825 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24826 *) ETAGSFLAGS="" ;;
24827esac
24828ETAGSFLAGS=$ETAGSFLAGS
24829
24830
Reid Spencer7931a782004-12-27 06:15:02 +000024831if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024832 LLVMGCC="llvm-gcc${EXEEXT}"
24833 LLVMGXX="llvm-g++${EXEEXT}"
24834 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24835set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024836echo "$as_me:$LINENO: checking for $ac_word" >&5
24837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24838if test "${ac_cv_path_LLVMGCC+set}" = set; then
24839 echo $ECHO_N "(cached) $ECHO_C" >&6
24840else
24841 case $LLVMGCC in
24842 [\\/]* | ?:[\\/]*)
24843 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24844 ;;
24845 *)
24846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24847for as_dir in $PATH
24848do
24849 IFS=$as_save_IFS
24850 test -z "$as_dir" && as_dir=.
24851 for ac_exec_ext in '' $ac_executable_extensions; do
24852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24853 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24855 break 2
24856 fi
24857done
24858done
24859
Reid Spencer59473af2004-12-25 07:31:29 +000024860 ;;
24861esac
24862fi
24863LLVMGCC=$ac_cv_path_LLVMGCC
24864
24865if test -n "$LLVMGCC"; then
24866 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24867echo "${ECHO_T}$LLVMGCC" >&6
24868else
24869 echo "$as_me:$LINENO: result: no" >&5
24870echo "${ECHO_T}no" >&6
24871fi
24872
Reid Spencerc84492c2005-06-02 22:34:49 +000024873 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24874set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024875echo "$as_me:$LINENO: checking for $ac_word" >&5
24876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24877if test "${ac_cv_path_LLVMGXX+set}" = set; then
24878 echo $ECHO_N "(cached) $ECHO_C" >&6
24879else
24880 case $LLVMGXX in
24881 [\\/]* | ?:[\\/]*)
24882 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24883 ;;
24884 *)
24885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24886for as_dir in $PATH
24887do
24888 IFS=$as_save_IFS
24889 test -z "$as_dir" && as_dir=.
24890 for ac_exec_ext in '' $ac_executable_extensions; do
24891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24892 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24894 break 2
24895 fi
24896done
24897done
24898
Reid Spencer59473af2004-12-25 07:31:29 +000024899 ;;
24900esac
24901fi
24902LLVMGXX=$ac_cv_path_LLVMGXX
24903
24904if test -n "$LLVMGXX"; then
24905 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24906echo "${ECHO_T}$LLVMGXX" >&6
24907else
24908 echo "$as_me:$LINENO: result: no" >&5
24909echo "${ECHO_T}no" >&6
24910fi
24911
24912else
Reid Spencerc84492c2005-06-02 22:34:49 +000024913 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24914 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000024915 LLVMGCC=$LLVMGCC
24916
24917 LLVMGXX=$LLVMGXX
24918
24919fi
24920
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024921echo "$as_me:$LINENO: checking tool compatibility" >&5
24922echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24923
Reid Spencer86901802004-12-08 23:07:27 +000024924ICC=no
24925IXX=no
24926case $CC in
24927 icc*|icpc*)
24928 ICC=yes
24929 IXX=yes
24930 ;;
24931 *)
24932 ;;
24933esac
24934
Duraid Madina937c60a2006-02-15 07:57:42 +000024935if test "$GCC" != "yes" && test "$ICC" != "yes"
24936then
24937 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24938echo "$as_me: error: gcc|icc required but not found" >&2;}
24939 { (exit 1); exit 1; }; }
24940fi
24941
24942if test "$GXX" != "yes" && test "$IXX" != "yes"
24943then
24944 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24945echo "$as_me: error: g++|icc required but not found" >&2;}
24946 { (exit 1); exit 1; }; }
24947fi
24948
Reid Spencer86901802004-12-08 23:07:27 +000024949if test "$GCC" = "yes"
24950then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000024951 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000024952 if test "$gccmajor" -lt "3"
24953 then
24954 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024955echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24956 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024957 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024958fi
24959
24960if test -z "$llvm_cv_gnu_make_command"
24961then
24962 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24963echo "$as_me: error: GNU Make required but not found" >&2;}
24964 { (exit 1); exit 1; }; }
24965fi
24966
24967echo "$as_me:$LINENO: result: ok" >&5
24968echo "${ECHO_T}ok" >&6
24969
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024970
John Criswell7a73b802003-06-30 21:59:07 +000024971
John Criswell7a73b802003-06-30 21:59:07 +000024972echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24973echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24974if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24975 echo $ECHO_N "(cached) $ECHO_C" >&6
24976else
24977 ac_check_lib_save_LIBS=$LIBS
24978LIBS="-lelf $LIBS"
24979cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024980/* confdefs.h. */
24981_ACEOF
24982cat confdefs.h >>conftest.$ac_ext
24983cat >>conftest.$ac_ext <<_ACEOF
24984/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024985
24986/* Override any gcc2 internal prototype to avoid an error. */
24987#ifdef __cplusplus
24988extern "C"
24989#endif
24990/* We use char because int might match the return type of a gcc2
24991 builtin and then its argument prototype would still apply. */
24992char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024993int
24994main ()
24995{
24996elf_begin ();
24997 ;
24998 return 0;
24999}
25000_ACEOF
25001rm -f conftest.$ac_objext conftest$ac_exeext
25002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025003 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025004 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025005 grep -v '^ *+' conftest.er1 >conftest.err
25006 rm -f conftest.er1
25007 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025010 { ac_try='test -z "$ac_c_werror_flag"
25011 || test ! -s conftest.err'
25012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25013 (eval $ac_try) 2>&5
25014 ac_status=$?
25015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25016 (exit $ac_status); }; } &&
25017 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25019 (eval $ac_try) 2>&5
25020 ac_status=$?
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); }; }; then
25023 ac_cv_lib_elf_elf_begin=yes
25024else
25025 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025026sed 's/^/| /' conftest.$ac_ext >&5
25027
John Criswell7a73b802003-06-30 21:59:07 +000025028ac_cv_lib_elf_elf_begin=no
25029fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025030rm -f conftest.err conftest.$ac_objext \
25031 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025032LIBS=$ac_check_lib_save_LIBS
25033fi
25034echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
25035echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
25036if test $ac_cv_lib_elf_elf_begin = yes; then
25037 cat >>confdefs.h <<_ACEOF
25038#define HAVE_LIBELF 1
25039_ACEOF
25040
25041 LIBS="-lelf $LIBS"
25042
25043fi
25044
25045
Reid Spencer3484a992006-01-19 08:31:08 +000025046echo "$as_me:$LINENO: checking for sin in -lm" >&5
25047echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
25048if test "${ac_cv_lib_m_sin+set}" = set; then
25049 echo $ECHO_N "(cached) $ECHO_C" >&6
25050else
25051 ac_check_lib_save_LIBS=$LIBS
25052LIBS="-lm $LIBS"
25053cat >conftest.$ac_ext <<_ACEOF
25054/* confdefs.h. */
25055_ACEOF
25056cat confdefs.h >>conftest.$ac_ext
25057cat >>conftest.$ac_ext <<_ACEOF
25058/* end confdefs.h. */
25059
25060/* Override any gcc2 internal prototype to avoid an error. */
25061#ifdef __cplusplus
25062extern "C"
25063#endif
25064/* We use char because int might match the return type of a gcc2
25065 builtin and then its argument prototype would still apply. */
25066char sin ();
25067int
25068main ()
25069{
25070sin ();
25071 ;
25072 return 0;
25073}
25074_ACEOF
25075rm -f conftest.$ac_objext conftest$ac_exeext
25076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25077 (eval $ac_link) 2>conftest.er1
25078 ac_status=$?
25079 grep -v '^ *+' conftest.er1 >conftest.err
25080 rm -f conftest.er1
25081 cat conftest.err >&5
25082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083 (exit $ac_status); } &&
25084 { ac_try='test -z "$ac_c_werror_flag"
25085 || test ! -s conftest.err'
25086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25087 (eval $ac_try) 2>&5
25088 ac_status=$?
25089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25090 (exit $ac_status); }; } &&
25091 { ac_try='test -s conftest$ac_exeext'
25092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25093 (eval $ac_try) 2>&5
25094 ac_status=$?
25095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25096 (exit $ac_status); }; }; then
25097 ac_cv_lib_m_sin=yes
25098else
25099 echo "$as_me: failed program was:" >&5
25100sed 's/^/| /' conftest.$ac_ext >&5
25101
25102ac_cv_lib_m_sin=no
25103fi
25104rm -f conftest.err conftest.$ac_objext \
25105 conftest$ac_exeext conftest.$ac_ext
25106LIBS=$ac_check_lib_save_LIBS
25107fi
25108echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25109echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25110if test $ac_cv_lib_m_sin = yes; then
25111 cat >>confdefs.h <<_ACEOF
25112#define HAVE_LIBM 1
25113_ACEOF
25114
25115 LIBS="-lm $LIBS"
25116
25117fi
25118
Reid Spencer22177fe2005-07-12 15:24:20 +000025119
Reid Spencer17795972004-11-18 09:47:37 +000025120echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25121echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25122if test "${ac_cv_search_lt_dlopen+set}" = set; then
25123 echo $ECHO_N "(cached) $ECHO_C" >&6
25124else
25125 ac_func_search_save_LIBS=$LIBS
25126ac_cv_search_lt_dlopen=no
25127cat >conftest.$ac_ext <<_ACEOF
25128/* confdefs.h. */
25129_ACEOF
25130cat confdefs.h >>conftest.$ac_ext
25131cat >>conftest.$ac_ext <<_ACEOF
25132/* end confdefs.h. */
25133
25134/* Override any gcc2 internal prototype to avoid an error. */
25135#ifdef __cplusplus
25136extern "C"
25137#endif
25138/* We use char because int might match the return type of a gcc2
25139 builtin and then its argument prototype would still apply. */
25140char lt_dlopen ();
25141int
25142main ()
25143{
25144lt_dlopen ();
25145 ;
25146 return 0;
25147}
25148_ACEOF
25149rm -f conftest.$ac_objext conftest$ac_exeext
25150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25151 (eval $ac_link) 2>conftest.er1
25152 ac_status=$?
25153 grep -v '^ *+' conftest.er1 >conftest.err
25154 rm -f conftest.er1
25155 cat conftest.err >&5
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); } &&
25158 { ac_try='test -z "$ac_c_werror_flag"
25159 || test ! -s conftest.err'
25160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161 (eval $ac_try) 2>&5
25162 ac_status=$?
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); }; } &&
25165 { ac_try='test -s conftest$ac_exeext'
25166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25167 (eval $ac_try) 2>&5
25168 ac_status=$?
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); }; }; then
25171 ac_cv_search_lt_dlopen="none required"
25172else
25173 echo "$as_me: failed program was:" >&5
25174sed 's/^/| /' conftest.$ac_ext >&5
25175
25176fi
25177rm -f conftest.err conftest.$ac_objext \
25178 conftest$ac_exeext conftest.$ac_ext
25179if test "$ac_cv_search_lt_dlopen" = no; then
25180 for ac_lib in ltdl; do
25181 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25182 cat >conftest.$ac_ext <<_ACEOF
25183/* confdefs.h. */
25184_ACEOF
25185cat confdefs.h >>conftest.$ac_ext
25186cat >>conftest.$ac_ext <<_ACEOF
25187/* end confdefs.h. */
25188
25189/* Override any gcc2 internal prototype to avoid an error. */
25190#ifdef __cplusplus
25191extern "C"
25192#endif
25193/* We use char because int might match the return type of a gcc2
25194 builtin and then its argument prototype would still apply. */
25195char lt_dlopen ();
25196int
25197main ()
25198{
25199lt_dlopen ();
25200 ;
25201 return 0;
25202}
25203_ACEOF
25204rm -f conftest.$ac_objext conftest$ac_exeext
25205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25206 (eval $ac_link) 2>conftest.er1
25207 ac_status=$?
25208 grep -v '^ *+' conftest.er1 >conftest.err
25209 rm -f conftest.er1
25210 cat conftest.err >&5
25211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } &&
25213 { ac_try='test -z "$ac_c_werror_flag"
25214 || test ! -s conftest.err'
25215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25216 (eval $ac_try) 2>&5
25217 ac_status=$?
25218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25219 (exit $ac_status); }; } &&
25220 { ac_try='test -s conftest$ac_exeext'
25221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25222 (eval $ac_try) 2>&5
25223 ac_status=$?
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); }; }; then
25226 ac_cv_search_lt_dlopen="-l$ac_lib"
25227break
25228else
25229 echo "$as_me: failed program was:" >&5
25230sed 's/^/| /' conftest.$ac_ext >&5
25231
25232fi
25233rm -f conftest.err conftest.$ac_objext \
25234 conftest$ac_exeext conftest.$ac_ext
25235 done
25236fi
25237LIBS=$ac_func_search_save_LIBS
25238fi
25239echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25240echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25241if test "$ac_cv_search_lt_dlopen" != no; then
25242 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25243
25244cat >>confdefs.h <<\_ACEOF
25245#define HAVE_LT_DLOPEN 1
25246_ACEOF
25247
25248else
25249 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25250 not be available" >&5
25251echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25252 not be available" >&2;}
25253fi
25254
25255
John Criswell7a73b802003-06-30 21:59:07 +000025256echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25257echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25258if test "${ac_cv_search_dlopen+set}" = set; then
25259 echo $ECHO_N "(cached) $ECHO_C" >&6
25260else
25261 ac_func_search_save_LIBS=$LIBS
25262ac_cv_search_dlopen=no
25263cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025264/* confdefs.h. */
25265_ACEOF
25266cat confdefs.h >>conftest.$ac_ext
25267cat >>conftest.$ac_ext <<_ACEOF
25268/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025269
25270/* Override any gcc2 internal prototype to avoid an error. */
25271#ifdef __cplusplus
25272extern "C"
25273#endif
25274/* We use char because int might match the return type of a gcc2
25275 builtin and then its argument prototype would still apply. */
25276char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025277int
25278main ()
25279{
25280dlopen ();
25281 ;
25282 return 0;
25283}
25284_ACEOF
25285rm -f conftest.$ac_objext conftest$ac_exeext
25286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025287 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025288 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025289 grep -v '^ *+' conftest.er1 >conftest.err
25290 rm -f conftest.er1
25291 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025294 { ac_try='test -z "$ac_c_werror_flag"
25295 || test ! -s conftest.err'
25296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25297 (eval $ac_try) 2>&5
25298 ac_status=$?
25299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25300 (exit $ac_status); }; } &&
25301 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25303 (eval $ac_try) 2>&5
25304 ac_status=$?
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); }; }; then
25307 ac_cv_search_dlopen="none required"
25308else
25309 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025310sed 's/^/| /' conftest.$ac_ext >&5
25311
John Criswell7a73b802003-06-30 21:59:07 +000025312fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025313rm -f conftest.err conftest.$ac_objext \
25314 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025315if test "$ac_cv_search_dlopen" = no; then
25316 for ac_lib in dl; do
25317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25318 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025319/* confdefs.h. */
25320_ACEOF
25321cat confdefs.h >>conftest.$ac_ext
25322cat >>conftest.$ac_ext <<_ACEOF
25323/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025324
25325/* Override any gcc2 internal prototype to avoid an error. */
25326#ifdef __cplusplus
25327extern "C"
25328#endif
25329/* We use char because int might match the return type of a gcc2
25330 builtin and then its argument prototype would still apply. */
25331char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025332int
25333main ()
25334{
25335dlopen ();
25336 ;
25337 return 0;
25338}
25339_ACEOF
25340rm -f conftest.$ac_objext conftest$ac_exeext
25341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025342 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025344 grep -v '^ *+' conftest.er1 >conftest.err
25345 rm -f conftest.er1
25346 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025349 { ac_try='test -z "$ac_c_werror_flag"
25350 || test ! -s conftest.err'
25351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25353 ac_status=$?
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; } &&
25356 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358 (eval $ac_try) 2>&5
25359 ac_status=$?
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); }; }; then
25362 ac_cv_search_dlopen="-l$ac_lib"
25363break
25364else
25365 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025366sed 's/^/| /' conftest.$ac_ext >&5
25367
John Criswell7a73b802003-06-30 21:59:07 +000025368fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025369rm -f conftest.err conftest.$ac_objext \
25370 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025371 done
25372fi
25373LIBS=$ac_func_search_save_LIBS
25374fi
25375echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25376echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25377if test "$ac_cv_search_dlopen" != no; then
25378 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025379
25380cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025381#define HAVE_DLOPEN 1
25382_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025383
25384else
Brian Gaekec45be042003-10-07 06:01:34 +000025385 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25386echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025387fi
25388
25389
25390echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25391echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25392if test "${ac_cv_search_mallinfo+set}" = set; then
25393 echo $ECHO_N "(cached) $ECHO_C" >&6
25394else
25395 ac_func_search_save_LIBS=$LIBS
25396ac_cv_search_mallinfo=no
25397cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025398/* confdefs.h. */
25399_ACEOF
25400cat confdefs.h >>conftest.$ac_ext
25401cat >>conftest.$ac_ext <<_ACEOF
25402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025403
25404/* Override any gcc2 internal prototype to avoid an error. */
25405#ifdef __cplusplus
25406extern "C"
25407#endif
25408/* We use char because int might match the return type of a gcc2
25409 builtin and then its argument prototype would still apply. */
25410char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025411int
25412main ()
25413{
25414mallinfo ();
25415 ;
25416 return 0;
25417}
25418_ACEOF
25419rm -f conftest.$ac_objext conftest$ac_exeext
25420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025421 (eval $ac_link) 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_exeext'
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_cv_search_mallinfo="none required"
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 +000025446fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025447rm -f conftest.err conftest.$ac_objext \
25448 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025449if test "$ac_cv_search_mallinfo" = no; then
25450 for ac_lib in malloc; do
25451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25452 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025453/* confdefs.h. */
25454_ACEOF
25455cat confdefs.h >>conftest.$ac_ext
25456cat >>conftest.$ac_ext <<_ACEOF
25457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025458
25459/* Override any gcc2 internal prototype to avoid an error. */
25460#ifdef __cplusplus
25461extern "C"
25462#endif
25463/* We use char because int might match the return type of a gcc2
25464 builtin and then its argument prototype would still apply. */
25465char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025466int
25467main ()
25468{
25469mallinfo ();
25470 ;
25471 return 0;
25472}
25473_ACEOF
25474rm -f conftest.$ac_objext conftest$ac_exeext
25475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025476 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025477 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025478 grep -v '^ *+' conftest.er1 >conftest.err
25479 rm -f conftest.er1
25480 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025483 { ac_try='test -z "$ac_c_werror_flag"
25484 || test ! -s conftest.err'
25485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486 (eval $ac_try) 2>&5
25487 ac_status=$?
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; } &&
25490 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25493 ac_status=$?
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; }; then
25496 ac_cv_search_mallinfo="-l$ac_lib"
25497break
25498else
25499 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025500sed 's/^/| /' conftest.$ac_ext >&5
25501
John Criswell7a73b802003-06-30 21:59:07 +000025502fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025503rm -f conftest.err conftest.$ac_objext \
25504 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025505 done
25506fi
25507LIBS=$ac_func_search_save_LIBS
25508fi
25509echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25510echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25511if test "$ac_cv_search_mallinfo" != no; then
25512 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025513
25514cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025515#define HAVE_MALLINFO 1
25516_ACEOF
25517
25518fi
25519
25520
Reid Spencer0a262ba2005-08-24 10:07:20 +000025521if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000025522
25523echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25524echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25525if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25526 echo $ECHO_N "(cached) $ECHO_C" >&6
25527else
25528 ac_check_lib_save_LIBS=$LIBS
25529LIBS="-lpthread $LIBS"
25530cat >conftest.$ac_ext <<_ACEOF
25531/* confdefs.h. */
25532_ACEOF
25533cat confdefs.h >>conftest.$ac_ext
25534cat >>conftest.$ac_ext <<_ACEOF
25535/* end confdefs.h. */
25536
25537/* Override any gcc2 internal prototype to avoid an error. */
25538#ifdef __cplusplus
25539extern "C"
25540#endif
25541/* We use char because int might match the return type of a gcc2
25542 builtin and then its argument prototype would still apply. */
25543char pthread_mutex_init ();
25544int
25545main ()
25546{
25547pthread_mutex_init ();
25548 ;
25549 return 0;
25550}
25551_ACEOF
25552rm -f conftest.$ac_objext conftest$ac_exeext
25553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25554 (eval $ac_link) 2>conftest.er1
25555 ac_status=$?
25556 grep -v '^ *+' conftest.er1 >conftest.err
25557 rm -f conftest.er1
25558 cat conftest.err >&5
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); } &&
25561 { ac_try='test -z "$ac_c_werror_flag"
25562 || test ! -s conftest.err'
25563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25564 (eval $ac_try) 2>&5
25565 ac_status=$?
25566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567 (exit $ac_status); }; } &&
25568 { ac_try='test -s conftest$ac_exeext'
25569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25570 (eval $ac_try) 2>&5
25571 ac_status=$?
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); }; }; then
25574 ac_cv_lib_pthread_pthread_mutex_init=yes
25575else
25576 echo "$as_me: failed program was:" >&5
25577sed 's/^/| /' conftest.$ac_ext >&5
25578
25579ac_cv_lib_pthread_pthread_mutex_init=no
25580fi
25581rm -f conftest.err conftest.$ac_objext \
25582 conftest$ac_exeext conftest.$ac_ext
25583LIBS=$ac_check_lib_save_LIBS
25584fi
25585echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25586echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25587if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25588 cat >>confdefs.h <<_ACEOF
25589#define HAVE_LIBPTHREAD 1
25590_ACEOF
25591
25592 LIBS="-lpthread $LIBS"
25593
25594fi
25595
Reid Spencer0a262ba2005-08-24 10:07:20 +000025596 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025597echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25598if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25599 echo $ECHO_N "(cached) $ECHO_C" >&6
25600else
25601 ac_func_search_save_LIBS=$LIBS
25602ac_cv_search_pthread_mutex_lock=no
25603cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025604/* confdefs.h. */
25605_ACEOF
25606cat confdefs.h >>conftest.$ac_ext
25607cat >>conftest.$ac_ext <<_ACEOF
25608/* end confdefs.h. */
25609
25610/* Override any gcc2 internal prototype to avoid an error. */
25611#ifdef __cplusplus
25612extern "C"
25613#endif
25614/* We use char because int might match the return type of a gcc2
25615 builtin and then its argument prototype would still apply. */
25616char pthread_mutex_lock ();
25617int
25618main ()
25619{
25620pthread_mutex_lock ();
25621 ;
25622 return 0;
25623}
25624_ACEOF
25625rm -f conftest.$ac_objext conftest$ac_exeext
25626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025627 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025628 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025629 grep -v '^ *+' conftest.er1 >conftest.err
25630 rm -f conftest.er1
25631 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025634 { ac_try='test -z "$ac_c_werror_flag"
25635 || test ! -s conftest.err'
25636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25637 (eval $ac_try) 2>&5
25638 ac_status=$?
25639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25640 (exit $ac_status); }; } &&
25641 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25643 (eval $ac_try) 2>&5
25644 ac_status=$?
25645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); }; }; then
25647 ac_cv_search_pthread_mutex_lock="none required"
25648else
25649 echo "$as_me: failed program was:" >&5
25650sed 's/^/| /' conftest.$ac_ext >&5
25651
25652fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025653rm -f conftest.err conftest.$ac_objext \
25654 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025655if test "$ac_cv_search_pthread_mutex_lock" = no; then
25656 for ac_lib in pthread; do
25657 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25658 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025659/* confdefs.h. */
25660_ACEOF
25661cat confdefs.h >>conftest.$ac_ext
25662cat >>conftest.$ac_ext <<_ACEOF
25663/* end confdefs.h. */
25664
25665/* Override any gcc2 internal prototype to avoid an error. */
25666#ifdef __cplusplus
25667extern "C"
25668#endif
25669/* We use char because int might match the return type of a gcc2
25670 builtin and then its argument prototype would still apply. */
25671char pthread_mutex_lock ();
25672int
25673main ()
25674{
25675pthread_mutex_lock ();
25676 ;
25677 return 0;
25678}
25679_ACEOF
25680rm -f conftest.$ac_objext conftest$ac_exeext
25681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025682 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025683 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025684 grep -v '^ *+' conftest.er1 >conftest.err
25685 rm -f conftest.er1
25686 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025689 { ac_try='test -z "$ac_c_werror_flag"
25690 || test ! -s conftest.err'
25691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25692 (eval $ac_try) 2>&5
25693 ac_status=$?
25694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25695 (exit $ac_status); }; } &&
25696 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25698 (eval $ac_try) 2>&5
25699 ac_status=$?
25700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701 (exit $ac_status); }; }; then
25702 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25703break
25704else
25705 echo "$as_me: failed program was:" >&5
25706sed 's/^/| /' conftest.$ac_ext >&5
25707
25708fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025709rm -f conftest.err conftest.$ac_objext \
25710 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025711 done
25712fi
25713LIBS=$ac_func_search_save_LIBS
25714fi
25715echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25716echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25717if test "$ac_cv_search_pthread_mutex_lock" != no; then
25718 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025719
John Criswell40468462004-09-24 21:19:06 +000025720cat >>confdefs.h <<\_ACEOF
25721#define HAVE_PTHREAD_MUTEX_LOCK 1
25722_ACEOF
25723
25724fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025725
Reid Spencer0a262ba2005-08-24 10:07:20 +000025726fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000025727
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025728
Reid Spencer59473af2004-12-25 07:31:29 +000025729
25730
25731
25732
25733
25734ac_header_dirent=no
25735for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25736 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25737echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25738echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25739if eval "test \"\${$as_ac_Header+set}\" = set"; then
25740 echo $ECHO_N "(cached) $ECHO_C" >&6
25741else
25742 cat >conftest.$ac_ext <<_ACEOF
25743/* confdefs.h. */
25744_ACEOF
25745cat confdefs.h >>conftest.$ac_ext
25746cat >>conftest.$ac_ext <<_ACEOF
25747/* end confdefs.h. */
25748#include <sys/types.h>
25749#include <$ac_hdr>
25750
25751int
25752main ()
25753{
25754if ((DIR *) 0)
25755return 0;
25756 ;
25757 return 0;
25758}
25759_ACEOF
25760rm -f conftest.$ac_objext
25761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25762 (eval $ac_compile) 2>conftest.er1
25763 ac_status=$?
25764 grep -v '^ *+' conftest.er1 >conftest.err
25765 rm -f conftest.er1
25766 cat conftest.err >&5
25767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768 (exit $ac_status); } &&
25769 { ac_try='test -z "$ac_c_werror_flag"
25770 || test ! -s conftest.err'
25771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25772 (eval $ac_try) 2>&5
25773 ac_status=$?
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); }; } &&
25776 { ac_try='test -s conftest.$ac_objext'
25777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25778 (eval $ac_try) 2>&5
25779 ac_status=$?
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); }; }; then
25782 eval "$as_ac_Header=yes"
25783else
25784 echo "$as_me: failed program was:" >&5
25785sed 's/^/| /' conftest.$ac_ext >&5
25786
25787eval "$as_ac_Header=no"
25788fi
25789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25790fi
25791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25793if test `eval echo '${'$as_ac_Header'}'` = yes; then
25794 cat >>confdefs.h <<_ACEOF
25795#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25796_ACEOF
25797
25798ac_header_dirent=$ac_hdr; break
25799fi
25800
25801done
25802# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25803if test $ac_header_dirent = dirent.h; then
25804 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25805echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25806if test "${ac_cv_search_opendir+set}" = set; then
25807 echo $ECHO_N "(cached) $ECHO_C" >&6
25808else
25809 ac_func_search_save_LIBS=$LIBS
25810ac_cv_search_opendir=no
25811cat >conftest.$ac_ext <<_ACEOF
25812/* confdefs.h. */
25813_ACEOF
25814cat confdefs.h >>conftest.$ac_ext
25815cat >>conftest.$ac_ext <<_ACEOF
25816/* end confdefs.h. */
25817
25818/* Override any gcc2 internal prototype to avoid an error. */
25819#ifdef __cplusplus
25820extern "C"
25821#endif
25822/* We use char because int might match the return type of a gcc2
25823 builtin and then its argument prototype would still apply. */
25824char opendir ();
25825int
25826main ()
25827{
25828opendir ();
25829 ;
25830 return 0;
25831}
25832_ACEOF
25833rm -f conftest.$ac_objext conftest$ac_exeext
25834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25835 (eval $ac_link) 2>conftest.er1
25836 ac_status=$?
25837 grep -v '^ *+' conftest.er1 >conftest.err
25838 rm -f conftest.er1
25839 cat conftest.err >&5
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); } &&
25842 { ac_try='test -z "$ac_c_werror_flag"
25843 || test ! -s conftest.err'
25844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25845 (eval $ac_try) 2>&5
25846 ac_status=$?
25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25848 (exit $ac_status); }; } &&
25849 { ac_try='test -s conftest$ac_exeext'
25850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25851 (eval $ac_try) 2>&5
25852 ac_status=$?
25853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); }; }; then
25855 ac_cv_search_opendir="none required"
25856else
25857 echo "$as_me: failed program was:" >&5
25858sed 's/^/| /' conftest.$ac_ext >&5
25859
25860fi
25861rm -f conftest.err conftest.$ac_objext \
25862 conftest$ac_exeext conftest.$ac_ext
25863if test "$ac_cv_search_opendir" = no; then
25864 for ac_lib in dir; do
25865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25866 cat >conftest.$ac_ext <<_ACEOF
25867/* confdefs.h. */
25868_ACEOF
25869cat confdefs.h >>conftest.$ac_ext
25870cat >>conftest.$ac_ext <<_ACEOF
25871/* end confdefs.h. */
25872
25873/* Override any gcc2 internal prototype to avoid an error. */
25874#ifdef __cplusplus
25875extern "C"
25876#endif
25877/* We use char because int might match the return type of a gcc2
25878 builtin and then its argument prototype would still apply. */
25879char opendir ();
25880int
25881main ()
25882{
25883opendir ();
25884 ;
25885 return 0;
25886}
25887_ACEOF
25888rm -f conftest.$ac_objext conftest$ac_exeext
25889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25890 (eval $ac_link) 2>conftest.er1
25891 ac_status=$?
25892 grep -v '^ *+' conftest.er1 >conftest.err
25893 rm -f conftest.er1
25894 cat conftest.err >&5
25895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25896 (exit $ac_status); } &&
25897 { ac_try='test -z "$ac_c_werror_flag"
25898 || test ! -s conftest.err'
25899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25900 (eval $ac_try) 2>&5
25901 ac_status=$?
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); }; } &&
25904 { ac_try='test -s conftest$ac_exeext'
25905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25906 (eval $ac_try) 2>&5
25907 ac_status=$?
25908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909 (exit $ac_status); }; }; then
25910 ac_cv_search_opendir="-l$ac_lib"
25911break
25912else
25913 echo "$as_me: failed program was:" >&5
25914sed 's/^/| /' conftest.$ac_ext >&5
25915
25916fi
25917rm -f conftest.err conftest.$ac_objext \
25918 conftest$ac_exeext conftest.$ac_ext
25919 done
25920fi
25921LIBS=$ac_func_search_save_LIBS
25922fi
25923echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25924echo "${ECHO_T}$ac_cv_search_opendir" >&6
25925if test "$ac_cv_search_opendir" != no; then
25926 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25927
25928fi
25929
25930else
25931 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25932echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25933if test "${ac_cv_search_opendir+set}" = set; then
25934 echo $ECHO_N "(cached) $ECHO_C" >&6
25935else
25936 ac_func_search_save_LIBS=$LIBS
25937ac_cv_search_opendir=no
25938cat >conftest.$ac_ext <<_ACEOF
25939/* confdefs.h. */
25940_ACEOF
25941cat confdefs.h >>conftest.$ac_ext
25942cat >>conftest.$ac_ext <<_ACEOF
25943/* end confdefs.h. */
25944
25945/* Override any gcc2 internal prototype to avoid an error. */
25946#ifdef __cplusplus
25947extern "C"
25948#endif
25949/* We use char because int might match the return type of a gcc2
25950 builtin and then its argument prototype would still apply. */
25951char opendir ();
25952int
25953main ()
25954{
25955opendir ();
25956 ;
25957 return 0;
25958}
25959_ACEOF
25960rm -f conftest.$ac_objext conftest$ac_exeext
25961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25962 (eval $ac_link) 2>conftest.er1
25963 ac_status=$?
25964 grep -v '^ *+' conftest.er1 >conftest.err
25965 rm -f conftest.er1
25966 cat conftest.err >&5
25967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968 (exit $ac_status); } &&
25969 { ac_try='test -z "$ac_c_werror_flag"
25970 || test ! -s conftest.err'
25971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972 (eval $ac_try) 2>&5
25973 ac_status=$?
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); }; } &&
25976 { ac_try='test -s conftest$ac_exeext'
25977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978 (eval $ac_try) 2>&5
25979 ac_status=$?
25980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981 (exit $ac_status); }; }; then
25982 ac_cv_search_opendir="none required"
25983else
25984 echo "$as_me: failed program was:" >&5
25985sed 's/^/| /' conftest.$ac_ext >&5
25986
25987fi
25988rm -f conftest.err conftest.$ac_objext \
25989 conftest$ac_exeext conftest.$ac_ext
25990if test "$ac_cv_search_opendir" = no; then
25991 for ac_lib in x; do
25992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25993 cat >conftest.$ac_ext <<_ACEOF
25994/* confdefs.h. */
25995_ACEOF
25996cat confdefs.h >>conftest.$ac_ext
25997cat >>conftest.$ac_ext <<_ACEOF
25998/* end confdefs.h. */
25999
26000/* Override any gcc2 internal prototype to avoid an error. */
26001#ifdef __cplusplus
26002extern "C"
26003#endif
26004/* We use char because int might match the return type of a gcc2
26005 builtin and then its argument prototype would still apply. */
26006char opendir ();
26007int
26008main ()
26009{
26010opendir ();
26011 ;
26012 return 0;
26013}
26014_ACEOF
26015rm -f conftest.$ac_objext conftest$ac_exeext
26016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26017 (eval $ac_link) 2>conftest.er1
26018 ac_status=$?
26019 grep -v '^ *+' conftest.er1 >conftest.err
26020 rm -f conftest.er1
26021 cat conftest.err >&5
26022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023 (exit $ac_status); } &&
26024 { ac_try='test -z "$ac_c_werror_flag"
26025 || test ! -s conftest.err'
26026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26027 (eval $ac_try) 2>&5
26028 ac_status=$?
26029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030 (exit $ac_status); }; } &&
26031 { ac_try='test -s conftest$ac_exeext'
26032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26033 (eval $ac_try) 2>&5
26034 ac_status=$?
26035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); }; }; then
26037 ac_cv_search_opendir="-l$ac_lib"
26038break
26039else
26040 echo "$as_me: failed program was:" >&5
26041sed 's/^/| /' conftest.$ac_ext >&5
26042
26043fi
26044rm -f conftest.err conftest.$ac_objext \
26045 conftest$ac_exeext conftest.$ac_ext
26046 done
26047fi
26048LIBS=$ac_func_search_save_LIBS
26049fi
26050echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
26051echo "${ECHO_T}$ac_cv_search_opendir" >&6
26052if test "$ac_cv_search_opendir" != no; then
26053 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
26054
26055fi
26056
26057fi
26058
26059echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
26060echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
26061if test "${ac_cv_header_mmap_anon+set}" = set; then
26062 echo $ECHO_N "(cached) $ECHO_C" >&6
26063else
26064 ac_ext=c
26065ac_cpp='$CPP $CPPFLAGS'
26066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26068ac_compiler_gnu=$ac_cv_c_compiler_gnu
26069
26070 cat >conftest.$ac_ext <<_ACEOF
26071/* confdefs.h. */
26072_ACEOF
26073cat confdefs.h >>conftest.$ac_ext
26074cat >>conftest.$ac_ext <<_ACEOF
26075/* end confdefs.h. */
26076#include <sys/mman.h>
26077#include <unistd.h>
26078#include <fcntl.h>
26079int
26080main ()
26081{
26082mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26083 ;
26084 return 0;
26085}
26086_ACEOF
26087rm -f conftest.$ac_objext
26088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26089 (eval $ac_compile) 2>conftest.er1
26090 ac_status=$?
26091 grep -v '^ *+' conftest.er1 >conftest.err
26092 rm -f conftest.er1
26093 cat conftest.err >&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } &&
26096 { ac_try='test -z "$ac_c_werror_flag"
26097 || test ! -s conftest.err'
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5
26100 ac_status=$?
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; } &&
26103 { ac_try='test -s conftest.$ac_objext'
26104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105 (eval $ac_try) 2>&5
26106 ac_status=$?
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); }; }; then
26109 ac_cv_header_mmap_anon=yes
26110else
26111 echo "$as_me: failed program was:" >&5
26112sed 's/^/| /' conftest.$ac_ext >&5
26113
26114ac_cv_header_mmap_anon=no
26115fi
26116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26117 ac_ext=c
26118ac_cpp='$CPP $CPPFLAGS'
26119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26121ac_compiler_gnu=$ac_cv_c_compiler_gnu
26122
26123
26124fi
26125echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26126echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26127if test "$ac_cv_header_mmap_anon" = yes; then
26128
26129cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026130#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026131_ACEOF
26132
26133fi
26134
26135echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26136echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26137if test "${ac_cv_header_stat_broken+set}" = set; then
26138 echo $ECHO_N "(cached) $ECHO_C" >&6
26139else
26140 cat >conftest.$ac_ext <<_ACEOF
26141/* confdefs.h. */
26142_ACEOF
26143cat confdefs.h >>conftest.$ac_ext
26144cat >>conftest.$ac_ext <<_ACEOF
26145/* end confdefs.h. */
26146#include <sys/types.h>
26147#include <sys/stat.h>
26148
26149#if defined(S_ISBLK) && defined(S_IFDIR)
26150# if S_ISBLK (S_IFDIR)
26151You lose.
26152# endif
26153#endif
26154
26155#if defined(S_ISBLK) && defined(S_IFCHR)
26156# if S_ISBLK (S_IFCHR)
26157You lose.
26158# endif
26159#endif
26160
26161#if defined(S_ISLNK) && defined(S_IFREG)
26162# if S_ISLNK (S_IFREG)
26163You lose.
26164# endif
26165#endif
26166
26167#if defined(S_ISSOCK) && defined(S_IFREG)
26168# if S_ISSOCK (S_IFREG)
26169You lose.
26170# endif
26171#endif
26172
26173_ACEOF
26174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26175 $EGREP "You lose" >/dev/null 2>&1; then
26176 ac_cv_header_stat_broken=yes
26177else
26178 ac_cv_header_stat_broken=no
26179fi
26180rm -f conftest*
26181
26182fi
26183echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26184echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26185if test $ac_cv_header_stat_broken = yes; then
26186
26187cat >>confdefs.h <<\_ACEOF
26188#define STAT_MACROS_BROKEN 1
26189_ACEOF
26190
26191fi
26192
John Criswell7a73b802003-06-30 21:59:07 +000026193echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26194echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26195if test "${ac_cv_header_stdc+set}" = set; then
26196 echo $ECHO_N "(cached) $ECHO_C" >&6
26197else
26198 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026199/* confdefs.h. */
26200_ACEOF
26201cat confdefs.h >>conftest.$ac_ext
26202cat >>conftest.$ac_ext <<_ACEOF
26203/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026204#include <stdlib.h>
26205#include <stdarg.h>
26206#include <string.h>
26207#include <float.h>
26208
John Criswell0c38eaf2003-09-10 15:17:25 +000026209int
26210main ()
26211{
26212
26213 ;
26214 return 0;
26215}
John Criswell7a73b802003-06-30 21:59:07 +000026216_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026217rm -f conftest.$ac_objext
26218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026219 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026220 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026221 grep -v '^ *+' conftest.er1 >conftest.err
26222 rm -f conftest.er1
26223 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026225 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026226 { ac_try='test -z "$ac_c_werror_flag"
26227 || test ! -s conftest.err'
26228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26229 (eval $ac_try) 2>&5
26230 ac_status=$?
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); }; } &&
26233 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26235 (eval $ac_try) 2>&5
26236 ac_status=$?
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026239 ac_cv_header_stdc=yes
26240else
26241 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026242sed 's/^/| /' conftest.$ac_ext >&5
26243
26244ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026245fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026247
26248if test $ac_cv_header_stdc = yes; then
26249 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26250 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026251/* confdefs.h. */
26252_ACEOF
26253cat confdefs.h >>conftest.$ac_ext
26254cat >>conftest.$ac_ext <<_ACEOF
26255/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026256#include <string.h>
26257
26258_ACEOF
26259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026260 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026261 :
26262else
26263 ac_cv_header_stdc=no
26264fi
26265rm -f conftest*
26266
26267fi
26268
26269if test $ac_cv_header_stdc = yes; then
26270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26271 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026272/* confdefs.h. */
26273_ACEOF
26274cat confdefs.h >>conftest.$ac_ext
26275cat >>conftest.$ac_ext <<_ACEOF
26276/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026277#include <stdlib.h>
26278
26279_ACEOF
26280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026281 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026282 :
26283else
26284 ac_cv_header_stdc=no
26285fi
26286rm -f conftest*
26287
26288fi
26289
26290if test $ac_cv_header_stdc = yes; then
26291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26292 if test "$cross_compiling" = yes; then
26293 :
26294else
26295 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026296/* confdefs.h. */
26297_ACEOF
26298cat confdefs.h >>conftest.$ac_ext
26299cat >>conftest.$ac_ext <<_ACEOF
26300/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026301#include <ctype.h>
26302#if ((' ' & 0x0FF) == 0x020)
26303# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26304# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26305#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026306# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026307 (('a' <= (c) && (c) <= 'i') \
26308 || ('j' <= (c) && (c) <= 'r') \
26309 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026310# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26311#endif
26312
26313#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26314int
26315main ()
26316{
26317 int i;
26318 for (i = 0; i < 256; i++)
26319 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026320 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026321 exit(2);
26322 exit (0);
26323}
26324_ACEOF
26325rm -f conftest$ac_exeext
26326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26327 (eval $ac_link) 2>&5
26328 ac_status=$?
26329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26332 (eval $ac_try) 2>&5
26333 ac_status=$?
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); }; }; then
26336 :
26337else
26338 echo "$as_me: program exited with status $ac_status" >&5
26339echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026340sed 's/^/| /' conftest.$ac_ext >&5
26341
John Criswell7a73b802003-06-30 21:59:07 +000026342( exit $ac_status )
26343ac_cv_header_stdc=no
26344fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026345rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026346fi
26347fi
26348fi
26349echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26350echo "${ECHO_T}$ac_cv_header_stdc" >&6
26351if test $ac_cv_header_stdc = yes; then
26352
26353cat >>confdefs.h <<\_ACEOF
26354#define STDC_HEADERS 1
26355_ACEOF
26356
26357fi
26358
26359echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26360echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26361if test "${ac_cv_header_sys_wait_h+set}" = set; then
26362 echo $ECHO_N "(cached) $ECHO_C" >&6
26363else
26364 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026365/* confdefs.h. */
26366_ACEOF
26367cat confdefs.h >>conftest.$ac_ext
26368cat >>conftest.$ac_ext <<_ACEOF
26369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026370#include <sys/types.h>
26371#include <sys/wait.h>
26372#ifndef WEXITSTATUS
26373# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26374#endif
26375#ifndef WIFEXITED
26376# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26377#endif
26378
John Criswell7a73b802003-06-30 21:59:07 +000026379int
26380main ()
26381{
26382 int s;
26383 wait (&s);
26384 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26385 ;
26386 return 0;
26387}
26388_ACEOF
26389rm -f conftest.$ac_objext
26390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026391 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026392 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026393 grep -v '^ *+' conftest.er1 >conftest.err
26394 rm -f conftest.er1
26395 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026398 { ac_try='test -z "$ac_c_werror_flag"
26399 || test ! -s conftest.err'
26400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26401 (eval $ac_try) 2>&5
26402 ac_status=$?
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); }; } &&
26405 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26407 (eval $ac_try) 2>&5
26408 ac_status=$?
26409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410 (exit $ac_status); }; }; then
26411 ac_cv_header_sys_wait_h=yes
26412else
26413 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026414sed 's/^/| /' conftest.$ac_ext >&5
26415
John Criswell7a73b802003-06-30 21:59:07 +000026416ac_cv_header_sys_wait_h=no
26417fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026419fi
26420echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26421echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26422if test $ac_cv_header_sys_wait_h = yes; then
26423
26424cat >>confdefs.h <<\_ACEOF
26425#define HAVE_SYS_WAIT_H 1
26426_ACEOF
26427
26428fi
26429
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026430echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26431echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26432if test "${ac_cv_header_time+set}" = set; then
26433 echo $ECHO_N "(cached) $ECHO_C" >&6
26434else
26435 cat >conftest.$ac_ext <<_ACEOF
26436/* confdefs.h. */
26437_ACEOF
26438cat confdefs.h >>conftest.$ac_ext
26439cat >>conftest.$ac_ext <<_ACEOF
26440/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026441#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026442#include <sys/time.h>
26443#include <time.h>
26444
26445int
26446main ()
26447{
26448if ((struct tm *) 0)
26449return 0;
26450 ;
26451 return 0;
26452}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026453_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026454rm -f conftest.$ac_objext
26455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26456 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026457 ac_status=$?
26458 grep -v '^ *+' conftest.er1 >conftest.err
26459 rm -f conftest.er1
26460 cat conftest.err >&5
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026462 (exit $ac_status); } &&
26463 { ac_try='test -z "$ac_c_werror_flag"
26464 || test ! -s conftest.err'
26465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26466 (eval $ac_try) 2>&5
26467 ac_status=$?
26468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469 (exit $ac_status); }; } &&
26470 { ac_try='test -s conftest.$ac_objext'
26471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26472 (eval $ac_try) 2>&5
26473 ac_status=$?
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); }; }; then
26476 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026477else
26478 echo "$as_me: failed program was:" >&5
26479sed 's/^/| /' conftest.$ac_ext >&5
26480
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026481ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026482fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26484fi
26485echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26486echo "${ECHO_T}$ac_cv_header_time" >&6
26487if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026488
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026489cat >>confdefs.h <<\_ACEOF
26490#define TIME_WITH_SYS_TIME 1
26491_ACEOF
26492
26493fi
26494
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026495
Reid Spencer59473af2004-12-25 07:31:29 +000026496
26497
26498
26499
26500
26501
26502for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26503do
26504as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26505if eval "test \"\${$as_ac_Header+set}\" = set"; then
26506 echo "$as_me:$LINENO: checking for $ac_header" >&5
26507echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26508if eval "test \"\${$as_ac_Header+set}\" = set"; then
26509 echo $ECHO_N "(cached) $ECHO_C" >&6
26510fi
26511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26512echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26513else
26514 # Is the header compilable?
26515echo "$as_me:$LINENO: checking $ac_header usability" >&5
26516echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26517cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026518/* confdefs.h. */
26519_ACEOF
26520cat confdefs.h >>conftest.$ac_ext
26521cat >>conftest.$ac_ext <<_ACEOF
26522/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026523$ac_includes_default
26524#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026525_ACEOF
26526rm -f conftest.$ac_objext
26527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26528 (eval $ac_compile) 2>conftest.er1
26529 ac_status=$?
26530 grep -v '^ *+' conftest.er1 >conftest.err
26531 rm -f conftest.er1
26532 cat conftest.err >&5
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); } &&
26535 { ac_try='test -z "$ac_c_werror_flag"
26536 || test ! -s conftest.err'
26537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26538 (eval $ac_try) 2>&5
26539 ac_status=$?
26540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); }; } &&
26542 { ac_try='test -s conftest.$ac_objext'
26543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26544 (eval $ac_try) 2>&5
26545 ac_status=$?
26546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026548 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026549else
26550 echo "$as_me: failed program was:" >&5
26551sed 's/^/| /' conftest.$ac_ext >&5
26552
Reid Spencer59473af2004-12-25 07:31:29 +000026553ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026554fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026556echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26557echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026558
Reid Spencer59473af2004-12-25 07:31:29 +000026559# Is the header present?
26560echo "$as_me:$LINENO: checking $ac_header presence" >&5
26561echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26562cat >conftest.$ac_ext <<_ACEOF
26563/* confdefs.h. */
26564_ACEOF
26565cat confdefs.h >>conftest.$ac_ext
26566cat >>conftest.$ac_ext <<_ACEOF
26567/* end confdefs.h. */
26568#include <$ac_header>
26569_ACEOF
26570if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26571 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26572 ac_status=$?
26573 grep -v '^ *+' conftest.er1 >conftest.err
26574 rm -f conftest.er1
26575 cat conftest.err >&5
26576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26577 (exit $ac_status); } >/dev/null; then
26578 if test -s conftest.err; then
26579 ac_cpp_err=$ac_c_preproc_warn_flag
26580 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26581 else
26582 ac_cpp_err=
26583 fi
26584else
26585 ac_cpp_err=yes
26586fi
26587if test -z "$ac_cpp_err"; then
26588 ac_header_preproc=yes
26589else
26590 echo "$as_me: failed program was:" >&5
26591sed 's/^/| /' conftest.$ac_ext >&5
26592
26593 ac_header_preproc=no
26594fi
26595rm -f conftest.err conftest.$ac_ext
26596echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26597echo "${ECHO_T}$ac_header_preproc" >&6
26598
26599# So? What about this header?
26600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26601 yes:no: )
26602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26606 ac_header_preproc=yes
26607 ;;
26608 no:yes:* )
26609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26612echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26616echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26621 (
26622 cat <<\_ASBOX
26623## ----------------------------------- ##
26624## Report this to llvmbugs@cs.uiuc.edu ##
26625## ----------------------------------- ##
26626_ASBOX
26627 ) |
26628 sed "s/^/$as_me: WARNING: /" >&2
26629 ;;
26630esac
26631echo "$as_me:$LINENO: checking for $ac_header" >&5
26632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26633if eval "test \"\${$as_ac_Header+set}\" = set"; then
26634 echo $ECHO_N "(cached) $ECHO_C" >&6
26635else
26636 eval "$as_ac_Header=\$ac_header_preproc"
26637fi
26638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026640
26641fi
Reid Spencer59473af2004-12-25 07:31:29 +000026642if test `eval echo '${'$as_ac_Header'}'` = yes; then
26643 cat >>confdefs.h <<_ACEOF
26644#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026645_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026646
26647fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026648
Reid Spencer59473af2004-12-25 07:31:29 +000026649done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026650
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026651
26652
Reid Spencer59473af2004-12-25 07:31:29 +000026653
26654
26655
26656
Reid Spencer0a262ba2005-08-24 10:07:20 +000026657for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
Reid Spencer59473af2004-12-25 07:31:29 +000026658do
26659as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26660if eval "test \"\${$as_ac_Header+set}\" = set"; then
26661 echo "$as_me:$LINENO: checking for $ac_header" >&5
26662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26663if eval "test \"\${$as_ac_Header+set}\" = set"; then
26664 echo $ECHO_N "(cached) $ECHO_C" >&6
26665fi
26666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26668else
26669 # Is the header compilable?
26670echo "$as_me:$LINENO: checking $ac_header usability" >&5
26671echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26672cat >conftest.$ac_ext <<_ACEOF
26673/* confdefs.h. */
26674_ACEOF
26675cat confdefs.h >>conftest.$ac_ext
26676cat >>conftest.$ac_ext <<_ACEOF
26677/* end confdefs.h. */
26678$ac_includes_default
26679#include <$ac_header>
26680_ACEOF
26681rm -f conftest.$ac_objext
26682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26683 (eval $ac_compile) 2>conftest.er1
26684 ac_status=$?
26685 grep -v '^ *+' conftest.er1 >conftest.err
26686 rm -f conftest.er1
26687 cat conftest.err >&5
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); } &&
26690 { ac_try='test -z "$ac_c_werror_flag"
26691 || test ! -s conftest.err'
26692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26693 (eval $ac_try) 2>&5
26694 ac_status=$?
26695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26696 (exit $ac_status); }; } &&
26697 { ac_try='test -s conftest.$ac_objext'
26698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26699 (eval $ac_try) 2>&5
26700 ac_status=$?
26701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26702 (exit $ac_status); }; }; then
26703 ac_header_compiler=yes
26704else
26705 echo "$as_me: failed program was:" >&5
26706sed 's/^/| /' conftest.$ac_ext >&5
26707
26708ac_header_compiler=no
26709fi
26710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26711echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26712echo "${ECHO_T}$ac_header_compiler" >&6
26713
26714# Is the header present?
26715echo "$as_me:$LINENO: checking $ac_header presence" >&5
26716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26717cat >conftest.$ac_ext <<_ACEOF
26718/* confdefs.h. */
26719_ACEOF
26720cat confdefs.h >>conftest.$ac_ext
26721cat >>conftest.$ac_ext <<_ACEOF
26722/* end confdefs.h. */
26723#include <$ac_header>
26724_ACEOF
26725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26727 ac_status=$?
26728 grep -v '^ *+' conftest.er1 >conftest.err
26729 rm -f conftest.er1
26730 cat conftest.err >&5
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); } >/dev/null; then
26733 if test -s conftest.err; then
26734 ac_cpp_err=$ac_c_preproc_warn_flag
26735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26736 else
26737 ac_cpp_err=
26738 fi
26739else
26740 ac_cpp_err=yes
26741fi
26742if test -z "$ac_cpp_err"; then
26743 ac_header_preproc=yes
26744else
26745 echo "$as_me: failed program was:" >&5
26746sed 's/^/| /' conftest.$ac_ext >&5
26747
26748 ac_header_preproc=no
26749fi
26750rm -f conftest.err conftest.$ac_ext
26751echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26752echo "${ECHO_T}$ac_header_preproc" >&6
26753
26754# So? What about this header?
26755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26756 yes:no: )
26757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26760echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26761 ac_header_preproc=yes
26762 ;;
26763 no:yes:* )
26764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26769echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26771echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26773echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26775echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26776 (
26777 cat <<\_ASBOX
26778## ----------------------------------- ##
26779## Report this to llvmbugs@cs.uiuc.edu ##
26780## ----------------------------------- ##
26781_ASBOX
26782 ) |
26783 sed "s/^/$as_me: WARNING: /" >&2
26784 ;;
26785esac
26786echo "$as_me:$LINENO: checking for $ac_header" >&5
26787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26788if eval "test \"\${$as_ac_Header+set}\" = set"; then
26789 echo $ECHO_N "(cached) $ECHO_C" >&6
26790else
26791 eval "$as_ac_Header=\$ac_header_preproc"
26792fi
26793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26795
26796fi
26797if test `eval echo '${'$as_ac_Header'}'` = yes; then
26798 cat >>confdefs.h <<_ACEOF
26799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26800_ACEOF
26801
26802fi
26803
26804done
26805
26806
26807
26808
26809
26810
26811for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/types.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026812do
26813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26814if eval "test \"\${$as_ac_Header+set}\" = set"; then
26815 echo "$as_me:$LINENO: checking for $ac_header" >&5
26816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26817if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026818 echo $ECHO_N "(cached) $ECHO_C" >&6
26819fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026822else
26823 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026824echo "$as_me:$LINENO: checking $ac_header usability" >&5
26825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026826cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026827/* confdefs.h. */
26828_ACEOF
26829cat confdefs.h >>conftest.$ac_ext
26830cat >>conftest.$ac_ext <<_ACEOF
26831/* end confdefs.h. */
26832$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026833#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026834_ACEOF
26835rm -f conftest.$ac_objext
26836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026837 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026838 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026839 grep -v '^ *+' conftest.er1 >conftest.err
26840 rm -f conftest.er1
26841 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026844 { ac_try='test -z "$ac_c_werror_flag"
26845 || test ! -s conftest.err'
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26848 ac_status=$?
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; } &&
26851 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26854 ac_status=$?
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26857 ac_header_compiler=yes
26858else
26859 echo "$as_me: failed program was:" >&5
26860sed 's/^/| /' conftest.$ac_ext >&5
26861
26862ac_header_compiler=no
26863fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026865echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26866echo "${ECHO_T}$ac_header_compiler" >&6
26867
26868# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026869echo "$as_me:$LINENO: checking $ac_header presence" >&5
26870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026871cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026872/* confdefs.h. */
26873_ACEOF
26874cat confdefs.h >>conftest.$ac_ext
26875cat >>conftest.$ac_ext <<_ACEOF
26876/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026877#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026878_ACEOF
26879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26881 ac_status=$?
26882 grep -v '^ *+' conftest.er1 >conftest.err
26883 rm -f conftest.er1
26884 cat conftest.err >&5
26885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886 (exit $ac_status); } >/dev/null; then
26887 if test -s conftest.err; then
26888 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026890 else
26891 ac_cpp_err=
26892 fi
26893else
26894 ac_cpp_err=yes
26895fi
26896if test -z "$ac_cpp_err"; then
26897 ac_header_preproc=yes
26898else
26899 echo "$as_me: failed program was:" >&5
26900sed 's/^/| /' conftest.$ac_ext >&5
26901
26902 ac_header_preproc=no
26903fi
26904rm -f conftest.err conftest.$ac_ext
26905echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26906echo "${ECHO_T}$ac_header_preproc" >&6
26907
26908# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26910 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026915 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026916 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026917 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26925echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026930 (
26931 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026932## ----------------------------------- ##
26933## Report this to llvmbugs@cs.uiuc.edu ##
26934## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026935_ASBOX
26936 ) |
26937 sed "s/^/$as_me: WARNING: /" >&2
26938 ;;
26939esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026940echo "$as_me:$LINENO: checking for $ac_header" >&5
26941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26942if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026943 echo $ECHO_N "(cached) $ECHO_C" >&6
26944else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026945 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026946fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026949
26950fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026951if test `eval echo '${'$as_ac_Header'}'` = yes; then
26952 cat >>confdefs.h <<_ACEOF
26953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026954_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026955
26956fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026957
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026958done
26959
John Criswell7ed43ad2004-07-19 16:12:29 +000026960
Chris Lattner0b142592005-11-14 06:57:34 +000026961for ac_header in malloc/malloc.h
26962do
26963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26964if eval "test \"\${$as_ac_Header+set}\" = set"; then
26965 echo "$as_me:$LINENO: checking for $ac_header" >&5
26966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26967if eval "test \"\${$as_ac_Header+set}\" = set"; then
26968 echo $ECHO_N "(cached) $ECHO_C" >&6
26969fi
26970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26972else
26973 # Is the header compilable?
26974echo "$as_me:$LINENO: checking $ac_header usability" >&5
26975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26976cat >conftest.$ac_ext <<_ACEOF
26977/* confdefs.h. */
26978_ACEOF
26979cat confdefs.h >>conftest.$ac_ext
26980cat >>conftest.$ac_ext <<_ACEOF
26981/* end confdefs.h. */
26982$ac_includes_default
26983#include <$ac_header>
26984_ACEOF
26985rm -f conftest.$ac_objext
26986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26987 (eval $ac_compile) 2>conftest.er1
26988 ac_status=$?
26989 grep -v '^ *+' conftest.er1 >conftest.err
26990 rm -f conftest.er1
26991 cat conftest.err >&5
26992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); } &&
26994 { ac_try='test -z "$ac_c_werror_flag"
26995 || test ! -s conftest.err'
26996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26997 (eval $ac_try) 2>&5
26998 ac_status=$?
26999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000 (exit $ac_status); }; } &&
27001 { ac_try='test -s conftest.$ac_objext'
27002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27003 (eval $ac_try) 2>&5
27004 ac_status=$?
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); }; }; then
27007 ac_header_compiler=yes
27008else
27009 echo "$as_me: failed program was:" >&5
27010sed 's/^/| /' conftest.$ac_ext >&5
27011
27012ac_header_compiler=no
27013fi
27014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27016echo "${ECHO_T}$ac_header_compiler" >&6
27017
27018# Is the header present?
27019echo "$as_me:$LINENO: checking $ac_header presence" >&5
27020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27021cat >conftest.$ac_ext <<_ACEOF
27022/* confdefs.h. */
27023_ACEOF
27024cat confdefs.h >>conftest.$ac_ext
27025cat >>conftest.$ac_ext <<_ACEOF
27026/* end confdefs.h. */
27027#include <$ac_header>
27028_ACEOF
27029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27031 ac_status=$?
27032 grep -v '^ *+' conftest.er1 >conftest.err
27033 rm -f conftest.er1
27034 cat conftest.err >&5
27035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27036 (exit $ac_status); } >/dev/null; then
27037 if test -s conftest.err; then
27038 ac_cpp_err=$ac_c_preproc_warn_flag
27039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27040 else
27041 ac_cpp_err=
27042 fi
27043else
27044 ac_cpp_err=yes
27045fi
27046if test -z "$ac_cpp_err"; then
27047 ac_header_preproc=yes
27048else
27049 echo "$as_me: failed program was:" >&5
27050sed 's/^/| /' conftest.$ac_ext >&5
27051
27052 ac_header_preproc=no
27053fi
27054rm -f conftest.err conftest.$ac_ext
27055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27056echo "${ECHO_T}$ac_header_preproc" >&6
27057
27058# So? What about this header?
27059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27060 yes:no: )
27061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27065 ac_header_preproc=yes
27066 ;;
27067 no:yes:* )
27068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27080 (
27081 cat <<\_ASBOX
27082## ----------------------------------- ##
27083## Report this to llvmbugs@cs.uiuc.edu ##
27084## ----------------------------------- ##
27085_ASBOX
27086 ) |
27087 sed "s/^/$as_me: WARNING: /" >&2
27088 ;;
27089esac
27090echo "$as_me:$LINENO: checking for $ac_header" >&5
27091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27092if eval "test \"\${$as_ac_Header+set}\" = set"; then
27093 echo $ECHO_N "(cached) $ECHO_C" >&6
27094else
27095 eval "$as_ac_Header=\$ac_header_preproc"
27096fi
27097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27099
27100fi
27101if test `eval echo '${'$as_ac_Header'}'` = yes; then
27102 cat >>confdefs.h <<_ACEOF
27103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27104_ACEOF
27105
27106fi
27107
27108done
27109
Reid Spencer0a262ba2005-08-24 10:07:20 +000027110if test "$ENABLE_THREADS" -eq 1 ; then
27111
27112for ac_header in pthread.h
27113do
27114as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27115if eval "test \"\${$as_ac_Header+set}\" = set"; then
27116 echo "$as_me:$LINENO: checking for $ac_header" >&5
27117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27118if eval "test \"\${$as_ac_Header+set}\" = set"; then
27119 echo $ECHO_N "(cached) $ECHO_C" >&6
27120fi
27121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27122echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27123else
27124 # Is the header compilable?
27125echo "$as_me:$LINENO: checking $ac_header usability" >&5
27126echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27127cat >conftest.$ac_ext <<_ACEOF
27128/* confdefs.h. */
27129_ACEOF
27130cat confdefs.h >>conftest.$ac_ext
27131cat >>conftest.$ac_ext <<_ACEOF
27132/* end confdefs.h. */
27133$ac_includes_default
27134#include <$ac_header>
27135_ACEOF
27136rm -f conftest.$ac_objext
27137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27138 (eval $ac_compile) 2>conftest.er1
27139 ac_status=$?
27140 grep -v '^ *+' conftest.er1 >conftest.err
27141 rm -f conftest.er1
27142 cat conftest.err >&5
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); } &&
27145 { ac_try='test -z "$ac_c_werror_flag"
27146 || test ! -s conftest.err'
27147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27149 ac_status=$?
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); }; } &&
27152 { ac_try='test -s conftest.$ac_objext'
27153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27154 (eval $ac_try) 2>&5
27155 ac_status=$?
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); }; }; then
27158 ac_header_compiler=yes
27159else
27160 echo "$as_me: failed program was:" >&5
27161sed 's/^/| /' conftest.$ac_ext >&5
27162
27163ac_header_compiler=no
27164fi
27165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27166echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27167echo "${ECHO_T}$ac_header_compiler" >&6
27168
27169# Is the header present?
27170echo "$as_me:$LINENO: checking $ac_header presence" >&5
27171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27172cat >conftest.$ac_ext <<_ACEOF
27173/* confdefs.h. */
27174_ACEOF
27175cat confdefs.h >>conftest.$ac_ext
27176cat >>conftest.$ac_ext <<_ACEOF
27177/* end confdefs.h. */
27178#include <$ac_header>
27179_ACEOF
27180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27182 ac_status=$?
27183 grep -v '^ *+' conftest.er1 >conftest.err
27184 rm -f conftest.er1
27185 cat conftest.err >&5
27186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27187 (exit $ac_status); } >/dev/null; then
27188 if test -s conftest.err; then
27189 ac_cpp_err=$ac_c_preproc_warn_flag
27190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27191 else
27192 ac_cpp_err=
27193 fi
27194else
27195 ac_cpp_err=yes
27196fi
27197if test -z "$ac_cpp_err"; then
27198 ac_header_preproc=yes
27199else
27200 echo "$as_me: failed program was:" >&5
27201sed 's/^/| /' conftest.$ac_ext >&5
27202
27203 ac_header_preproc=no
27204fi
27205rm -f conftest.err conftest.$ac_ext
27206echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27207echo "${ECHO_T}$ac_header_preproc" >&6
27208
27209# So? What about this header?
27210case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27211 yes:no: )
27212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27213echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27215echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27216 ac_header_preproc=yes
27217 ;;
27218 no:yes:* )
27219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27224echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27226echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27228echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27230echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27231 (
27232 cat <<\_ASBOX
27233## ----------------------------------- ##
27234## Report this to llvmbugs@cs.uiuc.edu ##
27235## ----------------------------------- ##
27236_ASBOX
27237 ) |
27238 sed "s/^/$as_me: WARNING: /" >&2
27239 ;;
27240esac
27241echo "$as_me:$LINENO: checking for $ac_header" >&5
27242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27243if eval "test \"\${$as_ac_Header+set}\" = set"; then
27244 echo $ECHO_N "(cached) $ECHO_C" >&6
27245else
27246 eval "$as_ac_Header=\$ac_header_preproc"
27247fi
27248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27250
27251fi
27252if test `eval echo '${'$as_ac_Header'}'` = yes; then
27253 cat >>confdefs.h <<_ACEOF
27254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27255_ACEOF
27256
27257fi
27258
27259done
27260
27261fi
Reid Spencer8085cff2005-01-16 02:58:39 +000027262
27263
John Criswell7a73b802003-06-30 21:59:07 +000027264echo "$as_me:$LINENO: checking for pid_t" >&5
27265echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27266if test "${ac_cv_type_pid_t+set}" = set; then
27267 echo $ECHO_N "(cached) $ECHO_C" >&6
27268else
27269 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027270/* confdefs.h. */
27271_ACEOF
27272cat confdefs.h >>conftest.$ac_ext
27273cat >>conftest.$ac_ext <<_ACEOF
27274/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027275$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027276int
27277main ()
27278{
27279if ((pid_t *) 0)
27280 return 0;
27281if (sizeof (pid_t))
27282 return 0;
27283 ;
27284 return 0;
27285}
27286_ACEOF
27287rm -f conftest.$ac_objext
27288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027289 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027290 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027291 grep -v '^ *+' conftest.er1 >conftest.err
27292 rm -f conftest.er1
27293 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027296 { ac_try='test -z "$ac_c_werror_flag"
27297 || test ! -s conftest.err'
27298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27299 (eval $ac_try) 2>&5
27300 ac_status=$?
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); }; } &&
27303 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27305 (eval $ac_try) 2>&5
27306 ac_status=$?
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); }; }; then
27309 ac_cv_type_pid_t=yes
27310else
27311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027312sed 's/^/| /' conftest.$ac_ext >&5
27313
John Criswell7a73b802003-06-30 21:59:07 +000027314ac_cv_type_pid_t=no
27315fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027317fi
27318echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27319echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27320if test $ac_cv_type_pid_t = yes; then
27321 :
27322else
27323
27324cat >>confdefs.h <<_ACEOF
27325#define pid_t int
27326_ACEOF
27327
27328fi
27329
27330echo "$as_me:$LINENO: checking for size_t" >&5
27331echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27332if test "${ac_cv_type_size_t+set}" = set; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27334else
27335 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027336/* confdefs.h. */
27337_ACEOF
27338cat confdefs.h >>conftest.$ac_ext
27339cat >>conftest.$ac_ext <<_ACEOF
27340/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027341$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027342int
27343main ()
27344{
27345if ((size_t *) 0)
27346 return 0;
27347if (sizeof (size_t))
27348 return 0;
27349 ;
27350 return 0;
27351}
27352_ACEOF
27353rm -f conftest.$ac_objext
27354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027355 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027356 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027357 grep -v '^ *+' conftest.er1 >conftest.err
27358 rm -f conftest.er1
27359 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27361 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027362 { ac_try='test -z "$ac_c_werror_flag"
27363 || test ! -s conftest.err'
27364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27365 (eval $ac_try) 2>&5
27366 ac_status=$?
27367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368 (exit $ac_status); }; } &&
27369 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27371 (eval $ac_try) 2>&5
27372 ac_status=$?
27373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374 (exit $ac_status); }; }; then
27375 ac_cv_type_size_t=yes
27376else
27377 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027378sed 's/^/| /' conftest.$ac_ext >&5
27379
John Criswell7a73b802003-06-30 21:59:07 +000027380ac_cv_type_size_t=no
27381fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027383fi
27384echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27385echo "${ECHO_T}$ac_cv_type_size_t" >&6
27386if test $ac_cv_type_size_t = yes; then
27387 :
27388else
27389
27390cat >>confdefs.h <<_ACEOF
27391#define size_t unsigned
27392_ACEOF
27393
27394fi
27395
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027396echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27397echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27398if test "${ac_cv_type_signal+set}" = set; then
27399 echo $ECHO_N "(cached) $ECHO_C" >&6
27400else
27401 cat >conftest.$ac_ext <<_ACEOF
27402/* confdefs.h. */
27403_ACEOF
27404cat confdefs.h >>conftest.$ac_ext
27405cat >>conftest.$ac_ext <<_ACEOF
27406/* end confdefs.h. */
27407#include <sys/types.h>
27408#include <signal.h>
27409#ifdef signal
27410# undef signal
27411#endif
27412#ifdef __cplusplus
27413extern "C" void (*signal (int, void (*)(int)))(int);
27414#else
27415void (*signal ()) ();
27416#endif
27417
27418int
27419main ()
27420{
27421int i;
27422 ;
27423 return 0;
27424}
27425_ACEOF
27426rm -f conftest.$ac_objext
27427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27428 (eval $ac_compile) 2>conftest.er1
27429 ac_status=$?
27430 grep -v '^ *+' conftest.er1 >conftest.err
27431 rm -f conftest.er1
27432 cat conftest.err >&5
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); } &&
27435 { ac_try='test -z "$ac_c_werror_flag"
27436 || test ! -s conftest.err'
27437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27438 (eval $ac_try) 2>&5
27439 ac_status=$?
27440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27441 (exit $ac_status); }; } &&
27442 { ac_try='test -s conftest.$ac_objext'
27443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27444 (eval $ac_try) 2>&5
27445 ac_status=$?
27446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27447 (exit $ac_status); }; }; then
27448 ac_cv_type_signal=void
27449else
27450 echo "$as_me: failed program was:" >&5
27451sed 's/^/| /' conftest.$ac_ext >&5
27452
27453ac_cv_type_signal=int
27454fi
27455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27456fi
27457echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27458echo "${ECHO_T}$ac_cv_type_signal" >&6
27459
27460cat >>confdefs.h <<_ACEOF
27461#define RETSIGTYPE $ac_cv_type_signal
27462_ACEOF
27463
27464
27465echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27466echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27467if test "${ac_cv_struct_tm+set}" = set; then
27468 echo $ECHO_N "(cached) $ECHO_C" >&6
27469else
27470 cat >conftest.$ac_ext <<_ACEOF
27471/* confdefs.h. */
27472_ACEOF
27473cat confdefs.h >>conftest.$ac_ext
27474cat >>conftest.$ac_ext <<_ACEOF
27475/* end confdefs.h. */
27476#include <sys/types.h>
27477#include <time.h>
27478
27479int
27480main ()
27481{
27482struct tm *tp; tp->tm_sec;
27483 ;
27484 return 0;
27485}
27486_ACEOF
27487rm -f conftest.$ac_objext
27488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27489 (eval $ac_compile) 2>conftest.er1
27490 ac_status=$?
27491 grep -v '^ *+' conftest.er1 >conftest.err
27492 rm -f conftest.er1
27493 cat conftest.err >&5
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); } &&
27496 { ac_try='test -z "$ac_c_werror_flag"
27497 || test ! -s conftest.err'
27498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27499 (eval $ac_try) 2>&5
27500 ac_status=$?
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); }; } &&
27503 { ac_try='test -s conftest.$ac_objext'
27504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27505 (eval $ac_try) 2>&5
27506 ac_status=$?
27507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27508 (exit $ac_status); }; }; then
27509 ac_cv_struct_tm=time.h
27510else
27511 echo "$as_me: failed program was:" >&5
27512sed 's/^/| /' conftest.$ac_ext >&5
27513
27514ac_cv_struct_tm=sys/time.h
27515fi
27516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27517fi
27518echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27519echo "${ECHO_T}$ac_cv_struct_tm" >&6
27520if test $ac_cv_struct_tm = sys/time.h; then
27521
27522cat >>confdefs.h <<\_ACEOF
27523#define TM_IN_SYS_TIME 1
27524_ACEOF
27525
27526fi
27527
John Criswell7a73b802003-06-30 21:59:07 +000027528echo "$as_me:$LINENO: checking for int64_t" >&5
27529echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27530if test "${ac_cv_type_int64_t+set}" = set; then
27531 echo $ECHO_N "(cached) $ECHO_C" >&6
27532else
27533 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027534/* confdefs.h. */
27535_ACEOF
27536cat confdefs.h >>conftest.$ac_ext
27537cat >>conftest.$ac_ext <<_ACEOF
27538/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027539$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027540int
27541main ()
27542{
27543if ((int64_t *) 0)
27544 return 0;
27545if (sizeof (int64_t))
27546 return 0;
27547 ;
27548 return 0;
27549}
27550_ACEOF
27551rm -f conftest.$ac_objext
27552if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027553 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027554 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027555 grep -v '^ *+' conftest.er1 >conftest.err
27556 rm -f conftest.er1
27557 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27559 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027560 { ac_try='test -z "$ac_c_werror_flag"
27561 || test ! -s conftest.err'
27562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27563 (eval $ac_try) 2>&5
27564 ac_status=$?
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); }; } &&
27567 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27569 (eval $ac_try) 2>&5
27570 ac_status=$?
27571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27572 (exit $ac_status); }; }; then
27573 ac_cv_type_int64_t=yes
27574else
27575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027576sed 's/^/| /' conftest.$ac_ext >&5
27577
John Criswell7a73b802003-06-30 21:59:07 +000027578ac_cv_type_int64_t=no
27579fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027581fi
27582echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27583echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27584if test $ac_cv_type_int64_t = yes; then
27585
27586cat >>confdefs.h <<_ACEOF
27587#define HAVE_INT64_T 1
27588_ACEOF
27589
27590
27591else
27592 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27593echo "$as_me: error: Type int64_t required but not found" >&2;}
27594 { (exit 1); exit 1; }; }
27595fi
27596
27597echo "$as_me:$LINENO: checking for uint64_t" >&5
27598echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27599if test "${ac_cv_type_uint64_t+set}" = set; then
27600 echo $ECHO_N "(cached) $ECHO_C" >&6
27601else
27602 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027603/* confdefs.h. */
27604_ACEOF
27605cat confdefs.h >>conftest.$ac_ext
27606cat >>conftest.$ac_ext <<_ACEOF
27607/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027608$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027609int
27610main ()
27611{
27612if ((uint64_t *) 0)
27613 return 0;
27614if (sizeof (uint64_t))
27615 return 0;
27616 ;
27617 return 0;
27618}
27619_ACEOF
27620rm -f conftest.$ac_objext
27621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027622 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027623 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027624 grep -v '^ *+' conftest.er1 >conftest.err
27625 rm -f conftest.er1
27626 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027629 { ac_try='test -z "$ac_c_werror_flag"
27630 || test ! -s conftest.err'
27631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27632 (eval $ac_try) 2>&5
27633 ac_status=$?
27634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635 (exit $ac_status); }; } &&
27636 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27638 (eval $ac_try) 2>&5
27639 ac_status=$?
27640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641 (exit $ac_status); }; }; then
27642 ac_cv_type_uint64_t=yes
27643else
27644 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027645sed 's/^/| /' conftest.$ac_ext >&5
27646
John Criswell7a73b802003-06-30 21:59:07 +000027647ac_cv_type_uint64_t=no
27648fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027650fi
27651echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27652echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27653if test $ac_cv_type_uint64_t = yes; then
27654
27655cat >>confdefs.h <<_ACEOF
27656#define HAVE_UINT64_T 1
27657_ACEOF
27658
27659
27660else
Misha Brukmanceca9042004-09-02 23:02:30 +000027661 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027662echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27663if test "${ac_cv_type_u_int64_t+set}" = set; then
27664 echo $ECHO_N "(cached) $ECHO_C" >&6
27665else
27666 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027667/* confdefs.h. */
27668_ACEOF
27669cat confdefs.h >>conftest.$ac_ext
27670cat >>conftest.$ac_ext <<_ACEOF
27671/* end confdefs.h. */
27672$ac_includes_default
27673int
27674main ()
27675{
27676if ((u_int64_t *) 0)
27677 return 0;
27678if (sizeof (u_int64_t))
27679 return 0;
27680 ;
27681 return 0;
27682}
27683_ACEOF
27684rm -f conftest.$ac_objext
27685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027686 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027688 grep -v '^ *+' conftest.er1 >conftest.err
27689 rm -f conftest.er1
27690 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27692 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027693 { ac_try='test -z "$ac_c_werror_flag"
27694 || test ! -s conftest.err'
27695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27696 (eval $ac_try) 2>&5
27697 ac_status=$?
27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699 (exit $ac_status); }; } &&
27700 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27702 (eval $ac_try) 2>&5
27703 ac_status=$?
27704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27705 (exit $ac_status); }; }; then
27706 ac_cv_type_u_int64_t=yes
27707else
27708 echo "$as_me: failed program was:" >&5
27709sed 's/^/| /' conftest.$ac_ext >&5
27710
27711ac_cv_type_u_int64_t=no
27712fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027714fi
27715echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27716echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27717if test $ac_cv_type_u_int64_t = yes; then
27718
27719cat >>confdefs.h <<_ACEOF
27720#define HAVE_U_INT64_T 1
27721_ACEOF
27722
27723
Misha Brukmanceca9042004-09-02 23:02:30 +000027724else
27725 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27726echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27727 { (exit 1); exit 1; }; }
27728fi
27729
John Criswell679ff312004-09-02 18:44:44 +000027730fi
27731
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027732
27733
27734
27735
27736
27737
27738
Reid Spencerf4bb9b12006-01-19 08:22:40 +000027739
27740
Reid Spencerdf3be822006-01-23 08:15:53 +000027741for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027742do
27743as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27744echo "$as_me:$LINENO: checking for $ac_func" >&5
27745echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27746if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027747 echo $ECHO_N "(cached) $ECHO_C" >&6
27748else
27749 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027750/* confdefs.h. */
27751_ACEOF
27752cat confdefs.h >>conftest.$ac_ext
27753cat >>conftest.$ac_ext <<_ACEOF
27754/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027755/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27757#define $ac_func innocuous_$ac_func
27758
27759/* System header to define __stub macros and hopefully few prototypes,
27760 which can conflict with char $ac_func (); below.
27761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27762 <limits.h> exists even on freestanding compilers. */
27763
27764#ifdef __STDC__
27765# include <limits.h>
27766#else
27767# include <assert.h>
27768#endif
27769
27770#undef $ac_func
27771
27772/* Override any gcc2 internal prototype to avoid an error. */
27773#ifdef __cplusplus
27774extern "C"
27775{
27776#endif
27777/* We use char because int might match the return type of a gcc2
27778 builtin and then its argument prototype would still apply. */
27779char $ac_func ();
27780/* The GNU C library defines this for functions which it implements
27781 to always fail with ENOSYS. Some functions are actually named
27782 something starting with __ and the normal name is an alias. */
27783#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27784choke me
27785#else
27786char (*f) () = $ac_func;
27787#endif
27788#ifdef __cplusplus
27789}
27790#endif
John Criswell7a73b802003-06-30 21:59:07 +000027791
John Criswell7a73b802003-06-30 21:59:07 +000027792int
27793main ()
27794{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027795return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027796 ;
27797 return 0;
27798}
27799_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027800rm -f conftest.$ac_objext conftest$ac_exeext
27801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27802 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027803 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027804 grep -v '^ *+' conftest.er1 >conftest.err
27805 rm -f conftest.er1
27806 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27808 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027809 { ac_try='test -z "$ac_c_werror_flag"
27810 || test ! -s conftest.err'
27811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27812 (eval $ac_try) 2>&5
27813 ac_status=$?
27814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027816 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818 (eval $ac_try) 2>&5
27819 ac_status=$?
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027822 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027823else
27824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027825sed 's/^/| /' conftest.$ac_ext >&5
27826
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027827eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027828fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027829rm -f conftest.err conftest.$ac_objext \
27830 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027831fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27833echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27834if test `eval echo '${'$as_ac_var'}'` = yes; then
27835 cat >>confdefs.h <<_ACEOF
27836#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027837_ACEOF
27838
27839fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027840done
John Criswell7a73b802003-06-30 21:59:07 +000027841
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027842
27843
27844
Reid Spencer6af3d262004-12-15 04:01:48 +000027845
27846
Reid Spencer59473af2004-12-25 07:31:29 +000027847
Reid Spencerdf3be822006-01-23 08:15:53 +000027848for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27849do
27850as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27851echo "$as_me:$LINENO: checking for $ac_func" >&5
27852echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27853if eval "test \"\${$as_ac_var+set}\" = set"; then
27854 echo $ECHO_N "(cached) $ECHO_C" >&6
27855else
27856 cat >conftest.$ac_ext <<_ACEOF
27857/* confdefs.h. */
27858_ACEOF
27859cat confdefs.h >>conftest.$ac_ext
27860cat >>conftest.$ac_ext <<_ACEOF
27861/* end confdefs.h. */
27862/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27864#define $ac_func innocuous_$ac_func
27865
27866/* System header to define __stub macros and hopefully few prototypes,
27867 which can conflict with char $ac_func (); below.
27868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27869 <limits.h> exists even on freestanding compilers. */
27870
27871#ifdef __STDC__
27872# include <limits.h>
27873#else
27874# include <assert.h>
27875#endif
27876
27877#undef $ac_func
27878
27879/* Override any gcc2 internal prototype to avoid an error. */
27880#ifdef __cplusplus
27881extern "C"
27882{
27883#endif
27884/* We use char because int might match the return type of a gcc2
27885 builtin and then its argument prototype would still apply. */
27886char $ac_func ();
27887/* The GNU C library defines this for functions which it implements
27888 to always fail with ENOSYS. Some functions are actually named
27889 something starting with __ and the normal name is an alias. */
27890#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27891choke me
27892#else
27893char (*f) () = $ac_func;
27894#endif
27895#ifdef __cplusplus
27896}
27897#endif
27898
27899int
27900main ()
27901{
27902return f != $ac_func;
27903 ;
27904 return 0;
27905}
27906_ACEOF
27907rm -f conftest.$ac_objext conftest$ac_exeext
27908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27909 (eval $ac_link) 2>conftest.er1
27910 ac_status=$?
27911 grep -v '^ *+' conftest.er1 >conftest.err
27912 rm -f conftest.er1
27913 cat conftest.err >&5
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); } &&
27916 { ac_try='test -z "$ac_c_werror_flag"
27917 || test ! -s conftest.err'
27918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27919 (eval $ac_try) 2>&5
27920 ac_status=$?
27921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); }; } &&
27923 { ac_try='test -s conftest$ac_exeext'
27924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27925 (eval $ac_try) 2>&5
27926 ac_status=$?
27927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928 (exit $ac_status); }; }; then
27929 eval "$as_ac_var=yes"
27930else
27931 echo "$as_me: failed program was:" >&5
27932sed 's/^/| /' conftest.$ac_ext >&5
27933
27934eval "$as_ac_var=no"
27935fi
27936rm -f conftest.err conftest.$ac_objext \
27937 conftest$ac_exeext conftest.$ac_ext
27938fi
27939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27940echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27941if test `eval echo '${'$as_ac_var'}'` = yes; then
27942 cat >>confdefs.h <<_ACEOF
27943#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27944_ACEOF
27945
27946fi
27947done
27948
27949
27950
27951
27952
27953
27954
27955
27956for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027957do
27958as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27959echo "$as_me:$LINENO: checking for $ac_func" >&5
27960echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27961if eval "test \"\${$as_ac_var+set}\" = set"; then
27962 echo $ECHO_N "(cached) $ECHO_C" >&6
27963else
27964 cat >conftest.$ac_ext <<_ACEOF
27965/* confdefs.h. */
27966_ACEOF
27967cat confdefs.h >>conftest.$ac_ext
27968cat >>conftest.$ac_ext <<_ACEOF
27969/* end confdefs.h. */
27970/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27972#define $ac_func innocuous_$ac_func
27973
27974/* System header to define __stub macros and hopefully few prototypes,
27975 which can conflict with char $ac_func (); below.
27976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27977 <limits.h> exists even on freestanding compilers. */
27978
27979#ifdef __STDC__
27980# include <limits.h>
27981#else
27982# include <assert.h>
27983#endif
27984
27985#undef $ac_func
27986
27987/* Override any gcc2 internal prototype to avoid an error. */
27988#ifdef __cplusplus
27989extern "C"
27990{
27991#endif
27992/* We use char because int might match the return type of a gcc2
27993 builtin and then its argument prototype would still apply. */
27994char $ac_func ();
27995/* The GNU C library defines this for functions which it implements
27996 to always fail with ENOSYS. Some functions are actually named
27997 something starting with __ and the normal name is an alias. */
27998#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27999choke me
28000#else
28001char (*f) () = $ac_func;
28002#endif
28003#ifdef __cplusplus
28004}
28005#endif
28006
28007int
28008main ()
28009{
28010return f != $ac_func;
28011 ;
28012 return 0;
28013}
28014_ACEOF
28015rm -f conftest.$ac_objext conftest$ac_exeext
28016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28017 (eval $ac_link) 2>conftest.er1
28018 ac_status=$?
28019 grep -v '^ *+' conftest.er1 >conftest.err
28020 rm -f conftest.er1
28021 cat conftest.err >&5
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); } &&
28024 { ac_try='test -z "$ac_c_werror_flag"
28025 || test ! -s conftest.err'
28026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28027 (eval $ac_try) 2>&5
28028 ac_status=$?
28029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030 (exit $ac_status); }; } &&
28031 { ac_try='test -s conftest$ac_exeext'
28032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28033 (eval $ac_try) 2>&5
28034 ac_status=$?
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); }; }; then
28037 eval "$as_ac_var=yes"
28038else
28039 echo "$as_me: failed program was:" >&5
28040sed 's/^/| /' conftest.$ac_ext >&5
28041
28042eval "$as_ac_var=no"
28043fi
28044rm -f conftest.err conftest.$ac_objext \
28045 conftest$ac_exeext conftest.$ac_ext
28046fi
28047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28048echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28049if test `eval echo '${'$as_ac_var'}'` = yes; then
28050 cat >>confdefs.h <<_ACEOF
28051#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28052_ACEOF
28053
28054fi
28055done
28056
28057
Reid Spencerba46ca32004-12-31 05:49:15 +000028058
28059
Chris Lattner0b142592005-11-14 06:57:34 +000028060
Chris Lattner511f11d2005-11-14 07:25:50 +000028061for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028062do
28063as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28064echo "$as_me:$LINENO: checking for $ac_func" >&5
28065echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28066if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028067 echo $ECHO_N "(cached) $ECHO_C" >&6
28068else
28069 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028070/* confdefs.h. */
28071_ACEOF
28072cat confdefs.h >>conftest.$ac_ext
28073cat >>conftest.$ac_ext <<_ACEOF
28074/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028075/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28077#define $ac_func innocuous_$ac_func
28078
28079/* System header to define __stub macros and hopefully few prototypes,
28080 which can conflict with char $ac_func (); below.
28081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28082 <limits.h> exists even on freestanding compilers. */
28083
28084#ifdef __STDC__
28085# include <limits.h>
28086#else
28087# include <assert.h>
28088#endif
28089
28090#undef $ac_func
28091
28092/* Override any gcc2 internal prototype to avoid an error. */
28093#ifdef __cplusplus
28094extern "C"
28095{
28096#endif
28097/* We use char because int might match the return type of a gcc2
28098 builtin and then its argument prototype would still apply. */
28099char $ac_func ();
28100/* The GNU C library defines this for functions which it implements
28101 to always fail with ENOSYS. Some functions are actually named
28102 something starting with __ and the normal name is an alias. */
28103#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28104choke me
28105#else
28106char (*f) () = $ac_func;
28107#endif
28108#ifdef __cplusplus
28109}
28110#endif
John Criswell7a73b802003-06-30 21:59:07 +000028111
John Criswell7a73b802003-06-30 21:59:07 +000028112int
28113main ()
28114{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028115return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028116 ;
28117 return 0;
28118}
28119_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028120rm -f conftest.$ac_objext conftest$ac_exeext
28121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28122 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028123 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028124 grep -v '^ *+' conftest.er1 >conftest.err
28125 rm -f conftest.er1
28126 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028129 { ac_try='test -z "$ac_c_werror_flag"
28130 || test ! -s conftest.err'
28131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28132 (eval $ac_try) 2>&5
28133 ac_status=$?
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028136 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28138 (eval $ac_try) 2>&5
28139 ac_status=$?
28140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028142 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028143else
28144 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028145sed 's/^/| /' conftest.$ac_ext >&5
28146
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028147eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028148fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028149rm -f conftest.err conftest.$ac_objext \
28150 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028151fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28153echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28154if test `eval echo '${'$as_ac_var'}'` = yes; then
28155 cat >>confdefs.h <<_ACEOF
28156#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028157_ACEOF
28158
28159fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028160done
John Criswell7a73b802003-06-30 21:59:07 +000028161
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028162echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28163echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000028164if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028165 echo $ECHO_N "(cached) $ECHO_C" >&6
28166else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028167 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028168ac_cpp='$CPP $CPPFLAGS'
28169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28171ac_compiler_gnu=$ac_cv_c_compiler_gnu
28172
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028173 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028174 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028175else
28176 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000028177
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028178 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000028179_ACEOF
28180cat confdefs.h >>conftest.$ac_ext
28181cat >>conftest.$ac_ext <<_ACEOF
28182/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028183
John Criswella0137d32003-10-13 16:22:01 +000028184#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000028185#include <stdlib.h>
28186
John Criswella0137d32003-10-13 16:22:01 +000028187int
28188main ()
28189{
28190
Reid Spencer2706f8c2004-09-19 23:53:36 +000028191volatile double A, B;
28192char Buffer[100];
28193A = 1;
28194A /= 10.0;
28195sprintf(Buffer, "%a", A);
28196B = atof(Buffer);
28197if (A != B)
28198 return (1);
28199if (A != 0x1.999999999999ap-4)
28200 return (1);
28201return (0);
John Criswella0137d32003-10-13 16:22:01 +000028202 ;
28203 return 0;
28204}
28205_ACEOF
28206rm -f conftest$ac_exeext
28207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28208 (eval $ac_link) 2>&5
28209 ac_status=$?
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28213 (eval $ac_try) 2>&5
28214 ac_status=$?
28215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28216 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028217 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000028218else
28219 echo "$as_me: program exited with status $ac_status" >&5
28220echo "$as_me: failed program was:" >&5
28221sed 's/^/| /' conftest.$ac_ext >&5
28222
28223( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000028224llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028225fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028226rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000028227fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028228 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +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
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028234fi
Reid Spencer3be58f92004-11-27 22:01:43 +000028235echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28236echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28237 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000028238
28239cat >>confdefs.h <<\_ACEOF
28240#define HAVE_PRINTF_A 1
28241_ACEOF
28242
Reid Spencer2706f8c2004-09-19 23:53:36 +000028243 fi
John Criswella0137d32003-10-13 16:22:01 +000028244
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028245# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28246# for constant arguments. Useless!
28247echo "$as_me:$LINENO: checking for working alloca.h" >&5
28248echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28249if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028250 echo $ECHO_N "(cached) $ECHO_C" >&6
28251else
John Criswell0021c312004-02-13 21:57:29 +000028252 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028253/* confdefs.h. */
28254_ACEOF
28255cat confdefs.h >>conftest.$ac_ext
28256cat >>conftest.$ac_ext <<_ACEOF
28257/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028258#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028259int
28260main ()
28261{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028262char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028263 ;
28264 return 0;
28265}
28266_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028267rm -f conftest.$ac_objext conftest$ac_exeext
28268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28269 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028270 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028271 grep -v '^ *+' conftest.er1 >conftest.err
28272 rm -f conftest.er1
28273 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28275 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028276 { ac_try='test -z "$ac_c_werror_flag"
28277 || test ! -s conftest.err'
28278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28279 (eval $ac_try) 2>&5
28280 ac_status=$?
28281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28282 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028283 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028284 { (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); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028289 ac_cv_working_alloca_h=yes
28290else
28291 echo "$as_me: failed program was:" >&5
28292sed 's/^/| /' conftest.$ac_ext >&5
28293
28294ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028295fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028296rm -f conftest.err conftest.$ac_objext \
28297 conftest$ac_exeext conftest.$ac_ext
28298fi
28299echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28300echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28301if test $ac_cv_working_alloca_h = yes; then
28302
28303cat >>confdefs.h <<\_ACEOF
28304#define HAVE_ALLOCA_H 1
28305_ACEOF
28306
28307fi
28308
28309echo "$as_me:$LINENO: checking for alloca" >&5
28310echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28311if test "${ac_cv_func_alloca_works+set}" = set; then
28312 echo $ECHO_N "(cached) $ECHO_C" >&6
28313else
28314 cat >conftest.$ac_ext <<_ACEOF
28315/* confdefs.h. */
28316_ACEOF
28317cat confdefs.h >>conftest.$ac_ext
28318cat >>conftest.$ac_ext <<_ACEOF
28319/* end confdefs.h. */
28320#ifdef __GNUC__
28321# define alloca __builtin_alloca
28322#else
28323# ifdef _MSC_VER
28324# include <malloc.h>
28325# define alloca _alloca
28326# else
28327# if HAVE_ALLOCA_H
28328# include <alloca.h>
28329# else
28330# ifdef _AIX
28331 #pragma alloca
28332# else
28333# ifndef alloca /* predefined by HP cc +Olibcalls */
28334char *alloca ();
28335# endif
28336# endif
28337# endif
28338# endif
28339#endif
28340
28341int
28342main ()
28343{
28344char *p = (char *) alloca (1);
28345 ;
28346 return 0;
28347}
28348_ACEOF
28349rm -f conftest.$ac_objext conftest$ac_exeext
28350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28351 (eval $ac_link) 2>conftest.er1
28352 ac_status=$?
28353 grep -v '^ *+' conftest.er1 >conftest.err
28354 rm -f conftest.er1
28355 cat conftest.err >&5
28356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28357 (exit $ac_status); } &&
28358 { ac_try='test -z "$ac_c_werror_flag"
28359 || test ! -s conftest.err'
28360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28361 (eval $ac_try) 2>&5
28362 ac_status=$?
28363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364 (exit $ac_status); }; } &&
28365 { ac_try='test -s conftest$ac_exeext'
28366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28367 (eval $ac_try) 2>&5
28368 ac_status=$?
28369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28370 (exit $ac_status); }; }; then
28371 ac_cv_func_alloca_works=yes
28372else
28373 echo "$as_me: failed program was:" >&5
28374sed 's/^/| /' conftest.$ac_ext >&5
28375
28376ac_cv_func_alloca_works=no
28377fi
28378rm -f conftest.err conftest.$ac_objext \
28379 conftest$ac_exeext conftest.$ac_ext
28380fi
28381echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28382echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28383
28384if test $ac_cv_func_alloca_works = yes; then
28385
28386cat >>confdefs.h <<\_ACEOF
28387#define HAVE_ALLOCA 1
28388_ACEOF
28389
28390else
28391 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28392# that cause trouble. Some versions do not even contain alloca or
28393# contain a buggy version. If you still want to use their alloca,
28394# use ar to extract alloca.o from them instead of compiling alloca.c.
28395
28396ALLOCA=alloca.$ac_objext
28397
28398cat >>confdefs.h <<\_ACEOF
28399#define C_ALLOCA 1
28400_ACEOF
28401
28402
28403echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28404echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28405if test "${ac_cv_os_cray+set}" = set; then
28406 echo $ECHO_N "(cached) $ECHO_C" >&6
28407else
28408 cat >conftest.$ac_ext <<_ACEOF
28409/* confdefs.h. */
28410_ACEOF
28411cat confdefs.h >>conftest.$ac_ext
28412cat >>conftest.$ac_ext <<_ACEOF
28413/* end confdefs.h. */
28414#if defined(CRAY) && ! defined(CRAY2)
28415webecray
28416#else
28417wenotbecray
28418#endif
28419
28420_ACEOF
28421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28422 $EGREP "webecray" >/dev/null 2>&1; then
28423 ac_cv_os_cray=yes
28424else
28425 ac_cv_os_cray=no
28426fi
28427rm -f conftest*
28428
28429fi
28430echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28431echo "${ECHO_T}$ac_cv_os_cray" >&6
28432if test $ac_cv_os_cray = yes; then
28433 for ac_func in _getb67 GETB67 getb67; do
28434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28435echo "$as_me:$LINENO: checking for $ac_func" >&5
28436echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28437if eval "test \"\${$as_ac_var+set}\" = set"; then
28438 echo $ECHO_N "(cached) $ECHO_C" >&6
28439else
28440 cat >conftest.$ac_ext <<_ACEOF
28441/* confdefs.h. */
28442_ACEOF
28443cat confdefs.h >>conftest.$ac_ext
28444cat >>conftest.$ac_ext <<_ACEOF
28445/* end confdefs.h. */
28446/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28448#define $ac_func innocuous_$ac_func
28449
28450/* System header to define __stub macros and hopefully few prototypes,
28451 which can conflict with char $ac_func (); below.
28452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28453 <limits.h> exists even on freestanding compilers. */
28454
28455#ifdef __STDC__
28456# include <limits.h>
28457#else
28458# include <assert.h>
28459#endif
28460
28461#undef $ac_func
28462
28463/* Override any gcc2 internal prototype to avoid an error. */
28464#ifdef __cplusplus
28465extern "C"
28466{
28467#endif
28468/* We use char because int might match the return type of a gcc2
28469 builtin and then its argument prototype would still apply. */
28470char $ac_func ();
28471/* The GNU C library defines this for functions which it implements
28472 to always fail with ENOSYS. Some functions are actually named
28473 something starting with __ and the normal name is an alias. */
28474#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28475choke me
28476#else
28477char (*f) () = $ac_func;
28478#endif
28479#ifdef __cplusplus
28480}
28481#endif
28482
28483int
28484main ()
28485{
28486return f != $ac_func;
28487 ;
28488 return 0;
28489}
28490_ACEOF
28491rm -f conftest.$ac_objext conftest$ac_exeext
28492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28493 (eval $ac_link) 2>conftest.er1
28494 ac_status=$?
28495 grep -v '^ *+' conftest.er1 >conftest.err
28496 rm -f conftest.er1
28497 cat conftest.err >&5
28498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499 (exit $ac_status); } &&
28500 { ac_try='test -z "$ac_c_werror_flag"
28501 || test ! -s conftest.err'
28502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28503 (eval $ac_try) 2>&5
28504 ac_status=$?
28505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28506 (exit $ac_status); }; } &&
28507 { ac_try='test -s conftest$ac_exeext'
28508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28509 (eval $ac_try) 2>&5
28510 ac_status=$?
28511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28512 (exit $ac_status); }; }; then
28513 eval "$as_ac_var=yes"
28514else
28515 echo "$as_me: failed program was:" >&5
28516sed 's/^/| /' conftest.$ac_ext >&5
28517
28518eval "$as_ac_var=no"
28519fi
28520rm -f conftest.err conftest.$ac_objext \
28521 conftest$ac_exeext conftest.$ac_ext
28522fi
28523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28524echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28525if test `eval echo '${'$as_ac_var'}'` = yes; then
28526
28527cat >>confdefs.h <<_ACEOF
28528#define CRAY_STACKSEG_END $ac_func
28529_ACEOF
28530
28531 break
28532fi
28533
28534 done
28535fi
28536
28537echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28538echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28539if test "${ac_cv_c_stack_direction+set}" = set; then
28540 echo $ECHO_N "(cached) $ECHO_C" >&6
28541else
28542 if test "$cross_compiling" = yes; then
28543 ac_cv_c_stack_direction=0
28544else
28545 cat >conftest.$ac_ext <<_ACEOF
28546/* confdefs.h. */
28547_ACEOF
28548cat confdefs.h >>conftest.$ac_ext
28549cat >>conftest.$ac_ext <<_ACEOF
28550/* end confdefs.h. */
28551int
28552find_stack_direction ()
28553{
28554 static char *addr = 0;
28555 auto char dummy;
28556 if (addr == 0)
28557 {
28558 addr = &dummy;
28559 return find_stack_direction ();
28560 }
John Criswell0021c312004-02-13 21:57:29 +000028561 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028562 return (&dummy > addr) ? 1 : -1;
28563}
John Criswell0021c312004-02-13 21:57:29 +000028564
John Criswell0021c312004-02-13 21:57:29 +000028565int
28566main ()
28567{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028568 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028569}
28570_ACEOF
28571rm -f conftest$ac_exeext
28572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28573 (eval $ac_link) 2>&5
28574 ac_status=$?
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28578 (eval $ac_try) 2>&5
28579 ac_status=$?
28580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028582 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028583else
28584 echo "$as_me: program exited with status $ac_status" >&5
28585echo "$as_me: failed program was:" >&5
28586sed 's/^/| /' conftest.$ac_ext >&5
28587
28588( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028589ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028590fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028591rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028592fi
28593fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028594echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28595echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28596
28597cat >>confdefs.h <<_ACEOF
28598#define STACK_DIRECTION $ac_cv_c_stack_direction
28599_ACEOF
28600
28601
John Criswell0021c312004-02-13 21:57:29 +000028602fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028603
28604
28605echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28606echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28607if test "${ac_cv_func_rand48+set}" = set; then
28608 echo $ECHO_N "(cached) $ECHO_C" >&6
28609else
28610 ac_ext=cc
28611ac_cpp='$CXXCPP $CPPFLAGS'
28612ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28613ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28614ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28615
28616 cat >conftest.$ac_ext <<_ACEOF
28617/* confdefs.h. */
28618_ACEOF
28619cat confdefs.h >>conftest.$ac_ext
28620cat >>conftest.$ac_ext <<_ACEOF
28621/* end confdefs.h. */
28622#include <stdlib.h>
28623int
28624main ()
28625{
28626srand48(0);lrand48();drand48();
28627 ;
28628 return 0;
28629}
28630_ACEOF
28631rm -f conftest.$ac_objext
28632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28633 (eval $ac_compile) 2>conftest.er1
28634 ac_status=$?
28635 grep -v '^ *+' conftest.er1 >conftest.err
28636 rm -f conftest.er1
28637 cat conftest.err >&5
28638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639 (exit $ac_status); } &&
28640 { ac_try='test -z "$ac_cxx_werror_flag"
28641 || test ! -s conftest.err'
28642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28643 (eval $ac_try) 2>&5
28644 ac_status=$?
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); }; } &&
28647 { ac_try='test -s conftest.$ac_objext'
28648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28649 (eval $ac_try) 2>&5
28650 ac_status=$?
28651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28652 (exit $ac_status); }; }; then
28653 ac_cv_func_rand48=yes
28654else
28655 echo "$as_me: failed program was:" >&5
28656sed 's/^/| /' conftest.$ac_ext >&5
28657
28658ac_cv_func_rand48=no
28659fi
28660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28661 ac_ext=c
28662ac_cpp='$CPP $CPPFLAGS'
28663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28665ac_compiler_gnu=$ac_cv_c_compiler_gnu
28666
28667fi
28668echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28669echo "${ECHO_T}$ac_cv_func_rand48" >&6
28670
28671if test "$ac_cv_func_rand48" = "yes" ; then
28672
28673cat >>confdefs.h <<\_ACEOF
28674#define HAVE_RAND48 1
28675_ACEOF
28676
28677fi
John Criswell0021c312004-02-13 21:57:29 +000028678
28679
John Criswell7a73b802003-06-30 21:59:07 +000028680echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28681echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28682if test "${ac_cv_cxx_namespaces+set}" = set; then
28683 echo $ECHO_N "(cached) $ECHO_C" >&6
28684else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028685 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028686ac_cpp='$CXXCPP $CPPFLAGS'
28687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28690
28691 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028692/* confdefs.h. */
28693_ACEOF
28694cat confdefs.h >>conftest.$ac_ext
28695cat >>conftest.$ac_ext <<_ACEOF
28696/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028697namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028698int
28699main ()
28700{
28701using namespace Outer::Inner; return i;
28702 ;
28703 return 0;
28704}
28705_ACEOF
28706rm -f conftest.$ac_objext
28707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028708 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028709 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028710 grep -v '^ *+' conftest.er1 >conftest.err
28711 rm -f conftest.er1
28712 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028715 { ac_try='test -z "$ac_cxx_werror_flag"
28716 || test ! -s conftest.err'
28717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28718 (eval $ac_try) 2>&5
28719 ac_status=$?
28720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28721 (exit $ac_status); }; } &&
28722 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28724 (eval $ac_try) 2>&5
28725 ac_status=$?
28726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28727 (exit $ac_status); }; }; then
28728 ac_cv_cxx_namespaces=yes
28729else
28730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028731sed 's/^/| /' conftest.$ac_ext >&5
28732
John Criswell7a73b802003-06-30 21:59:07 +000028733ac_cv_cxx_namespaces=no
28734fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028736 ac_ext=c
28737ac_cpp='$CPP $CPPFLAGS'
28738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28740ac_compiler_gnu=$ac_cv_c_compiler_gnu
28741
28742
28743fi
28744echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28745echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28746if test "$ac_cv_cxx_namespaces" = yes; then
28747
28748cat >>confdefs.h <<\_ACEOF
28749#define HAVE_NAMESPACES
28750_ACEOF
28751
28752fi
28753
Brian Gaeke90583492003-11-10 03:06:28 +000028754echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28755echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28756if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028757 echo $ECHO_N "(cached) $ECHO_C" >&6
28758else
28759
John Criswell7a73b802003-06-30 21:59:07 +000028760 ac_ext=cc
28761ac_cpp='$CXXCPP $CPPFLAGS'
28762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28765
28766 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028767/* confdefs.h. */
28768_ACEOF
28769cat confdefs.h >>conftest.$ac_ext
28770cat >>conftest.$ac_ext <<_ACEOF
28771/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028772#include <ext/hash_map>
28773#ifdef HAVE_NAMESPACES
28774using namespace std;
28775#endif
John Criswell7a73b802003-06-30 21:59:07 +000028776int
28777main ()
28778{
Brian Gaeke90583492003-11-10 03:06:28 +000028779hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028780 ;
28781 return 0;
28782}
28783_ACEOF
28784rm -f conftest.$ac_objext
28785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028786 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028787 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028788 grep -v '^ *+' conftest.er1 >conftest.err
28789 rm -f conftest.er1
28790 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028793 { ac_try='test -z "$ac_cxx_werror_flag"
28794 || test ! -s conftest.err'
28795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28796 (eval $ac_try) 2>&5
28797 ac_status=$?
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); }; } &&
28800 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28802 (eval $ac_try) 2>&5
28803 ac_status=$?
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028806 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028807else
28808 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028809sed 's/^/| /' conftest.$ac_ext >&5
28810
Brian Gaeke90583492003-11-10 03:06:28 +000028811ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028812fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028814 ac_ext=c
28815ac_cpp='$CPP $CPPFLAGS'
28816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28818ac_compiler_gnu=$ac_cv_c_compiler_gnu
28819
John Criswell7a73b802003-06-30 21:59:07 +000028820fi
Brian Gaeke90583492003-11-10 03:06:28 +000028821echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28822echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028823 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28824 then
John Criswell9f011862004-09-24 18:28:00 +000028825
28826cat >>confdefs.h <<\_ACEOF
28827#define HAVE_STD_EXT_HASH_MAP 1
28828_ACEOF
28829
28830 else
28831
28832cat >>confdefs.h <<\_ACEOF
28833#define HAVE_STD_EXT_HASH_MAP 0
28834_ACEOF
28835
Brian Gaeke90583492003-11-10 03:06:28 +000028836 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028837
Brian Gaeke90583492003-11-10 03:06:28 +000028838 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28839echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28840if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28841 echo $ECHO_N "(cached) $ECHO_C" >&6
28842else
28843
Brian Gaeke90583492003-11-10 03:06:28 +000028844 ac_ext=cc
28845ac_cpp='$CXXCPP $CPPFLAGS'
28846ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28847ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28848ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28849
28850 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028851/* confdefs.h. */
28852_ACEOF
28853cat confdefs.h >>conftest.$ac_ext
28854cat >>conftest.$ac_ext <<_ACEOF
28855/* end confdefs.h. */
28856#include <ext/hash_map>
28857#ifdef HAVE_NAMESPACES
28858using namespace __gnu_cxx;
28859#endif
28860int
28861main ()
28862{
28863hash_map<int,int> t;
28864 ;
28865 return 0;
28866}
28867_ACEOF
28868rm -f conftest.$ac_objext
28869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028870 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028871 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028872 grep -v '^ *+' conftest.er1 >conftest.err
28873 rm -f conftest.er1
28874 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028877 { ac_try='test -z "$ac_cxx_werror_flag"
28878 || test ! -s conftest.err'
28879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28880 (eval $ac_try) 2>&5
28881 ac_status=$?
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; } &&
28884 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28886 (eval $ac_try) 2>&5
28887 ac_status=$?
28888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28889 (exit $ac_status); }; }; then
28890 ac_cv_cxx_have_gnu_ext_hash_map=yes
28891else
28892 echo "$as_me: failed program was:" >&5
28893sed 's/^/| /' conftest.$ac_ext >&5
28894
28895ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028896fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028898 ac_ext=c
28899ac_cpp='$CPP $CPPFLAGS'
28900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28902ac_compiler_gnu=$ac_cv_c_compiler_gnu
28903
28904fi
28905echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28906echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028907 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28908 then
John Criswell9f011862004-09-24 18:28:00 +000028909
28910cat >>confdefs.h <<\_ACEOF
28911#define HAVE_GNU_EXT_HASH_MAP 1
28912_ACEOF
28913
28914 else
28915
28916cat >>confdefs.h <<\_ACEOF
28917#define HAVE_GNU_EXT_HASH_MAP 0
28918_ACEOF
28919
Brian Gaeke90583492003-11-10 03:06:28 +000028920 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028921
Brian Gaeke90583492003-11-10 03:06:28 +000028922 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28923echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28924if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28925 echo $ECHO_N "(cached) $ECHO_C" >&6
28926else
John Criswell7a73b802003-06-30 21:59:07 +000028927
Brian Gaeke90583492003-11-10 03:06:28 +000028928 ac_ext=cc
28929ac_cpp='$CXXCPP $CPPFLAGS'
28930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28933
28934 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028935/* confdefs.h. */
28936_ACEOF
28937cat confdefs.h >>conftest.$ac_ext
28938cat >>conftest.$ac_ext <<_ACEOF
28939/* end confdefs.h. */
28940#include <hash_map>
28941int
28942main ()
28943{
28944hash_map<int,int> t;
28945 ;
28946 return 0;
28947}
28948_ACEOF
28949rm -f conftest.$ac_objext
28950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028951 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028952 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028953 grep -v '^ *+' conftest.er1 >conftest.err
28954 rm -f conftest.er1
28955 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28957 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028958 { ac_try='test -z "$ac_cxx_werror_flag"
28959 || test ! -s conftest.err'
28960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28961 (eval $ac_try) 2>&5
28962 ac_status=$?
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); }; } &&
28965 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28967 (eval $ac_try) 2>&5
28968 ac_status=$?
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); }; }; then
28971 ac_cv_cxx_have_global_hash_map=yes
28972else
28973 echo "$as_me: failed program was:" >&5
28974sed 's/^/| /' conftest.$ac_ext >&5
28975
28976ac_cv_cxx_have_global_hash_map=no
28977fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028979 ac_ext=c
28980ac_cpp='$CPP $CPPFLAGS'
28981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28983ac_compiler_gnu=$ac_cv_c_compiler_gnu
28984
28985fi
28986echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28987echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028988 if test "$ac_cv_cxx_have_global_hash_map" = yes
28989 then
John Criswell9f011862004-09-24 18:28:00 +000028990
28991cat >>confdefs.h <<\_ACEOF
28992#define HAVE_GLOBAL_HASH_MAP 1
28993_ACEOF
28994
28995 else
28996
28997cat >>confdefs.h <<\_ACEOF
28998#define HAVE_GLOBAL_HASH_MAP 0
28999_ACEOF
29000
Brian Gaeke90583492003-11-10 03:06:28 +000029001 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029002
Brian Gaeke90583492003-11-10 03:06:28 +000029003echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
29004echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
29005if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000029006 echo $ECHO_N "(cached) $ECHO_C" >&6
29007else
29008
John Criswell7a73b802003-06-30 21:59:07 +000029009 ac_ext=cc
29010ac_cpp='$CXXCPP $CPPFLAGS'
29011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29014
29015 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029016/* confdefs.h. */
29017_ACEOF
29018cat confdefs.h >>conftest.$ac_ext
29019cat >>conftest.$ac_ext <<_ACEOF
29020/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029021#include <ext/hash_set>
29022#ifdef HAVE_NAMESPACES
29023using namespace std;
29024#endif
John Criswell7a73b802003-06-30 21:59:07 +000029025int
29026main ()
29027{
Brian Gaeke90583492003-11-10 03:06:28 +000029028hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000029029 ;
29030 return 0;
29031}
29032_ACEOF
29033rm -f conftest.$ac_objext
29034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029035 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029036 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029037 grep -v '^ *+' conftest.er1 >conftest.err
29038 rm -f conftest.er1
29039 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029042 { ac_try='test -z "$ac_cxx_werror_flag"
29043 || test ! -s conftest.err'
29044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29045 (eval $ac_try) 2>&5
29046 ac_status=$?
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); }; } &&
29049 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29051 (eval $ac_try) 2>&5
29052 ac_status=$?
29053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029055 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029056else
29057 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029058sed 's/^/| /' conftest.$ac_ext >&5
29059
Brian Gaeke90583492003-11-10 03:06:28 +000029060ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029061fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029063 ac_ext=c
29064ac_cpp='$CPP $CPPFLAGS'
29065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29067ac_compiler_gnu=$ac_cv_c_compiler_gnu
29068
29069fi
29070echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29071echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029072 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29073 then
John Criswell9f011862004-09-24 18:28:00 +000029074
29075cat >>confdefs.h <<\_ACEOF
29076#define HAVE_STD_EXT_HASH_SET 1
29077_ACEOF
29078
29079 else
29080
29081cat >>confdefs.h <<\_ACEOF
29082#define HAVE_STD_EXT_HASH_SET 0
29083_ACEOF
29084
Brian Gaeke90583492003-11-10 03:06:28 +000029085 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029086
Brian Gaeke90583492003-11-10 03:06:28 +000029087 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29088echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29089if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29091else
29092
Brian Gaeke90583492003-11-10 03:06:28 +000029093 ac_ext=cc
29094ac_cpp='$CXXCPP $CPPFLAGS'
29095ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29096ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29097ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29098
John Criswell7a73b802003-06-30 21:59:07 +000029099 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029100/* confdefs.h. */
29101_ACEOF
29102cat confdefs.h >>conftest.$ac_ext
29103cat >>conftest.$ac_ext <<_ACEOF
29104/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029105#include <ext/hash_set>
29106#ifdef HAVE_NAMESPACES
29107using namespace __gnu_cxx;
29108#endif
John Criswell7a73b802003-06-30 21:59:07 +000029109int
29110main ()
29111{
Brian Gaeke90583492003-11-10 03:06:28 +000029112hash_set<int> t;
29113 ;
29114 return 0;
29115}
29116_ACEOF
29117rm -f conftest.$ac_objext
29118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029119 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029120 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029121 grep -v '^ *+' conftest.er1 >conftest.err
29122 rm -f conftest.er1
29123 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029126 { ac_try='test -z "$ac_cxx_werror_flag"
29127 || test ! -s conftest.err'
29128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29129 (eval $ac_try) 2>&5
29130 ac_status=$?
29131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29132 (exit $ac_status); }; } &&
29133 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29135 (eval $ac_try) 2>&5
29136 ac_status=$?
29137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29138 (exit $ac_status); }; }; then
29139 ac_cv_cxx_have_gnu_ext_hash_set=yes
29140else
29141 echo "$as_me: failed program was:" >&5
29142sed 's/^/| /' conftest.$ac_ext >&5
29143
29144ac_cv_cxx_have_gnu_ext_hash_set=no
29145fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029147 ac_ext=c
29148ac_cpp='$CPP $CPPFLAGS'
29149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29151ac_compiler_gnu=$ac_cv_c_compiler_gnu
29152
29153fi
29154echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29155echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029156 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29157 then
John Criswell9f011862004-09-24 18:28:00 +000029158
29159cat >>confdefs.h <<\_ACEOF
29160#define HAVE_GNU_EXT_HASH_SET 1
29161_ACEOF
29162
29163 else
29164
29165cat >>confdefs.h <<\_ACEOF
29166#define HAVE_GNU_EXT_HASH_SET 0
29167_ACEOF
29168
Brian Gaeke90583492003-11-10 03:06:28 +000029169 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029170
Brian Gaeke90583492003-11-10 03:06:28 +000029171 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29172echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29173if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29174 echo $ECHO_N "(cached) $ECHO_C" >&6
29175else
29176
Brian Gaeke90583492003-11-10 03:06:28 +000029177 ac_ext=cc
29178ac_cpp='$CXXCPP $CPPFLAGS'
29179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29182
29183 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029184/* confdefs.h. */
29185_ACEOF
29186cat confdefs.h >>conftest.$ac_ext
29187cat >>conftest.$ac_ext <<_ACEOF
29188/* end confdefs.h. */
29189#include <hash_set>
29190int
29191main ()
29192{
John Criswell7a73b802003-06-30 21:59:07 +000029193hash_set<int> t; return 0;
29194 ;
29195 return 0;
29196}
29197_ACEOF
29198rm -f conftest.$ac_objext
29199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029200 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029202 grep -v '^ *+' conftest.er1 >conftest.err
29203 rm -f conftest.er1
29204 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29206 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029207 { ac_try='test -z "$ac_cxx_werror_flag"
29208 || test ! -s conftest.err'
29209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29210 (eval $ac_try) 2>&5
29211 ac_status=$?
29212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213 (exit $ac_status); }; } &&
29214 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29216 (eval $ac_try) 2>&5
29217 ac_status=$?
29218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29219 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029220 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029221else
29222 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029223sed 's/^/| /' conftest.$ac_ext >&5
29224
Brian Gaeke90583492003-11-10 03:06:28 +000029225ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029226fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029228 ac_ext=c
29229ac_cpp='$CPP $CPPFLAGS'
29230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29232ac_compiler_gnu=$ac_cv_c_compiler_gnu
29233
John Criswell7a73b802003-06-30 21:59:07 +000029234fi
Brian Gaeke90583492003-11-10 03:06:28 +000029235echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29236echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029237 if test "$ac_cv_cxx_have_global_hash_set" = yes
29238 then
John Criswell9f011862004-09-24 18:28:00 +000029239
29240cat >>confdefs.h <<\_ACEOF
29241#define HAVE_GLOBAL_HASH_SET 1
29242_ACEOF
29243
29244 else
29245
29246cat >>confdefs.h <<\_ACEOF
29247#define HAVE_GLOBAL_HASH_SET 0
29248_ACEOF
29249
Brian Gaeke90583492003-11-10 03:06:28 +000029250 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029251
John Criswell7a73b802003-06-30 21:59:07 +000029252echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29253echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29254if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
29256else
29257
John Criswell7a73b802003-06-30 21:59:07 +000029258 ac_ext=cc
29259ac_cpp='$CXXCPP $CPPFLAGS'
29260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29261ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29262ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29263
29264 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029265/* confdefs.h. */
29266_ACEOF
29267cat confdefs.h >>conftest.$ac_ext
29268cat >>conftest.$ac_ext <<_ACEOF
29269/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029270#include <iterator>
29271#ifdef HAVE_NAMESPACES
29272using namespace std;
29273#endif
John Criswell7a73b802003-06-30 21:59:07 +000029274int
29275main ()
29276{
29277iterator<int,int,int> t; return 0;
29278 ;
29279 return 0;
29280}
29281_ACEOF
29282rm -f conftest.$ac_objext
29283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029284 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029285 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029286 grep -v '^ *+' conftest.er1 >conftest.err
29287 rm -f conftest.er1
29288 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029291 { ac_try='test -z "$ac_cxx_werror_flag"
29292 || test ! -s conftest.err'
29293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294 (eval $ac_try) 2>&5
29295 ac_status=$?
29296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297 (exit $ac_status); }; } &&
29298 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29300 (eval $ac_try) 2>&5
29301 ac_status=$?
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); }; }; then
29304 ac_cv_cxx_have_std_iterator=yes
29305else
29306 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029307sed 's/^/| /' conftest.$ac_ext >&5
29308
John Criswell7a73b802003-06-30 21:59:07 +000029309ac_cv_cxx_have_std_iterator=no
29310fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029312 ac_ext=c
29313ac_cpp='$CPP $CPPFLAGS'
29314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29316ac_compiler_gnu=$ac_cv_c_compiler_gnu
29317
29318
29319fi
29320echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29321echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029322if test "$ac_cv_cxx_have_std_iterator" = yes
29323then
John Criswell40468462004-09-24 21:19:06 +000029324
29325cat >>confdefs.h <<\_ACEOF
29326#define HAVE_STD_ITERATOR 1
29327_ACEOF
29328
29329else
29330
29331cat >>confdefs.h <<\_ACEOF
29332#define HAVE_STD_ITERATOR 0
29333_ACEOF
29334
John Criswell7a73b802003-06-30 21:59:07 +000029335fi
29336
29337echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29338echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29339if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29340 echo $ECHO_N "(cached) $ECHO_C" >&6
29341else
29342
John Criswell7a73b802003-06-30 21:59:07 +000029343 ac_ext=cc
29344ac_cpp='$CXXCPP $CPPFLAGS'
29345ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29346ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29347ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29348
29349 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029350/* confdefs.h. */
29351_ACEOF
29352cat confdefs.h >>conftest.$ac_ext
29353cat >>conftest.$ac_ext <<_ACEOF
29354/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029355#include <iterator>
29356#ifdef HAVE_NAMESPACES
29357using namespace std;
29358#endif
John Criswell7a73b802003-06-30 21:59:07 +000029359int
29360main ()
29361{
John Criswellc78022e2003-07-29 19:11:58 +000029362bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029363 ;
29364 return 0;
29365}
29366_ACEOF
29367rm -f conftest.$ac_objext
29368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029369 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029370 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029371 grep -v '^ *+' conftest.er1 >conftest.err
29372 rm -f conftest.er1
29373 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029376 { ac_try='test -z "$ac_cxx_werror_flag"
29377 || test ! -s conftest.err'
29378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29379 (eval $ac_try) 2>&5
29380 ac_status=$?
29381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382 (exit $ac_status); }; } &&
29383 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29385 (eval $ac_try) 2>&5
29386 ac_status=$?
29387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29388 (exit $ac_status); }; }; then
29389 ac_cv_cxx_have_bi_iterator=yes
29390else
29391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029392sed 's/^/| /' conftest.$ac_ext >&5
29393
John Criswell7a73b802003-06-30 21:59:07 +000029394ac_cv_cxx_have_bi_iterator=no
29395fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029397 ac_ext=c
29398ac_cpp='$CPP $CPPFLAGS'
29399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29401ac_compiler_gnu=$ac_cv_c_compiler_gnu
29402
29403
29404fi
29405echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29406echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029407if test "$ac_cv_cxx_have_bi_iterator" = yes
29408then
John Criswell40468462004-09-24 21:19:06 +000029409
29410cat >>confdefs.h <<\_ACEOF
29411#define HAVE_BI_ITERATOR 1
29412_ACEOF
29413
29414else
29415
29416cat >>confdefs.h <<\_ACEOF
29417#define HAVE_BI_ITERATOR 0
29418_ACEOF
29419
John Criswell7a73b802003-06-30 21:59:07 +000029420fi
29421
29422echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29423echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29424if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29425 echo $ECHO_N "(cached) $ECHO_C" >&6
29426else
29427
John Criswell7a73b802003-06-30 21:59:07 +000029428 ac_ext=cc
29429ac_cpp='$CXXCPP $CPPFLAGS'
29430ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29431ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29432ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29433
29434 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029435/* confdefs.h. */
29436_ACEOF
29437cat confdefs.h >>conftest.$ac_ext
29438cat >>conftest.$ac_ext <<_ACEOF
29439/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029440#include <iterator>
29441#ifdef HAVE_NAMESPACES
29442using namespace std;
29443#endif
John Criswell7a73b802003-06-30 21:59:07 +000029444int
29445main ()
29446{
John Criswellc78022e2003-07-29 19:11:58 +000029447forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029448 ;
29449 return 0;
29450}
29451_ACEOF
29452rm -f conftest.$ac_objext
29453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029454 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029455 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029456 grep -v '^ *+' conftest.er1 >conftest.err
29457 rm -f conftest.er1
29458 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029461 { ac_try='test -z "$ac_cxx_werror_flag"
29462 || test ! -s conftest.err'
29463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464 (eval $ac_try) 2>&5
29465 ac_status=$?
29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467 (exit $ac_status); }; } &&
29468 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29470 (eval $ac_try) 2>&5
29471 ac_status=$?
29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29473 (exit $ac_status); }; }; then
29474 ac_cv_cxx_have_fwd_iterator=yes
29475else
29476 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029477sed 's/^/| /' conftest.$ac_ext >&5
29478
John Criswell7a73b802003-06-30 21:59:07 +000029479ac_cv_cxx_have_fwd_iterator=no
29480fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029482 ac_ext=c
29483ac_cpp='$CPP $CPPFLAGS'
29484ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29485ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29486ac_compiler_gnu=$ac_cv_c_compiler_gnu
29487
29488
29489fi
29490echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29491echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029492if test "$ac_cv_cxx_have_fwd_iterator" = yes
29493then
John Criswell40468462004-09-24 21:19:06 +000029494
29495cat >>confdefs.h <<\_ACEOF
29496#define HAVE_FWD_ITERATOR 1
29497_ACEOF
29498
29499else
29500
29501cat >>confdefs.h <<\_ACEOF
29502#define HAVE_FWD_ITERATOR 0
29503_ACEOF
29504
John Criswell7a73b802003-06-30 21:59:07 +000029505fi
29506
29507
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029508echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29509echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29510if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29511 echo $ECHO_N "(cached) $ECHO_C" >&6
29512else
29513 ac_ext=cc
29514ac_cpp='$CXXCPP $CPPFLAGS'
29515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29518
Reid Spencerabec8f92004-10-27 23:03:44 +000029519 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029520/* confdefs.h. */
29521_ACEOF
29522cat confdefs.h >>conftest.$ac_ext
29523cat >>conftest.$ac_ext <<_ACEOF
29524/* end confdefs.h. */
29525#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029526int
29527main ()
29528{
29529float f; isnan(f);
29530 ;
29531 return 0;
29532}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029533_ACEOF
29534rm -f conftest.$ac_objext
29535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029536 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029537 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029538 grep -v '^ *+' conftest.er1 >conftest.err
29539 rm -f conftest.er1
29540 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029543 { ac_try='test -z "$ac_cxx_werror_flag"
29544 || test ! -s conftest.err'
29545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29546 (eval $ac_try) 2>&5
29547 ac_status=$?
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); }; } &&
29550 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552 (eval $ac_try) 2>&5
29553 ac_status=$?
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); }; }; then
29556 ac_cv_func_isnan_in_math_h=yes
29557else
29558 echo "$as_me: failed program was:" >&5
29559sed 's/^/| /' conftest.$ac_ext >&5
29560
29561ac_cv_func_isnan_in_math_h=no
29562fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029564 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029565ac_cpp='$CPP $CPPFLAGS'
29566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29568ac_compiler_gnu=$ac_cv_c_compiler_gnu
29569
29570fi
29571echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29572echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029573
29574
29575if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029576
29577cat >>confdefs.h <<\_ACEOF
29578#define HAVE_ISNAN_IN_MATH_H 1
29579_ACEOF
29580
Reid Spencerabec8f92004-10-27 23:03:44 +000029581fi
29582
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029583echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29584echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29585if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29586 echo $ECHO_N "(cached) $ECHO_C" >&6
29587else
29588 ac_ext=cc
29589ac_cpp='$CXXCPP $CPPFLAGS'
29590ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29591ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29592ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29593
Reid Spencerabec8f92004-10-27 23:03:44 +000029594 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029595/* confdefs.h. */
29596_ACEOF
29597cat confdefs.h >>conftest.$ac_ext
29598cat >>conftest.$ac_ext <<_ACEOF
29599/* end confdefs.h. */
29600#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029601int
29602main ()
29603{
29604float f; isnan(f);
29605 ;
29606 return 0;
29607}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029608_ACEOF
29609rm -f conftest.$ac_objext
29610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029611 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029612 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029613 grep -v '^ *+' conftest.er1 >conftest.err
29614 rm -f conftest.er1
29615 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029618 { ac_try='test -z "$ac_cxx_werror_flag"
29619 || test ! -s conftest.err'
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; } &&
29625 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29627 (eval $ac_try) 2>&5
29628 ac_status=$?
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); }; }; then
29631 ac_cv_func_isnan_in_cmath=yes
29632else
29633 echo "$as_me: failed program was:" >&5
29634sed 's/^/| /' conftest.$ac_ext >&5
29635
29636ac_cv_func_isnan_in_cmath=no
29637fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029639 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029640ac_cpp='$CPP $CPPFLAGS'
29641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29643ac_compiler_gnu=$ac_cv_c_compiler_gnu
29644
29645fi
29646echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29647echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029648
29649if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029650
29651cat >>confdefs.h <<\_ACEOF
29652#define HAVE_ISNAN_IN_CMATH 1
29653_ACEOF
29654
Reid Spencerabec8f92004-10-27 23:03:44 +000029655fi
29656
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029657echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29658echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29659if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29660 echo $ECHO_N "(cached) $ECHO_C" >&6
29661else
29662 ac_ext=cc
29663ac_cpp='$CXXCPP $CPPFLAGS'
29664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29667
Reid Spencerabec8f92004-10-27 23:03:44 +000029668 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029669/* confdefs.h. */
29670_ACEOF
29671cat confdefs.h >>conftest.$ac_ext
29672cat >>conftest.$ac_ext <<_ACEOF
29673/* end confdefs.h. */
29674#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029675int
29676main ()
29677{
29678float f; std::isnan(f);
29679 ;
29680 return 0;
29681}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029682_ACEOF
29683rm -f conftest.$ac_objext
29684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029685 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029687 grep -v '^ *+' conftest.er1 >conftest.err
29688 rm -f conftest.er1
29689 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029692 { ac_try='test -z "$ac_cxx_werror_flag"
29693 || test ! -s conftest.err'
29694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29695 (eval $ac_try) 2>&5
29696 ac_status=$?
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); }; } &&
29699 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29701 (eval $ac_try) 2>&5
29702 ac_status=$?
29703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704 (exit $ac_status); }; }; then
29705 ac_cv_func_std_isnan_in_cmath=yes
29706else
29707 echo "$as_me: failed program was:" >&5
29708sed 's/^/| /' conftest.$ac_ext >&5
29709
29710ac_cv_func_std_isnan_in_cmath=no
29711fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029713 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029714ac_cpp='$CPP $CPPFLAGS'
29715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29717ac_compiler_gnu=$ac_cv_c_compiler_gnu
29718
29719fi
29720echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29721echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029722
29723if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029724
29725cat >>confdefs.h <<\_ACEOF
29726#define HAVE_STD_ISNAN_IN_CMATH 1
29727_ACEOF
29728
Reid Spencerabec8f92004-10-27 23:03:44 +000029729fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029730
29731
Brian Gaeke52a551d2004-07-21 03:14:12 +000029732echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29733echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29734if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29735 echo $ECHO_N "(cached) $ECHO_C" >&6
29736else
29737 ac_ext=cc
29738ac_cpp='$CXXCPP $CPPFLAGS'
29739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29742
Reid Spencerabec8f92004-10-27 23:03:44 +000029743 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029744/* confdefs.h. */
29745_ACEOF
29746cat confdefs.h >>conftest.$ac_ext
29747cat >>conftest.$ac_ext <<_ACEOF
29748/* end confdefs.h. */
29749#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029750int
29751main ()
29752{
29753float f; isinf(f);
29754 ;
29755 return 0;
29756}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029757_ACEOF
29758rm -f conftest.$ac_objext
29759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029760 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029761 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029762 grep -v '^ *+' conftest.er1 >conftest.err
29763 rm -f conftest.er1
29764 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029767 { ac_try='test -z "$ac_cxx_werror_flag"
29768 || test ! -s conftest.err'
29769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29770 (eval $ac_try) 2>&5
29771 ac_status=$?
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); }; } &&
29774 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776 (eval $ac_try) 2>&5
29777 ac_status=$?
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); }; }; then
29780 ac_cv_func_isinf_in_math_h=yes
29781else
29782 echo "$as_me: failed program was:" >&5
29783sed 's/^/| /' conftest.$ac_ext >&5
29784
29785ac_cv_func_isinf_in_math_h=no
29786fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029788 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029789ac_cpp='$CPP $CPPFLAGS'
29790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29792ac_compiler_gnu=$ac_cv_c_compiler_gnu
29793
29794fi
29795echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29796echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029797
29798if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029799
29800cat >>confdefs.h <<\_ACEOF
29801#define HAVE_ISINF_IN_MATH_H 1
29802_ACEOF
29803
Reid Spencerabec8f92004-10-27 23:03:44 +000029804fi
29805
Brian Gaeke52a551d2004-07-21 03:14:12 +000029806echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29807echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29808if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29809 echo $ECHO_N "(cached) $ECHO_C" >&6
29810else
29811 ac_ext=cc
29812ac_cpp='$CXXCPP $CPPFLAGS'
29813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29816
Reid Spencerabec8f92004-10-27 23:03:44 +000029817 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029818/* confdefs.h. */
29819_ACEOF
29820cat confdefs.h >>conftest.$ac_ext
29821cat >>conftest.$ac_ext <<_ACEOF
29822/* end confdefs.h. */
29823#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029824int
29825main ()
29826{
29827float f; isinf(f);
29828 ;
29829 return 0;
29830}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029831_ACEOF
29832rm -f conftest.$ac_objext
29833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029834 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029835 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029836 grep -v '^ *+' conftest.er1 >conftest.err
29837 rm -f conftest.er1
29838 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029841 { ac_try='test -z "$ac_cxx_werror_flag"
29842 || test ! -s conftest.err'
29843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29844 (eval $ac_try) 2>&5
29845 ac_status=$?
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); }; } &&
29848 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29850 (eval $ac_try) 2>&5
29851 ac_status=$?
29852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29853 (exit $ac_status); }; }; then
29854 ac_cv_func_isinf_in_cmath=yes
29855else
29856 echo "$as_me: failed program was:" >&5
29857sed 's/^/| /' conftest.$ac_ext >&5
29858
29859ac_cv_func_isinf_in_cmath=no
29860fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029862 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029863ac_cpp='$CPP $CPPFLAGS'
29864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29866ac_compiler_gnu=$ac_cv_c_compiler_gnu
29867
29868fi
29869echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29870echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029871
29872if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029873
29874cat >>confdefs.h <<\_ACEOF
29875#define HAVE_ISINF_IN_CMATH 1
29876_ACEOF
29877
Reid Spencerabec8f92004-10-27 23:03:44 +000029878fi
29879
Brian Gaeke52a551d2004-07-21 03:14:12 +000029880echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29881echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29882if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29883 echo $ECHO_N "(cached) $ECHO_C" >&6
29884else
29885 ac_ext=cc
29886ac_cpp='$CXXCPP $CPPFLAGS'
29887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29890
Reid Spencerabec8f92004-10-27 23:03:44 +000029891 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029892/* confdefs.h. */
29893_ACEOF
29894cat confdefs.h >>conftest.$ac_ext
29895cat >>conftest.$ac_ext <<_ACEOF
29896/* end confdefs.h. */
29897#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029898int
29899main ()
29900{
29901float f; std::isinf(f)}
29902 ;
29903 return 0;
29904}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029905_ACEOF
29906rm -f conftest.$ac_objext
29907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029908 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029909 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029910 grep -v '^ *+' conftest.er1 >conftest.err
29911 rm -f conftest.er1
29912 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29914 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029915 { ac_try='test -z "$ac_cxx_werror_flag"
29916 || test ! -s conftest.err'
29917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29918 (eval $ac_try) 2>&5
29919 ac_status=$?
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); }; } &&
29922 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29924 (eval $ac_try) 2>&5
29925 ac_status=$?
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); }; }; then
29928 ac_cv_func_std_isinf_in_cmath=yes
29929else
29930 echo "$as_me: failed program was:" >&5
29931sed 's/^/| /' conftest.$ac_ext >&5
29932
29933ac_cv_func_std_isinf_in_cmath=no
29934fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029936 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029937ac_cpp='$CPP $CPPFLAGS'
29938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29940ac_compiler_gnu=$ac_cv_c_compiler_gnu
29941
29942fi
29943echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29944echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029945
29946if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029947
29948cat >>confdefs.h <<\_ACEOF
29949#define HAVE_STD_ISINF_IN_CMATH 1
29950_ACEOF
29951
Reid Spencerabec8f92004-10-27 23:03:44 +000029952fi
29953
Brian Gaeked59a6472004-07-21 03:33:58 +000029954echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29955echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29956if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29957 echo $ECHO_N "(cached) $ECHO_C" >&6
29958else
29959 ac_ext=cc
29960ac_cpp='$CXXCPP $CPPFLAGS'
29961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29964
Reid Spencerabec8f92004-10-27 23:03:44 +000029965 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029966/* confdefs.h. */
29967_ACEOF
29968cat confdefs.h >>conftest.$ac_ext
29969cat >>conftest.$ac_ext <<_ACEOF
29970/* end confdefs.h. */
29971#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029972int
29973main ()
29974{
29975float f; finite(f);
29976 ;
29977 return 0;
29978}
Brian Gaeked59a6472004-07-21 03:33:58 +000029979_ACEOF
29980rm -f conftest.$ac_objext
29981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029982 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029983 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029984 grep -v '^ *+' conftest.er1 >conftest.err
29985 rm -f conftest.er1
29986 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029989 { ac_try='test -z "$ac_cxx_werror_flag"
29990 || test ! -s conftest.err'
29991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992 (eval $ac_try) 2>&5
29993 ac_status=$?
29994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 (exit $ac_status); }; } &&
29996 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29998 (eval $ac_try) 2>&5
29999 ac_status=$?
30000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); }; }; then
30002 ac_cv_func_finite_in_ieeefp_h=yes
30003else
30004 echo "$as_me: failed program was:" >&5
30005sed 's/^/| /' conftest.$ac_ext >&5
30006
30007ac_cv_func_finite_in_ieeefp_h=no
30008fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000030010 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000030011ac_cpp='$CPP $CPPFLAGS'
30012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30014ac_compiler_gnu=$ac_cv_c_compiler_gnu
30015
30016fi
30017echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
30018echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000030019
Brian Gaeke6802b552004-10-28 05:06:45 +000030020if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000030021
30022cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000030023#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000030024_ACEOF
30025
Reid Spencerabec8f92004-10-27 23:03:44 +000030026fi
30027
30028
30029
John Criswell7a73b802003-06-30 21:59:07 +000030030
30031
30032for ac_header in stdlib.h unistd.h
30033do
30034as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30035if eval "test \"\${$as_ac_Header+set}\" = set"; then
30036 echo "$as_me:$LINENO: checking for $ac_header" >&5
30037echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30038if eval "test \"\${$as_ac_Header+set}\" = set"; then
30039 echo $ECHO_N "(cached) $ECHO_C" >&6
30040fi
30041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30042echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30043else
30044 # Is the header compilable?
30045echo "$as_me:$LINENO: checking $ac_header usability" >&5
30046echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30047cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030048/* confdefs.h. */
30049_ACEOF
30050cat confdefs.h >>conftest.$ac_ext
30051cat >>conftest.$ac_ext <<_ACEOF
30052/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030053$ac_includes_default
30054#include <$ac_header>
30055_ACEOF
30056rm -f conftest.$ac_objext
30057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030058 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030059 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030060 grep -v '^ *+' conftest.er1 >conftest.err
30061 rm -f conftest.er1
30062 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30064 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030065 { ac_try='test -z "$ac_c_werror_flag"
30066 || test ! -s conftest.err'
30067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30068 (eval $ac_try) 2>&5
30069 ac_status=$?
30070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30071 (exit $ac_status); }; } &&
30072 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30074 (eval $ac_try) 2>&5
30075 ac_status=$?
30076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30077 (exit $ac_status); }; }; then
30078 ac_header_compiler=yes
30079else
30080 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030081sed 's/^/| /' conftest.$ac_ext >&5
30082
John Criswell7a73b802003-06-30 21:59:07 +000030083ac_header_compiler=no
30084fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030086echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30087echo "${ECHO_T}$ac_header_compiler" >&6
30088
30089# Is the header present?
30090echo "$as_me:$LINENO: checking $ac_header presence" >&5
30091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30092cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030093/* confdefs.h. */
30094_ACEOF
30095cat confdefs.h >>conftest.$ac_ext
30096cat >>conftest.$ac_ext <<_ACEOF
30097/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030098#include <$ac_header>
30099_ACEOF
30100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30102 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000030103 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000030104 rm -f conftest.er1
30105 cat conftest.err >&5
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); } >/dev/null; then
30108 if test -s conftest.err; then
30109 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000030110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000030111 else
30112 ac_cpp_err=
30113 fi
30114else
30115 ac_cpp_err=yes
30116fi
30117if test -z "$ac_cpp_err"; then
30118 ac_header_preproc=yes
30119else
30120 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030121sed 's/^/| /' conftest.$ac_ext >&5
30122
John Criswell7a73b802003-06-30 21:59:07 +000030123 ac_header_preproc=no
30124fi
30125rm -f conftest.err conftest.$ac_ext
30126echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30127echo "${ECHO_T}$ac_header_preproc" >&6
30128
30129# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30131 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000030132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30136 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030137 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030138 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000030139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30146echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030151 (
30152 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030153## ----------------------------------- ##
30154## Report this to llvmbugs@cs.uiuc.edu ##
30155## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000030156_ASBOX
30157 ) |
30158 sed "s/^/$as_me: WARNING: /" >&2
30159 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030160esac
30161echo "$as_me:$LINENO: checking for $ac_header" >&5
30162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30163if eval "test \"\${$as_ac_Header+set}\" = set"; then
30164 echo $ECHO_N "(cached) $ECHO_C" >&6
30165else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030166 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000030167fi
30168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30170
30171fi
30172if test `eval echo '${'$as_ac_Header'}'` = yes; then
30173 cat >>confdefs.h <<_ACEOF
30174#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30175_ACEOF
30176
30177fi
30178
30179done
30180
30181
30182for ac_func in getpagesize
30183do
30184as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30185echo "$as_me:$LINENO: checking for $ac_func" >&5
30186echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30187if eval "test \"\${$as_ac_var+set}\" = set"; then
30188 echo $ECHO_N "(cached) $ECHO_C" >&6
30189else
30190 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030191/* confdefs.h. */
30192_ACEOF
30193cat confdefs.h >>conftest.$ac_ext
30194cat >>conftest.$ac_ext <<_ACEOF
30195/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030196/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30198#define $ac_func innocuous_$ac_func
30199
John Criswell7a73b802003-06-30 21:59:07 +000030200/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030201 which can conflict with char $ac_func (); below.
30202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30203 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030204
John Criswell0c38eaf2003-09-10 15:17:25 +000030205#ifdef __STDC__
30206# include <limits.h>
30207#else
30208# include <assert.h>
30209#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030210
30211#undef $ac_func
30212
John Criswell7a73b802003-06-30 21:59:07 +000030213/* Override any gcc2 internal prototype to avoid an error. */
30214#ifdef __cplusplus
30215extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030216{
John Criswell7a73b802003-06-30 21:59:07 +000030217#endif
30218/* We use char because int might match the return type of a gcc2
30219 builtin and then its argument prototype would still apply. */
30220char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030221/* The GNU C library defines this for functions which it implements
30222 to always fail with ENOSYS. Some functions are actually named
30223 something starting with __ and the normal name is an alias. */
30224#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30225choke me
30226#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030227char (*f) () = $ac_func;
30228#endif
30229#ifdef __cplusplus
30230}
John Criswell7a73b802003-06-30 21:59:07 +000030231#endif
30232
John Criswell0c38eaf2003-09-10 15:17:25 +000030233int
30234main ()
30235{
30236return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000030237 ;
30238 return 0;
30239}
30240_ACEOF
30241rm -f conftest.$ac_objext conftest$ac_exeext
30242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030243 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030244 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030245 grep -v '^ *+' conftest.er1 >conftest.err
30246 rm -f conftest.er1
30247 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30249 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030250 { ac_try='test -z "$ac_c_werror_flag"
30251 || test ! -s conftest.err'
30252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30253 (eval $ac_try) 2>&5
30254 ac_status=$?
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); }; } &&
30257 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30259 (eval $ac_try) 2>&5
30260 ac_status=$?
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); }; }; then
30263 eval "$as_ac_var=yes"
30264else
30265 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030266sed 's/^/| /' conftest.$ac_ext >&5
30267
John Criswell7a73b802003-06-30 21:59:07 +000030268eval "$as_ac_var=no"
30269fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030270rm -f conftest.err conftest.$ac_objext \
30271 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030272fi
30273echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30274echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30275if test `eval echo '${'$as_ac_var'}'` = yes; then
30276 cat >>confdefs.h <<_ACEOF
30277#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30278_ACEOF
30279
30280fi
30281done
30282
30283echo "$as_me:$LINENO: checking for working mmap" >&5
30284echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30285if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30286 echo $ECHO_N "(cached) $ECHO_C" >&6
30287else
30288 if test "$cross_compiling" = yes; then
30289 ac_cv_func_mmap_fixed_mapped=no
30290else
30291 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030292/* confdefs.h. */
30293_ACEOF
30294cat confdefs.h >>conftest.$ac_ext
30295cat >>conftest.$ac_ext <<_ACEOF
30296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030297$ac_includes_default
30298/* malloc might have been renamed as rpl_malloc. */
30299#undef malloc
30300
30301/* Thanks to Mike Haertel and Jim Avera for this test.
30302 Here is a matrix of mmap possibilities:
30303 mmap private not fixed
30304 mmap private fixed at somewhere currently unmapped
30305 mmap private fixed at somewhere already mapped
30306 mmap shared not fixed
30307 mmap shared fixed at somewhere currently unmapped
30308 mmap shared fixed at somewhere already mapped
30309 For private mappings, we should verify that changes cannot be read()
30310 back from the file, nor mmap's back from the file at a different
30311 address. (There have been systems where private was not correctly
30312 implemented like the infamous i386 svr4.0, and systems where the
30313 VM page cache was not coherent with the file system buffer cache
30314 like early versions of FreeBSD and possibly contemporary NetBSD.)
30315 For shared mappings, we should conversely verify that changes get
30316 propagated back to all the places they're supposed to be.
30317
30318 Grep wants private fixed already mapped.
30319 The main things grep needs to know about mmap are:
30320 * does it exist and is it safe to write into the mmap'd area
30321 * how to use it (BSD variants) */
30322
30323#include <fcntl.h>
30324#include <sys/mman.h>
30325
30326#if !STDC_HEADERS && !HAVE_STDLIB_H
30327char *malloc ();
30328#endif
30329
30330/* This mess was copied from the GNU getpagesize.h. */
30331#if !HAVE_GETPAGESIZE
30332/* Assume that all systems that can run configure have sys/param.h. */
30333# if !HAVE_SYS_PARAM_H
30334# define HAVE_SYS_PARAM_H 1
30335# endif
30336
30337# ifdef _SC_PAGESIZE
30338# define getpagesize() sysconf(_SC_PAGESIZE)
30339# else /* no _SC_PAGESIZE */
30340# if HAVE_SYS_PARAM_H
30341# include <sys/param.h>
30342# ifdef EXEC_PAGESIZE
30343# define getpagesize() EXEC_PAGESIZE
30344# else /* no EXEC_PAGESIZE */
30345# ifdef NBPG
30346# define getpagesize() NBPG * CLSIZE
30347# ifndef CLSIZE
30348# define CLSIZE 1
30349# endif /* no CLSIZE */
30350# else /* no NBPG */
30351# ifdef NBPC
30352# define getpagesize() NBPC
30353# else /* no NBPC */
30354# ifdef PAGESIZE
30355# define getpagesize() PAGESIZE
30356# endif /* PAGESIZE */
30357# endif /* no NBPC */
30358# endif /* no NBPG */
30359# endif /* no EXEC_PAGESIZE */
30360# else /* no HAVE_SYS_PARAM_H */
30361# define getpagesize() 8192 /* punt totally */
30362# endif /* no HAVE_SYS_PARAM_H */
30363# endif /* no _SC_PAGESIZE */
30364
30365#endif /* no HAVE_GETPAGESIZE */
30366
30367int
30368main ()
30369{
30370 char *data, *data2, *data3;
30371 int i, pagesize;
30372 int fd;
30373
30374 pagesize = getpagesize ();
30375
30376 /* First, make a file with some known garbage in it. */
30377 data = (char *) malloc (pagesize);
30378 if (!data)
30379 exit (1);
30380 for (i = 0; i < pagesize; ++i)
30381 *(data + i) = rand ();
30382 umask (0);
30383 fd = creat ("conftest.mmap", 0600);
30384 if (fd < 0)
30385 exit (1);
30386 if (write (fd, data, pagesize) != pagesize)
30387 exit (1);
30388 close (fd);
30389
30390 /* Next, try to mmap the file at a fixed address which already has
30391 something else allocated at it. If we can, also make sure that
30392 we see the same garbage. */
30393 fd = open ("conftest.mmap", O_RDWR);
30394 if (fd < 0)
30395 exit (1);
30396 data2 = (char *) malloc (2 * pagesize);
30397 if (!data2)
30398 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030399 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030400 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030401 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030402 exit (1);
30403 for (i = 0; i < pagesize; ++i)
30404 if (*(data + i) != *(data2 + i))
30405 exit (1);
30406
30407 /* Finally, make sure that changes to the mapped area do not
30408 percolate back to the file as seen by read(). (This is a bug on
30409 some variants of i386 svr4.0.) */
30410 for (i = 0; i < pagesize; ++i)
30411 *(data2 + i) = *(data2 + i) + 1;
30412 data3 = (char *) malloc (pagesize);
30413 if (!data3)
30414 exit (1);
30415 if (read (fd, data3, pagesize) != pagesize)
30416 exit (1);
30417 for (i = 0; i < pagesize; ++i)
30418 if (*(data + i) != *(data3 + i))
30419 exit (1);
30420 close (fd);
30421 exit (0);
30422}
30423_ACEOF
30424rm -f conftest$ac_exeext
30425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30426 (eval $ac_link) 2>&5
30427 ac_status=$?
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431 (eval $ac_try) 2>&5
30432 ac_status=$?
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; }; then
30435 ac_cv_func_mmap_fixed_mapped=yes
30436else
30437 echo "$as_me: program exited with status $ac_status" >&5
30438echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030439sed 's/^/| /' conftest.$ac_ext >&5
30440
John Criswell7a73b802003-06-30 21:59:07 +000030441( exit $ac_status )
30442ac_cv_func_mmap_fixed_mapped=no
30443fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030444rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030445fi
30446fi
30447echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30448echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30449if test $ac_cv_func_mmap_fixed_mapped = yes; then
30450
30451cat >>confdefs.h <<\_ACEOF
30452#define HAVE_MMAP 1
30453_ACEOF
30454
30455fi
30456rm -f conftest.mmap
30457
30458echo "$as_me:$LINENO: checking for mmap of files" >&5
30459echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30460if test "${ac_cv_func_mmap_file+set}" = set; then
30461 echo $ECHO_N "(cached) $ECHO_C" >&6
30462else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030463 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030464ac_cpp='$CPP $CPPFLAGS'
30465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30467ac_compiler_gnu=$ac_cv_c_compiler_gnu
30468
30469 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030470 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030471else
30472 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030473
Reid Spencer777ce172004-09-20 04:09:56 +000030474 /* confdefs.h. */
30475_ACEOF
30476cat confdefs.h >>conftest.$ac_ext
30477cat >>conftest.$ac_ext <<_ACEOF
30478/* end confdefs.h. */
30479
John Criswell7a73b802003-06-30 21:59:07 +000030480#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030481#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030482#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030483
30484int
30485main ()
30486{
John Criswell7a73b802003-06-30 21:59:07 +000030487
30488 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030489 fd = creat ("foo",0777);
30490 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30491 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030492 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030493 ;
30494 return 0;
30495}
John Criswell7a73b802003-06-30 21:59:07 +000030496_ACEOF
30497rm -f conftest$ac_exeext
30498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30499 (eval $ac_link) 2>&5
30500 ac_status=$?
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30504 (eval $ac_try) 2>&5
30505 ac_status=$?
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); }; }; then
30508 ac_cv_func_mmap_file=yes
30509else
30510 echo "$as_me: program exited with status $ac_status" >&5
30511echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030512sed 's/^/| /' conftest.$ac_ext >&5
30513
John Criswell7a73b802003-06-30 21:59:07 +000030514( exit $ac_status )
30515ac_cv_func_mmap_file=no
30516fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030517rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030518fi
30519 ac_ext=c
30520ac_cpp='$CPP $CPPFLAGS'
30521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30523ac_compiler_gnu=$ac_cv_c_compiler_gnu
30524
30525
30526fi
30527echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30528echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30529if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030530
30531cat >>confdefs.h <<\_ACEOF
30532#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030533_ACEOF
30534
30535 MMAP_FILE=yes
30536
30537fi
30538
Reid Spencer7931a782004-12-27 06:15:02 +000030539echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30540echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30541if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30542 echo $ECHO_N "(cached) $ECHO_C" >&6
30543else
Reid Spencer582a23c2004-12-29 07:07:57 +000030544 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030545 ac_cv_need_dev_zero_for_mmap=yes
30546 else
30547 ac_cv_need_dev_zero_for_mmap=no
30548 fi
30549
30550fi
30551echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30552echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30553if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30554
30555cat >>confdefs.h <<\_ACEOF
30556#define NEED_DEV_ZERO_FOR_MMAP 1
30557_ACEOF
30558
30559fi
John Criswell7a73b802003-06-30 21:59:07 +000030560echo "$as_me:$LINENO: checking for mprotect" >&5
30561echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30562if test "${ac_cv_func_mprotect+set}" = set; then
30563 echo $ECHO_N "(cached) $ECHO_C" >&6
30564else
30565 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030566/* confdefs.h. */
30567_ACEOF
30568cat confdefs.h >>conftest.$ac_ext
30569cat >>conftest.$ac_ext <<_ACEOF
30570/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030571/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30573#define mprotect innocuous_mprotect
30574
John Criswell7a73b802003-06-30 21:59:07 +000030575/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030576 which can conflict with char mprotect (); below.
30577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30578 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030579
John Criswell0c38eaf2003-09-10 15:17:25 +000030580#ifdef __STDC__
30581# include <limits.h>
30582#else
30583# include <assert.h>
30584#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030585
30586#undef mprotect
30587
John Criswell7a73b802003-06-30 21:59:07 +000030588/* Override any gcc2 internal prototype to avoid an error. */
30589#ifdef __cplusplus
30590extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030591{
John Criswell7a73b802003-06-30 21:59:07 +000030592#endif
30593/* We use char because int might match the return type of a gcc2
30594 builtin and then its argument prototype would still apply. */
30595char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030596/* The GNU C library defines this for functions which it implements
30597 to always fail with ENOSYS. Some functions are actually named
30598 something starting with __ and the normal name is an alias. */
30599#if defined (__stub_mprotect) || defined (__stub___mprotect)
30600choke me
30601#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030602char (*f) () = mprotect;
30603#endif
30604#ifdef __cplusplus
30605}
John Criswell7a73b802003-06-30 21:59:07 +000030606#endif
30607
John Criswell0c38eaf2003-09-10 15:17:25 +000030608int
30609main ()
30610{
30611return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030612 ;
30613 return 0;
30614}
30615_ACEOF
30616rm -f conftest.$ac_objext conftest$ac_exeext
30617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030618 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030619 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030620 grep -v '^ *+' conftest.er1 >conftest.err
30621 rm -f conftest.er1
30622 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030625 { ac_try='test -z "$ac_c_werror_flag"
30626 || test ! -s conftest.err'
30627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30628 (eval $ac_try) 2>&5
30629 ac_status=$?
30630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631 (exit $ac_status); }; } &&
30632 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30634 (eval $ac_try) 2>&5
30635 ac_status=$?
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); }; }; then
30638 ac_cv_func_mprotect=yes
30639else
30640 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030641sed 's/^/| /' conftest.$ac_ext >&5
30642
John Criswell7a73b802003-06-30 21:59:07 +000030643ac_cv_func_mprotect=no
30644fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030645rm -f conftest.err conftest.$ac_objext \
30646 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030647fi
30648echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30649echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30650if test $ac_cv_func_mprotect = yes; then
30651 :
30652else
30653 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30654echo "$as_me: error: Function mprotect() required but not found" >&2;}
30655 { (exit 1); exit 1; }; }
30656fi
30657
30658
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030659if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030660then
Reid Spencer582a23c2004-12-29 07:07:57 +000030661 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30662echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030663fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030664if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030665then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030666 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30667echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030668fi
John Criswell7a73b802003-06-30 21:59:07 +000030669
30670
Brian Gaekef3b24102003-11-16 18:38:14 +000030671echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30672echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030673if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30674 echo $ECHO_N "(cached) $ECHO_C" >&6
30675else
30676 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030677if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030678 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000030679 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030680 if test $? -eq 0 ; then
30681 llvm_cv_llvmgcc_sanity="yes"
30682 fi
30683 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030684fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030685fi
30686echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30687echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30688
30689if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030690 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030691 LLVMCC1=$llvmcc1path
30692
Reid Spencer502935f2004-12-22 05:56:56 +000030693 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030694 LLVMCC1PLUS=$llvmcc1pluspath
30695
Reid Spencer502935f2004-12-22 05:56:56 +000030696 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30697 LLVMGCCDIR=$llvmgccdir
30698
Reid Spencer7917d3a2006-04-06 22:00:36 +000030699 llvmgccversion=`"$LLVMGCC" -v 2>&1 | grep '^gcc version' | sed 's/^gcc version \([0-9.]*\).*/\1/'`
30700 llvmgccmajvers=`echo $llvmgccversion | sed 's/^\([0-9]\).*/\1/'`
30701 LLVMGCC_VERSION=$llvmgccversion
30702
30703 LLVMGCC_MAJVERS=$llvmgccmajvers
30704
Brian Gaekef3b24102003-11-16 18:38:14 +000030705fi
30706
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030707SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030708
30709
Reid Spencere9de0912004-08-20 09:03:57 +000030710# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030711# information into substitutions that will end up in Makefile.config.in
30712# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030713eval LLVM_PREFIX="${prefix}";
30714eval LLVM_BINDIR="${prefix}/bin";
30715eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030716eval LLVM_DATADIR="${prefix}/share/llvm";
30717eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30718eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030719eval LLVM_INCLUDEDIR="${prefix}/include";
30720eval LLVM_INFODIR="${prefix}/info";
30721eval LLVM_MANDIR="${prefix}/man";
30722LLVM_CONFIGTIME=`date`
30723
30724
30725
30726
30727
30728
30729
30730
30731
30732
30733
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030734# Place the various directores into the config.h file as #defines so that we
30735# can know about the installation paths within LLVM.
30736
Reid Spencere9de0912004-08-20 09:03:57 +000030737cat >>confdefs.h <<_ACEOF
30738#define LLVM_PREFIX "$LLVM_PREFIX"
30739_ACEOF
30740
30741
30742cat >>confdefs.h <<_ACEOF
30743#define LLVM_BINDIR "$LLVM_BINDIR"
30744_ACEOF
30745
30746
30747cat >>confdefs.h <<_ACEOF
30748#define LLVM_LIBDIR "$LLVM_LIBDIR"
30749_ACEOF
30750
30751
30752cat >>confdefs.h <<_ACEOF
30753#define LLVM_DATADIR "$LLVM_DATADIR"
30754_ACEOF
30755
30756
30757cat >>confdefs.h <<_ACEOF
30758#define LLVM_DATADIR "$LLVM_DOCSDIR"
30759_ACEOF
30760
30761
30762cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030763#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030764_ACEOF
30765
30766
30767cat >>confdefs.h <<_ACEOF
30768#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30769_ACEOF
30770
30771
30772cat >>confdefs.h <<_ACEOF
30773#define LLVM_INFODIR "$LLVM_INFODIR"
30774_ACEOF
30775
30776
30777cat >>confdefs.h <<_ACEOF
30778#define LLVM_MANDIR "$LLVM_MANDIR"
30779_ACEOF
30780
30781
30782cat >>confdefs.h <<_ACEOF
30783#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30784_ACEOF
30785
30786
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030787
30788 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30789
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030790 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30791
30792 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30793
30794 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30795
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030796 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30797
30798
30799 ac_config_files="$ac_config_files Makefile.config"
30800
30801
Reid Spencer1f319422004-11-29 04:56:35 +000030802 ac_config_files="$ac_config_files docs/doxygen.cfg"
30803
30804
Reid Spencerf2722ca2006-03-22 15:59:55 +000030805 ac_config_files="$ac_config_files utils/llvm-config/llvm-config.in"
30806
30807
Reid Spencerc0682832005-02-24 19:05:19 +000030808 ac_config_commands="$ac_config_commands setup"
30809
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030810 ac_config_commands="$ac_config_commands Makefile"
30811
30812
30813 ac_config_commands="$ac_config_commands Makefile.common"
30814
30815
30816 ac_config_commands="$ac_config_commands examples/Makefile"
30817
30818
30819 ac_config_commands="$ac_config_commands lib/Makefile"
30820
30821
30822 ac_config_commands="$ac_config_commands runtime/Makefile"
30823
30824
30825 ac_config_commands="$ac_config_commands test/Makefile"
30826
30827
30828 ac_config_commands="$ac_config_commands test/Makefile.tests"
30829
30830
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030831 ac_config_commands="$ac_config_commands tools/Makefile"
30832
30833
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030834 ac_config_commands="$ac_config_commands utils/Makefile"
30835
30836
30837 ac_config_commands="$ac_config_commands projects/Makefile"
30838
30839
30840
John Criswell7a73b802003-06-30 21:59:07 +000030841cat >confcache <<\_ACEOF
30842# This file is a shell script that caches the results of configure
30843# tests run on this system so they can be shared between configure
30844# scripts and configure runs, see configure's option --config-cache.
30845# It is not useful on other systems. If it contains results you don't
30846# want to keep, you may remove or edit it.
30847#
30848# config.status only pays attention to the cache file if you give it
30849# the --recheck option to rerun configure.
30850#
John Criswell0c38eaf2003-09-10 15:17:25 +000030851# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030852# loading this file, other *unset* `ac_cv_foo' will be assigned the
30853# following values.
30854
30855_ACEOF
30856
30857# The following way of writing the cache mishandles newlines in values,
30858# but we know of no workaround that is simple, portable, and efficient.
30859# So, don't put newlines in cache variables' values.
30860# Ultrix sh set writes to stderr and can't be redirected directly,
30861# and sets the high bit in the cache file unless we assign to the vars.
30862{
30863 (set) 2>&1 |
30864 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30865 *ac_space=\ *)
30866 # `set' does not quote correctly, so add quotes (double-quote
30867 # substitution turns \\\\ into \\, and sed turns \\ into \).
30868 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030869 "s/'/'\\\\''/g;
30870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030871 ;;
30872 *)
30873 # `set' quotes correctly as required by POSIX, so do not add quotes.
30874 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030875 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030876 ;;
30877 esac;
30878} |
30879 sed '
30880 t clear
30881 : clear
30882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30883 t end
30884 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30885 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030886if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030887 if test -w $cache_file; then
30888 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30889 cat confcache >$cache_file
30890 else
30891 echo "not updating unwritable cache $cache_file"
30892 fi
30893fi
30894rm -f confcache
30895
30896test "x$prefix" = xNONE && prefix=$ac_default_prefix
30897# Let make expand exec_prefix.
30898test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30899
30900# VPATH may cause trouble with some makes, so we remove $(srcdir),
30901# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30902# trailing colons and then remove the whole line if VPATH becomes empty
30903# (actually we leave an empty line to preserve line numbers).
30904if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030905 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030906s/:*\$(srcdir):*/:/;
30907s/:*\${srcdir}:*/:/;
30908s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030909s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030910s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030911s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030912}'
30913fi
30914
30915DEFS=-DHAVE_CONFIG_H
30916
John Criswell0c38eaf2003-09-10 15:17:25 +000030917ac_libobjs=
30918ac_ltlibobjs=
30919for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30920 # 1. Remove the extension, and $U if already installed.
30921 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030922 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030923 # 2. Add them.
30924 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30925 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30926done
30927LIBOBJS=$ac_libobjs
30928
30929LTLIBOBJS=$ac_ltlibobjs
30930
30931
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030932if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30933 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30934Usually this means the macro was only invoked conditionally." >&5
30935echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30936Usually this means the macro was only invoked conditionally." >&2;}
30937 { (exit 1); exit 1; }; }
30938fi
30939if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30940 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30941Usually this means the macro was only invoked conditionally." >&5
30942echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30943Usually this means the macro was only invoked conditionally." >&2;}
30944 { (exit 1); exit 1; }; }
30945fi
John Criswell7a73b802003-06-30 21:59:07 +000030946
30947: ${CONFIG_STATUS=./config.status}
30948ac_clean_files_save=$ac_clean_files
30949ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30950{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30951echo "$as_me: creating $CONFIG_STATUS" >&6;}
30952cat >$CONFIG_STATUS <<_ACEOF
30953#! $SHELL
30954# Generated by $as_me.
30955# Run this file to recreate the current configuration.
30956# Compiler output produced by configure, useful for debugging
30957# configure, is in config.log if it exists.
30958
30959debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030960ac_cs_recheck=false
30961ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030962SHELL=\${CONFIG_SHELL-$SHELL}
30963_ACEOF
30964
30965cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030966## --------------------- ##
30967## M4sh Initialization. ##
30968## --------------------- ##
30969
30970# Be Bourne compatible
30971if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30972 emulate sh
30973 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030974 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30975 # is contrary to our usage. Disable this feature.
30976 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030977elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30978 set -o posix
30979fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030980DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030981
John Criswell7a73b802003-06-30 21:59:07 +000030982# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030983if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030984 as_unset=unset
30985else
30986 as_unset=false
30987fi
30988
John Criswell0c38eaf2003-09-10 15:17:25 +000030989
30990# Work around bugs in pre-3.0 UWIN ksh.
30991$as_unset ENV MAIL MAILPATH
30992PS1='$ '
30993PS2='> '
30994PS4='+ '
30995
30996# NLS nuisances.
30997for as_var in \
30998 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30999 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31000 LC_TELEPHONE LC_TIME
31001do
Reid Spencer2706f8c2004-09-19 23:53:36 +000031002 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000031003 eval $as_var=C; export $as_var
31004 else
31005 $as_unset $as_var
31006 fi
31007done
31008
31009# Required to use basename.
31010if expr a : '\(a\)' >/dev/null 2>&1; then
31011 as_expr=expr
31012else
31013 as_expr=false
31014fi
31015
31016if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31017 as_basename=basename
31018else
31019 as_basename=false
31020fi
John Criswell7a73b802003-06-30 21:59:07 +000031021
31022
31023# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000031024as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000031025$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31026 X"$0" : 'X\(//\)$' \| \
31027 X"$0" : 'X\(/\)$' \| \
31028 . : '\(.\)' 2>/dev/null ||
31029echo X/"$0" |
31030 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31031 /^X\/\(\/\/\)$/{ s//\1/; q; }
31032 /^X\/\(\/\).*/{ s//\1/; q; }
31033 s/.*/./; q'`
31034
John Criswell0c38eaf2003-09-10 15:17:25 +000031035
John Criswell7a73b802003-06-30 21:59:07 +000031036# PATH needs CR, and LINENO needs CR and PATH.
31037# Avoid depending upon Character Ranges.
31038as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31039as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31040as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31041as_cr_digits='0123456789'
31042as_cr_alnum=$as_cr_Letters$as_cr_digits
31043
31044# The user is always right.
31045if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031046 echo "#! /bin/sh" >conf$$.sh
31047 echo "exit 0" >>conf$$.sh
31048 chmod +x conf$$.sh
31049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031050 PATH_SEPARATOR=';'
31051 else
31052 PATH_SEPARATOR=:
31053 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000031054 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000031055fi
31056
31057
31058 as_lineno_1=$LINENO
31059 as_lineno_2=$LINENO
31060 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31061 test "x$as_lineno_1" != "x$as_lineno_2" &&
31062 test "x$as_lineno_3" = "x$as_lineno_2" || {
31063 # Find who we are. Look in the path if we contain no path at all
31064 # relative or not.
31065 case $0 in
31066 *[\\/]* ) as_myself=$0 ;;
31067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31068for as_dir in $PATH
31069do
31070 IFS=$as_save_IFS
31071 test -z "$as_dir" && as_dir=.
31072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31073done
31074
31075 ;;
31076 esac
31077 # We did not find ourselves, most probably we were run as `sh COMMAND'
31078 # in which case we are not to be found in the path.
31079 if test "x$as_myself" = x; then
31080 as_myself=$0
31081 fi
31082 if test ! -f "$as_myself"; then
31083 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31084echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31085 { (exit 1); exit 1; }; }
31086 fi
31087 case $CONFIG_SHELL in
31088 '')
31089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31090for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31091do
31092 IFS=$as_save_IFS
31093 test -z "$as_dir" && as_dir=.
31094 for as_base in sh bash ksh sh5; do
31095 case $as_dir in
31096 /*)
31097 if ("$as_dir/$as_base" -c '
31098 as_lineno_1=$LINENO
31099 as_lineno_2=$LINENO
31100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31101 test "x$as_lineno_1" != "x$as_lineno_2" &&
31102 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031103 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31104 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000031105 CONFIG_SHELL=$as_dir/$as_base
31106 export CONFIG_SHELL
31107 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31108 fi;;
31109 esac
31110 done
31111done
31112;;
31113 esac
31114
31115 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31116 # uniformly replaced by the line number. The first 'sed' inserts a
31117 # line-number line before each line; the second 'sed' does the real
31118 # work. The second script uses 'N' to pair each line-number line
31119 # with the numbered line, and appends trailing '-' during
31120 # substitution so that $LINENO is not a special case at line end.
31121 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31122 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31123 sed '=' <$as_myself |
31124 sed '
31125 N
31126 s,$,-,
31127 : loop
31128 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31129 t loop
31130 s,-$,,
31131 s,^['$as_cr_digits']*\n,,
31132 ' >$as_me.lineno &&
31133 chmod +x $as_me.lineno ||
31134 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31135echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31136 { (exit 1); exit 1; }; }
31137
31138 # Don't try to exec as it changes $[0], causing all sort of problems
31139 # (the dirname of $[0] is not the place where we might find the
31140 # original and so on. Autoconf is especially sensible to this).
31141 . ./$as_me.lineno
31142 # Exit status is that of the last command.
31143 exit
31144}
31145
31146
31147case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31148 *c*,-n*) ECHO_N= ECHO_C='
31149' ECHO_T=' ' ;;
31150 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31151 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31152esac
31153
31154if expr a : '\(a\)' >/dev/null 2>&1; then
31155 as_expr=expr
31156else
31157 as_expr=false
31158fi
31159
31160rm -f conf$$ conf$$.exe conf$$.file
31161echo >conf$$.file
31162if ln -s conf$$.file conf$$ 2>/dev/null; then
31163 # We could just check for DJGPP; but this test a) works b) is more generic
31164 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31165 if test -f conf$$.exe; then
31166 # Don't use ln at all; we don't have any links
31167 as_ln_s='cp -p'
31168 else
31169 as_ln_s='ln -s'
31170 fi
31171elif ln conf$$.file conf$$ 2>/dev/null; then
31172 as_ln_s=ln
31173else
31174 as_ln_s='cp -p'
31175fi
31176rm -f conf$$ conf$$.exe conf$$.file
31177
John Criswell0c38eaf2003-09-10 15:17:25 +000031178if mkdir -p . 2>/dev/null; then
31179 as_mkdir_p=:
31180else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031181 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000031182 as_mkdir_p=false
31183fi
31184
John Criswell7a73b802003-06-30 21:59:07 +000031185as_executable_p="test -f"
31186
31187# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031188as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031189
31190# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031191as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031192
31193
31194# IFS
31195# We need space, tab and new line, in precisely that order.
31196as_nl='
31197'
31198IFS=" $as_nl"
31199
31200# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000031201$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000031202
31203exec 6>&1
31204
31205# Open the log real soon, to keep \$[0] and so on meaningful, and to
31206# report actual input values of CONFIG_FILES etc. instead of their
31207# values after options handling. Logging --version etc. is OK.
31208exec 5>>config.log
31209{
31210 echo
31211 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31212## Running $as_me. ##
31213_ASBOX
31214} >&5
31215cat >&5 <<_CSEOF
31216
John Criswelle2503892005-11-08 21:13:01 +000031217This file was extended by llvm $as_me 1.7cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000031218generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000031219
31220 CONFIG_FILES = $CONFIG_FILES
31221 CONFIG_HEADERS = $CONFIG_HEADERS
31222 CONFIG_LINKS = $CONFIG_LINKS
31223 CONFIG_COMMANDS = $CONFIG_COMMANDS
31224 $ $0 $@
31225
31226_CSEOF
31227echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31228echo >&5
31229_ACEOF
31230
31231# Files that config.status was made for.
31232if test -n "$ac_config_files"; then
31233 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31234fi
31235
31236if test -n "$ac_config_headers"; then
31237 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31238fi
31239
31240if test -n "$ac_config_links"; then
31241 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31242fi
31243
31244if test -n "$ac_config_commands"; then
31245 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31246fi
31247
31248cat >>$CONFIG_STATUS <<\_ACEOF
31249
31250ac_cs_usage="\
31251\`$as_me' instantiates files from templates according to the
31252current configuration.
31253
31254Usage: $0 [OPTIONS] [FILE]...
31255
31256 -h, --help print this help, then exit
31257 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031258 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031259 -d, --debug don't remove temporary files
31260 --recheck update $as_me by reconfiguring in the same conditions
31261 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031262 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031263 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031264 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031265
31266Configuration files:
31267$config_files
31268
31269Configuration headers:
31270$config_headers
31271
John Criswellc764fbc2003-09-06 15:17:13 +000031272Configuration commands:
31273$config_commands
31274
John Criswell7a73b802003-06-30 21:59:07 +000031275Report bugs to <bug-autoconf@gnu.org>."
31276_ACEOF
31277
31278cat >>$CONFIG_STATUS <<_ACEOF
31279ac_cs_version="\\
John Criswelle2503892005-11-08 21:13:01 +000031280llvm config.status 1.7cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031281configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031282 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31283
Reid Spencer2706f8c2004-09-19 23:53:36 +000031284Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031285This config.status script is free software; the Free Software Foundation
31286gives unlimited permission to copy, distribute and modify it."
31287srcdir=$srcdir
31288INSTALL="$INSTALL"
31289_ACEOF
31290
31291cat >>$CONFIG_STATUS <<\_ACEOF
31292# If no file are specified by the user, then we need to provide default
31293# value. By we need to know if files were specified by the user.
31294ac_need_defaults=:
31295while test $# != 0
31296do
31297 case $1 in
31298 --*=*)
31299 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31300 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031301 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031302 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031303 -*)
31304 ac_option=$1
31305 ac_optarg=$2
31306 ac_shift=shift
31307 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031308 *) # This is not an option, so the user has probably given explicit
31309 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031310 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031311 ac_need_defaults=false;;
31312 esac
31313
John Criswell0c38eaf2003-09-10 15:17:25 +000031314 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031315 # Handling of the options.
31316_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031317cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31319 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031320 --version | --vers* | -V )
31321 echo "$ac_cs_version"; exit 0 ;;
31322 --he | --h)
31323 # Conflict between --help and --header
31324 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31325Try \`$0 --help' for more information." >&5
31326echo "$as_me: error: ambiguous option: $1
31327Try \`$0 --help' for more information." >&2;}
31328 { (exit 1); exit 1; }; };;
31329 --help | --hel | -h )
31330 echo "$ac_cs_usage"; exit 0 ;;
31331 --debug | --d* | -d )
31332 debug=: ;;
31333 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031334 $ac_shift
31335 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031336 ac_need_defaults=false;;
31337 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031338 $ac_shift
31339 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031340 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31342 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31343 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031344
31345 # This is an error.
31346 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31347Try \`$0 --help' for more information." >&5
31348echo "$as_me: error: unrecognized option: $1
31349Try \`$0 --help' for more information." >&2;}
31350 { (exit 1); exit 1; }; } ;;
31351
31352 *) ac_config_targets="$ac_config_targets $1" ;;
31353
31354 esac
31355 shift
31356done
31357
John Criswell0c38eaf2003-09-10 15:17:25 +000031358ac_configure_extra_args=
31359
31360if $ac_cs_silent; then
31361 exec 6>/dev/null
31362 ac_configure_extra_args="$ac_configure_extra_args --silent"
31363fi
31364
31365_ACEOF
31366cat >>$CONFIG_STATUS <<_ACEOF
31367if \$ac_cs_recheck; then
31368 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31369 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31370fi
31371
John Criswell7a73b802003-06-30 21:59:07 +000031372_ACEOF
31373
John Criswellc764fbc2003-09-06 15:17:13 +000031374cat >>$CONFIG_STATUS <<_ACEOF
31375#
31376# INIT-COMMANDS section.
31377#
John Criswell7a73b802003-06-30 21:59:07 +000031378
Reid Spencerc0682832005-02-24 19:05:19 +000031379llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031380
31381_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031382
31383
31384
31385cat >>$CONFIG_STATUS <<\_ACEOF
31386for ac_config_target in $ac_config_targets
31387do
31388 case "$ac_config_target" in
31389 # Handling of arguments.
31390 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031391 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerf2722ca2006-03-22 15:59:55 +000031392 "utils/llvm-config/llvm-config.in" ) CONFIG_FILES="$CONFIG_FILES utils/llvm-config/llvm-config.in" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031393 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031394 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31395 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031396 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031397 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031398 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031399 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31400 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031401 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031402 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031403 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031404 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031405 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031406 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31407 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031408 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031409 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31410echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31411 { (exit 1); exit 1; }; };;
31412 esac
31413done
31414
31415# If the user did not use the arguments to specify the items to instantiate,
31416# then the envvar interface is used. Set only those that are not.
31417# We use the long form for the default assignment because of an extremely
31418# bizarre bug on SunOS 4.1.3.
31419if $ac_need_defaults; then
31420 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31421 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031422 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031423fi
31424
John Criswell0c38eaf2003-09-10 15:17:25 +000031425# Have a temporary directory for convenience. Make it in the build tree
31426# simply because there is no reason to put it here, and in addition,
31427# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031428# Create a temporary directory, and hook for its removal unless debugging.
31429$debug ||
31430{
31431 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31432 trap '{ (exit 1); exit 1; }' 1 2 13 15
31433}
31434
31435# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031436
John Criswell7a73b802003-06-30 21:59:07 +000031437{
John Criswell0c38eaf2003-09-10 15:17:25 +000031438 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031439 test -n "$tmp" && test -d "$tmp"
31440} ||
31441{
John Criswell0c38eaf2003-09-10 15:17:25 +000031442 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031443 (umask 077 && mkdir $tmp)
31444} ||
31445{
John Criswell0c38eaf2003-09-10 15:17:25 +000031446 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031447 { (exit 1); exit 1; }
31448}
31449
31450_ACEOF
31451
31452cat >>$CONFIG_STATUS <<_ACEOF
31453
31454#
31455# CONFIG_FILES section.
31456#
31457
31458# No need to generate the scripts if there are no CONFIG_FILES.
31459# This happens for instance when ./config.status config.h
31460if test -n "\$CONFIG_FILES"; then
31461 # Protect against being on the right side of a sed subst in config.status.
31462 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31463 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31464s,@SHELL@,$SHELL,;t t
31465s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31466s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31467s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31468s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31469s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31470s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31471s,@exec_prefix@,$exec_prefix,;t t
31472s,@prefix@,$prefix,;t t
31473s,@program_transform_name@,$program_transform_name,;t t
31474s,@bindir@,$bindir,;t t
31475s,@sbindir@,$sbindir,;t t
31476s,@libexecdir@,$libexecdir,;t t
31477s,@datadir@,$datadir,;t t
31478s,@sysconfdir@,$sysconfdir,;t t
31479s,@sharedstatedir@,$sharedstatedir,;t t
31480s,@localstatedir@,$localstatedir,;t t
31481s,@libdir@,$libdir,;t t
31482s,@includedir@,$includedir,;t t
31483s,@oldincludedir@,$oldincludedir,;t t
31484s,@infodir@,$infodir,;t t
31485s,@mandir@,$mandir,;t t
31486s,@build_alias@,$build_alias,;t t
31487s,@host_alias@,$host_alias,;t t
31488s,@target_alias@,$target_alias,;t t
31489s,@DEFS@,$DEFS,;t t
31490s,@ECHO_C@,$ECHO_C,;t t
31491s,@ECHO_N@,$ECHO_N,;t t
31492s,@ECHO_T@,$ECHO_T,;t t
31493s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031494s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031495s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031496s,@build@,$build,;t t
31497s,@build_cpu@,$build_cpu,;t t
31498s,@build_vendor@,$build_vendor,;t t
31499s,@build_os@,$build_os,;t t
31500s,@host@,$host,;t t
31501s,@host_cpu@,$host_cpu,;t t
31502s,@host_vendor@,$host_vendor,;t t
31503s,@host_os@,$host_os,;t t
31504s,@target@,$target,;t t
31505s,@target_cpu@,$target_cpu,;t t
31506s,@target_vendor@,$target_vendor,;t t
31507s,@target_os@,$target_os,;t t
31508s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031509s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31510s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031511s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031512s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031513s,@CC@,$CC,;t t
31514s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031515s,@LDFLAGS@,$LDFLAGS,;t t
31516s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031517s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031518s,@EXEEXT@,$EXEEXT,;t t
31519s,@OBJEXT@,$OBJEXT,;t t
31520s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
Reid Spencer6e96d812005-12-21 03:31:53 +000031521s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031522s,@JIT@,$JIT,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031523s,@TARGET_HAS_JIT@,$TARGET_HAS_JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031524s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer0a262ba2005-08-24 10:07:20 +000031525s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031526s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031527s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031528s,@CXX@,$CXX,;t t
31529s,@CXXFLAGS@,$CXXFLAGS,;t t
31530s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031531s,@LEX@,$LEX,;t t
31532s,@LEXLIB@,$LEXLIB,;t t
31533s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031534s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031535s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031536s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031537s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031538s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031539s,@CMP@,$CMP,;t t
31540s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031541s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031542s,@FIND@,$FIND,;t t
31543s,@GREP@,$GREP,;t t
31544s,@MKDIR@,$MKDIR,;t t
31545s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031546s,@RANLIB@,$RANLIB,;t t
31547s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031548s,@RM@,$RM,;t t
31549s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031550s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000031551s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencerbe130282005-07-14 05:19:12 +000031552s,@GV@,$GV,;t t
Reid Spencerb195d9d2006-03-23 23:21:29 +000031553s,@PERL@,$PERL,;t t
31554s,@HAVE_PERL@,$HAVE_PERL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031555s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31556s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31557s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031558s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031559s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031560s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031561s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031562s,@GROFF@,$GROFF,;t t
31563s,@GZIP@,$GZIP,;t t
31564s,@POD2HTML@,$POD2HTML,;t t
31565s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031566s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031567s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031568s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031569s,@EGREP@,$EGREP,;t t
31570s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31571s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31572s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31573s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31574s,@LIBADD_DL@,$LIBADD_DL,;t t
31575s,@ECHO@,$ECHO,;t t
31576s,@AR@,$AR,;t t
31577s,@ac_ct_AR@,$ac_ct_AR,;t t
31578s,@STRIP@,$STRIP,;t t
31579s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31580s,@CXXCPP@,$CXXCPP,;t t
31581s,@F77@,$F77,;t t
31582s,@FFLAGS@,$FFLAGS,;t t
31583s,@ac_ct_F77@,$ac_ct_F77,;t t
31584s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031585s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031586s,@LLVMGCC@,$LLVMGCC,;t t
31587s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031588s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031589s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031590s,@LLVMCC1@,$LLVMCC1,;t t
31591s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031592s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Reid Spencer7917d3a2006-04-06 22:00:36 +000031593s,@LLVMGCC_VERSION@,$LLVMGCC_VERSION,;t t
31594s,@LLVMGCC_MAJVERS@,$LLVMGCC_MAJVERS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031595s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031596s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31597s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31598s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31599s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31600s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31601s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31602s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31603s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31604s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31605s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031606s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031607s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031608CEOF
31609
31610_ACEOF
31611
31612 cat >>$CONFIG_STATUS <<\_ACEOF
31613 # Split the substitutions into bite-sized pieces for seds with
31614 # small command number limits, like on Digital OSF/1 and HP-UX.
31615 ac_max_sed_lines=48
31616 ac_sed_frag=1 # Number of current file.
31617 ac_beg=1 # First line for current file.
31618 ac_end=$ac_max_sed_lines # Line after last line for current file.
31619 ac_more_lines=:
31620 ac_sed_cmds=
31621 while $ac_more_lines; do
31622 if test $ac_beg -gt 1; then
31623 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31624 else
31625 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31626 fi
31627 if test ! -s $tmp/subs.frag; then
31628 ac_more_lines=false
31629 else
31630 # The purpose of the label and of the branching condition is to
31631 # speed up the sed processing (if there are no `@' at all, there
31632 # is no need to browse any of the substitutions).
31633 # These are the two extra sed commands mentioned above.
31634 (echo ':t
31635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31636 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031637 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031638 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031639 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031640 fi
31641 ac_sed_frag=`expr $ac_sed_frag + 1`
31642 ac_beg=$ac_end
31643 ac_end=`expr $ac_end + $ac_max_sed_lines`
31644 fi
31645 done
31646 if test -z "$ac_sed_cmds"; then
31647 ac_sed_cmds=cat
31648 fi
31649fi # test -n "$CONFIG_FILES"
31650
31651_ACEOF
31652cat >>$CONFIG_STATUS <<\_ACEOF
31653for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31655 case $ac_file in
31656 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031657 cat >$tmp/stdin
31658 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31659 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031660 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031662 * ) ac_file_in=$ac_file.in ;;
31663 esac
31664
31665 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31666 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31667$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031668 X"$ac_file" : 'X\(//\)[^/]' \| \
31669 X"$ac_file" : 'X\(//\)$' \| \
31670 X"$ac_file" : 'X\(/\)' \| \
31671 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031672echo X"$ac_file" |
31673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31674 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31675 /^X\(\/\/\)$/{ s//\1/; q; }
31676 /^X\(\/\).*/{ s//\1/; q; }
31677 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031678 { if $as_mkdir_p; then
31679 mkdir -p "$ac_dir"
31680 else
31681 as_dir="$ac_dir"
31682 as_dirs=
31683 while test ! -d "$as_dir"; do
31684 as_dirs="$as_dir $as_dirs"
31685 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31686$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031687 X"$as_dir" : 'X\(//\)[^/]' \| \
31688 X"$as_dir" : 'X\(//\)$' \| \
31689 X"$as_dir" : 'X\(/\)' \| \
31690 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031691echo X"$as_dir" |
31692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31694 /^X\(\/\/\)$/{ s//\1/; q; }
31695 /^X\(\/\).*/{ s//\1/; q; }
31696 s/.*/./; q'`
31697 done
31698 test ! -n "$as_dirs" || mkdir $as_dirs
31699 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31700echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31701 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031702
31703 ac_builddir=.
31704
31705if test "$ac_dir" != .; then
31706 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31707 # A "../" for each directory in $ac_dir_suffix.
31708 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31709else
31710 ac_dir_suffix= ac_top_builddir=
31711fi
31712
31713case $srcdir in
31714 .) # No --srcdir option. We are building in place.
31715 ac_srcdir=.
31716 if test -z "$ac_top_builddir"; then
31717 ac_top_srcdir=.
31718 else
31719 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31720 fi ;;
31721 [\\/]* | ?:[\\/]* ) # Absolute path.
31722 ac_srcdir=$srcdir$ac_dir_suffix;
31723 ac_top_srcdir=$srcdir ;;
31724 *) # Relative path.
31725 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31726 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31727esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031728
31729# Do not use `cd foo && pwd` to compute absolute paths, because
31730# the directories may not exist.
31731case `pwd` in
31732.) ac_abs_builddir="$ac_dir";;
31733*)
31734 case "$ac_dir" in
31735 .) ac_abs_builddir=`pwd`;;
31736 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31737 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31738 esac;;
31739esac
31740case $ac_abs_builddir in
31741.) ac_abs_top_builddir=${ac_top_builddir}.;;
31742*)
31743 case ${ac_top_builddir}. in
31744 .) ac_abs_top_builddir=$ac_abs_builddir;;
31745 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31746 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31747 esac;;
31748esac
31749case $ac_abs_builddir in
31750.) ac_abs_srcdir=$ac_srcdir;;
31751*)
31752 case $ac_srcdir in
31753 .) ac_abs_srcdir=$ac_abs_builddir;;
31754 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31755 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31756 esac;;
31757esac
31758case $ac_abs_builddir in
31759.) ac_abs_top_srcdir=$ac_top_srcdir;;
31760*)
31761 case $ac_top_srcdir in
31762 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31763 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31764 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31765 esac;;
31766esac
John Criswell7a73b802003-06-30 21:59:07 +000031767
31768
31769 case $INSTALL in
31770 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31771 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31772 esac
31773
31774 if test x"$ac_file" != x-; then
31775 { echo "$as_me:$LINENO: creating $ac_file" >&5
31776echo "$as_me: creating $ac_file" >&6;}
31777 rm -f "$ac_file"
31778 fi
31779 # Let's still pretend it is `configure' which instantiates (i.e., don't
31780 # use $as_me), people would be surprised to read:
31781 # /* config.h. Generated by config.status. */
31782 if test x"$ac_file" = x-; then
31783 configure_input=
31784 else
31785 configure_input="$ac_file. "
31786 fi
31787 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031788 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031789
31790 # First look for the input files in the build tree, otherwise in the
31791 # src tree.
31792 ac_file_inputs=`IFS=:
31793 for f in $ac_file_in; do
31794 case $f in
31795 -) echo $tmp/stdin ;;
31796 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031797 # Absolute (can't be DOS-style, as IFS=:)
31798 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031799echo "$as_me: error: cannot find input file: $f" >&2;}
31800 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031801 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031802 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031803 if test -f "$f"; then
31804 # Build tree
31805 echo "$f"
31806 elif test -f "$srcdir/$f"; then
31807 # Source tree
31808 echo "$srcdir/$f"
31809 else
31810 # /dev/null tree
31811 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031812echo "$as_me: error: cannot find input file: $f" >&2;}
31813 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031814 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031815 esac
31816 done` || { (exit 1); exit 1; }
31817_ACEOF
31818cat >>$CONFIG_STATUS <<_ACEOF
31819 sed "$ac_vpsub
31820$extrasub
31821_ACEOF
31822cat >>$CONFIG_STATUS <<\_ACEOF
31823:t
31824/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31825s,@configure_input@,$configure_input,;t t
31826s,@srcdir@,$ac_srcdir,;t t
31827s,@abs_srcdir@,$ac_abs_srcdir,;t t
31828s,@top_srcdir@,$ac_top_srcdir,;t t
31829s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31830s,@builddir@,$ac_builddir,;t t
31831s,@abs_builddir@,$ac_abs_builddir,;t t
31832s,@top_builddir@,$ac_top_builddir,;t t
31833s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31834s,@INSTALL@,$ac_INSTALL,;t t
31835" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31836 rm -f $tmp/stdin
31837 if test x"$ac_file" != x-; then
31838 mv $tmp/out $ac_file
31839 else
31840 cat $tmp/out
31841 rm -f $tmp/out
31842 fi
31843
31844done
31845_ACEOF
31846cat >>$CONFIG_STATUS <<\_ACEOF
31847
31848#
31849# CONFIG_HEADER section.
31850#
31851
31852# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31853# NAME is the cpp macro being defined and VALUE is the value it is being given.
31854#
31855# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031856ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31857ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031858ac_dC=' '
31859ac_dD=',;t'
31860# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031861ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031862ac_uB='$,\1#\2define\3'
31863ac_uC=' '
31864ac_uD=',;t'
31865
31866for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31867 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31868 case $ac_file in
31869 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031870 cat >$tmp/stdin
31871 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31872 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031873 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031874 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031875 * ) ac_file_in=$ac_file.in ;;
31876 esac
31877
31878 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31879echo "$as_me: creating $ac_file" >&6;}
31880
31881 # First look for the input files in the build tree, otherwise in the
31882 # src tree.
31883 ac_file_inputs=`IFS=:
31884 for f in $ac_file_in; do
31885 case $f in
31886 -) echo $tmp/stdin ;;
31887 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031888 # Absolute (can't be DOS-style, as IFS=:)
31889 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031890echo "$as_me: error: cannot find input file: $f" >&2;}
31891 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031892 # Do quote $f, to prevent DOS paths from being IFS'd.
31893 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031894 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031895 if test -f "$f"; then
31896 # Build tree
31897 echo "$f"
31898 elif test -f "$srcdir/$f"; then
31899 # Source tree
31900 echo "$srcdir/$f"
31901 else
31902 # /dev/null tree
31903 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031904echo "$as_me: error: cannot find input file: $f" >&2;}
31905 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031906 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031907 esac
31908 done` || { (exit 1); exit 1; }
31909 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031910 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031911
31912_ACEOF
31913
31914# Transform confdefs.h into two sed scripts, `conftest.defines' and
31915# `conftest.undefs', that substitutes the proper values into
31916# config.h.in to produce config.h. The first handles `#define'
31917# templates, and the second `#undef' templates.
31918# And first: Protect against being on the right side of a sed subst in
31919# config.status. Protect against being in an unquoted here document
31920# in config.status.
31921rm -f conftest.defines conftest.undefs
31922# Using a here document instead of a string reduces the quoting nightmare.
31923# Putting comments in sed scripts is not portable.
31924#
31925# `end' is used to avoid that the second main sed command (meant for
31926# 0-ary CPP macros) applies to n-ary macro definitions.
31927# See the Autoconf documentation for `clear'.
31928cat >confdef2sed.sed <<\_ACEOF
31929s/[\\&,]/\\&/g
31930s,[\\$`],\\&,g
31931t clear
31932: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031933s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031934t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031935s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031936: end
31937_ACEOF
31938# If some macros were called several times there might be several times
31939# the same #defines, which is useless. Nevertheless, we may not want to
31940# sort them, since we want the *last* AC-DEFINE to be honored.
31941uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31942sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31943rm -f confdef2sed.sed
31944
31945# This sed command replaces #undef with comments. This is necessary, for
31946# example, in the case of _POSIX_SOURCE, which is predefined and required
31947# on some systems where configure will not decide to define it.
31948cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031949s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031950_ACEOF
31951
31952# Break up conftest.defines because some shells have a limit on the size
31953# of here documents, and old seds have small limits too (100 cmds).
31954echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031955echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031956echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31957echo ' :' >>$CONFIG_STATUS
31958rm -f conftest.tail
31959while grep . conftest.defines >/dev/null
31960do
31961 # Write a limited-size here document to $tmp/defines.sed.
31962 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31963 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031964 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031965 # Work around the forget-to-reset-the-flag bug.
31966 echo 't clr' >>$CONFIG_STATUS
31967 echo ': clr' >>$CONFIG_STATUS
31968 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31969 echo 'CEOF
31970 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31971 rm -f $tmp/in
31972 mv $tmp/out $tmp/in
31973' >>$CONFIG_STATUS
31974 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31975 rm -f conftest.defines
31976 mv conftest.tail conftest.defines
31977done
31978rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031979echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031980echo >>$CONFIG_STATUS
31981
31982# Break up conftest.undefs because some shells have a limit on the size
31983# of here documents, and old seds have small limits too (100 cmds).
31984echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31985rm -f conftest.tail
31986while grep . conftest.undefs >/dev/null
31987do
31988 # Write a limited-size here document to $tmp/undefs.sed.
31989 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31990 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031991 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031992 # Work around the forget-to-reset-the-flag bug.
31993 echo 't clr' >>$CONFIG_STATUS
31994 echo ': clr' >>$CONFIG_STATUS
31995 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31996 echo 'CEOF
31997 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31998 rm -f $tmp/in
31999 mv $tmp/out $tmp/in
32000' >>$CONFIG_STATUS
32001 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32002 rm -f conftest.undefs
32003 mv conftest.tail conftest.undefs
32004done
32005rm -f conftest.undefs
32006
32007cat >>$CONFIG_STATUS <<\_ACEOF
32008 # Let's still pretend it is `configure' which instantiates (i.e., don't
32009 # use $as_me), people would be surprised to read:
32010 # /* config.h. Generated by config.status. */
32011 if test x"$ac_file" = x-; then
32012 echo "/* Generated by configure. */" >$tmp/config.h
32013 else
32014 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
32015 fi
32016 cat $tmp/in >>$tmp/config.h
32017 rm -f $tmp/in
32018 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000032019 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000032020 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32021echo "$as_me: $ac_file is unchanged" >&6;}
32022 else
32023 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032025 X"$ac_file" : 'X\(//\)[^/]' \| \
32026 X"$ac_file" : 'X\(//\)$' \| \
32027 X"$ac_file" : 'X\(/\)' \| \
32028 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000032029echo X"$ac_file" |
32030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32032 /^X\(\/\/\)$/{ s//\1/; q; }
32033 /^X\(\/\).*/{ s//\1/; q; }
32034 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000032035 { if $as_mkdir_p; then
32036 mkdir -p "$ac_dir"
32037 else
32038 as_dir="$ac_dir"
32039 as_dirs=
32040 while test ! -d "$as_dir"; do
32041 as_dirs="$as_dir $as_dirs"
32042 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32043$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032044 X"$as_dir" : 'X\(//\)[^/]' \| \
32045 X"$as_dir" : 'X\(//\)$' \| \
32046 X"$as_dir" : 'X\(/\)' \| \
32047 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000032048echo X"$as_dir" |
32049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32051 /^X\(\/\/\)$/{ s//\1/; q; }
32052 /^X\(\/\).*/{ s//\1/; q; }
32053 s/.*/./; q'`
32054 done
32055 test ! -n "$as_dirs" || mkdir $as_dirs
32056 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32057echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32058 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000032059
32060 rm -f $ac_file
32061 mv $tmp/config.h $ac_file
32062 fi
32063 else
32064 cat $tmp/config.h
32065 rm -f $tmp/config.h
32066 fi
32067done
32068_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000032069cat >>$CONFIG_STATUS <<\_ACEOF
32070
32071#
32072# CONFIG_COMMANDS section.
32073#
32074for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32075 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32076 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32077 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32078$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032079 X"$ac_dest" : 'X\(//\)[^/]' \| \
32080 X"$ac_dest" : 'X\(//\)$' \| \
32081 X"$ac_dest" : 'X\(/\)' \| \
32082 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000032083echo X"$ac_dest" |
32084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32085 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32086 /^X\(\/\/\)$/{ s//\1/; q; }
32087 /^X\(\/\).*/{ s//\1/; q; }
32088 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032089 { if $as_mkdir_p; then
32090 mkdir -p "$ac_dir"
32091 else
32092 as_dir="$ac_dir"
32093 as_dirs=
32094 while test ! -d "$as_dir"; do
32095 as_dirs="$as_dir $as_dirs"
32096 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32097$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32098 X"$as_dir" : 'X\(//\)[^/]' \| \
32099 X"$as_dir" : 'X\(//\)$' \| \
32100 X"$as_dir" : 'X\(/\)' \| \
32101 . : '\(.\)' 2>/dev/null ||
32102echo X"$as_dir" |
32103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32104 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32105 /^X\(\/\/\)$/{ s//\1/; q; }
32106 /^X\(\/\).*/{ s//\1/; q; }
32107 s/.*/./; q'`
32108 done
32109 test ! -n "$as_dirs" || mkdir $as_dirs
32110 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32111echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32112 { (exit 1); exit 1; }; }; }
32113
John Criswellc764fbc2003-09-06 15:17:13 +000032114 ac_builddir=.
32115
32116if test "$ac_dir" != .; then
32117 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32118 # A "../" for each directory in $ac_dir_suffix.
32119 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32120else
32121 ac_dir_suffix= ac_top_builddir=
32122fi
32123
32124case $srcdir in
32125 .) # No --srcdir option. We are building in place.
32126 ac_srcdir=.
32127 if test -z "$ac_top_builddir"; then
32128 ac_top_srcdir=.
32129 else
32130 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32131 fi ;;
32132 [\\/]* | ?:[\\/]* ) # Absolute path.
32133 ac_srcdir=$srcdir$ac_dir_suffix;
32134 ac_top_srcdir=$srcdir ;;
32135 *) # Relative path.
32136 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32137 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32138esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032139
32140# Do not use `cd foo && pwd` to compute absolute paths, because
32141# the directories may not exist.
32142case `pwd` in
32143.) ac_abs_builddir="$ac_dir";;
32144*)
32145 case "$ac_dir" in
32146 .) ac_abs_builddir=`pwd`;;
32147 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32148 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32149 esac;;
32150esac
32151case $ac_abs_builddir in
32152.) ac_abs_top_builddir=${ac_top_builddir}.;;
32153*)
32154 case ${ac_top_builddir}. in
32155 .) ac_abs_top_builddir=$ac_abs_builddir;;
32156 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32157 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32158 esac;;
32159esac
32160case $ac_abs_builddir in
32161.) ac_abs_srcdir=$ac_srcdir;;
32162*)
32163 case $ac_srcdir in
32164 .) ac_abs_srcdir=$ac_abs_builddir;;
32165 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32166 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32167 esac;;
32168esac
32169case $ac_abs_builddir in
32170.) ac_abs_top_srcdir=$ac_top_srcdir;;
32171*)
32172 case $ac_top_srcdir in
32173 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32174 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32175 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32176 esac;;
32177esac
John Criswellc764fbc2003-09-06 15:17:13 +000032178
32179
32180 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32181echo "$as_me: executing $ac_dest commands" >&6;}
32182 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000032183 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32184 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32185 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32186 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32187 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32188 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32189 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32190 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32191 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32192 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32193 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32194 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32195 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32196 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32197 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32198 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32199 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32200 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32201 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32202 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032203 esac
32204done
32205_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032206
32207cat >>$CONFIG_STATUS <<\_ACEOF
32208
32209{ (exit 0); exit 0; }
32210_ACEOF
32211chmod +x $CONFIG_STATUS
32212ac_clean_files=$ac_clean_files_save
32213
32214
32215# configure is writing to config.log, and then calls config.status.
32216# config.status does its own redirection, appending to config.log.
32217# Unfortunately, on DOS this fails, as config.log is still kept open
32218# by configure, so config.status won't be able to write to it; its
32219# output is simply discarded. So we exec the FD to /dev/null,
32220# effectively closing config.log, so it can be properly (re)opened and
32221# appended to by config.status. When coming back to configure, we
32222# need to make the FD available again.
32223if test "$no_create" != yes; then
32224 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032225 ac_config_status_args=
32226 test "$silent" = yes &&
32227 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000032228 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000032229 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000032230 exec 5>>config.log
32231 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32232 # would make configure fail if this is the last instruction.
32233 $ac_cs_success || { (exit 1); exit 1; }
32234fi
32235
John Criswell12399a12003-09-30 15:55:44 +000032236#
32237# CONFIG_SUBDIRS section.
32238#
32239if test "$no_recursion" != yes; then
32240
32241 # Remove --cache-file and --srcdir arguments so they do not pile up.
32242 ac_sub_configure_args=
32243 ac_prev=
32244 for ac_arg in $ac_configure_args; do
32245 if test -n "$ac_prev"; then
32246 ac_prev=
32247 continue
32248 fi
32249 case $ac_arg in
32250 -cache-file | --cache-file | --cache-fil | --cache-fi \
32251 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32252 ac_prev=cache_file ;;
32253 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32254 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32255 | --c=*)
32256 ;;
32257 --config-cache | -C)
32258 ;;
32259 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32260 ac_prev=srcdir ;;
32261 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32262 ;;
32263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32264 ac_prev=prefix ;;
32265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32266 ;;
32267 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32268 esac
32269 done
32270
32271 # Always prepend --prefix to ensure using the same prefix
32272 # in subdir configurations.
32273 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32274
32275 ac_popdir=`pwd`
32276 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32277
32278 # Do not complain, so a configure script can configure whichever
32279 # parts of a large source tree are present.
32280 test -d $srcdir/$ac_dir || continue
32281
32282 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32283echo "$as_me: configuring in $ac_dir" >&6;}
32284 { if $as_mkdir_p; then
32285 mkdir -p "$ac_dir"
32286 else
32287 as_dir="$ac_dir"
32288 as_dirs=
32289 while test ! -d "$as_dir"; do
32290 as_dirs="$as_dir $as_dirs"
32291 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032293 X"$as_dir" : 'X\(//\)[^/]' \| \
32294 X"$as_dir" : 'X\(//\)$' \| \
32295 X"$as_dir" : 'X\(/\)' \| \
32296 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032297echo X"$as_dir" |
32298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32300 /^X\(\/\/\)$/{ s//\1/; q; }
32301 /^X\(\/\).*/{ s//\1/; q; }
32302 s/.*/./; q'`
32303 done
32304 test ! -n "$as_dirs" || mkdir $as_dirs
32305 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32306echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32307 { (exit 1); exit 1; }; }; }
32308
32309 ac_builddir=.
32310
32311if test "$ac_dir" != .; then
32312 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32313 # A "../" for each directory in $ac_dir_suffix.
32314 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32315else
32316 ac_dir_suffix= ac_top_builddir=
32317fi
32318
32319case $srcdir in
32320 .) # No --srcdir option. We are building in place.
32321 ac_srcdir=.
32322 if test -z "$ac_top_builddir"; then
32323 ac_top_srcdir=.
32324 else
32325 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32326 fi ;;
32327 [\\/]* | ?:[\\/]* ) # Absolute path.
32328 ac_srcdir=$srcdir$ac_dir_suffix;
32329 ac_top_srcdir=$srcdir ;;
32330 *) # Relative path.
32331 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32332 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32333esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032334
32335# Do not use `cd foo && pwd` to compute absolute paths, because
32336# the directories may not exist.
32337case `pwd` in
32338.) ac_abs_builddir="$ac_dir";;
32339*)
32340 case "$ac_dir" in
32341 .) ac_abs_builddir=`pwd`;;
32342 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32343 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32344 esac;;
32345esac
32346case $ac_abs_builddir in
32347.) ac_abs_top_builddir=${ac_top_builddir}.;;
32348*)
32349 case ${ac_top_builddir}. in
32350 .) ac_abs_top_builddir=$ac_abs_builddir;;
32351 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32352 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32353 esac;;
32354esac
32355case $ac_abs_builddir in
32356.) ac_abs_srcdir=$ac_srcdir;;
32357*)
32358 case $ac_srcdir in
32359 .) ac_abs_srcdir=$ac_abs_builddir;;
32360 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32361 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32362 esac;;
32363esac
32364case $ac_abs_builddir in
32365.) ac_abs_top_srcdir=$ac_top_srcdir;;
32366*)
32367 case $ac_top_srcdir in
32368 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32369 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32370 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32371 esac;;
32372esac
John Criswell12399a12003-09-30 15:55:44 +000032373
32374
32375 cd $ac_dir
32376
32377 # Check for guested configure; otherwise get Cygnus style configure.
32378 if test -f $ac_srcdir/configure.gnu; then
32379 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32380 elif test -f $ac_srcdir/configure; then
32381 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32382 elif test -f $ac_srcdir/configure.in; then
32383 ac_sub_configure=$ac_configure
32384 else
32385 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32386echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32387 ac_sub_configure=
32388 fi
32389
32390 # The recursion is here.
32391 if test -n "$ac_sub_configure"; then
32392 # Make the cache file name correct relative to the subdirectory.
32393 case $cache_file in
32394 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32395 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032396 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032397 esac
32398
32399 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32400echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32401 # The eval makes quoting arguments work.
32402 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032403 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32404 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032405echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32406 { (exit 1); exit 1; }; }
32407 fi
32408
32409 cd $ac_popdir
32410 done
32411fi
32412
Brian Gaekef3b24102003-11-16 18:38:14 +000032413
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032414if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032415 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32416echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032417 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32418echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32419 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32420echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32421 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32422echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32423 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32424echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032425fi