blob: ec46bd3db4e7b44189d2ce61b540028efc0ca389 [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 Spencer6e96d812005-12-21 03:31:53 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVM_ON_UNIX LLVM_ON_WIN32 ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED DEBUG_RUNTIME 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN RUNTEST TCLSH ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS LLVMGCC LLVMGXX ALLOCA MMAP_FILE LLVMCC1 LLVMCC1PLUS LLVMGCCDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
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 Spencer5e1d9a52004-11-25 04:51:04 +00003014 x86) JIT=TARGET_HAS_JIT=1
3015 ;;
3016 Sparc) JIT=TARGET_HAS_JIT=1
3017 ;;
3018 PowerPC) JIT=TARGET_HAS_JIT=1
3019 ;;
Reid Spencerbe41b252004-12-28 06:34:11 +00003020 x86_64) JIT=
Reid Spencer95ed8432004-12-23 06:22:33 +00003021 ;;
Andrew Lenharthddc31e82005-07-22 20:54:01 +00003022 Alpha) JIT=TARGET_HAS_JIT=1
Reid Spencer945de9b2005-04-22 07:27:28 +00003023 ;;
3024 IA64) JIT=
3025 ;;
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003026 *) JIT=
3027 ;;
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
5205# Find a good install program. We prefer a C program (faster),
5206# so one script is as good as another. But avoid the broken or
5207# incompatible versions:
5208# SysV /etc/install, /usr/sbin/install
5209# SunOS /usr/etc/install
5210# IRIX /sbin/install
5211# AIX /bin/install
5212# AmigaOS /C/install, which installs bootblocks on floppy discs
5213# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5214# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5215# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5216# OS/2's system install, which has a completely different semantic
5217# ./install, which can be erroneously created by make from ./install.sh.
5218echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5219echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5220if test -z "$INSTALL"; then
5221if test "${ac_cv_path_install+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5223else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225for as_dir in $PATH
5226do
5227 IFS=$as_save_IFS
5228 test -z "$as_dir" && as_dir=.
5229 # Account for people who put trailing slashes in PATH elements.
5230case $as_dir/ in
5231 ./ | .// | /cC/* | \
5232 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5233 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5234 /usr/ucb/* ) ;;
5235 *)
5236 # OSF1 and SCO ODT 3.0 have their own names for install.
5237 # Don't use installbsd from OSF since it installs stuff as root
5238 # by default.
5239 for ac_prog in ginstall scoinst install; do
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5242 if test $ac_prog = install &&
5243 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5244 # AIX install. It has an incompatible calling convention.
5245 :
5246 elif test $ac_prog = install &&
5247 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5248 # program-specific install script used by HP pwplus--don't use.
5249 :
5250 else
5251 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5252 break 3
5253 fi
5254 fi
5255 done
5256 done
5257 ;;
5258esac
5259done
5260
5261
5262fi
5263 if test "${ac_cv_path_install+set}" = set; then
5264 INSTALL=$ac_cv_path_install
5265 else
5266 # As a last resort, use the slow shell script. We don't cache a
5267 # path for INSTALL within a source directory, because that will
5268 # break other packages using the cache if that directory is
5269 # removed, or if the path is relative.
5270 INSTALL=$ac_install_sh
5271 fi
5272fi
5273echo "$as_me:$LINENO: result: $INSTALL" >&5
5274echo "${ECHO_T}$INSTALL" >&6
5275
5276# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5277# It thinks the first close brace ends the variable substitution.
5278test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5279
5280test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5281
5282test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5283
5284
5285# Extract the first word of "bzip2", so it can be a program name with args.
5286set dummy bzip2; ac_word=$2
5287echo "$as_me:$LINENO: checking for $ac_word" >&5
5288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5289if test "${ac_cv_path_BZIP2+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5291else
5292 case $BZIP2 in
5293 [\\/]* | ?:[\\/]*)
5294 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5295 ;;
5296 *)
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH
5299do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5307 fi
5308done
5309done
5310
5311 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5312 ;;
5313esac
5314fi
5315BZIP2=$ac_cv_path_BZIP2
5316
5317if test -n "$BZIP2"; then
5318 echo "$as_me:$LINENO: result: $BZIP2" >&5
5319echo "${ECHO_T}$BZIP2" >&6
5320else
5321 echo "$as_me:$LINENO: result: no" >&5
5322echo "${ECHO_T}no" >&6
5323fi
5324
5325# Extract the first word of "dot", so it can be a program name with args.
5326set dummy dot; ac_word=$2
5327echo "$as_me:$LINENO: checking for $ac_word" >&5
5328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5329if test "${ac_cv_path_DOT+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5331else
5332 case $DOT in
5333 [\\/]* | ?:[\\/]*)
5334 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5335 ;;
5336 *)
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338for as_dir in $PATH
5339do
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5347 fi
5348done
5349done
5350
5351 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5352 ;;
5353esac
5354fi
5355DOT=$ac_cv_path_DOT
5356
5357if test -n "$DOT"; then
5358 echo "$as_me:$LINENO: result: $DOT" >&5
5359echo "${ECHO_T}$DOT" >&6
5360else
5361 echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
5363fi
5364
5365# Extract the first word of "doxygen", so it can be a program name with args.
5366set dummy doxygen; ac_word=$2
5367echo "$as_me:$LINENO: checking for $ac_word" >&5
5368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5369if test "${ac_cv_path_DOXYGEN+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5371else
5372 case $DOXYGEN in
5373 [\\/]* | ?:[\\/]*)
5374 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5375 ;;
5376 *)
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378for as_dir in $PATH
5379do
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5384 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5387 fi
5388done
5389done
5390
5391 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5392 ;;
5393esac
5394fi
5395DOXYGEN=$ac_cv_path_DOXYGEN
5396
5397if test -n "$DOXYGEN"; then
5398 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5399echo "${ECHO_T}$DOXYGEN" >&6
5400else
5401 echo "$as_me:$LINENO: result: no" >&5
5402echo "${ECHO_T}no" >&6
5403fi
5404
5405# Extract the first word of "etags", so it can be a program name with args.
5406set dummy etags; ac_word=$2
5407echo "$as_me:$LINENO: checking for $ac_word" >&5
5408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5409if test "${ac_cv_path_ETAGS+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411else
5412 case $ETAGS in
5413 [\\/]* | ?:[\\/]*)
5414 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5415 ;;
5416 *)
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418for as_dir in $PATH
5419do
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5427 fi
5428done
5429done
5430
5431 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5432 ;;
5433esac
5434fi
5435ETAGS=$ac_cv_path_ETAGS
5436
5437if test -n "$ETAGS"; then
5438 echo "$as_me:$LINENO: result: $ETAGS" >&5
5439echo "${ECHO_T}$ETAGS" >&6
5440else
5441 echo "$as_me:$LINENO: result: no" >&5
5442echo "${ECHO_T}no" >&6
5443fi
5444
5445# Extract the first word of "groff", so it can be a program name with args.
5446set dummy groff; ac_word=$2
5447echo "$as_me:$LINENO: checking for $ac_word" >&5
5448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449if test "${ac_cv_path_GROFF+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452 case $GROFF in
5453 [\\/]* | ?:[\\/]*)
5454 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5455 ;;
5456 *)
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5464 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5467 fi
5468done
5469done
5470
5471 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5472 ;;
5473esac
5474fi
5475GROFF=$ac_cv_path_GROFF
5476
5477if test -n "$GROFF"; then
5478 echo "$as_me:$LINENO: result: $GROFF" >&5
5479echo "${ECHO_T}$GROFF" >&6
5480else
5481 echo "$as_me:$LINENO: result: no" >&5
5482echo "${ECHO_T}no" >&6
5483fi
5484
5485# Extract the first word of "gzip", so it can be a program name with args.
5486set dummy gzip; ac_word=$2
5487echo "$as_me:$LINENO: checking for $ac_word" >&5
5488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5489if test "${ac_cv_path_GZIP+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5491else
5492 case $GZIP in
5493 [\\/]* | ?:[\\/]*)
5494 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5495 ;;
5496 *)
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498for as_dir in $PATH
5499do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5504 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508done
5509done
5510
5511 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5512 ;;
5513esac
5514fi
5515GZIP=$ac_cv_path_GZIP
5516
5517if test -n "$GZIP"; then
5518 echo "$as_me:$LINENO: result: $GZIP" >&5
5519echo "${ECHO_T}$GZIP" >&6
5520else
5521 echo "$as_me:$LINENO: result: no" >&5
5522echo "${ECHO_T}no" >&6
5523fi
5524
5525# Extract the first word of "pod2html", so it can be a program name with args.
5526set dummy pod2html; ac_word=$2
5527echo "$as_me:$LINENO: checking for $ac_word" >&5
5528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5529if test "${ac_cv_path_POD2HTML+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5531else
5532 case $POD2HTML in
5533 [\\/]* | ?:[\\/]*)
5534 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5535 ;;
5536 *)
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5538for as_dir in $PATH
5539do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
5542 for ac_exec_ext in '' $ac_executable_extensions; do
5543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5544 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5546 break 2
5547 fi
5548done
5549done
5550
5551 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5552 ;;
5553esac
5554fi
5555POD2HTML=$ac_cv_path_POD2HTML
5556
5557if test -n "$POD2HTML"; then
5558 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5559echo "${ECHO_T}$POD2HTML" >&6
5560else
5561 echo "$as_me:$LINENO: result: no" >&5
5562echo "${ECHO_T}no" >&6
5563fi
5564
5565# Extract the first word of "pod2man", so it can be a program name with args.
5566set dummy pod2man; ac_word=$2
5567echo "$as_me:$LINENO: checking for $ac_word" >&5
5568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5569if test "${ac_cv_path_POD2MAN+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571else
5572 case $POD2MAN in
5573 [\\/]* | ?:[\\/]*)
5574 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5575 ;;
5576 *)
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578for as_dir in $PATH
5579do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588done
5589done
5590
5591 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5592 ;;
5593esac
5594fi
5595POD2MAN=$ac_cv_path_POD2MAN
5596
5597if test -n "$POD2MAN"; then
5598 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5599echo "${ECHO_T}$POD2MAN" >&6
5600else
5601 echo "$as_me:$LINENO: result: no" >&5
5602echo "${ECHO_T}no" >&6
5603fi
5604
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005605# Extract the first word of "runtest", so it can be a program name with args.
5606set dummy runtest; ac_word=$2
5607echo "$as_me:$LINENO: checking for $ac_word" >&5
5608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609if test "${ac_cv_path_RUNTEST+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612 case $RUNTEST in
5613 [\\/]* | ?:[\\/]*)
5614 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5615 ;;
5616 *)
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5624 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5627 fi
5628done
5629done
5630
5631 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5632 ;;
5633esac
5634fi
5635RUNTEST=$ac_cv_path_RUNTEST
5636
5637if test -n "$RUNTEST"; then
5638 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5639echo "${ECHO_T}$RUNTEST" >&6
5640else
5641 echo "$as_me:$LINENO: result: no" >&5
5642echo "${ECHO_T}no" >&6
5643fi
5644
Reid Spencer0fcb9412004-11-30 08:11:54 +00005645
Reid Spencer0fcb9412004-11-30 08:11:54 +00005646no_itcl=true
Reid Spencercda35f82004-12-02 04:17:20 +00005647echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
5648echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005649
5650# Check whether --with-tclinclude or --without-tclinclude was given.
5651if test "${with_tclinclude+set}" = set; then
5652 withval="$with_tclinclude"
5653 with_tclinclude=${withval}
Reid Spencercda35f82004-12-02 04:17:20 +00005654else
5655 with_tclinclude=''
Reid Spencer0fcb9412004-11-30 08:11:54 +00005656fi;
5657if test "${ac_cv_path_tclsh+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659else
5660
5661if test x"${with_tclinclude}" != x ; then
5662 if test -f ${with_tclinclude}/tclsh ; then
5663 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
5664 elif test -f ${with_tclinclude}/src/tclsh ; then
5665 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
5666 else
5667 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
5668echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
5669 { (exit 1); exit 1; }; }
5670 fi
5671fi
5672
Reid Spencer0fcb9412004-11-30 08:11:54 +00005673if test x"${ac_cv_path_tclsh}" = x ; then
Reid Spencercda35f82004-12-02 04:17:20 +00005674 echo "$as_me:$LINENO: result: none" >&5
Reid Spencer0fcb9412004-11-30 08:11:54 +00005675echo "${ECHO_T}none" >&6
Reid Spencer582a23c2004-12-29 07:07:57 +00005676 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 +00005677do
5678 # Extract the first word of "$ac_prog", so it can be a program name with args.
5679set dummy $ac_prog; ac_word=$2
Reid Spencer0fcb9412004-11-30 08:11:54 +00005680echo "$as_me:$LINENO: checking for $ac_word" >&5
5681echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencercda35f82004-12-02 04:17:20 +00005682if test "${ac_cv_path_TCLSH+set}" = set; then
Reid Spencer0fcb9412004-11-30 08:11:54 +00005683 echo $ECHO_N "(cached) $ECHO_C" >&6
5684else
Reid Spencercda35f82004-12-02 04:17:20 +00005685 case $TCLSH in
Reid Spencer0fcb9412004-11-30 08:11:54 +00005686 [\\/]* | ?:[\\/]*)
Reid Spencercda35f82004-12-02 04:17:20 +00005687 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
Reid Spencer0fcb9412004-11-30 08:11:54 +00005688 ;;
5689 *)
5690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5691for as_dir in $PATH
5692do
5693 IFS=$as_save_IFS
5694 test -z "$as_dir" && as_dir=.
5695 for ac_exec_ext in '' $ac_executable_extensions; do
5696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencercda35f82004-12-02 04:17:20 +00005697 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
Reid Spencer0fcb9412004-11-30 08:11:54 +00005698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5699 break 2
5700 fi
5701done
5702done
5703
5704 ;;
5705esac
5706fi
Reid Spencercda35f82004-12-02 04:17:20 +00005707TCLSH=$ac_cv_path_TCLSH
Reid Spencer0fcb9412004-11-30 08:11:54 +00005708
Reid Spencercda35f82004-12-02 04:17:20 +00005709if test -n "$TCLSH"; then
5710 echo "$as_me:$LINENO: result: $TCLSH" >&5
5711echo "${ECHO_T}$TCLSH" >&6
Reid Spencer0fcb9412004-11-30 08:11:54 +00005712else
5713 echo "$as_me:$LINENO: result: no" >&5
5714echo "${ECHO_T}no" >&6
5715fi
5716
Reid Spencercda35f82004-12-02 04:17:20 +00005717 test -n "$TCLSH" && break
5718done
Reid Spencer0fcb9412004-11-30 08:11:54 +00005719
Reid Spencercda35f82004-12-02 04:17:20 +00005720 if test x"${TCLSH}" = x ; then
5721 ac_cv_path_tclsh='';
5722 else
5723 ac_cv_path_tclsh="${TCLSH}";
5724 fi
5725else
5726 echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
5727echo "${ECHO_T}${ac_cv_path_tclsh}" >&6
5728 TCLSH="${ac_cv_path_tclsh}"
5729
5730fi
5731
5732fi
Reid Spencer0fcb9412004-11-30 08:11:54 +00005733
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005734# Extract the first word of "zip", so it can be a program name with args.
5735set dummy zip; ac_word=$2
5736echo "$as_me:$LINENO: checking for $ac_word" >&5
5737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5738if test "${ac_cv_path_ZIP+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5740else
5741 case $ZIP in
5742 [\\/]* | ?:[\\/]*)
5743 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5744 ;;
5745 *)
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747for as_dir in $PATH
5748do
5749 IFS=$as_save_IFS
5750 test -z "$as_dir" && as_dir=.
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5753 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5755 break 2
5756 fi
5757done
5758done
5759
5760 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5761 ;;
5762esac
5763fi
5764ZIP=$ac_cv_path_ZIP
5765
5766if test -n "$ZIP"; then
5767 echo "$as_me:$LINENO: result: $ZIP" >&5
5768echo "${ECHO_T}$ZIP" >&6
5769else
5770 echo "$as_me:$LINENO: result: no" >&5
5771echo "${ECHO_T}no" >&6
5772fi
5773
5774
5775echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5776echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5777if test "${llvm_cv_link_use_r+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5779else
5780 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005781ac_cpp='$CPP $CPPFLAGS'
5782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784ac_compiler_gnu=$ac_cv_c_compiler_gnu
5785
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005786 oldcflags="$CFLAGS"
5787 CFLAGS="$CFLAGS -Wl,-R."
5788 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005789/* confdefs.h. */
5790_ACEOF
5791cat confdefs.h >>conftest.$ac_ext
5792cat >>conftest.$ac_ext <<_ACEOF
5793/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005794
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005795int
5796main ()
5797{
5798int main() { return 0; }
5799 ;
5800 return 0;
5801}
John Criswell47fdd832003-07-14 16:52:07 +00005802_ACEOF
5803rm -f conftest.$ac_objext conftest$ac_exeext
5804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005805 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005806 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005811 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005812 { ac_try='test -z "$ac_c_werror_flag"
5813 || test ! -s conftest.err'
5814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 (eval $ac_try) 2>&5
5816 ac_status=$?
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); }; } &&
5819 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 (eval $ac_try) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005825 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005826else
John Criswell47fdd832003-07-14 16:52:07 +00005827 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005828sed 's/^/| /' conftest.$ac_ext >&5
5829
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005830llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005831fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005832rm -f conftest.err conftest.$ac_objext \
5833 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005834 CFLAGS="$oldcflags"
5835 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005836ac_cpp='$CPP $CPPFLAGS'
5837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5839ac_compiler_gnu=$ac_cv_c_compiler_gnu
5840
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005841
John Criswell7a73b802003-06-30 21:59:07 +00005842fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005843echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5844echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5845if test "$llvm_cv_link_use_r" = yes ; then
5846
5847cat >>confdefs.h <<\_ACEOF
5848#define HAVE_LINK_R 1
5849_ACEOF
5850
John Criswell47fdd832003-07-14 16:52:07 +00005851 fi
John Criswell47fdd832003-07-14 16:52:07 +00005852
John Criswell47fdd832003-07-14 16:52:07 +00005853
John Criswell47fdd832003-07-14 16:52:07 +00005854
John Criswell7a73b802003-06-30 21:59:07 +00005855
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005856echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5857echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5858if test "${ac_cv_c_const+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5860else
5861 cat >conftest.$ac_ext <<_ACEOF
5862/* confdefs.h. */
5863_ACEOF
5864cat confdefs.h >>conftest.$ac_ext
5865cat >>conftest.$ac_ext <<_ACEOF
5866/* end confdefs.h. */
5867
5868int
5869main ()
5870{
5871/* FIXME: Include the comments suggested by Paul. */
5872#ifndef __cplusplus
5873 /* Ultrix mips cc rejects this. */
5874 typedef int charset[2];
5875 const charset x;
5876 /* SunOS 4.1.1 cc rejects this. */
5877 char const *const *ccp;
5878 char **p;
5879 /* NEC SVR4.0.2 mips cc rejects this. */
5880 struct point {int x, y;};
5881 static struct point const zero = {0,0};
5882 /* AIX XL C 1.02.0.0 rejects this.
5883 It does not let you subtract one const X* pointer from another in
5884 an arm of an if-expression whose if-part is not a constant
5885 expression */
5886 const char *g = "string";
5887 ccp = &g + (g ? g-g : 0);
5888 /* HPUX 7.0 cc rejects these. */
5889 ++ccp;
5890 p = (char**) ccp;
5891 ccp = (char const *const *) p;
5892 { /* SCO 3.2v4 cc rejects this. */
5893 char *t;
5894 char const *s = 0 ? (char *) 0 : (char const *) 0;
5895
5896 *t++ = 0;
5897 }
5898 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5899 int x[] = {25, 17};
5900 const int *foo = &x[0];
5901 ++foo;
5902 }
5903 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5904 typedef const int *iptr;
5905 iptr p = 0;
5906 ++p;
5907 }
5908 { /* AIX XL C 1.02.0.0 rejects this saying
5909 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5910 struct s { int j; const int *ap[3]; };
5911 struct s *b; b->j = 5;
5912 }
5913 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5914 const int foo = 10;
5915 }
5916#endif
5917
5918 ;
5919 return 0;
5920}
5921_ACEOF
5922rm -f conftest.$ac_objext
5923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5924 (eval $ac_compile) 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } &&
5931 { ac_try='test -z "$ac_c_werror_flag"
5932 || test ! -s conftest.err'
5933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5934 (eval $ac_try) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; } &&
5938 { ac_try='test -s conftest.$ac_objext'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; }; then
5944 ac_cv_c_const=yes
5945else
5946 echo "$as_me: failed program was:" >&5
5947sed 's/^/| /' conftest.$ac_ext >&5
5948
5949ac_cv_c_const=no
5950fi
5951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5952fi
5953echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5954echo "${ECHO_T}$ac_cv_c_const" >&6
5955if test $ac_cv_c_const = no; then
5956
5957cat >>confdefs.h <<\_ACEOF
5958#define const
5959_ACEOF
5960
5961fi
5962
5963
5964echo "$as_me:$LINENO: checking for egrep" >&5
5965echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5966if test "${ac_cv_prog_egrep+set}" = set; then
5967 echo $ECHO_N "(cached) $ECHO_C" >&6
5968else
5969 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5970 then ac_cv_prog_egrep='grep -E'
5971 else ac_cv_prog_egrep='egrep'
5972 fi
5973fi
5974echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5975echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5976 EGREP=$ac_cv_prog_egrep
5977
John Criswell7a73b802003-06-30 21:59:07 +00005978
5979echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5980echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5981if test "${ac_cv_header_stdc+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5983else
5984 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005985/* confdefs.h. */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005990#include <stdlib.h>
5991#include <stdarg.h>
5992#include <string.h>
5993#include <float.h>
5994
John Criswell0c38eaf2003-09-10 15:17:25 +00005995int
5996main ()
5997{
5998
5999 ;
6000 return 0;
6001}
John Criswell7a73b802003-06-30 21:59:07 +00006002_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006003rm -f conftest.$ac_objext
6004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006005 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006006 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006007 grep -v '^ *+' conftest.er1 >conftest.err
6008 rm -f conftest.er1
6009 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006011 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006012 { ac_try='test -z "$ac_c_werror_flag"
6013 || test ! -s conftest.err'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 (eval $ac_try) 2>&5
6016 ac_status=$?
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; } &&
6019 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00006020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 (eval $ac_try) 2>&5
6022 ac_status=$?
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006025 ac_cv_header_stdc=yes
6026else
6027 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006028sed 's/^/| /' conftest.$ac_ext >&5
6029
6030ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00006031fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006033
6034if test $ac_cv_header_stdc = yes; then
6035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6036 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006037/* confdefs.h. */
6038_ACEOF
6039cat confdefs.h >>conftest.$ac_ext
6040cat >>conftest.$ac_ext <<_ACEOF
6041/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006042#include <string.h>
6043
6044_ACEOF
6045if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006046 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006047 :
6048else
6049 ac_cv_header_stdc=no
6050fi
6051rm -f conftest*
6052
6053fi
6054
6055if test $ac_cv_header_stdc = yes; then
6056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6057 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006058/* confdefs.h. */
6059_ACEOF
6060cat confdefs.h >>conftest.$ac_ext
6061cat >>conftest.$ac_ext <<_ACEOF
6062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006063#include <stdlib.h>
6064
6065_ACEOF
6066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00006067 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00006068 :
6069else
6070 ac_cv_header_stdc=no
6071fi
6072rm -f conftest*
6073
6074fi
6075
6076if test $ac_cv_header_stdc = yes; then
6077 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6078 if test "$cross_compiling" = yes; then
6079 :
6080else
6081 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006082/* confdefs.h. */
6083_ACEOF
6084cat confdefs.h >>conftest.$ac_ext
6085cat >>conftest.$ac_ext <<_ACEOF
6086/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006087#include <ctype.h>
6088#if ((' ' & 0x0FF) == 0x020)
6089# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6090# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6091#else
John Criswell0c38eaf2003-09-10 15:17:25 +00006092# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006093 (('a' <= (c) && (c) <= 'i') \
6094 || ('j' <= (c) && (c) <= 'r') \
6095 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00006096# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6097#endif
6098
6099#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6100int
6101main ()
6102{
6103 int i;
6104 for (i = 0; i < 256; i++)
6105 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00006106 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00006107 exit(2);
6108 exit (0);
6109}
6110_ACEOF
6111rm -f conftest$ac_exeext
6112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6113 (eval $ac_link) 2>&5
6114 ac_status=$?
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6118 (eval $ac_try) 2>&5
6119 ac_status=$?
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); }; }; then
6122 :
6123else
6124 echo "$as_me: program exited with status $ac_status" >&5
6125echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006126sed 's/^/| /' conftest.$ac_ext >&5
6127
John Criswell7a73b802003-06-30 21:59:07 +00006128( exit $ac_status )
6129ac_cv_header_stdc=no
6130fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006131rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006132fi
6133fi
6134fi
6135echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6136echo "${ECHO_T}$ac_cv_header_stdc" >&6
6137if test $ac_cv_header_stdc = yes; then
6138
6139cat >>confdefs.h <<\_ACEOF
6140#define STDC_HEADERS 1
6141_ACEOF
6142
6143fi
6144
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006145
6146
6147
6148
6149
6150ac_header_dirent=no
6151for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6152 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6153echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6154echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6155if eval "test \"\${$as_ac_Header+set}\" = set"; then
6156 echo $ECHO_N "(cached) $ECHO_C" >&6
6157else
6158 cat >conftest.$ac_ext <<_ACEOF
6159/* confdefs.h. */
6160_ACEOF
6161cat confdefs.h >>conftest.$ac_ext
6162cat >>conftest.$ac_ext <<_ACEOF
6163/* end confdefs.h. */
6164#include <sys/types.h>
6165#include <$ac_hdr>
6166
6167int
6168main ()
6169{
6170if ((DIR *) 0)
6171return 0;
6172 ;
6173 return 0;
6174}
6175_ACEOF
6176rm -f conftest.$ac_objext
6177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178 (eval $ac_compile) 2>conftest.er1
6179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6188 (eval $ac_try) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 eval "$as_ac_Header=yes"
6199else
6200 echo "$as_me: failed program was:" >&5
6201sed 's/^/| /' conftest.$ac_ext >&5
6202
6203eval "$as_ac_Header=no"
6204fi
6205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6206fi
6207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6209if test `eval echo '${'$as_ac_Header'}'` = yes; then
6210 cat >>confdefs.h <<_ACEOF
6211#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6212_ACEOF
6213
6214ac_header_dirent=$ac_hdr; break
6215fi
6216
6217done
6218# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6219if test $ac_header_dirent = dirent.h; then
6220 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6221echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6222if test "${ac_cv_search_opendir+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6224else
6225 ac_func_search_save_LIBS=$LIBS
6226ac_cv_search_opendir=no
6227cat >conftest.$ac_ext <<_ACEOF
6228/* confdefs.h. */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h. */
6233
6234/* Override any gcc2 internal prototype to avoid an error. */
6235#ifdef __cplusplus
6236extern "C"
6237#endif
6238/* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */
6240char opendir ();
6241int
6242main ()
6243{
6244opendir ();
6245 ;
6246 return 0;
6247}
6248_ACEOF
6249rm -f conftest.$ac_objext conftest$ac_exeext
6250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6251 (eval $ac_link) 2>conftest.er1
6252 ac_status=$?
6253 grep -v '^ *+' conftest.er1 >conftest.err
6254 rm -f conftest.er1
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } &&
6258 { ac_try='test -z "$ac_c_werror_flag"
6259 || test ! -s conftest.err'
6260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6261 (eval $ac_try) 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); }; } &&
6265 { ac_try='test -s conftest$ac_exeext'
6266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6267 (eval $ac_try) 2>&5
6268 ac_status=$?
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); }; }; then
6271 ac_cv_search_opendir="none required"
6272else
6273 echo "$as_me: failed program was:" >&5
6274sed 's/^/| /' conftest.$ac_ext >&5
6275
6276fi
6277rm -f conftest.err conftest.$ac_objext \
6278 conftest$ac_exeext conftest.$ac_ext
6279if test "$ac_cv_search_opendir" = no; then
6280 for ac_lib in dir; do
6281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6282 cat >conftest.$ac_ext <<_ACEOF
6283/* confdefs.h. */
6284_ACEOF
6285cat confdefs.h >>conftest.$ac_ext
6286cat >>conftest.$ac_ext <<_ACEOF
6287/* end confdefs.h. */
6288
6289/* Override any gcc2 internal prototype to avoid an error. */
6290#ifdef __cplusplus
6291extern "C"
6292#endif
6293/* We use char because int might match the return type of a gcc2
6294 builtin and then its argument prototype would still apply. */
6295char opendir ();
6296int
6297main ()
6298{
6299opendir ();
6300 ;
6301 return 0;
6302}
6303_ACEOF
6304rm -f conftest.$ac_objext conftest$ac_exeext
6305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6306 (eval $ac_link) 2>conftest.er1
6307 ac_status=$?
6308 grep -v '^ *+' conftest.er1 >conftest.err
6309 rm -f conftest.er1
6310 cat conftest.err >&5
6311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6312 (exit $ac_status); } &&
6313 { ac_try='test -z "$ac_c_werror_flag"
6314 || test ! -s conftest.err'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6316 (eval $ac_try) 2>&5
6317 ac_status=$?
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; } &&
6320 { ac_try='test -s conftest$ac_exeext'
6321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6322 (eval $ac_try) 2>&5
6323 ac_status=$?
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); }; }; then
6326 ac_cv_search_opendir="-l$ac_lib"
6327break
6328else
6329 echo "$as_me: failed program was:" >&5
6330sed 's/^/| /' conftest.$ac_ext >&5
6331
6332fi
6333rm -f conftest.err conftest.$ac_objext \
6334 conftest$ac_exeext conftest.$ac_ext
6335 done
6336fi
6337LIBS=$ac_func_search_save_LIBS
6338fi
6339echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6340echo "${ECHO_T}$ac_cv_search_opendir" >&6
6341if test "$ac_cv_search_opendir" != no; then
6342 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6343
6344fi
6345
6346else
6347 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6348echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6349if test "${ac_cv_search_opendir+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6351else
6352 ac_func_search_save_LIBS=$LIBS
6353ac_cv_search_opendir=no
6354cat >conftest.$ac_ext <<_ACEOF
6355/* confdefs.h. */
6356_ACEOF
6357cat confdefs.h >>conftest.$ac_ext
6358cat >>conftest.$ac_ext <<_ACEOF
6359/* end confdefs.h. */
6360
6361/* Override any gcc2 internal prototype to avoid an error. */
6362#ifdef __cplusplus
6363extern "C"
6364#endif
6365/* We use char because int might match the return type of a gcc2
6366 builtin and then its argument prototype would still apply. */
6367char opendir ();
6368int
6369main ()
6370{
6371opendir ();
6372 ;
6373 return 0;
6374}
6375_ACEOF
6376rm -f conftest.$ac_objext conftest$ac_exeext
6377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6378 (eval $ac_link) 2>conftest.er1
6379 ac_status=$?
6380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_c_werror_flag"
6386 || test ! -s conftest.err'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 (eval $ac_try) 2>&5
6389 ac_status=$?
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; } &&
6392 { ac_try='test -s conftest$ac_exeext'
6393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 (eval $ac_try) 2>&5
6395 ac_status=$?
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); }; }; then
6398 ac_cv_search_opendir="none required"
6399else
6400 echo "$as_me: failed program was:" >&5
6401sed 's/^/| /' conftest.$ac_ext >&5
6402
6403fi
6404rm -f conftest.err conftest.$ac_objext \
6405 conftest$ac_exeext conftest.$ac_ext
6406if test "$ac_cv_search_opendir" = no; then
6407 for ac_lib in x; do
6408 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6409 cat >conftest.$ac_ext <<_ACEOF
6410/* confdefs.h. */
6411_ACEOF
6412cat confdefs.h >>conftest.$ac_ext
6413cat >>conftest.$ac_ext <<_ACEOF
6414/* end confdefs.h. */
6415
6416/* Override any gcc2 internal prototype to avoid an error. */
6417#ifdef __cplusplus
6418extern "C"
6419#endif
6420/* We use char because int might match the return type of a gcc2
6421 builtin and then its argument prototype would still apply. */
6422char opendir ();
6423int
6424main ()
6425{
6426opendir ();
6427 ;
6428 return 0;
6429}
6430_ACEOF
6431rm -f conftest.$ac_objext conftest$ac_exeext
6432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433 (eval $ac_link) 2>conftest.er1
6434 ac_status=$?
6435 grep -v '^ *+' conftest.er1 >conftest.err
6436 rm -f conftest.er1
6437 cat conftest.err >&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -z "$ac_c_werror_flag"
6441 || test ! -s conftest.err'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443 (eval $ac_try) 2>&5
6444 ac_status=$?
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; } &&
6447 { ac_try='test -s conftest$ac_exeext'
6448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449 (eval $ac_try) 2>&5
6450 ac_status=$?
6451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452 (exit $ac_status); }; }; then
6453 ac_cv_search_opendir="-l$ac_lib"
6454break
6455else
6456 echo "$as_me: failed program was:" >&5
6457sed 's/^/| /' conftest.$ac_ext >&5
6458
6459fi
6460rm -f conftest.err conftest.$ac_objext \
6461 conftest$ac_exeext conftest.$ac_ext
6462 done
6463fi
6464LIBS=$ac_func_search_save_LIBS
6465fi
6466echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6467echo "${ECHO_T}$ac_cv_search_opendir" >&6
6468if test "$ac_cv_search_opendir" != no; then
6469 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6470
6471fi
6472
6473fi
6474
John Criswell7a73b802003-06-30 21:59:07 +00006475# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006486 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006487do
6488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6489echo "$as_me:$LINENO: checking for $ac_header" >&5
6490echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6491if eval "test \"\${$as_ac_Header+set}\" = set"; then
6492 echo $ECHO_N "(cached) $ECHO_C" >&6
6493else
6494 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006495/* confdefs.h. */
6496_ACEOF
6497cat confdefs.h >>conftest.$ac_ext
6498cat >>conftest.$ac_ext <<_ACEOF
6499/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006500$ac_includes_default
6501
6502#include <$ac_header>
6503_ACEOF
6504rm -f conftest.$ac_objext
6505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006506 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006507 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006508 grep -v '^ *+' conftest.er1 >conftest.err
6509 rm -f conftest.er1
6510 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006513 { ac_try='test -z "$ac_c_werror_flag"
6514 || test ! -s conftest.err'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 (eval $ac_try) 2>&5
6517 ac_status=$?
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; } &&
6520 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 (eval $ac_try) 2>&5
6523 ac_status=$?
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); }; }; then
6526 eval "$as_ac_Header=yes"
6527else
6528 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006529sed 's/^/| /' conftest.$ac_ext >&5
6530
John Criswell7a73b802003-06-30 21:59:07 +00006531eval "$as_ac_Header=no"
6532fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006534fi
6535echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6536echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6537if test `eval echo '${'$as_ac_Header'}'` = yes; then
6538 cat >>confdefs.h <<_ACEOF
6539#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6540_ACEOF
6541
6542fi
6543
6544done
6545
6546
6547
6548for ac_header in dlfcn.h
6549do
6550as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006551if eval "test \"\${$as_ac_Header+set}\" = set"; then
6552 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006553echo $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
Brian Gaeke0a621332004-09-08 20:38:05 +00006556fi
6557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006559else
Brian Gaeke0a621332004-09-08 20:38:05 +00006560 # Is the header compilable?
6561echo "$as_me:$LINENO: checking $ac_header usability" >&5
6562echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6563cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006564/* confdefs.h. */
6565_ACEOF
6566cat confdefs.h >>conftest.$ac_ext
6567cat >>conftest.$ac_ext <<_ACEOF
6568/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006569$ac_includes_default
6570#include <$ac_header>
6571_ACEOF
6572rm -f conftest.$ac_objext
6573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006574 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006575 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006576 grep -v '^ *+' conftest.er1 >conftest.err
6577 rm -f conftest.er1
6578 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006581 { ac_try='test -z "$ac_c_werror_flag"
6582 || test ! -s conftest.err'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 (eval $ac_try) 2>&5
6585 ac_status=$?
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 (eval $ac_try) 2>&5
6591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006594 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006595else
6596 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006597sed 's/^/| /' conftest.$ac_ext >&5
6598
Brian Gaeke0a621332004-09-08 20:38:05 +00006599ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006600fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006602echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6603echo "${ECHO_T}$ac_header_compiler" >&6
6604
6605# Is the header present?
6606echo "$as_me:$LINENO: checking $ac_header presence" >&5
6607echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6608cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006609/* confdefs.h. */
6610_ACEOF
6611cat confdefs.h >>conftest.$ac_ext
6612cat >>conftest.$ac_ext <<_ACEOF
6613/* end confdefs.h. */
6614#include <$ac_header>
6615_ACEOF
6616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6618 ac_status=$?
6619 grep -v '^ *+' conftest.er1 >conftest.err
6620 rm -f conftest.er1
6621 cat conftest.err >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); } >/dev/null; then
6624 if test -s conftest.err; then
6625 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006627 else
6628 ac_cpp_err=
6629 fi
6630else
6631 ac_cpp_err=yes
6632fi
6633if test -z "$ac_cpp_err"; then
6634 ac_header_preproc=yes
6635else
6636 echo "$as_me: failed program was:" >&5
6637sed 's/^/| /' conftest.$ac_ext >&5
6638
6639 ac_header_preproc=no
6640fi
6641rm -f conftest.err conftest.$ac_ext
6642echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6643echo "${ECHO_T}$ac_header_preproc" >&6
6644
6645# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6647 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006648 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6649echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6651echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6652 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006653 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006654 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006655 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6656echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006657 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6658echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6660echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6662echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6664echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006665 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6666echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006667 (
6668 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006669## ----------------------------------- ##
6670## Report this to llvmbugs@cs.uiuc.edu ##
6671## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006672_ASBOX
6673 ) |
6674 sed "s/^/$as_me: WARNING: /" >&2
6675 ;;
6676esac
6677echo "$as_me:$LINENO: checking for $ac_header" >&5
6678echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6679if eval "test \"\${$as_ac_Header+set}\" = set"; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6681else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006682 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006683fi
6684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006686
6687fi
John Criswell7a73b802003-06-30 21:59:07 +00006688if test `eval echo '${'$as_ac_Header'}'` = yes; then
6689 cat >>confdefs.h <<_ACEOF
6690#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6691_ACEOF
6692
6693fi
6694
6695done
6696
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006697# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6698if test "${enable_ltdl_install+set}" = set; then
6699 enableval="$enable_ltdl_install"
6700
6701fi;
6702
6703
6704
6705if test x"${enable_ltdl_install-no}" != xno; then
6706 INSTALL_LTDL_TRUE=
6707 INSTALL_LTDL_FALSE='#'
6708else
6709 INSTALL_LTDL_TRUE='#'
6710 INSTALL_LTDL_FALSE=
6711fi
6712
6713
6714
6715if test x"${enable_ltdl_convenience-no}" != xno; then
6716 CONVENIENCE_LTDL_TRUE=
6717 CONVENIENCE_LTDL_FALSE='#'
6718else
6719 CONVENIENCE_LTDL_TRUE='#'
6720 CONVENIENCE_LTDL_FALSE=
6721fi
6722
6723
6724echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6725echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6726library_names_spec=
6727libname_spec='lib$name'
6728soname_spec=
6729shrext_cmds=".so"
6730postinstall_cmds=
6731postuninstall_cmds=
6732finish_cmds=
6733finish_eval=
6734shlibpath_var=
6735shlibpath_overrides_runpath=unknown
6736version_type=none
6737dynamic_linker="$host_os ld.so"
6738sys_lib_dlsearch_path_spec="/lib /usr/lib"
6739if test "$GCC" = yes; then
6740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6741 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6742 # if the path contains ";" then we assume it to be the separator
6743 # otherwise default to the standard path separator (i.e. ":") - it is
6744 # assumed that no part of a normal pathname contains ";" but that should
6745 # okay in the real world where ";" in dirpaths is itself problematic.
6746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6747 else
6748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6749 fi
6750else
6751 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6752fi
6753need_lib_prefix=unknown
6754hardcode_into_libs=no
6755
6756# when you set need_version to no, make sure it does not cause -set_version
6757# flags to be left without arguments
6758need_version=unknown
6759
6760case $host_os in
6761aix3*)
6762 version_type=linux
6763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6764 shlibpath_var=LIBPATH
6765
6766 # AIX 3 has no versioning support, so we append a major version to the name.
6767 soname_spec='${libname}${release}${shared_ext}$major'
6768 ;;
6769
6770aix4* | aix5*)
6771 version_type=linux
6772 need_lib_prefix=no
6773 need_version=no
6774 hardcode_into_libs=yes
6775 if test "$host_cpu" = ia64; then
6776 # AIX 5 supports IA64
6777 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6778 shlibpath_var=LD_LIBRARY_PATH
6779 else
6780 # With GCC up to 2.95.x, collect2 would create an import file
6781 # for dependence libraries. The import file would start with
6782 # the line `#! .'. This would cause the generated library to
6783 # depend on `.', always an invalid library. This was fixed in
6784 # development snapshots of GCC prior to 3.0.
6785 case $host_os in
6786 aix4 | aix4.[01] | aix4.[01].*)
6787 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6788 echo ' yes '
6789 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6790 :
6791 else
6792 can_build_shared=no
6793 fi
6794 ;;
6795 esac
6796 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6797 # soname into executable. Probably we can add versioning support to
6798 # collect2, so additional links can be useful in future.
6799 if test "$aix_use_runtimelinking" = yes; then
6800 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6801 # instead of lib<name>.a to let people know that these are not
6802 # typical AIX shared libraries.
6803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6804 else
6805 # We preserve .a as extension for shared libraries through AIX4.2
6806 # and later when we are not doing run time linking.
6807 library_names_spec='${libname}${release}.a $libname.a'
6808 soname_spec='${libname}${release}${shared_ext}$major'
6809 fi
6810 shlibpath_var=LIBPATH
6811 fi
6812 ;;
6813
6814amigaos*)
6815 library_names_spec='$libname.ixlibrary $libname.a'
6816 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6817 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'
6818 ;;
6819
6820beos*)
6821 library_names_spec='${libname}${shared_ext}'
6822 dynamic_linker="$host_os ld.so"
6823 shlibpath_var=LIBRARY_PATH
6824 ;;
6825
6826bsdi[45]*)
6827 version_type=linux
6828 need_version=no
6829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6830 soname_spec='${libname}${release}${shared_ext}$major'
6831 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6832 shlibpath_var=LD_LIBRARY_PATH
6833 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6834 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6835 # the default ld.so.conf also contains /usr/contrib/lib and
6836 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6837 # libtool to hard-code these into programs
6838 ;;
6839
6840cygwin* | mingw* | pw32*)
6841 version_type=windows
6842 shrext_cmds=".dll"
6843 need_version=no
6844 need_lib_prefix=no
6845
6846 case $GCC,$host_os in
6847 yes,cygwin* | yes,mingw* | yes,pw32*)
6848 library_names_spec='$libname.dll.a'
6849 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6850 postinstall_cmds='base_file=`basename \${file}`~
6851 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6852 dldir=$destdir/`dirname \$dlpath`~
6853 test -d \$dldir || mkdir -p \$dldir~
6854 $install_prog $dir/$dlname \$dldir/$dlname'
6855 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6856 dlpath=$dir/\$dldll~
6857 $rm \$dlpath'
6858 shlibpath_overrides_runpath=yes
6859
6860 case $host_os in
6861 cygwin*)
6862 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6863 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6864 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6865 ;;
6866 mingw*)
6867 # MinGW DLLs use traditional 'lib' prefix
6868 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6869 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6870 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6871 # It is most probably a Windows format PATH printed by
6872 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6873 # path with ; separators, and with drive letters. We can handle the
6874 # drive letters (cygwin fileutils understands them), so leave them,
6875 # especially as we might pass files found there to a mingw objdump,
6876 # which wouldn't understand a cygwinified path. Ahh.
6877 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6878 else
6879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6880 fi
6881 ;;
6882 pw32*)
6883 # pw32 DLLs use 'pw' prefix rather than 'lib'
6884 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6885 ;;
6886 esac
6887 ;;
6888
6889 *)
6890 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6891 ;;
6892 esac
6893 dynamic_linker='Win32 ld.exe'
6894 # FIXME: first we should search . and the directory the executable is in
6895 shlibpath_var=PATH
6896 ;;
6897
6898darwin* | rhapsody*)
6899 dynamic_linker="$host_os dyld"
6900 version_type=darwin
6901 need_lib_prefix=no
6902 need_version=no
6903 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6904 soname_spec='${libname}${release}${major}$shared_ext'
6905 shlibpath_overrides_runpath=yes
6906 shlibpath_var=DYLD_LIBRARY_PATH
6907 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6908 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6909 if test "$GCC" = yes; then
6910 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"`
6911 else
6912 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6913 fi
6914 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6915 ;;
6916
6917dgux*)
6918 version_type=linux
6919 need_lib_prefix=no
6920 need_version=no
6921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6922 soname_spec='${libname}${release}${shared_ext}$major'
6923 shlibpath_var=LD_LIBRARY_PATH
6924 ;;
6925
6926freebsd1*)
6927 dynamic_linker=no
6928 ;;
6929
6930kfreebsd*-gnu)
6931 version_type=linux
6932 need_lib_prefix=no
6933 need_version=no
6934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6935 soname_spec='${libname}${release}${shared_ext}$major'
6936 shlibpath_var=LD_LIBRARY_PATH
6937 shlibpath_overrides_runpath=no
6938 hardcode_into_libs=yes
6939 dynamic_linker='GNU ld.so'
6940 ;;
6941
6942freebsd*)
6943 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6944 version_type=freebsd-$objformat
6945 case $version_type in
6946 freebsd-elf*)
6947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6948 need_version=no
6949 need_lib_prefix=no
6950 ;;
6951 freebsd-*)
6952 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6953 need_version=yes
6954 ;;
6955 esac
6956 shlibpath_var=LD_LIBRARY_PATH
6957 case $host_os in
6958 freebsd2*)
6959 shlibpath_overrides_runpath=yes
6960 ;;
6961 freebsd3.01* | freebsdelf3.01*)
6962 shlibpath_overrides_runpath=yes
6963 hardcode_into_libs=yes
6964 ;;
6965 *) # from 3.2 on
6966 shlibpath_overrides_runpath=no
6967 hardcode_into_libs=yes
6968 ;;
6969 esac
6970 ;;
6971
6972gnu*)
6973 version_type=linux
6974 need_lib_prefix=no
6975 need_version=no
6976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6977 soname_spec='${libname}${release}${shared_ext}$major'
6978 shlibpath_var=LD_LIBRARY_PATH
6979 hardcode_into_libs=yes
6980 ;;
6981
6982hpux9* | hpux10* | hpux11*)
6983 # Give a soname corresponding to the major version so that dld.sl refuses to
6984 # link against other versions.
6985 version_type=sunos
6986 need_lib_prefix=no
6987 need_version=no
6988 case "$host_cpu" in
6989 ia64*)
6990 shrext_cmds='.so'
6991 hardcode_into_libs=yes
6992 dynamic_linker="$host_os dld.so"
6993 shlibpath_var=LD_LIBRARY_PATH
6994 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6996 soname_spec='${libname}${release}${shared_ext}$major'
6997 if test "X$HPUX_IA64_MODE" = X32; then
6998 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6999 else
7000 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7001 fi
7002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7003 ;;
7004 hppa*64*)
7005 shrext_cmds='.sl'
7006 hardcode_into_libs=yes
7007 dynamic_linker="$host_os dld.sl"
7008 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7011 soname_spec='${libname}${release}${shared_ext}$major'
7012 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7013 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7014 ;;
7015 *)
7016 shrext_cmds='.sl'
7017 dynamic_linker="$host_os dld.sl"
7018 shlibpath_var=SHLIB_PATH
7019 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7021 soname_spec='${libname}${release}${shared_ext}$major'
7022 ;;
7023 esac
7024 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7025 postinstall_cmds='chmod 555 $lib'
7026 ;;
7027
7028irix5* | irix6* | nonstopux*)
7029 case $host_os in
7030 nonstopux*) version_type=nonstopux ;;
7031 *)
7032 if test "$lt_cv_prog_gnu_ld" = yes; then
7033 version_type=linux
7034 else
7035 version_type=irix
7036 fi ;;
7037 esac
7038 need_lib_prefix=no
7039 need_version=no
7040 soname_spec='${libname}${release}${shared_ext}$major'
7041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7042 case $host_os in
7043 irix5* | nonstopux*)
7044 libsuff= shlibsuff=
7045 ;;
7046 *)
7047 case $LD in # libtool.m4 will add one of these switches to LD
7048 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7049 libsuff= shlibsuff= libmagic=32-bit;;
7050 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7051 libsuff=32 shlibsuff=N32 libmagic=N32;;
7052 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7053 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7054 *) libsuff= shlibsuff= libmagic=never-match;;
7055 esac
7056 ;;
7057 esac
7058 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7059 shlibpath_overrides_runpath=no
7060 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7061 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7062 hardcode_into_libs=yes
7063 ;;
7064
7065# No shared lib support for Linux oldld, aout, or coff.
7066linux*oldld* | linux*aout* | linux*coff*)
7067 dynamic_linker=no
7068 ;;
7069
7070# This must be Linux ELF.
7071linux*)
7072 version_type=linux
7073 need_lib_prefix=no
7074 need_version=no
7075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7076 soname_spec='${libname}${release}${shared_ext}$major'
7077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7078 shlibpath_var=LD_LIBRARY_PATH
7079 shlibpath_overrides_runpath=no
7080 # This implies no fast_install, which is unacceptable.
7081 # Some rework will be needed to allow for fast_install
7082 # before this can be enabled.
7083 hardcode_into_libs=yes
7084
7085 # Append ld.so.conf contents to the search path
7086 if test -f /etc/ld.so.conf; then
7087 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7088 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7089 fi
7090
7091 # We used to test for /lib/ld.so.1 and disable shared libraries on
7092 # powerpc, because MkLinux only supported shared libraries with the
7093 # GNU dynamic linker. Since this was broken with cross compilers,
7094 # most powerpc-linux boxes support dynamic linking these days and
7095 # people can always --disable-shared, the test was removed, and we
7096 # assume the GNU/Linux dynamic linker is in use.
7097 dynamic_linker='GNU/Linux ld.so'
7098 ;;
7099
7100knetbsd*-gnu)
7101 version_type=linux
7102 need_lib_prefix=no
7103 need_version=no
7104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7105 soname_spec='${libname}${release}${shared_ext}$major'
7106 shlibpath_var=LD_LIBRARY_PATH
7107 shlibpath_overrides_runpath=no
7108 hardcode_into_libs=yes
7109 dynamic_linker='GNU ld.so'
7110 ;;
7111
7112netbsd*)
7113 version_type=sunos
7114 need_lib_prefix=no
7115 need_version=no
7116 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7119 dynamic_linker='NetBSD (a.out) ld.so'
7120 else
7121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7122 soname_spec='${libname}${release}${shared_ext}$major'
7123 dynamic_linker='NetBSD ld.elf_so'
7124 fi
7125 shlibpath_var=LD_LIBRARY_PATH
7126 shlibpath_overrides_runpath=yes
7127 hardcode_into_libs=yes
7128 ;;
7129
7130newsos6)
7131 version_type=linux
7132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7133 shlibpath_var=LD_LIBRARY_PATH
7134 shlibpath_overrides_runpath=yes
7135 ;;
7136
7137nto-qnx*)
7138 version_type=linux
7139 need_lib_prefix=no
7140 need_version=no
7141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7142 soname_spec='${libname}${release}${shared_ext}$major'
7143 shlibpath_var=LD_LIBRARY_PATH
7144 shlibpath_overrides_runpath=yes
7145 ;;
7146
7147openbsd*)
7148 version_type=sunos
7149 need_lib_prefix=no
7150 need_version=no
7151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7152 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7153 shlibpath_var=LD_LIBRARY_PATH
7154 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7155 case $host_os in
7156 openbsd2.[89] | openbsd2.[89].*)
7157 shlibpath_overrides_runpath=no
7158 ;;
7159 *)
7160 shlibpath_overrides_runpath=yes
7161 ;;
7162 esac
7163 else
7164 shlibpath_overrides_runpath=yes
7165 fi
7166 ;;
7167
7168os2*)
7169 libname_spec='$name'
7170 shrext_cmds=".dll"
7171 need_lib_prefix=no
7172 library_names_spec='$libname${shared_ext} $libname.a'
7173 dynamic_linker='OS/2 ld.exe'
7174 shlibpath_var=LIBPATH
7175 ;;
7176
7177osf3* | osf4* | osf5*)
7178 version_type=osf
7179 need_lib_prefix=no
7180 need_version=no
7181 soname_spec='${libname}${release}${shared_ext}$major'
7182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7183 shlibpath_var=LD_LIBRARY_PATH
7184 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7185 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7186 ;;
7187
7188sco3.2v5*)
7189 version_type=osf
7190 soname_spec='${libname}${release}${shared_ext}$major'
7191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7192 shlibpath_var=LD_LIBRARY_PATH
7193 ;;
7194
7195solaris*)
7196 version_type=linux
7197 need_lib_prefix=no
7198 need_version=no
7199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7200 soname_spec='${libname}${release}${shared_ext}$major'
7201 shlibpath_var=LD_LIBRARY_PATH
7202 shlibpath_overrides_runpath=yes
7203 hardcode_into_libs=yes
7204 # ldd complains unless libraries are executable
7205 postinstall_cmds='chmod +x $lib'
7206 ;;
7207
7208sunos4*)
7209 version_type=sunos
7210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7211 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7212 shlibpath_var=LD_LIBRARY_PATH
7213 shlibpath_overrides_runpath=yes
7214 if test "$with_gnu_ld" = yes; then
7215 need_lib_prefix=no
7216 fi
7217 need_version=yes
7218 ;;
7219
7220sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7221 version_type=linux
7222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7223 soname_spec='${libname}${release}${shared_ext}$major'
7224 shlibpath_var=LD_LIBRARY_PATH
7225 case $host_vendor in
7226 sni)
7227 shlibpath_overrides_runpath=no
7228 need_lib_prefix=no
7229 export_dynamic_flag_spec='${wl}-Blargedynsym'
7230 runpath_var=LD_RUN_PATH
7231 ;;
7232 siemens)
7233 need_lib_prefix=no
7234 ;;
7235 motorola)
7236 need_lib_prefix=no
7237 need_version=no
7238 shlibpath_overrides_runpath=no
7239 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7240 ;;
7241 esac
7242 ;;
7243
7244sysv4*MP*)
7245 if test -d /usr/nec ;then
7246 version_type=linux
7247 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7248 soname_spec='$libname${shared_ext}.$major'
7249 shlibpath_var=LD_LIBRARY_PATH
7250 fi
7251 ;;
7252
7253uts4*)
7254 version_type=linux
7255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7256 soname_spec='${libname}${release}${shared_ext}$major'
7257 shlibpath_var=LD_LIBRARY_PATH
7258 ;;
7259
7260*)
7261 dynamic_linker=no
7262 ;;
7263esac
7264echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7265echo "${ECHO_T}$dynamic_linker" >&6
7266test "$dynamic_linker" = no && can_build_shared=no
7267
7268
7269echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
7270echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
7271if test "${libltdl_cv_shlibext+set}" = set; then
7272 echo $ECHO_N "(cached) $ECHO_C" >&6
7273else
7274
7275module=yes
7276eval libltdl_cv_shlibext=$shrext_cmds
7277
7278fi
7279echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7280echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7281if test -n "$libltdl_cv_shlibext"; then
7282
7283cat >>confdefs.h <<_ACEOF
7284#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7285_ACEOF
7286
7287fi
7288
7289
7290echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7291echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7292if test "${libltdl_cv_shlibpath_var+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7294else
7295 libltdl_cv_shlibpath_var="$shlibpath_var"
7296fi
7297echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7298echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7299if test -n "$libltdl_cv_shlibpath_var"; then
7300
7301cat >>confdefs.h <<_ACEOF
7302#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7303_ACEOF
7304
7305fi
7306
7307
7308echo "$as_me:$LINENO: checking for the default library search path" >&5
7309echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7310if test "${libltdl_cv_sys_search_path+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7312else
7313 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7314fi
7315echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7316echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7317if test -n "$libltdl_cv_sys_search_path"; then
7318 sys_search_path=
7319 for dir in $libltdl_cv_sys_search_path; do
7320 if test -z "$sys_search_path"; then
7321 sys_search_path="$dir"
7322 else
7323 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7324 fi
7325 done
7326
7327cat >>confdefs.h <<_ACEOF
7328#define LTDL_SYSSEARCHPATH "$sys_search_path"
7329_ACEOF
7330
7331fi
7332
7333echo "$as_me:$LINENO: checking for objdir" >&5
7334echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7335if test "${libltdl_cv_objdir+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337else
7338 libltdl_cv_objdir="$objdir"
7339 if test -n "$objdir"; then
7340 :
7341 else
7342 rm -f .libs 2>/dev/null
7343 mkdir .libs 2>/dev/null
7344 if test -d .libs; then
7345 libltdl_cv_objdir=.libs
7346 else
7347 # MS-DOS does not allow filenames that begin with a dot.
7348 libltdl_cv_objdir=_libs
7349 fi
7350 rmdir .libs 2>/dev/null
7351 fi
7352
7353fi
7354echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7355echo "${ECHO_T}$libltdl_cv_objdir" >&6
7356
7357cat >>confdefs.h <<_ACEOF
7358#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7359_ACEOF
7360
7361
7362echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7363echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7364if test "${lt_cv_path_NM+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7366else
7367 if test -n "$NM"; then
7368 # Let the user override the test.
7369 lt_cv_path_NM="$NM"
7370else
7371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7372 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7373 IFS="$lt_save_ifs"
7374 test -z "$ac_dir" && ac_dir=.
7375 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7376 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7377 # Check to see if the nm accepts a BSD-compat flag.
7378 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7379 # nm: unknown option "B" ignored
7380 # Tru64's nm complains that /dev/null is an invalid object file
7381 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7382 */dev/null* | *'Invalid file or object type'*)
7383 lt_cv_path_NM="$tmp_nm -B"
7384 break
7385 ;;
7386 *)
7387 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7388 */dev/null*)
7389 lt_cv_path_NM="$tmp_nm -p"
7390 break
7391 ;;
7392 *)
7393 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7394 continue # so that we can try to find one that supports BSD flags
7395 ;;
7396 esac
7397 esac
7398 fi
7399 done
7400 IFS="$lt_save_ifs"
7401 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7402fi
7403fi
7404echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7405echo "${ECHO_T}$lt_cv_path_NM" >&6
7406NM="$lt_cv_path_NM"
7407
7408
7409
7410
7411
7412# Check for command to grab the raw symbol name followed by C symbol from nm.
7413echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7414echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7415if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7417else
7418
7419# These are sane defaults that work on at least a few old systems.
7420# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7421
7422# Character class describing NM global symbol codes.
7423symcode='[BCDEGRST]'
7424
7425# Regexp to match symbols that can be accessed directly from C.
7426sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7427
7428# Transform the above into a raw symbol and a C symbol.
7429symxfrm='\1 \2\3 \3'
7430
7431# Transform an extracted symbol line into a proper C declaration
7432lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7433
7434# Transform an extracted symbol line into symbol name and symbol address
7435lt_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'"
7436
7437# Define system-specific variables.
7438case $host_os in
7439aix*)
7440 symcode='[BCDT]'
7441 ;;
7442cygwin* | mingw* | pw32*)
7443 symcode='[ABCDGISTW]'
7444 ;;
7445hpux*) # Its linker distinguishes data from code symbols
7446 if test "$host_cpu" = ia64; then
7447 symcode='[ABCDEGRST]'
7448 fi
7449 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7450 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'"
7451 ;;
7452linux*)
7453 if test "$host_cpu" = ia64; then
7454 symcode='[ABCDGIRSTW]'
7455 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7456 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'"
7457 fi
7458 ;;
7459irix* | nonstopux*)
7460 symcode='[BCDEGRST]'
7461 ;;
7462osf*)
7463 symcode='[BCDEGQRST]'
7464 ;;
7465solaris* | sysv5*)
7466 symcode='[BDRT]'
7467 ;;
7468sysv4)
7469 symcode='[DFNSTU]'
7470 ;;
7471esac
7472
7473# Handle CRLF in mingw tool chain
7474opt_cr=
7475case $build_os in
7476mingw*)
7477 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7478 ;;
7479esac
7480
7481# If we're using GNU nm, then use its standard symbol codes.
7482case `$NM -V 2>&1` in
7483*GNU* | *'with BFD'*)
7484 symcode='[ABCDGIRSTW]' ;;
7485esac
7486
7487# Try without a prefix undercore, then with it.
7488for ac_symprfx in "" "_"; do
7489
7490 # Write the raw and C identifiers.
7491 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7492
7493 # Check to see that the pipe works correctly.
7494 pipe_works=no
7495
7496 rm -f conftest*
7497 cat > conftest.$ac_ext <<EOF
7498#ifdef __cplusplus
7499extern "C" {
7500#endif
7501char nm_test_var;
7502void nm_test_func(){}
7503#ifdef __cplusplus
7504}
7505#endif
7506int main(){nm_test_var='a';nm_test_func();return(0);}
7507EOF
7508
7509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7510 (eval $ac_compile) 2>&5
7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; then
7514 # Now try to grab the symbols.
7515 nlist=conftest.nm
7516 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7517 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); } && test -s "$nlist"; then
7521 # Try sorting and uniquifying the output.
7522 if sort "$nlist" | uniq > "$nlist"T; then
7523 mv -f "$nlist"T "$nlist"
7524 else
7525 rm -f "$nlist"T
7526 fi
7527
7528 # Make sure that we snagged all the symbols we need.
7529 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7530 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7531 cat <<EOF > conftest.$ac_ext
7532#ifdef __cplusplus
7533extern "C" {
7534#endif
7535
7536EOF
7537 # Now generate the symbol file.
7538 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7539
7540 cat <<EOF >> conftest.$ac_ext
7541#if defined (__STDC__) && __STDC__
7542# define lt_ptr_t void *
7543#else
7544# define lt_ptr_t char *
7545# define const
7546#endif
7547
7548/* The mapping between symbol names and symbols. */
7549const struct {
7550 const char *name;
7551 lt_ptr_t address;
7552}
7553lt_preloaded_symbols[] =
7554{
7555EOF
7556 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7557 cat <<\EOF >> conftest.$ac_ext
7558 {0, (lt_ptr_t) 0}
7559};
7560
7561#ifdef __cplusplus
7562}
7563#endif
7564EOF
7565 # Now try linking the two files.
7566 mv conftest.$ac_objext conftstm.$ac_objext
7567 lt_save_LIBS="$LIBS"
7568 lt_save_CFLAGS="$CFLAGS"
7569 LIBS="conftstm.$ac_objext"
7570 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>&5
7573 ac_status=$?
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7576 pipe_works=yes
7577 fi
7578 LIBS="$lt_save_LIBS"
7579 CFLAGS="$lt_save_CFLAGS"
7580 else
7581 echo "cannot find nm_test_func in $nlist" >&5
7582 fi
7583 else
7584 echo "cannot find nm_test_var in $nlist" >&5
7585 fi
7586 else
7587 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7588 fi
7589 else
7590 echo "$progname: failed program was:" >&5
7591 cat conftest.$ac_ext >&5
7592 fi
7593 rm -f conftest* conftst*
7594
7595 # Do not use the global_symbol_pipe unless it works.
7596 if test "$pipe_works" = yes; then
7597 break
7598 else
7599 lt_cv_sys_global_symbol_pipe=
7600 fi
7601done
7602
7603fi
7604
7605if test -z "$lt_cv_sys_global_symbol_pipe"; then
7606 lt_cv_sys_global_symbol_to_cdecl=
7607fi
7608if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7609 echo "$as_me:$LINENO: result: failed" >&5
7610echo "${ECHO_T}failed" >&6
7611else
7612 echo "$as_me:$LINENO: result: ok" >&5
7613echo "${ECHO_T}ok" >&6
7614fi
7615
7616
7617echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7618echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7619if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7620 echo $ECHO_N "(cached) $ECHO_C" >&6
7621else
7622 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7623 libltdl_cv_preloaded_symbols=yes
7624 else
7625 libltdl_cv_preloaded_symbols=no
7626 fi
7627
7628fi
7629echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7630echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7631if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7632
7633cat >>confdefs.h <<\_ACEOF
7634#define HAVE_PRELOADED_SYMBOLS 1
7635_ACEOF
7636
7637fi
7638
7639LIBADD_DL=
7640
7641ac_ext=c
7642ac_cpp='$CPP $CPPFLAGS'
7643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7645ac_compiler_gnu=$ac_cv_c_compiler_gnu
7646
7647
7648echo "$as_me:$LINENO: checking for shl_load" >&5
7649echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7650if test "${ac_cv_func_shl_load+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7652else
7653 cat >conftest.$ac_ext <<_ACEOF
7654/* confdefs.h. */
7655_ACEOF
7656cat confdefs.h >>conftest.$ac_ext
7657cat >>conftest.$ac_ext <<_ACEOF
7658/* end confdefs.h. */
7659/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7661#define shl_load innocuous_shl_load
7662
7663/* System header to define __stub macros and hopefully few prototypes,
7664 which can conflict with char shl_load (); below.
7665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7666 <limits.h> exists even on freestanding compilers. */
7667
7668#ifdef __STDC__
7669# include <limits.h>
7670#else
7671# include <assert.h>
7672#endif
7673
7674#undef shl_load
7675
7676/* Override any gcc2 internal prototype to avoid an error. */
7677#ifdef __cplusplus
7678extern "C"
7679{
7680#endif
7681/* We use char because int might match the return type of a gcc2
7682 builtin and then its argument prototype would still apply. */
7683char shl_load ();
7684/* The GNU C library defines this for functions which it implements
7685 to always fail with ENOSYS. Some functions are actually named
7686 something starting with __ and the normal name is an alias. */
7687#if defined (__stub_shl_load) || defined (__stub___shl_load)
7688choke me
7689#else
7690char (*f) () = shl_load;
7691#endif
7692#ifdef __cplusplus
7693}
7694#endif
7695
7696int
7697main ()
7698{
7699return f != shl_load;
7700 ;
7701 return 0;
7702}
7703_ACEOF
7704rm -f conftest.$ac_objext conftest$ac_exeext
7705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } &&
7713 { ac_try='test -z "$ac_c_werror_flag"
7714 || test ! -s conftest.err'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; } &&
7720 { ac_try='test -s conftest$ac_exeext'
7721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722 (eval $ac_try) 2>&5
7723 ac_status=$?
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }; }; then
7726 ac_cv_func_shl_load=yes
7727else
7728 echo "$as_me: failed program was:" >&5
7729sed 's/^/| /' conftest.$ac_ext >&5
7730
7731ac_cv_func_shl_load=no
7732fi
7733rm -f conftest.err conftest.$ac_objext \
7734 conftest$ac_exeext conftest.$ac_ext
7735fi
7736echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7737echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7738if test $ac_cv_func_shl_load = yes; then
7739
7740cat >>confdefs.h <<\_ACEOF
7741#define HAVE_SHL_LOAD 1
7742_ACEOF
7743
7744else
7745 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7746echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7747if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749else
7750 ac_check_lib_save_LIBS=$LIBS
7751LIBS="-ldld $LIBS"
7752cat >conftest.$ac_ext <<_ACEOF
7753/* confdefs.h. */
7754_ACEOF
7755cat confdefs.h >>conftest.$ac_ext
7756cat >>conftest.$ac_ext <<_ACEOF
7757/* end confdefs.h. */
7758
7759/* Override any gcc2 internal prototype to avoid an error. */
7760#ifdef __cplusplus
7761extern "C"
7762#endif
7763/* We use char because int might match the return type of a gcc2
7764 builtin and then its argument prototype would still apply. */
7765char shl_load ();
7766int
7767main ()
7768{
7769shl_load ();
7770 ;
7771 return 0;
7772}
7773_ACEOF
7774rm -f conftest.$ac_objext conftest$ac_exeext
7775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7776 (eval $ac_link) 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try='test -z "$ac_c_werror_flag"
7784 || test ! -s conftest.err'
7785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786 (eval $ac_try) 2>&5
7787 ac_status=$?
7788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789 (exit $ac_status); }; } &&
7790 { ac_try='test -s conftest$ac_exeext'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7792 (eval $ac_try) 2>&5
7793 ac_status=$?
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; }; then
7796 ac_cv_lib_dld_shl_load=yes
7797else
7798 echo "$as_me: failed program was:" >&5
7799sed 's/^/| /' conftest.$ac_ext >&5
7800
7801ac_cv_lib_dld_shl_load=no
7802fi
7803rm -f conftest.err conftest.$ac_objext \
7804 conftest$ac_exeext conftest.$ac_ext
7805LIBS=$ac_check_lib_save_LIBS
7806fi
7807echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7808echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7809if test $ac_cv_lib_dld_shl_load = yes; then
7810
7811cat >>confdefs.h <<\_ACEOF
7812#define HAVE_SHL_LOAD 1
7813_ACEOF
7814
7815 LIBADD_DL="$LIBADD_DL -ldld"
7816else
7817 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7818echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7819if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7821else
7822 ac_check_lib_save_LIBS=$LIBS
7823LIBS="-ldl $LIBS"
7824cat >conftest.$ac_ext <<_ACEOF
7825/* confdefs.h. */
7826_ACEOF
7827cat confdefs.h >>conftest.$ac_ext
7828cat >>conftest.$ac_ext <<_ACEOF
7829/* end confdefs.h. */
7830
7831/* Override any gcc2 internal prototype to avoid an error. */
7832#ifdef __cplusplus
7833extern "C"
7834#endif
7835/* We use char because int might match the return type of a gcc2
7836 builtin and then its argument prototype would still apply. */
7837char dlopen ();
7838int
7839main ()
7840{
7841dlopen ();
7842 ;
7843 return 0;
7844}
7845_ACEOF
7846rm -f conftest.$ac_objext conftest$ac_exeext
7847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7848 (eval $ac_link) 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -z "$ac_c_werror_flag"
7856 || test ! -s conftest.err'
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest$ac_exeext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 ac_cv_lib_dl_dlopen=yes
7869else
7870 echo "$as_me: failed program was:" >&5
7871sed 's/^/| /' conftest.$ac_ext >&5
7872
7873ac_cv_lib_dl_dlopen=no
7874fi
7875rm -f conftest.err conftest.$ac_objext \
7876 conftest$ac_exeext conftest.$ac_ext
7877LIBS=$ac_check_lib_save_LIBS
7878fi
7879echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7880echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7881if test $ac_cv_lib_dl_dlopen = yes; then
7882
7883cat >>confdefs.h <<\_ACEOF
7884#define HAVE_LIBDL 1
7885_ACEOF
7886
7887 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7888else
7889 cat >conftest.$ac_ext <<_ACEOF
7890/* confdefs.h. */
7891_ACEOF
7892cat confdefs.h >>conftest.$ac_ext
7893cat >>conftest.$ac_ext <<_ACEOF
7894/* end confdefs.h. */
7895#if HAVE_DLFCN_H
7896# include <dlfcn.h>
7897#endif
7898
7899int
7900main ()
7901{
7902dlopen(0, 0);
7903 ;
7904 return 0;
7905}
7906_ACEOF
7907rm -f conftest.$ac_objext conftest$ac_exeext
7908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909 (eval $ac_link) 2>conftest.er1
7910 ac_status=$?
7911 grep -v '^ *+' conftest.er1 >conftest.err
7912 rm -f conftest.er1
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try='test -z "$ac_c_werror_flag"
7917 || test ! -s conftest.err'
7918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 (eval $ac_try) 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; } &&
7923 { ac_try='test -s conftest$ac_exeext'
7924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 (eval $ac_try) 2>&5
7926 ac_status=$?
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7929
7930cat >>confdefs.h <<\_ACEOF
7931#define HAVE_LIBDL 1
7932_ACEOF
7933 libltdl_cv_func_dlopen="yes"
7934else
7935 echo "$as_me: failed program was:" >&5
7936sed 's/^/| /' conftest.$ac_ext >&5
7937
7938echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7939echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7940if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7941 echo $ECHO_N "(cached) $ECHO_C" >&6
7942else
7943 ac_check_lib_save_LIBS=$LIBS
7944LIBS="-lsvld $LIBS"
7945cat >conftest.$ac_ext <<_ACEOF
7946/* confdefs.h. */
7947_ACEOF
7948cat confdefs.h >>conftest.$ac_ext
7949cat >>conftest.$ac_ext <<_ACEOF
7950/* end confdefs.h. */
7951
7952/* Override any gcc2 internal prototype to avoid an error. */
7953#ifdef __cplusplus
7954extern "C"
7955#endif
7956/* We use char because int might match the return type of a gcc2
7957 builtin and then its argument prototype would still apply. */
7958char dlopen ();
7959int
7960main ()
7961{
7962dlopen ();
7963 ;
7964 return 0;
7965}
7966_ACEOF
7967rm -f conftest.$ac_objext conftest$ac_exeext
7968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7969 (eval $ac_link) 2>conftest.er1
7970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } &&
7976 { ac_try='test -z "$ac_c_werror_flag"
7977 || test ! -s conftest.err'
7978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 (eval $ac_try) 2>&5
7980 ac_status=$?
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); }; } &&
7983 { ac_try='test -s conftest$ac_exeext'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 (eval $ac_try) 2>&5
7986 ac_status=$?
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; }; then
7989 ac_cv_lib_svld_dlopen=yes
7990else
7991 echo "$as_me: failed program was:" >&5
7992sed 's/^/| /' conftest.$ac_ext >&5
7993
7994ac_cv_lib_svld_dlopen=no
7995fi
7996rm -f conftest.err conftest.$ac_objext \
7997 conftest$ac_exeext conftest.$ac_ext
7998LIBS=$ac_check_lib_save_LIBS
7999fi
8000echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8001echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8002if test $ac_cv_lib_svld_dlopen = yes; then
8003
8004cat >>confdefs.h <<\_ACEOF
8005#define HAVE_LIBDL 1
8006_ACEOF
8007
8008 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
8009else
8010 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8011echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8012if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8014else
8015 ac_check_lib_save_LIBS=$LIBS
8016LIBS="-ldld $LIBS"
8017cat >conftest.$ac_ext <<_ACEOF
8018/* confdefs.h. */
8019_ACEOF
8020cat confdefs.h >>conftest.$ac_ext
8021cat >>conftest.$ac_ext <<_ACEOF
8022/* end confdefs.h. */
8023
8024/* Override any gcc2 internal prototype to avoid an error. */
8025#ifdef __cplusplus
8026extern "C"
8027#endif
8028/* We use char because int might match the return type of a gcc2
8029 builtin and then its argument prototype would still apply. */
8030char dld_link ();
8031int
8032main ()
8033{
8034dld_link ();
8035 ;
8036 return 0;
8037}
8038_ACEOF
8039rm -f conftest.$ac_objext conftest$ac_exeext
8040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8041 (eval $ac_link) 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } &&
8048 { ac_try='test -z "$ac_c_werror_flag"
8049 || test ! -s conftest.err'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 (eval $ac_try) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest$ac_exeext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057 (eval $ac_try) 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 ac_cv_lib_dld_dld_link=yes
8062else
8063 echo "$as_me: failed program was:" >&5
8064sed 's/^/| /' conftest.$ac_ext >&5
8065
8066ac_cv_lib_dld_dld_link=no
8067fi
8068rm -f conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8070LIBS=$ac_check_lib_save_LIBS
8071fi
8072echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8073echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8074if test $ac_cv_lib_dld_dld_link = yes; then
8075
8076cat >>confdefs.h <<\_ACEOF
8077#define HAVE_DLD 1
8078_ACEOF
8079
8080 LIBADD_DL="$LIBADD_DL -ldld"
8081else
8082 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
8083echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
8084if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8086else
8087 cat >conftest.$ac_ext <<_ACEOF
8088/* confdefs.h. */
8089_ACEOF
8090cat confdefs.h >>conftest.$ac_ext
8091cat >>conftest.$ac_ext <<_ACEOF
8092/* end confdefs.h. */
8093/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
8094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8095#define _dyld_func_lookup innocuous__dyld_func_lookup
8096
8097/* System header to define __stub macros and hopefully few prototypes,
8098 which can conflict with char _dyld_func_lookup (); below.
8099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8100 <limits.h> exists even on freestanding compilers. */
8101
8102#ifdef __STDC__
8103# include <limits.h>
8104#else
8105# include <assert.h>
8106#endif
8107
8108#undef _dyld_func_lookup
8109
8110/* Override any gcc2 internal prototype to avoid an error. */
8111#ifdef __cplusplus
8112extern "C"
8113{
8114#endif
8115/* We use char because int might match the return type of a gcc2
8116 builtin and then its argument prototype would still apply. */
8117char _dyld_func_lookup ();
8118/* The GNU C library defines this for functions which it implements
8119 to always fail with ENOSYS. Some functions are actually named
8120 something starting with __ and the normal name is an alias. */
8121#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
8122choke me
8123#else
8124char (*f) () = _dyld_func_lookup;
8125#endif
8126#ifdef __cplusplus
8127}
8128#endif
8129
8130int
8131main ()
8132{
8133return f != _dyld_func_lookup;
8134 ;
8135 return 0;
8136}
8137_ACEOF
8138rm -f conftest.$ac_objext conftest$ac_exeext
8139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8140 (eval $ac_link) 2>conftest.er1
8141 ac_status=$?
8142 grep -v '^ *+' conftest.er1 >conftest.err
8143 rm -f conftest.er1
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } &&
8147 { ac_try='test -z "$ac_c_werror_flag"
8148 || test ! -s conftest.err'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150 (eval $ac_try) 2>&5
8151 ac_status=$?
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; } &&
8154 { ac_try='test -s conftest$ac_exeext'
8155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8156 (eval $ac_try) 2>&5
8157 ac_status=$?
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); }; }; then
8160 ac_cv_func__dyld_func_lookup=yes
8161else
8162 echo "$as_me: failed program was:" >&5
8163sed 's/^/| /' conftest.$ac_ext >&5
8164
8165ac_cv_func__dyld_func_lookup=no
8166fi
8167rm -f conftest.err conftest.$ac_objext \
8168 conftest$ac_exeext conftest.$ac_ext
8169fi
8170echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
8171echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
8172if test $ac_cv_func__dyld_func_lookup = yes; then
8173
8174cat >>confdefs.h <<\_ACEOF
8175#define HAVE_DYLD 1
8176_ACEOF
8177
8178fi
8179
8180
8181fi
8182
8183
8184fi
8185
8186
8187fi
8188rm -f conftest.err conftest.$ac_objext \
8189 conftest$ac_exeext conftest.$ac_ext
8190
8191fi
8192
8193
8194fi
8195
8196
8197fi
8198
8199
8200if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
8201then
8202 lt_save_LIBS="$LIBS"
8203 LIBS="$LIBS $LIBADD_DL"
8204
8205for ac_func in dlerror
8206do
8207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8208echo "$as_me:$LINENO: checking for $ac_func" >&5
8209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8210if eval "test \"\${$as_ac_var+set}\" = set"; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8212else
8213 cat >conftest.$ac_ext <<_ACEOF
8214/* confdefs.h. */
8215_ACEOF
8216cat confdefs.h >>conftest.$ac_ext
8217cat >>conftest.$ac_ext <<_ACEOF
8218/* end confdefs.h. */
8219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8221#define $ac_func innocuous_$ac_func
8222
8223/* System header to define __stub macros and hopefully few prototypes,
8224 which can conflict with char $ac_func (); below.
8225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8226 <limits.h> exists even on freestanding compilers. */
8227
8228#ifdef __STDC__
8229# include <limits.h>
8230#else
8231# include <assert.h>
8232#endif
8233
8234#undef $ac_func
8235
8236/* Override any gcc2 internal prototype to avoid an error. */
8237#ifdef __cplusplus
8238extern "C"
8239{
8240#endif
8241/* We use char because int might match the return type of a gcc2
8242 builtin and then its argument prototype would still apply. */
8243char $ac_func ();
8244/* The GNU C library defines this for functions which it implements
8245 to always fail with ENOSYS. Some functions are actually named
8246 something starting with __ and the normal name is an alias. */
8247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8248choke me
8249#else
8250char (*f) () = $ac_func;
8251#endif
8252#ifdef __cplusplus
8253}
8254#endif
8255
8256int
8257main ()
8258{
8259return f != $ac_func;
8260 ;
8261 return 0;
8262}
8263_ACEOF
8264rm -f conftest.$ac_objext conftest$ac_exeext
8265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8266 (eval $ac_link) 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } &&
8273 { ac_try='test -z "$ac_c_werror_flag"
8274 || test ! -s conftest.err'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8276 (eval $ac_try) 2>&5
8277 ac_status=$?
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; } &&
8280 { ac_try='test -s conftest$ac_exeext'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 (eval $ac_try) 2>&5
8283 ac_status=$?
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 eval "$as_ac_var=yes"
8287else
8288 echo "$as_me: failed program was:" >&5
8289sed 's/^/| /' conftest.$ac_ext >&5
8290
8291eval "$as_ac_var=no"
8292fi
8293rm -f conftest.err conftest.$ac_objext \
8294 conftest$ac_exeext conftest.$ac_ext
8295fi
8296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8297echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8298if test `eval echo '${'$as_ac_var'}'` = yes; then
8299 cat >>confdefs.h <<_ACEOF
8300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8301_ACEOF
8302
8303fi
8304done
8305
8306 LIBS="$lt_save_LIBS"
8307fi
8308ac_ext=c
8309ac_cpp='$CPP $CPPFLAGS'
8310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8312ac_compiler_gnu=$ac_cv_c_compiler_gnu
8313
8314
8315
8316echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8317echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8318if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8320else
8321 ac_cv_sys_symbol_underscore=no
8322 cat > conftest.$ac_ext <<EOF
8323void nm_test_func(){}
8324int main(){nm_test_func;return 0;}
8325EOF
8326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8327 (eval $ac_compile) 2>&5
8328 ac_status=$?
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; then
8331 # Now try to grab the symbols.
8332 ac_nlist=conftest.nm
8333 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8334 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8335 ac_status=$?
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } && test -s "$ac_nlist"; then
8338 # See whether the symbols have a leading underscore.
8339 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8340 ac_cv_sys_symbol_underscore=yes
8341 else
8342 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8343 :
8344 else
8345 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8346 fi
8347 fi
8348 else
8349 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8350 fi
8351 else
8352 echo "configure: failed program was:" >&5
8353 cat conftest.c >&5
8354 fi
8355 rm -rf conftest*
8356
8357fi
8358echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8359echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8360
8361
8362if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8363 if test x"$libltdl_cv_func_dlopen" = xyes ||
8364 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8365 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8366echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8367if test "${libltdl_cv_need_uscore+set}" = set; then
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369else
8370 libltdl_cv_need_uscore=unknown
8371 save_LIBS="$LIBS"
8372 LIBS="$LIBS $LIBADD_DL"
8373 if test "$cross_compiling" = yes; then :
8374 libltdl_cv_need_uscore=cross
8375else
8376 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8377 lt_status=$lt_dlunknown
8378 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +00008379#line 8380 "configure"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00008380#include "confdefs.h"
8381
8382#if HAVE_DLFCN_H
8383#include <dlfcn.h>
8384#endif
8385
8386#include <stdio.h>
8387
8388#ifdef RTLD_GLOBAL
8389# define LT_DLGLOBAL RTLD_GLOBAL
8390#else
8391# ifdef DL_GLOBAL
8392# define LT_DLGLOBAL DL_GLOBAL
8393# else
8394# define LT_DLGLOBAL 0
8395# endif
8396#endif
8397
8398/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8399 find out it does not work in some platform. */
8400#ifndef LT_DLLAZY_OR_NOW
8401# ifdef RTLD_LAZY
8402# define LT_DLLAZY_OR_NOW RTLD_LAZY
8403# else
8404# ifdef DL_LAZY
8405# define LT_DLLAZY_OR_NOW DL_LAZY
8406# else
8407# ifdef RTLD_NOW
8408# define LT_DLLAZY_OR_NOW RTLD_NOW
8409# else
8410# ifdef DL_NOW
8411# define LT_DLLAZY_OR_NOW DL_NOW
8412# else
8413# define LT_DLLAZY_OR_NOW 0
8414# endif
8415# endif
8416# endif
8417# endif
8418#endif
8419
8420#ifdef __cplusplus
8421extern "C" void exit (int);
8422#endif
8423
8424void fnord() { int i=42;}
8425int main ()
8426{
8427 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8428 int status = $lt_dlunknown;
8429
8430 if (self)
8431 {
8432 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8433 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8434 /* dlclose (self); */
8435 }
8436
8437 exit (status);
8438}
8439EOF
8440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8441 (eval $ac_link) 2>&5
8442 ac_status=$?
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8445 (./conftest; exit; ) 2>/dev/null
8446 lt_status=$?
8447 case x$lt_status in
8448 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8449 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8450 x$lt_unknown|x*) ;;
8451 esac
8452 else :
8453 # compilation failed
8454
8455 fi
8456fi
8457rm -fr conftest*
8458
8459 LIBS="$save_LIBS"
8460
8461fi
8462echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8463echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8464 fi
8465fi
8466
8467if test x"$libltdl_cv_need_uscore" = xyes; then
8468
8469cat >>confdefs.h <<\_ACEOF
8470#define NEED_USCORE 1
8471_ACEOF
8472
8473fi
8474
8475
8476echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8477echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8478if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8479 echo $ECHO_N "(cached) $ECHO_C" >&6
8480else
8481 # PORTME does your system automatically load deplibs for dlopen?
8482 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8483 # For now, we just catch OSes we know something about -- in the
8484 # future, we'll try test this programmatically.
8485 libltdl_cv_sys_dlopen_deplibs=unknown
8486 case "$host_os" in
8487 aix3*|aix4.1.*|aix4.2.*)
8488 # Unknown whether this is true for these versions of AIX, but
8489 # we want this `case' here to explicitly catch those versions.
8490 libltdl_cv_sys_dlopen_deplibs=unknown
8491 ;;
8492 aix[45]*)
8493 libltdl_cv_sys_dlopen_deplibs=yes
8494 ;;
8495 darwin*)
8496 # Assuming the user has installed a libdl from somewhere, this is true
8497 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8498 libltdl_cv_sys_dlopen_deplibs=yes
8499 ;;
8500 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8501 # GNU and its variants, using gnu ld.so (Glibc)
8502 libltdl_cv_sys_dlopen_deplibs=yes
8503 ;;
8504 hpux10*|hpux11*)
8505 libltdl_cv_sys_dlopen_deplibs=yes
8506 ;;
8507 irix[12345]*|irix6.[01]*)
8508 # Catch all versions of IRIX before 6.2, and indicate that we don't
8509 # know how it worked for any of those versions.
8510 libltdl_cv_sys_dlopen_deplibs=unknown
8511 ;;
8512 irix*)
8513 # The case above catches anything before 6.2, and it's known that
8514 # at 6.2 and later dlopen does load deplibs.
8515 libltdl_cv_sys_dlopen_deplibs=yes
8516 ;;
8517 netbsd*)
8518 libltdl_cv_sys_dlopen_deplibs=yes
8519 ;;
8520 openbsd*)
8521 libltdl_cv_sys_dlopen_deplibs=yes
8522 ;;
8523 osf[1234]*)
8524 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8525 # it did *not* use an RPATH in a shared library to find objects the
8526 # library depends on, so we explictly say `no'.
8527 libltdl_cv_sys_dlopen_deplibs=no
8528 ;;
8529 osf5.0|osf5.0a|osf5.1)
8530 # dlopen *does* load deplibs and with the right loader patch applied
8531 # it even uses RPATH in a shared library to search for shared objects
8532 # that the library depends on, but there's no easy way to know if that
8533 # patch is installed. Since this is the case, all we can really
8534 # say is unknown -- it depends on the patch being installed. If
8535 # it is, this changes to `yes'. Without it, it would be `no'.
8536 libltdl_cv_sys_dlopen_deplibs=unknown
8537 ;;
8538 osf*)
8539 # the two cases above should catch all versions of osf <= 5.1. Read
8540 # the comments above for what we know about them.
8541 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8542 # is used to find them so we can finally say `yes'.
8543 libltdl_cv_sys_dlopen_deplibs=yes
8544 ;;
8545 solaris*)
8546 libltdl_cv_sys_dlopen_deplibs=yes
8547 ;;
8548 esac
8549
8550fi
8551echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8552echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8553if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8554
8555cat >>confdefs.h <<\_ACEOF
8556#define LTDL_DLOPEN_DEPLIBS 1
8557_ACEOF
8558
8559fi
8560
8561
8562for ac_header in argz.h
8563do
8564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8565if eval "test \"\${$as_ac_Header+set}\" = set"; then
8566 echo "$as_me:$LINENO: checking for $ac_header" >&5
8567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8568if eval "test \"\${$as_ac_Header+set}\" = set"; then
8569 echo $ECHO_N "(cached) $ECHO_C" >&6
8570fi
8571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8573else
8574 # Is the header compilable?
8575echo "$as_me:$LINENO: checking $ac_header usability" >&5
8576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8577cat >conftest.$ac_ext <<_ACEOF
8578/* confdefs.h. */
8579_ACEOF
8580cat confdefs.h >>conftest.$ac_ext
8581cat >>conftest.$ac_ext <<_ACEOF
8582/* end confdefs.h. */
8583$ac_includes_default
8584#include <$ac_header>
8585_ACEOF
8586rm -f conftest.$ac_objext
8587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8588 (eval $ac_compile) 2>conftest.er1
8589 ac_status=$?
8590 grep -v '^ *+' conftest.er1 >conftest.err
8591 rm -f conftest.er1
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -z "$ac_c_werror_flag"
8596 || test ! -s conftest.err'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 (eval $ac_try) 2>&5
8599 ac_status=$?
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest.$ac_objext'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 (eval $ac_try) 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; }; then
8608 ac_header_compiler=yes
8609else
8610 echo "$as_me: failed program was:" >&5
8611sed 's/^/| /' conftest.$ac_ext >&5
8612
8613ac_header_compiler=no
8614fi
8615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8616echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8617echo "${ECHO_T}$ac_header_compiler" >&6
8618
8619# Is the header present?
8620echo "$as_me:$LINENO: checking $ac_header presence" >&5
8621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8622cat >conftest.$ac_ext <<_ACEOF
8623/* confdefs.h. */
8624_ACEOF
8625cat confdefs.h >>conftest.$ac_ext
8626cat >>conftest.$ac_ext <<_ACEOF
8627/* end confdefs.h. */
8628#include <$ac_header>
8629_ACEOF
8630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8632 ac_status=$?
8633 grep -v '^ *+' conftest.er1 >conftest.err
8634 rm -f conftest.er1
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } >/dev/null; then
8638 if test -s conftest.err; then
8639 ac_cpp_err=$ac_c_preproc_warn_flag
8640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8641 else
8642 ac_cpp_err=
8643 fi
8644else
8645 ac_cpp_err=yes
8646fi
8647if test -z "$ac_cpp_err"; then
8648 ac_header_preproc=yes
8649else
8650 echo "$as_me: failed program was:" >&5
8651sed 's/^/| /' conftest.$ac_ext >&5
8652
8653 ac_header_preproc=no
8654fi
8655rm -f conftest.err conftest.$ac_ext
8656echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8657echo "${ECHO_T}$ac_header_preproc" >&6
8658
8659# So? What about this header?
8660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8661 yes:no: )
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8663echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8665echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8666 ac_header_preproc=yes
8667 ;;
8668 no:yes:* )
8669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8670echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8672echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8674echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8676echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8678echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8680echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8681 (
8682 cat <<\_ASBOX
8683## ----------------------------------- ##
8684## Report this to llvmbugs@cs.uiuc.edu ##
8685## ----------------------------------- ##
8686_ASBOX
8687 ) |
8688 sed "s/^/$as_me: WARNING: /" >&2
8689 ;;
8690esac
8691echo "$as_me:$LINENO: checking for $ac_header" >&5
8692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8693if eval "test \"\${$as_ac_Header+set}\" = set"; then
8694 echo $ECHO_N "(cached) $ECHO_C" >&6
8695else
8696 eval "$as_ac_Header=\$ac_header_preproc"
8697fi
8698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8700
8701fi
8702if test `eval echo '${'$as_ac_Header'}'` = yes; then
8703 cat >>confdefs.h <<_ACEOF
8704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8705_ACEOF
8706
8707fi
8708
8709done
8710
8711
8712echo "$as_me:$LINENO: checking for error_t" >&5
8713echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8714if test "${ac_cv_type_error_t+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8716else
8717 cat >conftest.$ac_ext <<_ACEOF
8718/* confdefs.h. */
8719_ACEOF
8720cat confdefs.h >>conftest.$ac_ext
8721cat >>conftest.$ac_ext <<_ACEOF
8722/* end confdefs.h. */
8723#if HAVE_ARGZ_H
8724# include <argz.h>
8725#endif
8726
8727int
8728main ()
8729{
8730if ((error_t *) 0)
8731 return 0;
8732if (sizeof (error_t))
8733 return 0;
8734 ;
8735 return 0;
8736}
8737_ACEOF
8738rm -f conftest.$ac_objext
8739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8740 (eval $ac_compile) 2>conftest.er1
8741 ac_status=$?
8742 grep -v '^ *+' conftest.er1 >conftest.err
8743 rm -f conftest.er1
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -z "$ac_c_werror_flag"
8748 || test ! -s conftest.err'
8749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750 (eval $ac_try) 2>&5
8751 ac_status=$?
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); }; } &&
8754 { ac_try='test -s conftest.$ac_objext'
8755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 (eval $ac_try) 2>&5
8757 ac_status=$?
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); }; }; then
8760 ac_cv_type_error_t=yes
8761else
8762 echo "$as_me: failed program was:" >&5
8763sed 's/^/| /' conftest.$ac_ext >&5
8764
8765ac_cv_type_error_t=no
8766fi
8767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8768fi
8769echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8770echo "${ECHO_T}$ac_cv_type_error_t" >&6
8771if test $ac_cv_type_error_t = yes; then
8772
8773cat >>confdefs.h <<_ACEOF
8774#define HAVE_ERROR_T 1
8775_ACEOF
8776
8777
8778else
8779
8780cat >>confdefs.h <<\_ACEOF
8781#define error_t int
8782_ACEOF
8783
8784fi
8785
8786
8787
8788
8789
8790
8791
8792for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8793do
8794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8795echo "$as_me:$LINENO: checking for $ac_func" >&5
8796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8797if eval "test \"\${$as_ac_var+set}\" = set"; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8799else
8800 cat >conftest.$ac_ext <<_ACEOF
8801/* confdefs.h. */
8802_ACEOF
8803cat confdefs.h >>conftest.$ac_ext
8804cat >>conftest.$ac_ext <<_ACEOF
8805/* end confdefs.h. */
8806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8808#define $ac_func innocuous_$ac_func
8809
8810/* System header to define __stub macros and hopefully few prototypes,
8811 which can conflict with char $ac_func (); below.
8812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8813 <limits.h> exists even on freestanding compilers. */
8814
8815#ifdef __STDC__
8816# include <limits.h>
8817#else
8818# include <assert.h>
8819#endif
8820
8821#undef $ac_func
8822
8823/* Override any gcc2 internal prototype to avoid an error. */
8824#ifdef __cplusplus
8825extern "C"
8826{
8827#endif
8828/* We use char because int might match the return type of a gcc2
8829 builtin and then its argument prototype would still apply. */
8830char $ac_func ();
8831/* The GNU C library defines this for functions which it implements
8832 to always fail with ENOSYS. Some functions are actually named
8833 something starting with __ and the normal name is an alias. */
8834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8835choke me
8836#else
8837char (*f) () = $ac_func;
8838#endif
8839#ifdef __cplusplus
8840}
8841#endif
8842
8843int
8844main ()
8845{
8846return f != $ac_func;
8847 ;
8848 return 0;
8849}
8850_ACEOF
8851rm -f conftest.$ac_objext conftest$ac_exeext
8852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853 (eval $ac_link) 2>conftest.er1
8854 ac_status=$?
8855 grep -v '^ *+' conftest.er1 >conftest.err
8856 rm -f conftest.er1
8857 cat conftest.err >&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try='test -z "$ac_c_werror_flag"
8861 || test ! -s conftest.err'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; } &&
8867 { ac_try='test -s conftest$ac_exeext'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 (eval $ac_try) 2>&5
8870 ac_status=$?
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8873 eval "$as_ac_var=yes"
8874else
8875 echo "$as_me: failed program was:" >&5
8876sed 's/^/| /' conftest.$ac_ext >&5
8877
8878eval "$as_ac_var=no"
8879fi
8880rm -f conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext conftest.$ac_ext
8882fi
8883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8884echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8885if test `eval echo '${'$as_ac_var'}'` = yes; then
8886 cat >>confdefs.h <<_ACEOF
8887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8888_ACEOF
8889
8890fi
8891done
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8921 stdio.h unistd.h
8922do
8923as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8924if eval "test \"\${$as_ac_Header+set}\" = set"; then
8925 echo "$as_me:$LINENO: checking for $ac_header" >&5
8926echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8927if eval "test \"\${$as_ac_Header+set}\" = set"; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929fi
8930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8932else
8933 # Is the header compilable?
8934echo "$as_me:$LINENO: checking $ac_header usability" >&5
8935echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8936cat >conftest.$ac_ext <<_ACEOF
8937/* confdefs.h. */
8938_ACEOF
8939cat confdefs.h >>conftest.$ac_ext
8940cat >>conftest.$ac_ext <<_ACEOF
8941/* end confdefs.h. */
8942$ac_includes_default
8943#include <$ac_header>
8944_ACEOF
8945rm -f conftest.$ac_objext
8946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8947 (eval $ac_compile) 2>conftest.er1
8948 ac_status=$?
8949 grep -v '^ *+' conftest.er1 >conftest.err
8950 rm -f conftest.er1
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try='test -z "$ac_c_werror_flag"
8955 || test ! -s conftest.err'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 (eval $ac_try) 2>&5
8958 ac_status=$?
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest.$ac_objext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963 (eval $ac_try) 2>&5
8964 ac_status=$?
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 ac_header_compiler=yes
8968else
8969 echo "$as_me: failed program was:" >&5
8970sed 's/^/| /' conftest.$ac_ext >&5
8971
8972ac_header_compiler=no
8973fi
8974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8975echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8976echo "${ECHO_T}$ac_header_compiler" >&6
8977
8978# Is the header present?
8979echo "$as_me:$LINENO: checking $ac_header presence" >&5
8980echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8981cat >conftest.$ac_ext <<_ACEOF
8982/* confdefs.h. */
8983_ACEOF
8984cat confdefs.h >>conftest.$ac_ext
8985cat >>conftest.$ac_ext <<_ACEOF
8986/* end confdefs.h. */
8987#include <$ac_header>
8988_ACEOF
8989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } >/dev/null; then
8997 if test -s conftest.err; then
8998 ac_cpp_err=$ac_c_preproc_warn_flag
8999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9000 else
9001 ac_cpp_err=
9002 fi
9003else
9004 ac_cpp_err=yes
9005fi
9006if test -z "$ac_cpp_err"; then
9007 ac_header_preproc=yes
9008else
9009 echo "$as_me: failed program was:" >&5
9010sed 's/^/| /' conftest.$ac_ext >&5
9011
9012 ac_header_preproc=no
9013fi
9014rm -f conftest.err conftest.$ac_ext
9015echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9016echo "${ECHO_T}$ac_header_preproc" >&6
9017
9018# So? What about this header?
9019case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9020 yes:no: )
9021 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9022echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9023 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9024echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9025 ac_header_preproc=yes
9026 ;;
9027 no:yes:* )
9028 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9029echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9030 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9031echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9032 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9033echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9034 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9035echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9036 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9037echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9039echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9040 (
9041 cat <<\_ASBOX
9042## ----------------------------------- ##
9043## Report this to llvmbugs@cs.uiuc.edu ##
9044## ----------------------------------- ##
9045_ASBOX
9046 ) |
9047 sed "s/^/$as_me: WARNING: /" >&2
9048 ;;
9049esac
9050echo "$as_me:$LINENO: checking for $ac_header" >&5
9051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9052if eval "test \"\${$as_ac_Header+set}\" = set"; then
9053 echo $ECHO_N "(cached) $ECHO_C" >&6
9054else
9055 eval "$as_ac_Header=\$ac_header_preproc"
9056fi
9057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9058echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9059
9060fi
9061if test `eval echo '${'$as_ac_Header'}'` = yes; then
9062 cat >>confdefs.h <<_ACEOF
9063#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9064_ACEOF
9065
9066fi
9067
9068done
9069
9070
9071
9072
9073
9074for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
9075do
9076as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9077if eval "test \"\${$as_ac_Header+set}\" = set"; then
9078 echo "$as_me:$LINENO: checking for $ac_header" >&5
9079echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9080if eval "test \"\${$as_ac_Header+set}\" = set"; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082fi
9083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9085else
9086 # Is the header compilable?
9087echo "$as_me:$LINENO: checking $ac_header usability" >&5
9088echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9089cat >conftest.$ac_ext <<_ACEOF
9090/* confdefs.h. */
9091_ACEOF
9092cat confdefs.h >>conftest.$ac_ext
9093cat >>conftest.$ac_ext <<_ACEOF
9094/* end confdefs.h. */
9095$ac_includes_default
9096#include <$ac_header>
9097_ACEOF
9098rm -f conftest.$ac_objext
9099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9100 (eval $ac_compile) 2>conftest.er1
9101 ac_status=$?
9102 grep -v '^ *+' conftest.er1 >conftest.err
9103 rm -f conftest.er1
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } &&
9107 { ac_try='test -z "$ac_c_werror_flag"
9108 || test ! -s conftest.err'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 (eval $ac_try) 2>&5
9111 ac_status=$?
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; } &&
9114 { ac_try='test -s conftest.$ac_objext'
9115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 (eval $ac_try) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); }; }; then
9120 ac_header_compiler=yes
9121else
9122 echo "$as_me: failed program was:" >&5
9123sed 's/^/| /' conftest.$ac_ext >&5
9124
9125ac_header_compiler=no
9126fi
9127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9128echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9129echo "${ECHO_T}$ac_header_compiler" >&6
9130
9131# Is the header present?
9132echo "$as_me:$LINENO: checking $ac_header presence" >&5
9133echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9134cat >conftest.$ac_ext <<_ACEOF
9135/* confdefs.h. */
9136_ACEOF
9137cat confdefs.h >>conftest.$ac_ext
9138cat >>conftest.$ac_ext <<_ACEOF
9139/* end confdefs.h. */
9140#include <$ac_header>
9141_ACEOF
9142if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } >/dev/null; then
9150 if test -s conftest.err; then
9151 ac_cpp_err=$ac_c_preproc_warn_flag
9152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9153 else
9154 ac_cpp_err=
9155 fi
9156else
9157 ac_cpp_err=yes
9158fi
9159if test -z "$ac_cpp_err"; then
9160 ac_header_preproc=yes
9161else
9162 echo "$as_me: failed program was:" >&5
9163sed 's/^/| /' conftest.$ac_ext >&5
9164
9165 ac_header_preproc=no
9166fi
9167rm -f conftest.err conftest.$ac_ext
9168echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9169echo "${ECHO_T}$ac_header_preproc" >&6
9170
9171# So? What about this header?
9172case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9173 yes:no: )
9174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9175echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9177echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9178 ac_header_preproc=yes
9179 ;;
9180 no:yes:* )
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9182echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9184echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9186echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9188echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9190echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9192echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9193 (
9194 cat <<\_ASBOX
9195## ----------------------------------- ##
9196## Report this to llvmbugs@cs.uiuc.edu ##
9197## ----------------------------------- ##
9198_ASBOX
9199 ) |
9200 sed "s/^/$as_me: WARNING: /" >&2
9201 ;;
9202esac
9203echo "$as_me:$LINENO: checking for $ac_header" >&5
9204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9205if eval "test \"\${$as_ac_Header+set}\" = set"; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9207else
9208 eval "$as_ac_Header=\$ac_header_preproc"
9209fi
9210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9211echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9212
9213fi
9214if test `eval echo '${'$as_ac_Header'}'` = yes; then
9215 cat >>confdefs.h <<_ACEOF
9216#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9217_ACEOF
9218
9219fi
9220
9221done
9222
9223
9224
9225for ac_header in string.h strings.h
9226do
9227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9228if eval "test \"\${$as_ac_Header+set}\" = set"; then
9229 echo "$as_me:$LINENO: checking for $ac_header" >&5
9230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9231if eval "test \"\${$as_ac_Header+set}\" = set"; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9233fi
9234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9236else
9237 # Is the header compilable?
9238echo "$as_me:$LINENO: checking $ac_header usability" >&5
9239echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9240cat >conftest.$ac_ext <<_ACEOF
9241/* confdefs.h. */
9242_ACEOF
9243cat confdefs.h >>conftest.$ac_ext
9244cat >>conftest.$ac_ext <<_ACEOF
9245/* end confdefs.h. */
9246$ac_includes_default
9247#include <$ac_header>
9248_ACEOF
9249rm -f conftest.$ac_objext
9250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9251 (eval $ac_compile) 2>conftest.er1
9252 ac_status=$?
9253 grep -v '^ *+' conftest.er1 >conftest.err
9254 rm -f conftest.er1
9255 cat conftest.err >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); } &&
9258 { ac_try='test -z "$ac_c_werror_flag"
9259 || test ! -s conftest.err'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9261 (eval $ac_try) 2>&5
9262 ac_status=$?
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; } &&
9265 { ac_try='test -s conftest.$ac_objext'
9266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9267 (eval $ac_try) 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); }; }; then
9271 ac_header_compiler=yes
9272else
9273 echo "$as_me: failed program was:" >&5
9274sed 's/^/| /' conftest.$ac_ext >&5
9275
9276ac_header_compiler=no
9277fi
9278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9279echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9280echo "${ECHO_T}$ac_header_compiler" >&6
9281
9282# Is the header present?
9283echo "$as_me:$LINENO: checking $ac_header presence" >&5
9284echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9285cat >conftest.$ac_ext <<_ACEOF
9286/* confdefs.h. */
9287_ACEOF
9288cat confdefs.h >>conftest.$ac_ext
9289cat >>conftest.$ac_ext <<_ACEOF
9290/* end confdefs.h. */
9291#include <$ac_header>
9292_ACEOF
9293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9295 ac_status=$?
9296 grep -v '^ *+' conftest.er1 >conftest.err
9297 rm -f conftest.er1
9298 cat conftest.err >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); } >/dev/null; then
9301 if test -s conftest.err; then
9302 ac_cpp_err=$ac_c_preproc_warn_flag
9303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9304 else
9305 ac_cpp_err=
9306 fi
9307else
9308 ac_cpp_err=yes
9309fi
9310if test -z "$ac_cpp_err"; then
9311 ac_header_preproc=yes
9312else
9313 echo "$as_me: failed program was:" >&5
9314sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 ac_header_preproc=no
9317fi
9318rm -f conftest.err conftest.$ac_ext
9319echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9320echo "${ECHO_T}$ac_header_preproc" >&6
9321
9322# So? What about this header?
9323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9324 yes:no: )
9325 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9326echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9328echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9329 ac_header_preproc=yes
9330 ;;
9331 no:yes:* )
9332 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9333echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9335echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9337echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9338 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9339echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9340 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9341echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9343echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9344 (
9345 cat <<\_ASBOX
9346## ----------------------------------- ##
9347## Report this to llvmbugs@cs.uiuc.edu ##
9348## ----------------------------------- ##
9349_ASBOX
9350 ) |
9351 sed "s/^/$as_me: WARNING: /" >&2
9352 ;;
9353esac
9354echo "$as_me:$LINENO: checking for $ac_header" >&5
9355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9356if eval "test \"\${$as_ac_Header+set}\" = set"; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9358else
9359 eval "$as_ac_Header=\$ac_header_preproc"
9360fi
9361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9362echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9363
9364fi
9365if test `eval echo '${'$as_ac_Header'}'` = yes; then
9366 cat >>confdefs.h <<_ACEOF
9367#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9368_ACEOF
9369 break
9370fi
9371
9372done
9373
9374
9375
9376
9377for ac_func in strchr index
9378do
9379as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9380echo "$as_me:$LINENO: checking for $ac_func" >&5
9381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9382if eval "test \"\${$as_ac_var+set}\" = set"; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9384else
9385 cat >conftest.$ac_ext <<_ACEOF
9386/* confdefs.h. */
9387_ACEOF
9388cat confdefs.h >>conftest.$ac_ext
9389cat >>conftest.$ac_ext <<_ACEOF
9390/* end confdefs.h. */
9391/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9393#define $ac_func innocuous_$ac_func
9394
9395/* System header to define __stub macros and hopefully few prototypes,
9396 which can conflict with char $ac_func (); below.
9397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9398 <limits.h> exists even on freestanding compilers. */
9399
9400#ifdef __STDC__
9401# include <limits.h>
9402#else
9403# include <assert.h>
9404#endif
9405
9406#undef $ac_func
9407
9408/* Override any gcc2 internal prototype to avoid an error. */
9409#ifdef __cplusplus
9410extern "C"
9411{
9412#endif
9413/* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */
9415char $ac_func ();
9416/* The GNU C library defines this for functions which it implements
9417 to always fail with ENOSYS. Some functions are actually named
9418 something starting with __ and the normal name is an alias. */
9419#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9420choke me
9421#else
9422char (*f) () = $ac_func;
9423#endif
9424#ifdef __cplusplus
9425}
9426#endif
9427
9428int
9429main ()
9430{
9431return f != $ac_func;
9432 ;
9433 return 0;
9434}
9435_ACEOF
9436rm -f conftest.$ac_objext conftest$ac_exeext
9437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9438 (eval $ac_link) 2>conftest.er1
9439 ac_status=$?
9440 grep -v '^ *+' conftest.er1 >conftest.err
9441 rm -f conftest.er1
9442 cat conftest.err >&5
9443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444 (exit $ac_status); } &&
9445 { ac_try='test -z "$ac_c_werror_flag"
9446 || test ! -s conftest.err'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 (eval $ac_try) 2>&5
9449 ac_status=$?
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; } &&
9452 { ac_try='test -s conftest$ac_exeext'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 (eval $ac_try) 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9458 eval "$as_ac_var=yes"
9459else
9460 echo "$as_me: failed program was:" >&5
9461sed 's/^/| /' conftest.$ac_ext >&5
9462
9463eval "$as_ac_var=no"
9464fi
9465rm -f conftest.err conftest.$ac_objext \
9466 conftest$ac_exeext conftest.$ac_ext
9467fi
9468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9469echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9470if test `eval echo '${'$as_ac_var'}'` = yes; then
9471 cat >>confdefs.h <<_ACEOF
9472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9473_ACEOF
9474 break
9475fi
9476done
9477
9478
9479
9480for ac_func in strrchr rindex
9481do
9482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9483echo "$as_me:$LINENO: checking for $ac_func" >&5
9484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9485if eval "test \"\${$as_ac_var+set}\" = set"; then
9486 echo $ECHO_N "(cached) $ECHO_C" >&6
9487else
9488 cat >conftest.$ac_ext <<_ACEOF
9489/* confdefs.h. */
9490_ACEOF
9491cat confdefs.h >>conftest.$ac_ext
9492cat >>conftest.$ac_ext <<_ACEOF
9493/* end confdefs.h. */
9494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9496#define $ac_func innocuous_$ac_func
9497
9498/* System header to define __stub macros and hopefully few prototypes,
9499 which can conflict with char $ac_func (); below.
9500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501 <limits.h> exists even on freestanding compilers. */
9502
9503#ifdef __STDC__
9504# include <limits.h>
9505#else
9506# include <assert.h>
9507#endif
9508
9509#undef $ac_func
9510
9511/* Override any gcc2 internal prototype to avoid an error. */
9512#ifdef __cplusplus
9513extern "C"
9514{
9515#endif
9516/* We use char because int might match the return type of a gcc2
9517 builtin and then its argument prototype would still apply. */
9518char $ac_func ();
9519/* The GNU C library defines this for functions which it implements
9520 to always fail with ENOSYS. Some functions are actually named
9521 something starting with __ and the normal name is an alias. */
9522#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9523choke me
9524#else
9525char (*f) () = $ac_func;
9526#endif
9527#ifdef __cplusplus
9528}
9529#endif
9530
9531int
9532main ()
9533{
9534return f != $ac_func;
9535 ;
9536 return 0;
9537}
9538_ACEOF
9539rm -f conftest.$ac_objext conftest$ac_exeext
9540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9541 (eval $ac_link) 2>conftest.er1
9542 ac_status=$?
9543 grep -v '^ *+' conftest.er1 >conftest.err
9544 rm -f conftest.er1
9545 cat conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 (exit $ac_status); } &&
9548 { ac_try='test -z "$ac_c_werror_flag"
9549 || test ! -s conftest.err'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9551 (eval $ac_try) 2>&5
9552 ac_status=$?
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; } &&
9555 { ac_try='test -s conftest$ac_exeext'
9556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9557 (eval $ac_try) 2>&5
9558 ac_status=$?
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); }; }; then
9561 eval "$as_ac_var=yes"
9562else
9563 echo "$as_me: failed program was:" >&5
9564sed 's/^/| /' conftest.$ac_ext >&5
9565
9566eval "$as_ac_var=no"
9567fi
9568rm -f conftest.err conftest.$ac_objext \
9569 conftest$ac_exeext conftest.$ac_ext
9570fi
9571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9572echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9573if test `eval echo '${'$as_ac_var'}'` = yes; then
9574 cat >>confdefs.h <<_ACEOF
9575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9576_ACEOF
9577 break
9578fi
9579done
9580
9581
9582
9583for ac_func in memcpy bcopy
9584do
9585as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9586echo "$as_me:$LINENO: checking for $ac_func" >&5
9587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9588if eval "test \"\${$as_ac_var+set}\" = set"; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9590else
9591 cat >conftest.$ac_ext <<_ACEOF
9592/* confdefs.h. */
9593_ACEOF
9594cat confdefs.h >>conftest.$ac_ext
9595cat >>conftest.$ac_ext <<_ACEOF
9596/* end confdefs.h. */
9597/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9599#define $ac_func innocuous_$ac_func
9600
9601/* System header to define __stub macros and hopefully few prototypes,
9602 which can conflict with char $ac_func (); below.
9603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9604 <limits.h> exists even on freestanding compilers. */
9605
9606#ifdef __STDC__
9607# include <limits.h>
9608#else
9609# include <assert.h>
9610#endif
9611
9612#undef $ac_func
9613
9614/* Override any gcc2 internal prototype to avoid an error. */
9615#ifdef __cplusplus
9616extern "C"
9617{
9618#endif
9619/* We use char because int might match the return type of a gcc2
9620 builtin and then its argument prototype would still apply. */
9621char $ac_func ();
9622/* The GNU C library defines this for functions which it implements
9623 to always fail with ENOSYS. Some functions are actually named
9624 something starting with __ and the normal name is an alias. */
9625#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9626choke me
9627#else
9628char (*f) () = $ac_func;
9629#endif
9630#ifdef __cplusplus
9631}
9632#endif
9633
9634int
9635main ()
9636{
9637return f != $ac_func;
9638 ;
9639 return 0;
9640}
9641_ACEOF
9642rm -f conftest.$ac_objext conftest$ac_exeext
9643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644 (eval $ac_link) 2>conftest.er1
9645 ac_status=$?
9646 grep -v '^ *+' conftest.er1 >conftest.err
9647 rm -f conftest.er1
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag"
9652 || test ! -s conftest.err'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654 (eval $ac_try) 2>&5
9655 ac_status=$?
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest$ac_exeext'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 (eval $ac_try) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9664 eval "$as_ac_var=yes"
9665else
9666 echo "$as_me: failed program was:" >&5
9667sed 's/^/| /' conftest.$ac_ext >&5
9668
9669eval "$as_ac_var=no"
9670fi
9671rm -f conftest.err conftest.$ac_objext \
9672 conftest$ac_exeext conftest.$ac_ext
9673fi
9674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9675echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9676if test `eval echo '${'$as_ac_var'}'` = yes; then
9677 cat >>confdefs.h <<_ACEOF
9678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9679_ACEOF
9680 break
9681fi
9682done
9683
9684
9685
9686for ac_func in memmove strcmp
9687do
9688as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9689echo "$as_me:$LINENO: checking for $ac_func" >&5
9690echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9691if eval "test \"\${$as_ac_var+set}\" = set"; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9693else
9694 cat >conftest.$ac_ext <<_ACEOF
9695/* confdefs.h. */
9696_ACEOF
9697cat confdefs.h >>conftest.$ac_ext
9698cat >>conftest.$ac_ext <<_ACEOF
9699/* end confdefs.h. */
9700/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9702#define $ac_func innocuous_$ac_func
9703
9704/* System header to define __stub macros and hopefully few prototypes,
9705 which can conflict with char $ac_func (); below.
9706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9707 <limits.h> exists even on freestanding compilers. */
9708
9709#ifdef __STDC__
9710# include <limits.h>
9711#else
9712# include <assert.h>
9713#endif
9714
9715#undef $ac_func
9716
9717/* Override any gcc2 internal prototype to avoid an error. */
9718#ifdef __cplusplus
9719extern "C"
9720{
9721#endif
9722/* We use char because int might match the return type of a gcc2
9723 builtin and then its argument prototype would still apply. */
9724char $ac_func ();
9725/* The GNU C library defines this for functions which it implements
9726 to always fail with ENOSYS. Some functions are actually named
9727 something starting with __ and the normal name is an alias. */
9728#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9729choke me
9730#else
9731char (*f) () = $ac_func;
9732#endif
9733#ifdef __cplusplus
9734}
9735#endif
9736
9737int
9738main ()
9739{
9740return f != $ac_func;
9741 ;
9742 return 0;
9743}
9744_ACEOF
9745rm -f conftest.$ac_objext conftest$ac_exeext
9746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9747 (eval $ac_link) 2>conftest.er1
9748 ac_status=$?
9749 grep -v '^ *+' conftest.er1 >conftest.err
9750 rm -f conftest.er1
9751 cat conftest.err >&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } &&
9754 { ac_try='test -z "$ac_c_werror_flag"
9755 || test ! -s conftest.err'
9756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 (eval $ac_try) 2>&5
9758 ac_status=$?
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; } &&
9761 { ac_try='test -s conftest$ac_exeext'
9762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 (eval $ac_try) 2>&5
9764 ac_status=$?
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); }; }; then
9767 eval "$as_ac_var=yes"
9768else
9769 echo "$as_me: failed program was:" >&5
9770sed 's/^/| /' conftest.$ac_ext >&5
9771
9772eval "$as_ac_var=no"
9773fi
9774rm -f conftest.err conftest.$ac_objext \
9775 conftest$ac_exeext conftest.$ac_ext
9776fi
9777echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9778echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9779if test `eval echo '${'$as_ac_var'}'` = yes; then
9780 cat >>confdefs.h <<_ACEOF
9781#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9782_ACEOF
9783
9784fi
9785done
9786
9787
9788
9789
9790for ac_func in closedir opendir readdir
9791do
9792as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9793echo "$as_me:$LINENO: checking for $ac_func" >&5
9794echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9795if eval "test \"\${$as_ac_var+set}\" = set"; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797else
9798 cat >conftest.$ac_ext <<_ACEOF
9799/* confdefs.h. */
9800_ACEOF
9801cat confdefs.h >>conftest.$ac_ext
9802cat >>conftest.$ac_ext <<_ACEOF
9803/* end confdefs.h. */
9804/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9806#define $ac_func innocuous_$ac_func
9807
9808/* System header to define __stub macros and hopefully few prototypes,
9809 which can conflict with char $ac_func (); below.
9810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9811 <limits.h> exists even on freestanding compilers. */
9812
9813#ifdef __STDC__
9814# include <limits.h>
9815#else
9816# include <assert.h>
9817#endif
9818
9819#undef $ac_func
9820
9821/* Override any gcc2 internal prototype to avoid an error. */
9822#ifdef __cplusplus
9823extern "C"
9824{
9825#endif
9826/* We use char because int might match the return type of a gcc2
9827 builtin and then its argument prototype would still apply. */
9828char $ac_func ();
9829/* The GNU C library defines this for functions which it implements
9830 to always fail with ENOSYS. Some functions are actually named
9831 something starting with __ and the normal name is an alias. */
9832#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9833choke me
9834#else
9835char (*f) () = $ac_func;
9836#endif
9837#ifdef __cplusplus
9838}
9839#endif
9840
9841int
9842main ()
9843{
9844return f != $ac_func;
9845 ;
9846 return 0;
9847}
9848_ACEOF
9849rm -f conftest.$ac_objext conftest$ac_exeext
9850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9851 (eval $ac_link) 2>conftest.er1
9852 ac_status=$?
9853 grep -v '^ *+' conftest.er1 >conftest.err
9854 rm -f conftest.er1
9855 cat conftest.err >&5
9856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857 (exit $ac_status); } &&
9858 { ac_try='test -z "$ac_c_werror_flag"
9859 || test ! -s conftest.err'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9861 (eval $ac_try) 2>&5
9862 ac_status=$?
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; } &&
9865 { ac_try='test -s conftest$ac_exeext'
9866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 (eval $ac_try) 2>&5
9868 ac_status=$?
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); }; }; then
9871 eval "$as_ac_var=yes"
9872else
9873 echo "$as_me: failed program was:" >&5
9874sed 's/^/| /' conftest.$ac_ext >&5
9875
9876eval "$as_ac_var=no"
9877fi
9878rm -f conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9880fi
9881echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9882echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9883if test `eval echo '${'$as_ac_var'}'` = yes; then
9884 cat >>confdefs.h <<_ACEOF
9885#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9886_ACEOF
9887
9888fi
9889done
9890
9891
9892# Check whether --enable-shared or --disable-shared was given.
9893if test "${enable_shared+set}" = set; then
9894 enableval="$enable_shared"
9895 p=${PACKAGE-default}
9896 case $enableval in
9897 yes) enable_shared=yes ;;
9898 no) enable_shared=no ;;
9899 *)
9900 enable_shared=no
9901 # Look at the argument we got. We use all the common list separators.
9902 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9903 for pkg in $enableval; do
9904 IFS="$lt_save_ifs"
9905 if test "X$pkg" = "X$p"; then
9906 enable_shared=yes
9907 fi
9908 done
9909 IFS="$lt_save_ifs"
9910 ;;
9911 esac
9912else
9913 enable_shared=yes
9914fi;
9915
9916# Check whether --enable-static or --disable-static was given.
9917if test "${enable_static+set}" = set; then
9918 enableval="$enable_static"
9919 p=${PACKAGE-default}
9920 case $enableval in
9921 yes) enable_static=yes ;;
9922 no) enable_static=no ;;
9923 *)
9924 enable_static=no
9925 # Look at the argument we got. We use all the common list separators.
9926 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9927 for pkg in $enableval; do
9928 IFS="$lt_save_ifs"
9929 if test "X$pkg" = "X$p"; then
9930 enable_static=yes
9931 fi
9932 done
9933 IFS="$lt_save_ifs"
9934 ;;
9935 esac
9936else
9937 enable_static=yes
9938fi;
9939
9940# Check whether --enable-fast-install or --disable-fast-install was given.
9941if test "${enable_fast_install+set}" = set; then
9942 enableval="$enable_fast_install"
9943 p=${PACKAGE-default}
9944 case $enableval in
9945 yes) enable_fast_install=yes ;;
9946 no) enable_fast_install=no ;;
9947 *)
9948 enable_fast_install=no
9949 # Look at the argument we got. We use all the common list separators.
9950 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9951 for pkg in $enableval; do
9952 IFS="$lt_save_ifs"
9953 if test "X$pkg" = "X$p"; then
9954 enable_fast_install=yes
9955 fi
9956 done
9957 IFS="$lt_save_ifs"
9958 ;;
9959 esac
9960else
9961 enable_fast_install=yes
9962fi;
9963
9964echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9965echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9966if test "${lt_cv_path_SED+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968else
9969 # Loop through the user's path and test for sed and gsed.
9970# Then use that list of sed's as ones to test for truncation.
9971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972for as_dir in $PATH
9973do
9974 IFS=$as_save_IFS
9975 test -z "$as_dir" && as_dir=.
9976 for lt_ac_prog in sed gsed; do
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9979 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9980 fi
9981 done
9982 done
9983done
9984lt_ac_max=0
9985lt_ac_count=0
9986# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9987# along with /bin/sed that truncates output.
9988for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9989 test ! -f $lt_ac_sed && break
9990 cat /dev/null > conftest.in
9991 lt_ac_count=0
9992 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9993 # Check for GNU sed and select it if it is found.
9994 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9995 lt_cv_path_SED=$lt_ac_sed
9996 break
9997 fi
9998 while true; do
9999 cat conftest.in conftest.in >conftest.tmp
10000 mv conftest.tmp conftest.in
10001 cp conftest.in conftest.nl
10002 echo >>conftest.nl
10003 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
10004 cmp -s conftest.out conftest.nl || break
10005 # 10000 chars as input seems more than enough
10006 test $lt_ac_count -gt 10 && break
10007 lt_ac_count=`expr $lt_ac_count + 1`
10008 if test $lt_ac_count -gt $lt_ac_max; then
10009 lt_ac_max=$lt_ac_count
10010 lt_cv_path_SED=$lt_ac_sed
10011 fi
10012 done
10013done
10014
10015fi
10016
10017SED=$lt_cv_path_SED
10018echo "$as_me:$LINENO: result: $SED" >&5
10019echo "${ECHO_T}$SED" >&6
10020
10021
10022# Check whether --with-gnu-ld or --without-gnu-ld was given.
10023if test "${with_gnu_ld+set}" = set; then
10024 withval="$with_gnu_ld"
10025 test "$withval" = no || with_gnu_ld=yes
10026else
10027 with_gnu_ld=no
10028fi;
10029ac_prog=ld
10030if test "$GCC" = yes; then
10031 # Check if gcc -print-prog-name=ld gives a path.
10032 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10033echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10034 case $host in
10035 *-*-mingw*)
10036 # gcc leaves a trailing carriage return which upsets mingw
10037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10038 *)
10039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10040 esac
10041 case $ac_prog in
10042 # Accept absolute paths.
10043 [\\/]* | ?:[\\/]*)
10044 re_direlt='/[^/][^/]*/\.\./'
10045 # Canonicalize the pathname of ld
10046 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10047 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10048 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10049 done
10050 test -z "$LD" && LD="$ac_prog"
10051 ;;
10052 "")
10053 # If it fails, then pretend we aren't using GCC.
10054 ac_prog=ld
10055 ;;
10056 *)
10057 # If it is relative, then search for the first ld in PATH.
10058 with_gnu_ld=unknown
10059 ;;
10060 esac
10061elif test "$with_gnu_ld" = yes; then
10062 echo "$as_me:$LINENO: checking for GNU ld" >&5
10063echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10064else
10065 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10066echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10067fi
10068if test "${lt_cv_path_LD+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070else
10071 if test -z "$LD"; then
10072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10073 for ac_dir in $PATH; do
10074 IFS="$lt_save_ifs"
10075 test -z "$ac_dir" && ac_dir=.
10076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10077 lt_cv_path_LD="$ac_dir/$ac_prog"
10078 # Check to see if the program is GNU ld. I'd rather use --version,
10079 # but apparently some GNU ld's only accept -v.
10080 # Break only if it was the GNU/non-GNU ld that we prefer.
10081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10082 *GNU* | *'with BFD'*)
10083 test "$with_gnu_ld" != no && break
10084 ;;
10085 *)
10086 test "$with_gnu_ld" != yes && break
10087 ;;
10088 esac
10089 fi
10090 done
10091 IFS="$lt_save_ifs"
10092else
10093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10094fi
10095fi
10096
10097LD="$lt_cv_path_LD"
10098if test -n "$LD"; then
10099 echo "$as_me:$LINENO: result: $LD" >&5
10100echo "${ECHO_T}$LD" >&6
10101else
10102 echo "$as_me:$LINENO: result: no" >&5
10103echo "${ECHO_T}no" >&6
10104fi
10105test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10106echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10107 { (exit 1); exit 1; }; }
10108echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10109echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10110if test "${lt_cv_prog_gnu_ld+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10112else
10113 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10114case `$LD -v 2>&1 </dev/null` in
10115*GNU* | *'with BFD'*)
10116 lt_cv_prog_gnu_ld=yes
10117 ;;
10118*)
10119 lt_cv_prog_gnu_ld=no
10120 ;;
10121esac
10122fi
10123echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10124echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10125with_gnu_ld=$lt_cv_prog_gnu_ld
10126
10127
10128echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10129echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10130if test "${lt_cv_ld_reload_flag+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132else
10133 lt_cv_ld_reload_flag='-r'
10134fi
10135echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10136echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10137reload_flag=$lt_cv_ld_reload_flag
10138case $reload_flag in
10139"" | " "*) ;;
10140*) reload_flag=" $reload_flag" ;;
10141esac
10142reload_cmds='$LD$reload_flag -o $output$reload_objs'
10143case $host_os in
10144 darwin*)
10145 if test "$GCC" = yes; then
10146 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
10147 else
10148 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10149 fi
10150 ;;
10151esac
10152
10153echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10154echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10155if test "${lt_cv_deplibs_check_method+set}" = set; then
10156 echo $ECHO_N "(cached) $ECHO_C" >&6
10157else
10158 lt_cv_file_magic_cmd='$MAGIC_CMD'
10159lt_cv_file_magic_test_file=
10160lt_cv_deplibs_check_method='unknown'
10161# Need to set the preceding variable on all platforms that support
10162# interlibrary dependencies.
10163# 'none' -- dependencies not supported.
10164# `unknown' -- same as none, but documents that we really don't know.
10165# 'pass_all' -- all dependencies passed with no checks.
10166# 'test_compile' -- check by making test program.
10167# 'file_magic [[regex]]' -- check by looking for files in library path
10168# which responds to the $file_magic_cmd with a given extended regex.
10169# If you have `file' or equivalent on your system and you're not sure
10170# whether `pass_all' will *always* work, you probably want this one.
10171
10172case $host_os in
10173aix4* | aix5*)
10174 lt_cv_deplibs_check_method=pass_all
10175 ;;
10176
10177beos*)
10178 lt_cv_deplibs_check_method=pass_all
10179 ;;
10180
10181bsdi[45]*)
10182 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10183 lt_cv_file_magic_cmd='/usr/bin/file -L'
10184 lt_cv_file_magic_test_file=/shlib/libc.so
10185 ;;
10186
10187cygwin*)
10188 # func_win32_libid is a shell function defined in ltmain.sh
10189 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10190 lt_cv_file_magic_cmd='func_win32_libid'
10191 ;;
10192
10193mingw* | pw32*)
10194 # Base MSYS/MinGW do not provide the 'file' command needed by
10195 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10196 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10197 lt_cv_file_magic_cmd='$OBJDUMP -f'
10198 ;;
10199
10200darwin* | rhapsody*)
10201 lt_cv_deplibs_check_method=pass_all
10202 ;;
10203
10204freebsd* | kfreebsd*-gnu)
10205 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10206 case $host_cpu in
10207 i*86 )
10208 # Not sure whether the presence of OpenBSD here was a mistake.
10209 # Let's accept both of them until this is cleared up.
10210 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10211 lt_cv_file_magic_cmd=/usr/bin/file
10212 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10213 ;;
10214 esac
10215 else
10216 lt_cv_deplibs_check_method=pass_all
10217 fi
10218 ;;
10219
10220gnu*)
10221 lt_cv_deplibs_check_method=pass_all
10222 ;;
10223
10224hpux10.20* | hpux11*)
10225 lt_cv_file_magic_cmd=/usr/bin/file
10226 case "$host_cpu" in
10227 ia64*)
10228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10230 ;;
10231 hppa*64*)
10232 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]'
10233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10234 ;;
10235 *)
10236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10238 ;;
10239 esac
10240 ;;
10241
10242irix5* | irix6* | nonstopux*)
10243 case $LD in
10244 *-32|*"-32 ") libmagic=32-bit;;
10245 *-n32|*"-n32 ") libmagic=N32;;
10246 *-64|*"-64 ") libmagic=64-bit;;
10247 *) libmagic=never-match;;
10248 esac
10249 lt_cv_deplibs_check_method=pass_all
10250 ;;
10251
10252# This must be Linux ELF.
10253linux*)
10254 lt_cv_deplibs_check_method=pass_all
10255 ;;
10256
10257netbsd*)
10258 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10259 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10260 else
10261 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10262 fi
10263 ;;
10264
10265newos6*)
10266 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10267 lt_cv_file_magic_cmd=/usr/bin/file
10268 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10269 ;;
10270
10271nto-qnx*)
10272 lt_cv_deplibs_check_method=unknown
10273 ;;
10274
10275openbsd*)
10276 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10277 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10278 else
10279 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10280 fi
10281 ;;
10282
10283osf3* | osf4* | osf5*)
10284 lt_cv_deplibs_check_method=pass_all
10285 ;;
10286
10287sco3.2v5*)
10288 lt_cv_deplibs_check_method=pass_all
10289 ;;
10290
10291solaris*)
10292 lt_cv_deplibs_check_method=pass_all
10293 ;;
10294
10295sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10296 case $host_vendor in
10297 motorola)
10298 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]'
10299 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10300 ;;
10301 ncr)
10302 lt_cv_deplibs_check_method=pass_all
10303 ;;
10304 sequent)
10305 lt_cv_file_magic_cmd='/bin/file'
10306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10307 ;;
10308 sni)
10309 lt_cv_file_magic_cmd='/bin/file'
10310 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10311 lt_cv_file_magic_test_file=/lib/libc.so
10312 ;;
10313 siemens)
10314 lt_cv_deplibs_check_method=pass_all
10315 ;;
10316 esac
10317 ;;
10318
10319sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10320 lt_cv_deplibs_check_method=pass_all
10321 ;;
10322esac
10323
10324fi
10325echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10326echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10327file_magic_cmd=$lt_cv_file_magic_cmd
10328deplibs_check_method=$lt_cv_deplibs_check_method
10329test -z "$deplibs_check_method" && deplibs_check_method=unknown
10330
10331
10332
10333# If no C compiler was specified, use CC.
10334LTCC=${LTCC-"$CC"}
10335
10336# Allow CC to be a program name with arguments.
10337compiler=$CC
10338
10339# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10340if test "${enable_libtool_lock+set}" = set; then
10341 enableval="$enable_libtool_lock"
10342
10343fi;
10344test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10345
10346# Some flags need to be propagated to the compiler or linker for good
10347# libtool support.
10348case $host in
10349ia64-*-hpux*)
10350 # Find out which ABI we are using.
10351 echo 'int i;' > conftest.$ac_ext
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353 (eval $ac_compile) 2>&5
10354 ac_status=$?
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; then
10357 case `/usr/bin/file conftest.$ac_objext` in
10358 *ELF-32*)
10359 HPUX_IA64_MODE="32"
10360 ;;
10361 *ELF-64*)
10362 HPUX_IA64_MODE="64"
10363 ;;
10364 esac
10365 fi
10366 rm -rf conftest*
10367 ;;
10368*-*-irix6*)
10369 # Find out which ABI we are using.
Reid Spencer6e96d812005-12-21 03:31:53 +000010370 echo '#line 10371 "configure"' > conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10372 (eval $ac_compile) 2>&5
10373 ac_status=$?
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); }; then
10376 if test "$lt_cv_prog_gnu_ld" = yes; then
10377 case `/usr/bin/file conftest.$ac_objext` in
10378 *32-bit*)
10379 LD="${LD-ld} -melf32bsmip"
10380 ;;
10381 *N32*)
10382 LD="${LD-ld} -melf32bmipn32"
10383 ;;
10384 *64-bit*)
10385 LD="${LD-ld} -melf64bmip"
10386 ;;
10387 esac
10388 else
10389 case `/usr/bin/file conftest.$ac_objext` in
10390 *32-bit*)
10391 LD="${LD-ld} -32"
10392 ;;
10393 *N32*)
10394 LD="${LD-ld} -n32"
10395 ;;
10396 *64-bit*)
10397 LD="${LD-ld} -64"
10398 ;;
10399 esac
10400 fi
10401 fi
10402 rm -rf conftest*
10403 ;;
10404
10405x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10406 # Find out which ABI we are using.
10407 echo 'int i;' > conftest.$ac_ext
10408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10409 (eval $ac_compile) 2>&5
10410 ac_status=$?
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; then
10413 case "`/usr/bin/file conftest.o`" in
10414 *32-bit*)
10415 case $host in
10416 x86_64-*linux*)
10417 LD="${LD-ld} -m elf_i386"
10418 ;;
10419 ppc64-*linux*|powerpc64-*linux*)
10420 LD="${LD-ld} -m elf32ppclinux"
10421 ;;
10422 s390x-*linux*)
10423 LD="${LD-ld} -m elf_s390"
10424 ;;
10425 sparc64-*linux*)
10426 LD="${LD-ld} -m elf32_sparc"
10427 ;;
10428 esac
10429 ;;
10430 *64-bit*)
10431 case $host in
10432 x86_64-*linux*)
10433 LD="${LD-ld} -m elf_x86_64"
10434 ;;
10435 ppc*-*linux*|powerpc*-*linux*)
10436 LD="${LD-ld} -m elf64ppc"
10437 ;;
10438 s390*-*linux*)
10439 LD="${LD-ld} -m elf64_s390"
10440 ;;
10441 sparc*-*linux*)
10442 LD="${LD-ld} -m elf64_sparc"
10443 ;;
10444 esac
10445 ;;
10446 esac
10447 fi
10448 rm -rf conftest*
10449 ;;
10450
10451*-*-sco3.2v5*)
10452 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10453 SAVE_CFLAGS="$CFLAGS"
10454 CFLAGS="$CFLAGS -belf"
10455 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10456echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10457if test "${lt_cv_cc_needs_belf+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459else
10460 ac_ext=c
10461ac_cpp='$CPP $CPPFLAGS'
10462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10464ac_compiler_gnu=$ac_cv_c_compiler_gnu
10465
10466 cat >conftest.$ac_ext <<_ACEOF
10467/* confdefs.h. */
10468_ACEOF
10469cat confdefs.h >>conftest.$ac_ext
10470cat >>conftest.$ac_ext <<_ACEOF
10471/* end confdefs.h. */
10472
10473_ACEOF
10474rm -f conftest.$ac_objext conftest$ac_exeext
10475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>conftest.er1
10477 ac_status=$?
10478 grep -v '^ *+' conftest.er1 >conftest.err
10479 rm -f conftest.er1
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag"
10484 || test ! -s conftest.err'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10487 ac_status=$?
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest$ac_exeext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10493 ac_status=$?
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 lt_cv_cc_needs_belf=yes
10497else
10498 echo "$as_me: failed program was:" >&5
10499sed 's/^/| /' conftest.$ac_ext >&5
10500
10501lt_cv_cc_needs_belf=no
10502fi
10503rm -f conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext conftest.$ac_ext
10505 ac_ext=c
10506ac_cpp='$CPP $CPPFLAGS'
10507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10509ac_compiler_gnu=$ac_cv_c_compiler_gnu
10510
10511fi
10512echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10513echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10514 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10515 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10516 CFLAGS="$SAVE_CFLAGS"
10517 fi
10518 ;;
10519
10520esac
10521
10522need_locks="$enable_libtool_lock"
10523
10524
Reid Spencer2706f8c2004-09-19 23:53:36 +000010525
10526
10527if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10528 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10529 (test "X$CXX" != "Xg++"))) ; then
10530 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010531ac_cpp='$CXXCPP $CPPFLAGS'
10532ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10533ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10534ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10535echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10536echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10537if test -z "$CXXCPP"; then
10538 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010539 echo $ECHO_N "(cached) $ECHO_C" >&6
10540else
John Criswell47fdd832003-07-14 16:52:07 +000010541 # Double quotes because CXXCPP needs to be expanded
10542 for CXXCPP in "$CXX -E" "/lib/cpp"
10543 do
10544 ac_preproc_ok=false
10545for ac_cxx_preproc_warn_flag in '' yes
10546do
10547 # Use a header file that comes with gcc, so configuring glibc
10548 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10550 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010551 # On the NeXT, cc -E runs the code through the compiler's parser,
10552 # not just through cpp. "Syntax error" is here to catch this case.
10553 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010554/* confdefs.h. */
10555_ACEOF
10556cat confdefs.h >>conftest.$ac_ext
10557cat >>conftest.$ac_ext <<_ACEOF
10558/* end confdefs.h. */
10559#ifdef __STDC__
10560# include <limits.h>
10561#else
10562# include <assert.h>
10563#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010564 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010565_ACEOF
10566if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10568 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010569 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010570 rm -f conftest.er1
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } >/dev/null; then
10574 if test -s conftest.err; then
10575 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010576 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010577 else
John Criswell47fdd832003-07-14 16:52:07 +000010578 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010579 fi
John Criswell47fdd832003-07-14 16:52:07 +000010580else
10581 ac_cpp_err=yes
10582fi
10583if test -z "$ac_cpp_err"; then
10584 :
10585else
10586 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010587sed 's/^/| /' conftest.$ac_ext >&5
10588
John Criswell47fdd832003-07-14 16:52:07 +000010589 # Broken: fails on valid input.
10590continue
10591fi
10592rm -f conftest.err conftest.$ac_ext
10593
10594 # OK, works on sane cases. Now check whether non-existent headers
10595 # can be detected and how.
10596 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010597/* confdefs.h. */
10598_ACEOF
10599cat confdefs.h >>conftest.$ac_ext
10600cat >>conftest.$ac_ext <<_ACEOF
10601/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010602#include <ac_nonexistent.h>
10603_ACEOF
10604if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10606 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010607 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010608 rm -f conftest.er1
10609 cat conftest.err >&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } >/dev/null; then
10612 if test -s conftest.err; then
10613 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010614 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010615 else
10616 ac_cpp_err=
10617 fi
10618else
10619 ac_cpp_err=yes
10620fi
10621if test -z "$ac_cpp_err"; then
10622 # Broken: success on invalid input.
10623continue
10624else
10625 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010626sed 's/^/| /' conftest.$ac_ext >&5
10627
John Criswell47fdd832003-07-14 16:52:07 +000010628 # Passes both tests.
10629ac_preproc_ok=:
10630break
10631fi
10632rm -f conftest.err conftest.$ac_ext
10633
10634done
10635# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10636rm -f conftest.err conftest.$ac_ext
10637if $ac_preproc_ok; then
10638 break
John Criswell7a73b802003-06-30 21:59:07 +000010639fi
10640
John Criswell47fdd832003-07-14 16:52:07 +000010641 done
10642 ac_cv_prog_CXXCPP=$CXXCPP
10643
10644fi
10645 CXXCPP=$ac_cv_prog_CXXCPP
10646else
10647 ac_cv_prog_CXXCPP=$CXXCPP
10648fi
10649echo "$as_me:$LINENO: result: $CXXCPP" >&5
10650echo "${ECHO_T}$CXXCPP" >&6
10651ac_preproc_ok=false
10652for ac_cxx_preproc_warn_flag in '' yes
10653do
10654 # Use a header file that comes with gcc, so configuring glibc
10655 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010656 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10657 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010658 # On the NeXT, cc -E runs the code through the compiler's parser,
10659 # not just through cpp. "Syntax error" is here to catch this case.
10660 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010661/* confdefs.h. */
10662_ACEOF
10663cat confdefs.h >>conftest.$ac_ext
10664cat >>conftest.$ac_ext <<_ACEOF
10665/* end confdefs.h. */
10666#ifdef __STDC__
10667# include <limits.h>
10668#else
10669# include <assert.h>
10670#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010671 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010672_ACEOF
10673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10674 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10675 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010676 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010677 rm -f conftest.er1
10678 cat conftest.err >&5
10679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680 (exit $ac_status); } >/dev/null; then
10681 if test -s conftest.err; then
10682 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010683 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010684 else
10685 ac_cpp_err=
10686 fi
10687else
10688 ac_cpp_err=yes
10689fi
10690if test -z "$ac_cpp_err"; then
10691 :
10692else
10693 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010694sed 's/^/| /' conftest.$ac_ext >&5
10695
John Criswell47fdd832003-07-14 16:52:07 +000010696 # Broken: fails on valid input.
10697continue
10698fi
10699rm -f conftest.err conftest.$ac_ext
10700
10701 # OK, works on sane cases. Now check whether non-existent headers
10702 # can be detected and how.
10703 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010704/* confdefs.h. */
10705_ACEOF
10706cat confdefs.h >>conftest.$ac_ext
10707cat >>conftest.$ac_ext <<_ACEOF
10708/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010709#include <ac_nonexistent.h>
10710_ACEOF
10711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10713 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010714 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010715 rm -f conftest.er1
10716 cat conftest.err >&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); } >/dev/null; then
10719 if test -s conftest.err; then
10720 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010721 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010722 else
10723 ac_cpp_err=
10724 fi
10725else
10726 ac_cpp_err=yes
10727fi
10728if test -z "$ac_cpp_err"; then
10729 # Broken: success on invalid input.
10730continue
10731else
10732 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010733sed 's/^/| /' conftest.$ac_ext >&5
10734
John Criswell47fdd832003-07-14 16:52:07 +000010735 # Passes both tests.
10736ac_preproc_ok=:
10737break
10738fi
10739rm -f conftest.err conftest.$ac_ext
10740
10741done
10742# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10743rm -f conftest.err conftest.$ac_ext
10744if $ac_preproc_ok; then
10745 :
10746else
John Criswell0c38eaf2003-09-10 15:17:25 +000010747 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10748See \`config.log' for more details." >&5
10749echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10750See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010751 { (exit 1); exit 1; }; }
10752fi
10753
10754ac_ext=cc
10755ac_cpp='$CXXCPP $CPPFLAGS'
10756ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10757ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10758ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10759
Reid Spencer2706f8c2004-09-19 23:53:36 +000010760fi
10761
John Criswell47fdd832003-07-14 16:52:07 +000010762
10763ac_ext=f
10764ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10765ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10766ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10767if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010768 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 +000010769 do
10770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10771set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10772echo "$as_me:$LINENO: checking for $ac_word" >&5
10773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10774if test "${ac_cv_prog_F77+set}" = set; then
10775 echo $ECHO_N "(cached) $ECHO_C" >&6
10776else
10777 if test -n "$F77"; then
10778 ac_cv_prog_F77="$F77" # Let the user override the test.
10779else
10780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781for as_dir in $PATH
10782do
10783 IFS=$as_save_IFS
10784 test -z "$as_dir" && as_dir=.
10785 for ac_exec_ext in '' $ac_executable_extensions; do
10786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10787 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10789 break 2
10790 fi
10791done
10792done
10793
10794fi
10795fi
10796F77=$ac_cv_prog_F77
10797if test -n "$F77"; then
10798 echo "$as_me:$LINENO: result: $F77" >&5
10799echo "${ECHO_T}$F77" >&6
10800else
10801 echo "$as_me:$LINENO: result: no" >&5
10802echo "${ECHO_T}no" >&6
10803fi
10804
10805 test -n "$F77" && break
10806 done
10807fi
10808if test -z "$F77"; then
10809 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010810 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 +000010811do
10812 # Extract the first word of "$ac_prog", so it can be a program name with args.
10813set dummy $ac_prog; ac_word=$2
10814echo "$as_me:$LINENO: checking for $ac_word" >&5
10815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10816if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10818else
10819 if test -n "$ac_ct_F77"; then
10820 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10821else
10822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823for as_dir in $PATH
10824do
10825 IFS=$as_save_IFS
10826 test -z "$as_dir" && as_dir=.
10827 for ac_exec_ext in '' $ac_executable_extensions; do
10828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10829 ac_cv_prog_ac_ct_F77="$ac_prog"
10830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10831 break 2
10832 fi
10833done
10834done
10835
10836fi
10837fi
10838ac_ct_F77=$ac_cv_prog_ac_ct_F77
10839if test -n "$ac_ct_F77"; then
10840 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10841echo "${ECHO_T}$ac_ct_F77" >&6
10842else
10843 echo "$as_me:$LINENO: result: no" >&5
10844echo "${ECHO_T}no" >&6
10845fi
10846
10847 test -n "$ac_ct_F77" && break
10848done
10849
10850 F77=$ac_ct_F77
10851fi
10852
10853
10854# Provide some information about the compiler.
Reid Spencer6e96d812005-12-21 03:31:53 +000010855echo "$as_me:10856:" \
John Criswell47fdd832003-07-14 16:52:07 +000010856 "checking for Fortran 77 compiler version" >&5
10857ac_compiler=`set X $ac_compile; echo $2`
10858{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10859 (eval $ac_compiler --version </dev/null >&5) 2>&5
10860 ac_status=$?
10861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10862 (exit $ac_status); }
10863{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10864 (eval $ac_compiler -v </dev/null >&5) 2>&5
10865 ac_status=$?
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }
10868{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10869 (eval $ac_compiler -V </dev/null >&5) 2>&5
10870 ac_status=$?
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010873rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010874
10875# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010876# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010877ac_save_ext=$ac_ext
10878ac_ext=F
10879echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10880echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10881if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10883else
10884 cat >conftest.$ac_ext <<_ACEOF
10885 program main
10886#ifndef __GNUC__
10887 choke me
10888#endif
10889
10890 end
10891_ACEOF
10892rm -f conftest.$ac_objext
10893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010894 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010895 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010896 grep -v '^ *+' conftest.er1 >conftest.err
10897 rm -f conftest.er1
10898 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010901 { ac_try='test -z "$ac_f77_werror_flag"
10902 || test ! -s conftest.err'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10905 ac_status=$?
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; } &&
10908 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10910 (eval $ac_try) 2>&5
10911 ac_status=$?
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); }; }; then
10914 ac_compiler_gnu=yes
10915else
10916 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010917sed 's/^/| /' conftest.$ac_ext >&5
10918
John Criswell47fdd832003-07-14 16:52:07 +000010919ac_compiler_gnu=no
10920fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010922ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10923
10924fi
10925echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10926echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10927ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010928ac_test_FFLAGS=${FFLAGS+set}
10929ac_save_FFLAGS=$FFLAGS
10930FFLAGS=
10931echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10932echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10933if test "${ac_cv_prog_f77_g+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10935else
10936 FFLAGS=-g
10937cat >conftest.$ac_ext <<_ACEOF
10938 program main
10939
10940 end
10941_ACEOF
10942rm -f conftest.$ac_objext
10943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010944 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010945 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010946 grep -v '^ *+' conftest.er1 >conftest.err
10947 rm -f conftest.er1
10948 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010951 { ac_try='test -z "$ac_f77_werror_flag"
10952 || test ! -s conftest.err'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 ac_cv_prog_f77_g=yes
10965else
10966 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010967sed 's/^/| /' conftest.$ac_ext >&5
10968
John Criswell47fdd832003-07-14 16:52:07 +000010969ac_cv_prog_f77_g=no
10970fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010972
10973fi
10974echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10975echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10976if test "$ac_test_FFLAGS" = set; then
10977 FFLAGS=$ac_save_FFLAGS
10978elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010979 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010980 FFLAGS="-g -O2"
10981 else
10982 FFLAGS="-g"
10983 fi
10984else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010985 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010986 FFLAGS="-O2"
10987 else
10988 FFLAGS=
10989 fi
10990fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010991
10992G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010993ac_ext=c
10994ac_cpp='$CPP $CPPFLAGS'
10995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10997ac_compiler_gnu=$ac_cv_c_compiler_gnu
10998
10999
11000
11001# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11002
11003# find the maximum length of command line arguments
11004echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11005echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11006if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11008else
11009 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000011010 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000011011
11012 case $build_os in
11013 msdosdjgpp*)
11014 # On DJGPP, this test can blow up pretty badly due to problems in libc
11015 # (any single argument exceeding 2000 bytes causes a buffer overrun
11016 # during glob expansion). Even if it were fixed, the result of this
11017 # check would be larger than it should be.
11018 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11019 ;;
11020
11021 gnu*)
11022 # Under GNU Hurd, this test is not required because there is
11023 # no limit to the length of command line arguments.
11024 # Libtool will interpret -1 as no limit whatsoever
11025 lt_cv_sys_max_cmd_len=-1;
11026 ;;
11027
11028 cygwin* | mingw*)
11029 # On Win9x/ME, this test blows up -- it succeeds, but takes
11030 # about 5 minutes as the teststring grows exponentially.
11031 # Worse, since 9x/ME are not pre-emptively multitasking,
11032 # you end up with a "frozen" computer, even though with patience
11033 # the test eventually succeeds (with a max line length of 256k).
11034 # Instead, let's just punt: use the minimum linelength reported by
11035 # all of the supported platforms: 8192 (on NT/2K/XP).
11036 lt_cv_sys_max_cmd_len=8192;
11037 ;;
11038
Reid Spencer2706f8c2004-09-19 23:53:36 +000011039 amigaos*)
11040 # On AmigaOS with pdksh, this test takes hours, literally.
11041 # So we just punt and use a minimum line length of 8192.
11042 lt_cv_sys_max_cmd_len=8192;
11043 ;;
11044
11045 netbsd* | freebsd* | openbsd* | darwin* )
11046 # This has been around since 386BSD, at least. Likely further.
11047 if test -x /sbin/sysctl; then
11048 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11049 elif test -x /usr/sbin/sysctl; then
11050 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11051 else
11052 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
11053 fi
11054 # And add a safety zone
11055 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11056 ;;
11057
John Criswell47fdd832003-07-14 16:52:07 +000011058 *)
11059 # If test is not a shell built-in, we'll probably end up computing a
11060 # maximum length that is only half of the actual maximum length, but
11061 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011062 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11063 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11064 = "XX$teststring") >/dev/null 2>&1 &&
11065 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000011066 lt_cv_sys_max_cmd_len=$new_result &&
11067 test $i != 17 # 1/2 MB should be enough
11068 do
11069 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000011070 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000011071 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000011072 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000011073 # Add a significant safety factor because C++ compilers can tack on massive
11074 # amounts of additional arguments before passing them to the linker.
11075 # It appears as though 1/2 is a usable value.
11076 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11077 ;;
11078 esac
11079
11080fi
11081
11082if test -n $lt_cv_sys_max_cmd_len ; then
11083 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11084echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11085else
11086 echo "$as_me:$LINENO: result: none" >&5
11087echo "${ECHO_T}none" >&6
11088fi
11089
11090
11091
11092
11093# Check for command to grab the raw symbol name followed by C symbol from nm.
11094echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11095echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11096if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098else
11099
11100# These are sane defaults that work on at least a few old systems.
11101# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11102
11103# Character class describing NM global symbol codes.
11104symcode='[BCDEGRST]'
11105
11106# Regexp to match symbols that can be accessed directly from C.
11107sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11108
11109# Transform the above into a raw symbol and a C symbol.
11110symxfrm='\1 \2\3 \3'
11111
11112# Transform an extracted symbol line into a proper C declaration
11113lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11114
11115# Transform an extracted symbol line into symbol name and symbol address
11116lt_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'"
11117
11118# Define system-specific variables.
11119case $host_os in
11120aix*)
11121 symcode='[BCDT]'
11122 ;;
11123cygwin* | mingw* | pw32*)
11124 symcode='[ABCDGISTW]'
11125 ;;
11126hpux*) # Its linker distinguishes data from code symbols
11127 if test "$host_cpu" = ia64; then
11128 symcode='[ABCDEGRST]'
11129 fi
11130 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11131 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'"
11132 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011133linux*)
11134 if test "$host_cpu" = ia64; then
11135 symcode='[ABCDGIRSTW]'
11136 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11137 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'"
11138 fi
11139 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011140irix* | nonstopux*)
11141 symcode='[BCDEGRST]'
11142 ;;
11143osf*)
11144 symcode='[BCDEGQRST]'
11145 ;;
11146solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011147 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000011148 ;;
11149sysv4)
11150 symcode='[DFNSTU]'
11151 ;;
11152esac
11153
11154# Handle CRLF in mingw tool chain
11155opt_cr=
11156case $build_os in
11157mingw*)
11158 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11159 ;;
11160esac
11161
11162# If we're using GNU nm, then use its standard symbol codes.
11163case `$NM -V 2>&1` in
11164*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011165 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000011166esac
11167
11168# Try without a prefix undercore, then with it.
11169for ac_symprfx in "" "_"; do
11170
11171 # Write the raw and C identifiers.
11172 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
11173
11174 # Check to see that the pipe works correctly.
11175 pipe_works=no
11176
11177 rm -f conftest*
11178 cat > conftest.$ac_ext <<EOF
11179#ifdef __cplusplus
11180extern "C" {
11181#endif
11182char nm_test_var;
11183void nm_test_func(){}
11184#ifdef __cplusplus
11185}
11186#endif
11187int main(){nm_test_var='a';nm_test_func();return(0);}
11188EOF
11189
11190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11191 (eval $ac_compile) 2>&5
11192 ac_status=$?
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); }; then
11195 # Now try to grab the symbols.
11196 nlist=conftest.nm
11197 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11198 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11199 ac_status=$?
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } && test -s "$nlist"; then
11202 # Try sorting and uniquifying the output.
11203 if sort "$nlist" | uniq > "$nlist"T; then
11204 mv -f "$nlist"T "$nlist"
11205 else
11206 rm -f "$nlist"T
11207 fi
11208
11209 # Make sure that we snagged all the symbols we need.
11210 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11211 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11212 cat <<EOF > conftest.$ac_ext
11213#ifdef __cplusplus
11214extern "C" {
11215#endif
11216
11217EOF
11218 # Now generate the symbol file.
11219 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11220
11221 cat <<EOF >> conftest.$ac_ext
11222#if defined (__STDC__) && __STDC__
11223# define lt_ptr_t void *
11224#else
11225# define lt_ptr_t char *
11226# define const
11227#endif
11228
11229/* The mapping between symbol names and symbols. */
11230const struct {
11231 const char *name;
11232 lt_ptr_t address;
11233}
11234lt_preloaded_symbols[] =
11235{
11236EOF
11237 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11238 cat <<\EOF >> conftest.$ac_ext
11239 {0, (lt_ptr_t) 0}
11240};
11241
11242#ifdef __cplusplus
11243}
11244#endif
11245EOF
11246 # Now try linking the two files.
11247 mv conftest.$ac_objext conftstm.$ac_objext
11248 lt_save_LIBS="$LIBS"
11249 lt_save_CFLAGS="$CFLAGS"
11250 LIBS="conftstm.$ac_objext"
11251 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11257 pipe_works=yes
11258 fi
11259 LIBS="$lt_save_LIBS"
11260 CFLAGS="$lt_save_CFLAGS"
11261 else
11262 echo "cannot find nm_test_func in $nlist" >&5
11263 fi
11264 else
11265 echo "cannot find nm_test_var in $nlist" >&5
11266 fi
11267 else
11268 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11269 fi
11270 else
11271 echo "$progname: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 fi
11274 rm -f conftest* conftst*
11275
11276 # Do not use the global_symbol_pipe unless it works.
11277 if test "$pipe_works" = yes; then
11278 break
11279 else
11280 lt_cv_sys_global_symbol_pipe=
11281 fi
11282done
11283
11284fi
11285
11286if test -z "$lt_cv_sys_global_symbol_pipe"; then
11287 lt_cv_sys_global_symbol_to_cdecl=
11288fi
11289if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11290 echo "$as_me:$LINENO: result: failed" >&5
11291echo "${ECHO_T}failed" >&6
11292else
11293 echo "$as_me:$LINENO: result: ok" >&5
11294echo "${ECHO_T}ok" >&6
11295fi
11296
11297echo "$as_me:$LINENO: checking for objdir" >&5
11298echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11299if test "${lt_cv_objdir+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11301else
11302 rm -f .libs 2>/dev/null
11303mkdir .libs 2>/dev/null
11304if test -d .libs; then
11305 lt_cv_objdir=.libs
11306else
11307 # MS-DOS does not allow filenames that begin with a dot.
11308 lt_cv_objdir=_libs
11309fi
11310rmdir .libs 2>/dev/null
11311fi
11312echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11313echo "${ECHO_T}$lt_cv_objdir" >&6
11314objdir=$lt_cv_objdir
11315
11316
11317
11318
11319
11320case $host_os in
11321aix3*)
11322 # AIX sometimes has problems with the GCC collect2 program. For some
11323 # reason, if we set the COLLECT_NAMES environment variable, the problems
11324 # vanish in a puff of smoke.
11325 if test "X${COLLECT_NAMES+set}" != Xset; then
11326 COLLECT_NAMES=
11327 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011328 fi
11329 ;;
11330esac
11331
John Criswell47fdd832003-07-14 16:52:07 +000011332# Sed substitution that helps us do robust quoting. It backslashifies
11333# metacharacters that are still active within double-quoted strings.
11334Xsed='sed -e s/^X//'
11335sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11336
11337# Same as above, but do not quote variable references.
11338double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11339
11340# Sed substitution to delay expansion of an escaped shell variable in a
11341# double_quote_subst'ed string.
11342delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11343
11344# Sed substitution to avoid accidental globbing in evaled expressions
11345no_glob_subst='s/\*/\\\*/g'
11346
11347# Constants:
11348rm="rm -f"
11349
11350# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011351default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011352can_build_shared=yes
11353
11354# All known linkers require a `.a' archive for static linking (except M$VC,
11355# which needs '.lib').
11356libext=a
11357ltmain="$ac_aux_dir/ltmain.sh"
11358ofile="$default_ofile"
11359with_gnu_ld="$lt_cv_prog_gnu_ld"
11360
11361if test -n "$ac_tool_prefix"; then
11362 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11363set dummy ${ac_tool_prefix}ar; ac_word=$2
11364echo "$as_me:$LINENO: checking for $ac_word" >&5
11365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11366if test "${ac_cv_prog_AR+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368else
11369 if test -n "$AR"; then
11370 ac_cv_prog_AR="$AR" # Let the user override the test.
11371else
11372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11373for as_dir in $PATH
11374do
11375 IFS=$as_save_IFS
11376 test -z "$as_dir" && as_dir=.
11377 for ac_exec_ext in '' $ac_executable_extensions; do
11378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11379 ac_cv_prog_AR="${ac_tool_prefix}ar"
11380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11381 break 2
11382 fi
11383done
11384done
11385
11386fi
11387fi
11388AR=$ac_cv_prog_AR
11389if test -n "$AR"; then
11390 echo "$as_me:$LINENO: result: $AR" >&5
11391echo "${ECHO_T}$AR" >&6
11392else
11393 echo "$as_me:$LINENO: result: no" >&5
11394echo "${ECHO_T}no" >&6
11395fi
11396
11397fi
11398if test -z "$ac_cv_prog_AR"; then
11399 ac_ct_AR=$AR
11400 # Extract the first word of "ar", so it can be a program name with args.
11401set dummy ar; ac_word=$2
11402echo "$as_me:$LINENO: checking for $ac_word" >&5
11403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11404if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11406else
11407 if test -n "$ac_ct_AR"; then
11408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11409else
11410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411for as_dir in $PATH
11412do
11413 IFS=$as_save_IFS
11414 test -z "$as_dir" && as_dir=.
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11417 ac_cv_prog_ac_ct_AR="ar"
11418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11419 break 2
11420 fi
11421done
11422done
11423
11424 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11425fi
11426fi
11427ac_ct_AR=$ac_cv_prog_ac_ct_AR
11428if test -n "$ac_ct_AR"; then
11429 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11430echo "${ECHO_T}$ac_ct_AR" >&6
11431else
11432 echo "$as_me:$LINENO: result: no" >&5
11433echo "${ECHO_T}no" >&6
11434fi
11435
11436 AR=$ac_ct_AR
11437else
11438 AR="$ac_cv_prog_AR"
11439fi
11440
John Criswell7a73b802003-06-30 21:59:07 +000011441if test -n "$ac_tool_prefix"; then
11442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11443set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11444echo "$as_me:$LINENO: checking for $ac_word" >&5
11445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11446if test "${ac_cv_prog_RANLIB+set}" = set; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11448else
11449 if test -n "$RANLIB"; then
11450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11451else
11452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453for as_dir in $PATH
11454do
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 break 2
11462 fi
11463done
11464done
11465
11466fi
11467fi
11468RANLIB=$ac_cv_prog_RANLIB
11469if test -n "$RANLIB"; then
11470 echo "$as_me:$LINENO: result: $RANLIB" >&5
11471echo "${ECHO_T}$RANLIB" >&6
11472else
11473 echo "$as_me:$LINENO: result: no" >&5
11474echo "${ECHO_T}no" >&6
11475fi
11476
11477fi
11478if test -z "$ac_cv_prog_RANLIB"; then
11479 ac_ct_RANLIB=$RANLIB
11480 # Extract the first word of "ranlib", so it can be a program name with args.
11481set dummy ranlib; ac_word=$2
11482echo "$as_me:$LINENO: checking for $ac_word" >&5
11483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11484if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11486else
11487 if test -n "$ac_ct_RANLIB"; then
11488 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11489else
11490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491for as_dir in $PATH
11492do
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11497 ac_cv_prog_ac_ct_RANLIB="ranlib"
11498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11499 break 2
11500 fi
11501done
11502done
11503
11504 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11505fi
11506fi
11507ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11508if test -n "$ac_ct_RANLIB"; then
11509 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11510echo "${ECHO_T}$ac_ct_RANLIB" >&6
11511else
11512 echo "$as_me:$LINENO: result: no" >&5
11513echo "${ECHO_T}no" >&6
11514fi
11515
11516 RANLIB=$ac_ct_RANLIB
11517else
11518 RANLIB="$ac_cv_prog_RANLIB"
11519fi
11520
11521if test -n "$ac_tool_prefix"; then
11522 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11523set dummy ${ac_tool_prefix}strip; ac_word=$2
11524echo "$as_me:$LINENO: checking for $ac_word" >&5
11525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11526if test "${ac_cv_prog_STRIP+set}" = set; then
11527 echo $ECHO_N "(cached) $ECHO_C" >&6
11528else
11529 if test -n "$STRIP"; then
11530 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11531else
11532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11533for as_dir in $PATH
11534do
11535 IFS=$as_save_IFS
11536 test -z "$as_dir" && as_dir=.
11537 for ac_exec_ext in '' $ac_executable_extensions; do
11538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11539 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11541 break 2
11542 fi
11543done
11544done
11545
11546fi
11547fi
11548STRIP=$ac_cv_prog_STRIP
11549if test -n "$STRIP"; then
11550 echo "$as_me:$LINENO: result: $STRIP" >&5
11551echo "${ECHO_T}$STRIP" >&6
11552else
11553 echo "$as_me:$LINENO: result: no" >&5
11554echo "${ECHO_T}no" >&6
11555fi
11556
11557fi
11558if test -z "$ac_cv_prog_STRIP"; then
11559 ac_ct_STRIP=$STRIP
11560 # Extract the first word of "strip", so it can be a program name with args.
11561set dummy strip; ac_word=$2
11562echo "$as_me:$LINENO: checking for $ac_word" >&5
11563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11564if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566else
11567 if test -n "$ac_ct_STRIP"; then
11568 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11569else
11570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11571for as_dir in $PATH
11572do
11573 IFS=$as_save_IFS
11574 test -z "$as_dir" && as_dir=.
11575 for ac_exec_ext in '' $ac_executable_extensions; do
11576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11577 ac_cv_prog_ac_ct_STRIP="strip"
11578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11579 break 2
11580 fi
11581done
11582done
11583
11584 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11585fi
11586fi
11587ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11588if test -n "$ac_ct_STRIP"; then
11589 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11590echo "${ECHO_T}$ac_ct_STRIP" >&6
11591else
11592 echo "$as_me:$LINENO: result: no" >&5
11593echo "${ECHO_T}no" >&6
11594fi
11595
11596 STRIP=$ac_ct_STRIP
11597else
11598 STRIP="$ac_cv_prog_STRIP"
11599fi
11600
11601
John Criswell7a73b802003-06-30 21:59:07 +000011602old_CC="$CC"
11603old_CFLAGS="$CFLAGS"
11604
11605# Set sane defaults for various variables
11606test -z "$AR" && AR=ar
11607test -z "$AR_FLAGS" && AR_FLAGS=cru
11608test -z "$AS" && AS=as
11609test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011610test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011611test -z "$DLLTOOL" && DLLTOOL=dlltool
11612test -z "$LD" && LD=ld
11613test -z "$LN_S" && LN_S="ln -s"
11614test -z "$MAGIC_CMD" && MAGIC_CMD=file
11615test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011616test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011617test -z "$OBJDUMP" && OBJDUMP=objdump
11618test -z "$RANLIB" && RANLIB=:
11619test -z "$STRIP" && STRIP=:
11620test -z "$ac_objext" && ac_objext=o
11621
John Criswell7a73b802003-06-30 21:59:07 +000011622# Determine commands to create old-style static archives.
11623old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11624old_postinstall_cmds='chmod 644 $oldlib'
11625old_postuninstall_cmds=
11626
11627if test -n "$RANLIB"; then
11628 case $host_os in
11629 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011630 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011631 ;;
11632 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011633 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011634 ;;
11635 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011636 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011637fi
11638
Reid Spencer2706f8c2004-09-19 23:53:36 +000011639cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11640
John Criswell47fdd832003-07-14 16:52:07 +000011641# Only perform the check for file, if the check method requires it
11642case $deplibs_check_method in
11643file_magic*)
11644 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11645 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11646echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11647if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011649else
John Criswell47fdd832003-07-14 16:52:07 +000011650 case $MAGIC_CMD in
11651[\\/*] | ?:[\\/]*)
11652 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11653 ;;
11654*)
11655 lt_save_MAGIC_CMD="$MAGIC_CMD"
11656 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11657 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11658 for ac_dir in $ac_dummy; do
11659 IFS="$lt_save_ifs"
11660 test -z "$ac_dir" && ac_dir=.
11661 if test -f $ac_dir/${ac_tool_prefix}file; then
11662 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11663 if test -n "$file_magic_test_file"; then
11664 case $deplibs_check_method in
11665 "file_magic "*)
11666 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11667 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11668 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11669 $EGREP "$file_magic_regex" > /dev/null; then
11670 :
11671 else
11672 cat <<EOF 1>&2
11673
11674*** Warning: the command libtool uses to detect shared libraries,
11675*** $file_magic_cmd, produces output that libtool cannot recognize.
11676*** The result is that libtool may fail to recognize shared libraries
11677*** as such. This will affect the creation of libtool libraries that
11678*** depend on shared libraries, but programs linked with such libtool
11679*** libraries will work regardless of this problem. Nevertheless, you
11680*** may want to report the problem to your system manager and/or to
11681*** bug-libtool@gnu.org
11682
11683EOF
11684 fi ;;
11685 esac
11686 fi
11687 break
11688 fi
11689 done
11690 IFS="$lt_save_ifs"
11691 MAGIC_CMD="$lt_save_MAGIC_CMD"
11692 ;;
11693esac
John Criswell7a73b802003-06-30 21:59:07 +000011694fi
John Criswell7a73b802003-06-30 21:59:07 +000011695
John Criswell47fdd832003-07-14 16:52:07 +000011696MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11697if test -n "$MAGIC_CMD"; then
11698 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11699echo "${ECHO_T}$MAGIC_CMD" >&6
11700else
11701 echo "$as_me:$LINENO: result: no" >&5
11702echo "${ECHO_T}no" >&6
11703fi
John Criswell7a73b802003-06-30 21:59:07 +000011704
John Criswell47fdd832003-07-14 16:52:07 +000011705if test -z "$lt_cv_path_MAGIC_CMD"; then
11706 if test -n "$ac_tool_prefix"; then
11707 echo "$as_me:$LINENO: checking for file" >&5
11708echo $ECHO_N "checking for file... $ECHO_C" >&6
11709if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711else
11712 case $MAGIC_CMD in
11713[\\/*] | ?:[\\/]*)
11714 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11715 ;;
11716*)
11717 lt_save_MAGIC_CMD="$MAGIC_CMD"
11718 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11719 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11720 for ac_dir in $ac_dummy; do
11721 IFS="$lt_save_ifs"
11722 test -z "$ac_dir" && ac_dir=.
11723 if test -f $ac_dir/file; then
11724 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11725 if test -n "$file_magic_test_file"; then
11726 case $deplibs_check_method in
11727 "file_magic "*)
11728 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11729 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11730 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11731 $EGREP "$file_magic_regex" > /dev/null; then
11732 :
11733 else
11734 cat <<EOF 1>&2
11735
11736*** Warning: the command libtool uses to detect shared libraries,
11737*** $file_magic_cmd, produces output that libtool cannot recognize.
11738*** The result is that libtool may fail to recognize shared libraries
11739*** as such. This will affect the creation of libtool libraries that
11740*** depend on shared libraries, but programs linked with such libtool
11741*** libraries will work regardless of this problem. Nevertheless, you
11742*** may want to report the problem to your system manager and/or to
11743*** bug-libtool@gnu.org
11744
11745EOF
11746 fi ;;
11747 esac
11748 fi
11749 break
11750 fi
11751 done
11752 IFS="$lt_save_ifs"
11753 MAGIC_CMD="$lt_save_MAGIC_CMD"
11754 ;;
11755esac
11756fi
11757
11758MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11759if test -n "$MAGIC_CMD"; then
11760 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11761echo "${ECHO_T}$MAGIC_CMD" >&6
11762else
11763 echo "$as_me:$LINENO: result: no" >&5
11764echo "${ECHO_T}no" >&6
11765fi
11766
11767 else
11768 MAGIC_CMD=:
11769 fi
11770fi
11771
11772 fi
11773 ;;
11774esac
11775
Reid Spencer17795972004-11-18 09:47:37 +000011776enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011777enable_win32_dll=no
11778
11779# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11780if test "${enable_libtool_lock+set}" = set; then
11781 enableval="$enable_libtool_lock"
11782
11783fi;
11784test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11785
John Criswell7a73b802003-06-30 21:59:07 +000011786
11787# Check whether --with-pic or --without-pic was given.
11788if test "${with_pic+set}" = set; then
11789 withval="$with_pic"
11790 pic_mode="$withval"
11791else
11792 pic_mode=default
11793fi;
11794test -z "$pic_mode" && pic_mode=default
11795
John Criswell47fdd832003-07-14 16:52:07 +000011796# Use C for the default configuration in the libtool script
11797tagname=
11798lt_save_CC="$CC"
11799ac_ext=c
11800ac_cpp='$CPP $CPPFLAGS'
11801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11803ac_compiler_gnu=$ac_cv_c_compiler_gnu
11804
11805
11806# Source file extension for C test sources.
11807ac_ext=c
11808
11809# Object file extension for compiled C test sources.
11810objext=o
11811objext=$objext
11812
11813# Code to be used in simple compile tests
11814lt_simple_compile_test_code="int some_variable = 0;\n"
11815
11816# Code to be used in simple link tests
11817lt_simple_link_test_code='int main(){return(0);}\n'
11818
11819
11820# If no C compiler was specified, use CC.
11821LTCC=${LTCC-"$CC"}
11822
11823# Allow CC to be a program name with arguments.
11824compiler=$CC
11825
11826
11827#
11828# Check for any special shared library compilation flags.
11829#
11830lt_prog_cc_shlib=
11831if test "$GCC" = no; then
11832 case $host_os in
11833 sco3.2v5*)
11834 lt_prog_cc_shlib='-belf'
11835 ;;
11836 esac
11837fi
11838if test -n "$lt_prog_cc_shlib"; then
11839 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11840echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11841 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11842 else
11843 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11844echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11845 lt_cv_prog_cc_can_build_shared=no
11846 fi
11847fi
11848
11849
11850#
11851# Check to make sure the static flag actually works.
11852#
11853echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11854echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11855if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857else
John Criswell47fdd832003-07-14 16:52:07 +000011858 lt_prog_compiler_static_works=no
11859 save_LDFLAGS="$LDFLAGS"
11860 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11861 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11863 # The compiler can only warn and ignore the option if not recognized
11864 # So say no if there are warnings
11865 if test -s conftest.err; then
11866 # Append any errors to the config.log.
11867 cat conftest.err 1>&5
11868 else
11869 lt_prog_compiler_static_works=yes
11870 fi
11871 fi
11872 $rm conftest*
11873 LDFLAGS="$save_LDFLAGS"
11874
11875fi
11876echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11877echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11878
11879if test x"$lt_prog_compiler_static_works" = xyes; then
11880 :
11881else
11882 lt_prog_compiler_static=
11883fi
11884
11885
11886
John Criswell47fdd832003-07-14 16:52:07 +000011887
11888lt_prog_compiler_no_builtin_flag=
11889
11890if test "$GCC" = yes; then
11891 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11892
Reid Spencer2706f8c2004-09-19 23:53:36 +000011893
11894echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011895echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11896if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898else
11899 lt_cv_prog_compiler_rtti_exceptions=no
11900 ac_outfile=conftest.$ac_objext
11901 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11902 lt_compiler_flag="-fno-rtti -fno-exceptions"
11903 # Insert the option either (1) after the last *FLAGS variable, or
11904 # (2) before a word containing "conftest.", or (3) at the end.
11905 # Note that $ac_compile itself does not contain backslashes and begins
11906 # with a dollar sign (not a hyphen), so the echo should work correctly.
11907 # The option is referenced via a variable to avoid confusing sed.
11908 lt_compile=`echo "$ac_compile" | $SED \
11909 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11911 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000011912 (eval echo "\"\$as_me:11913: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011913 (eval "$lt_compile" 2>conftest.err)
11914 ac_status=$?
11915 cat conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000011916 echo "$as_me:11917: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011917 if (exit $ac_status) && test -s "$ac_outfile"; then
11918 # The compiler can only warn and ignore the option if not recognized
11919 # So say no if there are warnings
11920 if test ! -s conftest.err; then
11921 lt_cv_prog_compiler_rtti_exceptions=yes
11922 fi
11923 fi
11924 $rm conftest*
11925
11926fi
11927echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11928echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11929
11930if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11931 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11932else
11933 :
11934fi
11935
11936fi
11937
11938lt_prog_compiler_wl=
11939lt_prog_compiler_pic=
11940lt_prog_compiler_static=
11941
11942echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11943echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011944
11945 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011946 lt_prog_compiler_wl='-Wl,'
11947 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011948
11949 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011950 aix*)
11951 # All AIX code is PIC.
11952 if test "$host_cpu" = ia64; then
11953 # AIX 5 now supports IA64 processor
11954 lt_prog_compiler_static='-Bstatic'
11955 fi
John Criswell7a73b802003-06-30 21:59:07 +000011956 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011957
John Criswell7a73b802003-06-30 21:59:07 +000011958 amigaos*)
11959 # FIXME: we need at least 68020 code to build shared libraries, but
11960 # adding the `-m68020' flag to GCC prevents building anything better,
11961 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011962 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011963 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011964
11965 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011966 # PIC is the default for these OSes.
11967 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011968
11969 mingw* | pw32* | os2*)
11970 # This hack is so that the source file can tell whether it is being
11971 # built for inclusion in a dll (and should export symbols for example).
11972 lt_prog_compiler_pic='-DDLL_EXPORT'
11973 ;;
11974
John Criswell7a73b802003-06-30 21:59:07 +000011975 darwin* | rhapsody*)
11976 # PIC is the default on this platform
11977 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011978 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011979 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011980
11981 msdosdjgpp*)
11982 # Just because we use GCC doesn't mean we suddenly get shared libraries
11983 # on systems that don't support them.
11984 lt_prog_compiler_can_build_shared=no
11985 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011986 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011987
John Criswell7a73b802003-06-30 21:59:07 +000011988 sysv4*MP*)
11989 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011990 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011991 fi
11992 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011993
11994 hpux*)
11995 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11996 # not for PA HP-UX.
11997 case "$host_cpu" in
11998 hppa*64*|ia64*)
11999 # +Z the default
12000 ;;
12001 *)
12002 lt_prog_compiler_pic='-fPIC'
12003 ;;
12004 esac
12005 ;;
12006
John Criswell7a73b802003-06-30 21:59:07 +000012007 *)
John Criswell47fdd832003-07-14 16:52:07 +000012008 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000012009 ;;
12010 esac
12011 else
John Criswell47fdd832003-07-14 16:52:07 +000012012 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000012013 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000012014 aix*)
12015 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012016 if test "$host_cpu" = ia64; then
12017 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000012018 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012019 else
John Criswell47fdd832003-07-14 16:52:07 +000012020 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000012021 fi
12022 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012023 darwin*)
12024 # PIC is the default on this platform
12025 # Common symbols not allowed in MH_DYLIB files
12026 case "$cc_basename" in
12027 xlc*)
12028 lt_prog_compiler_pic='-qnocommon'
12029 lt_prog_compiler_wl='-Wl,'
12030 ;;
12031 esac
12032 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012033
John Criswell47fdd832003-07-14 16:52:07 +000012034 mingw* | pw32* | os2*)
12035 # This hack is so that the source file can tell whether it is being
12036 # built for inclusion in a dll (and should export symbols for example).
12037 lt_prog_compiler_pic='-DDLL_EXPORT'
12038 ;;
12039
John Criswell7a73b802003-06-30 21:59:07 +000012040 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000012041 lt_prog_compiler_wl='-Wl,'
12042 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12043 # not for PA HP-UX.
12044 case "$host_cpu" in
12045 hppa*64*|ia64*)
12046 # +Z the default
12047 ;;
12048 *)
12049 lt_prog_compiler_pic='+Z'
12050 ;;
12051 esac
12052 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12053 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000012054 ;;
12055
John Criswell47fdd832003-07-14 16:52:07 +000012056 irix5* | irix6* | nonstopux*)
12057 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012058 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000012059 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012060 ;;
12061
12062 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000012063 lt_prog_compiler_pic='-KPIC'
12064 lt_prog_compiler_static='-Bstatic'
12065 ;;
12066
12067 linux*)
12068 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012069 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000012070 lt_prog_compiler_wl='-Wl,'
12071 lt_prog_compiler_pic='-KPIC'
12072 lt_prog_compiler_static='-static'
12073 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012074 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000012075 lt_prog_compiler_wl='-Wl,'
12076 # All Alpha code is PIC.
12077 lt_prog_compiler_static='-non_shared'
12078 ;;
12079 esac
John Criswell7a73b802003-06-30 21:59:07 +000012080 ;;
12081
12082 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000012083 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000012084 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000012085 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000012086 ;;
12087
12088 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000012089 lt_prog_compiler_pic='-Kpic'
12090 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000012091 ;;
12092
12093 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000012094 lt_prog_compiler_wl='-Wl,'
12095 lt_prog_compiler_pic='-KPIC'
12096 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012097 ;;
12098
12099 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000012100 lt_prog_compiler_wl='-Qoption ld '
12101 lt_prog_compiler_pic='-PIC'
12102 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012103 ;;
12104
12105 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000012106 lt_prog_compiler_wl='-Wl,'
12107 lt_prog_compiler_pic='-KPIC'
12108 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012109 ;;
12110
12111 sysv4*MP*)
12112 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000012113 lt_prog_compiler_pic='-Kconform_pic'
12114 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000012115 fi
12116 ;;
12117
John Criswell47fdd832003-07-14 16:52:07 +000012118 uts4*)
12119 lt_prog_compiler_pic='-pic'
12120 lt_prog_compiler_static='-Bstatic'
12121 ;;
12122
John Criswell7a73b802003-06-30 21:59:07 +000012123 *)
John Criswell47fdd832003-07-14 16:52:07 +000012124 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012125 ;;
12126 esac
12127 fi
12128
John Criswell47fdd832003-07-14 16:52:07 +000012129echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12130echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012131
John Criswell47fdd832003-07-14 16:52:07 +000012132#
12133# Check to make sure the PIC flag actually works.
12134#
12135if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012136
12137echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012138echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12139if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012140 echo $ECHO_N "(cached) $ECHO_C" >&6
12141else
John Criswell47fdd832003-07-14 16:52:07 +000012142 lt_prog_compiler_pic_works=no
12143 ac_outfile=conftest.$ac_objext
12144 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12145 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12146 # Insert the option either (1) after the last *FLAGS variable, or
12147 # (2) before a word containing "conftest.", or (3) at the end.
12148 # Note that $ac_compile itself does not contain backslashes and begins
12149 # with a dollar sign (not a hyphen), so the echo should work correctly.
12150 # The option is referenced via a variable to avoid confusing sed.
12151 lt_compile=`echo "$ac_compile" | $SED \
12152 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12154 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000012155 (eval echo "\"\$as_me:12156: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012156 (eval "$lt_compile" 2>conftest.err)
12157 ac_status=$?
12158 cat conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000012159 echo "$as_me:12160: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012160 if (exit $ac_status) && test -s "$ac_outfile"; then
12161 # The compiler can only warn and ignore the option if not recognized
12162 # So say no if there are warnings
12163 if test ! -s conftest.err; then
12164 lt_prog_compiler_pic_works=yes
12165 fi
12166 fi
12167 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012168
John Criswell47fdd832003-07-14 16:52:07 +000012169fi
12170echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12171echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012172
John Criswell47fdd832003-07-14 16:52:07 +000012173if test x"$lt_prog_compiler_pic_works" = xyes; then
12174 case $lt_prog_compiler_pic in
12175 "" | " "*) ;;
12176 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12177 esac
John Criswell7a73b802003-06-30 21:59:07 +000012178else
John Criswell47fdd832003-07-14 16:52:07 +000012179 lt_prog_compiler_pic=
12180 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012181fi
12182
John Criswell7a73b802003-06-30 21:59:07 +000012183fi
John Criswell47fdd832003-07-14 16:52:07 +000012184case "$host_os" in
12185 # For platforms which do not support PIC, -DPIC is meaningless:
12186 *djgpp*)
12187 lt_prog_compiler_pic=
12188 ;;
12189 *)
12190 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12191 ;;
12192esac
John Criswell7a73b802003-06-30 21:59:07 +000012193
John Criswell7a73b802003-06-30 21:59:07 +000012194echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12195echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000012196if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000012197 echo $ECHO_N "(cached) $ECHO_C" >&6
12198else
John Criswell47fdd832003-07-14 16:52:07 +000012199 lt_cv_prog_compiler_c_o=no
12200 $rm -r conftest 2>/dev/null
12201 mkdir conftest
12202 cd conftest
12203 mkdir out
12204 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000012205
John Criswell47fdd832003-07-14 16:52:07 +000012206 lt_compiler_flag="-o out/conftest2.$ac_objext"
12207 # Insert the option either (1) after the last *FLAGS variable, or
12208 # (2) before a word containing "conftest.", or (3) at the end.
12209 # Note that $ac_compile itself does not contain backslashes and begins
12210 # with a dollar sign (not a hyphen), so the echo should work correctly.
12211 lt_compile=`echo "$ac_compile" | $SED \
12212 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12214 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000012215 (eval echo "\"\$as_me:12216: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012216 (eval "$lt_compile" 2>out/conftest.err)
12217 ac_status=$?
12218 cat out/conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000012219 echo "$as_me:12220: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012220 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12221 then
12222 # The compiler can only warn and ignore the option if not recognized
12223 # So say no if there are warnings
12224 if test ! -s out/conftest.err; then
12225 lt_cv_prog_compiler_c_o=yes
12226 fi
12227 fi
12228 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000012229 $rm conftest*
12230 # SGI C++ compiler will create directory out/ii_files/ for
12231 # template instantiation
12232 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12233 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012234 cd ..
12235 rmdir conftest
12236 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000012237
12238fi
John Criswell47fdd832003-07-14 16:52:07 +000012239echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12240echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000012241
John Criswell7a73b802003-06-30 21:59:07 +000012242
John Criswell7a73b802003-06-30 21:59:07 +000012243hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000012244if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000012245 # do not overwrite the value of need_locks provided by the user
12246 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12247echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12248 hard_links=yes
12249 $rm conftest*
12250 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12251 touch conftest.a
12252 ln conftest.a conftest.b 2>&5 || hard_links=no
12253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12254 echo "$as_me:$LINENO: result: $hard_links" >&5
12255echo "${ECHO_T}$hard_links" >&6
12256 if test "$hard_links" = no; then
12257 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12258echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12259 need_locks=warn
12260 fi
12261else
12262 need_locks=no
12263fi
John Criswell7a73b802003-06-30 21:59:07 +000012264
John Criswell47fdd832003-07-14 16:52:07 +000012265echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12266echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12267
12268 runpath_var=
12269 allow_undefined_flag=
12270 enable_shared_with_static_runtimes=no
12271 archive_cmds=
12272 archive_expsym_cmds=
12273 old_archive_From_new_cmds=
12274 old_archive_from_expsyms_cmds=
12275 export_dynamic_flag_spec=
12276 whole_archive_flag_spec=
12277 thread_safe_flag_spec=
12278 hardcode_libdir_flag_spec=
12279 hardcode_libdir_flag_spec_ld=
12280 hardcode_libdir_separator=
12281 hardcode_direct=no
12282 hardcode_minus_L=no
12283 hardcode_shlibpath_var=unsupported
12284 link_all_deplibs=unknown
12285 hardcode_automatic=no
12286 module_cmds=
12287 module_expsym_cmds=
12288 always_export_symbols=no
12289 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12290 # include_expsyms should be a list of space-separated symbols to be *always*
12291 # included in the symbol list
12292 include_expsyms=
12293 # exclude_expsyms can be an extended regexp of symbols to exclude
12294 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12295 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12296 # as well as any symbol that contains `d'.
12297 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12298 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12299 # platforms (ab)use it in PIC code, but their linkers get confused if
12300 # the symbol is explicitly referenced. Since portable code cannot
12301 # rely on this symbol name, it's probably fine to never include it in
12302 # preloaded symbol tables.
12303 extract_expsyms_cmds=
12304
12305 case $host_os in
12306 cygwin* | mingw* | pw32*)
12307 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12308 # When not using gcc, we currently assume that we are using
12309 # Microsoft Visual C++.
12310 if test "$GCC" != yes; then
12311 with_gnu_ld=no
12312 fi
12313 ;;
12314 openbsd*)
12315 with_gnu_ld=no
12316 ;;
12317 esac
12318
12319 ld_shlibs=yes
12320 if test "$with_gnu_ld" = yes; then
12321 # If archive_cmds runs LD, not CC, wlarc should be empty
12322 wlarc='${wl}'
12323
12324 # See if GNU ld supports shared libraries.
12325 case $host_os in
12326 aix3* | aix4* | aix5*)
12327 # On AIX/PPC, the GNU linker is very broken
12328 if test "$host_cpu" != ia64; then
12329 ld_shlibs=no
12330 cat <<EOF 1>&2
12331
12332*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12333*** to be unable to reliably create shared libraries on AIX.
12334*** Therefore, libtool is disabling shared libraries support. If you
12335*** really care for shared libraries, you may want to modify your PATH
12336*** so that a non-GNU linker is found, and then restart.
12337
12338EOF
12339 fi
12340 ;;
12341
12342 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012343 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 +000012344 hardcode_libdir_flag_spec='-L$libdir'
12345 hardcode_minus_L=yes
12346
12347 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12348 # that the semantics of dynamic libraries on AmigaOS, at least up
12349 # to version 4, is to share data among multiple programs linked
12350 # with the same dynamic library. Since this doesn't match the
12351 # behavior of shared libraries on other platforms, we can't use
12352 # them.
12353 ld_shlibs=no
12354 ;;
12355
12356 beos*)
12357 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12358 allow_undefined_flag=unsupported
12359 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12360 # support --undefined. This deserves some investigation. FIXME
12361 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12362 else
12363 ld_shlibs=no
12364 fi
12365 ;;
12366
12367 cygwin* | mingw* | pw32*)
12368 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12369 # as there is no search path for DLLs.
12370 hardcode_libdir_flag_spec='-L$libdir'
12371 allow_undefined_flag=unsupported
12372 always_export_symbols=no
12373 enable_shared_with_static_runtimes=yes
12374 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12375
12376 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12377 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12378 # If the export-symbols file already is a .def file (1st line
12379 # is EXPORTS), use it as is; otherwise, prepend...
12380 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12381 cp $export_symbols $output_objdir/$soname.def;
12382 else
12383 echo EXPORTS > $output_objdir/$soname.def;
12384 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012385 fi~
12386 $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 +000012387 else
12388 ld_shlibs=no
12389 fi
12390 ;;
12391
12392 netbsd*)
12393 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12394 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12395 wlarc=
12396 else
12397 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12398 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12399 fi
12400 ;;
12401
12402 solaris* | sysv5*)
12403 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12404 ld_shlibs=no
12405 cat <<EOF 1>&2
12406
12407*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12408*** create shared libraries on Solaris systems. Therefore, libtool
12409*** is disabling shared libraries support. We urge you to upgrade GNU
12410*** binutils to release 2.9.1 or newer. Another option is to modify
12411*** your PATH or compiler configuration so that the native linker is
12412*** used, and then restart.
12413
12414EOF
12415 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12417 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12418 else
12419 ld_shlibs=no
12420 fi
12421 ;;
12422
12423 sunos4*)
12424 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12425 wlarc=
12426 hardcode_direct=yes
12427 hardcode_shlibpath_var=no
12428 ;;
12429
Reid Spencer2706f8c2004-09-19 23:53:36 +000012430 linux*)
12431 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12432 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12433 archive_cmds="$tmp_archive_cmds"
12434 supports_anon_versioning=no
12435 case `$LD -v 2>/dev/null` in
12436 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12437 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12438 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12439 *\ 2.11.*) ;; # other 2.11 versions
12440 *) supports_anon_versioning=yes ;;
12441 esac
12442 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012443 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12444cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12445$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012446 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12447 else
12448 archive_expsym_cmds="$tmp_archive_cmds"
12449 fi
12450 else
12451 ld_shlibs=no
12452 fi
12453 ;;
12454
John Criswell47fdd832003-07-14 16:52:07 +000012455 *)
12456 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12458 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12459 else
12460 ld_shlibs=no
12461 fi
12462 ;;
12463 esac
12464
12465 if test "$ld_shlibs" = yes; then
12466 runpath_var=LD_RUN_PATH
12467 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12468 export_dynamic_flag_spec='${wl}--export-dynamic'
12469 # ancient GNU ld didn't support --whole-archive et. al.
12470 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12471 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12472 else
12473 whole_archive_flag_spec=
12474 fi
12475 fi
12476 else
12477 # PORTME fill in a description of your system's linker (not GNU ld)
12478 case $host_os in
12479 aix3*)
12480 allow_undefined_flag=unsupported
12481 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012482 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 +000012483 # Note: this linker hardcodes the directories in LIBPATH if there
12484 # are no directories specified by -L.
12485 hardcode_minus_L=yes
12486 if test "$GCC" = yes && test -z "$link_static_flag"; then
12487 # Neither direct hardcoding nor static linking is supported with a
12488 # broken collect2.
12489 hardcode_direct=unsupported
12490 fi
12491 ;;
12492
12493 aix4* | aix5*)
12494 if test "$host_cpu" = ia64; then
12495 # On IA64, the linker does run time linking by default, so we don't
12496 # have to do anything special.
12497 aix_use_runtimelinking=no
12498 exp_sym_flag='-Bexport'
12499 no_entry_flag=""
12500 else
12501 # If we're using GNU nm, then we don't want the "-C" option.
12502 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12503 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12504 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'
12505 else
12506 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'
12507 fi
12508 aix_use_runtimelinking=no
12509
12510 # Test if we are trying to use run time linking or normal
12511 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12512 # need to do runtime linking.
12513 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12514 for ld_flag in $LDFLAGS; do
12515 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12516 aix_use_runtimelinking=yes
12517 break
12518 fi
12519 done
12520 esac
12521
12522 exp_sym_flag='-bexport'
12523 no_entry_flag='-bnoentry'
12524 fi
12525
12526 # When large executables or shared objects are built, AIX ld can
12527 # have problems creating the table of contents. If linking a library
12528 # or program results in "error TOC overflow" add -mminimal-toc to
12529 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12530 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12531
12532 archive_cmds=''
12533 hardcode_direct=yes
12534 hardcode_libdir_separator=':'
12535 link_all_deplibs=yes
12536
12537 if test "$GCC" = yes; then
12538 case $host_os in aix4.012|aix4.012.*)
12539 # We only want to do this on AIX 4.2 and lower, the check
12540 # below for broken collect2 doesn't work under 4.3+
12541 collect2name=`${CC} -print-prog-name=collect2`
12542 if test -f "$collect2name" && \
12543 strings "$collect2name" | grep resolve_lib_name >/dev/null
12544 then
12545 # We have reworked collect2
12546 hardcode_direct=yes
12547 else
12548 # We have old collect2
12549 hardcode_direct=unsupported
12550 # It fails to find uninstalled libraries when the uninstalled
12551 # path is not listed in the libpath. Setting hardcode_minus_L
12552 # to unsupported forces relinking
12553 hardcode_minus_L=yes
12554 hardcode_libdir_flag_spec='-L$libdir'
12555 hardcode_libdir_separator=
12556 fi
12557 esac
12558 shared_flag='-shared'
12559 else
12560 # not using gcc
12561 if test "$host_cpu" = ia64; then
12562 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12563 # chokes on -Wl,-G. The following line is correct:
12564 shared_flag='-G'
12565 else
12566 if test "$aix_use_runtimelinking" = yes; then
12567 shared_flag='${wl}-G'
12568 else
12569 shared_flag='${wl}-bM:SRE'
12570 fi
12571 fi
12572 fi
12573
12574 # It seems that -bexpall does not export symbols beginning with
12575 # underscore (_), so it is better to generate a list of symbols to export.
12576 always_export_symbols=yes
12577 if test "$aix_use_runtimelinking" = yes; then
12578 # Warning - without using the other runtime loading flags (-brtl),
12579 # -berok will link without error, but may produce a broken library.
12580 allow_undefined_flag='-berok'
12581 # Determine the default libpath from the value encoded in an empty executable.
12582 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012583/* confdefs.h. */
12584_ACEOF
12585cat confdefs.h >>conftest.$ac_ext
12586cat >>conftest.$ac_ext <<_ACEOF
12587/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012588
John Criswell7a73b802003-06-30 21:59:07 +000012589int
12590main ()
12591{
John Criswell47fdd832003-07-14 16:52:07 +000012592
John Criswell7a73b802003-06-30 21:59:07 +000012593 ;
12594 return 0;
12595}
12596_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012597rm -f conftest.$ac_objext conftest$ac_exeext
12598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012599 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012600 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012601 grep -v '^ *+' conftest.er1 >conftest.err
12602 rm -f conftest.er1
12603 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012606 { ac_try='test -z "$ac_c_werror_flag"
12607 || test ! -s conftest.err'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; } &&
12613 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012619
John Criswell47fdd832003-07-14 16:52:07 +000012620aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12621}'`
12622# Check for a 64-bit object if we didn't find anything.
12623if 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; }
12624}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012625else
12626 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012627sed 's/^/| /' conftest.$ac_ext >&5
12628
John Criswell7a73b802003-06-30 21:59:07 +000012629fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012630rm -f conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012632if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012633
John Criswell47fdd832003-07-14 16:52:07 +000012634 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12635 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"
12636 else
12637 if test "$host_cpu" = ia64; then
12638 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12639 allow_undefined_flag="-z nodefs"
12640 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"
12641 else
12642 # Determine the default libpath from the value encoded in an empty executable.
12643 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012644/* confdefs.h. */
12645_ACEOF
12646cat confdefs.h >>conftest.$ac_ext
12647cat >>conftest.$ac_ext <<_ACEOF
12648/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012649
John Criswell47fdd832003-07-14 16:52:07 +000012650int
12651main ()
12652{
John Criswell7a73b802003-06-30 21:59:07 +000012653
John Criswell47fdd832003-07-14 16:52:07 +000012654 ;
12655 return 0;
12656}
12657_ACEOF
12658rm -f conftest.$ac_objext conftest$ac_exeext
12659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012660 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012661 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012662 grep -v '^ *+' conftest.er1 >conftest.err
12663 rm -f conftest.er1
12664 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012667 { ac_try='test -z "$ac_c_werror_flag"
12668 || test ! -s conftest.err'
12669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; } &&
12674 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012680
John Criswell47fdd832003-07-14 16:52:07 +000012681aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12682}'`
12683# Check for a 64-bit object if we didn't find anything.
12684if 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; }
12685}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012686else
John Criswell47fdd832003-07-14 16:52:07 +000012687 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012688sed 's/^/| /' conftest.$ac_ext >&5
12689
John Criswell47fdd832003-07-14 16:52:07 +000012690fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012691rm -f conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012693if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012694
John Criswell47fdd832003-07-14 16:52:07 +000012695 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12696 # Warning - without using the other run time loading flags,
12697 # -berok will link without error, but may produce a broken library.
12698 no_undefined_flag=' ${wl}-bernotok'
12699 allow_undefined_flag=' ${wl}-berok'
12700 # -bexpall does not export symbols beginning with underscore (_)
12701 always_export_symbols=yes
12702 # Exported symbols can be pulled into shared objects from archives
12703 whole_archive_flag_spec=' '
12704 archive_cmds_need_lc=yes
12705 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012706 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 +000012707 fi
12708 fi
John Criswell7a73b802003-06-30 21:59:07 +000012709 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012710
12711 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012712 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 +000012713 hardcode_libdir_flag_spec='-L$libdir'
12714 hardcode_minus_L=yes
12715 # see comment about different semantics on the GNU ld section
12716 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012717 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012718
Reid Spencer2706f8c2004-09-19 23:53:36 +000012719 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012720 export_dynamic_flag_spec=-rdynamic
12721 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012722
John Criswell47fdd832003-07-14 16:52:07 +000012723 cygwin* | mingw* | pw32*)
12724 # When not using gcc, we currently assume that we are using
12725 # Microsoft Visual C++.
12726 # hardcode_libdir_flag_spec is actually meaningless, as there is
12727 # no search path for DLLs.
12728 hardcode_libdir_flag_spec=' '
12729 allow_undefined_flag=unsupported
12730 # Tell ltmain to make .lib files, not .a files.
12731 libext=lib
12732 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012733 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012734 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012735 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012736 # The linker will automatically build a .lib file if we build a DLL.
12737 old_archive_From_new_cmds='true'
12738 # FIXME: Should let the user specify the lib program.
12739 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12740 fix_srcfile_path='`cygpath -w "$srcfile"`'
12741 enable_shared_with_static_runtimes=yes
12742 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012743
John Criswell47fdd832003-07-14 16:52:07 +000012744 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012745 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012746 rhapsody* | darwin1.[012])
12747 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12748 ;;
12749 *) # Darwin 1.3 on
12750 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12751 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12752 else
12753 case ${MACOSX_DEPLOYMENT_TARGET} in
12754 10.[012])
12755 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12756 ;;
12757 10.*)
12758 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12759 ;;
12760 esac
12761 fi
12762 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012763 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012764 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012765 hardcode_direct=no
12766 hardcode_automatic=yes
12767 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012768 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012769 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012770 if test "$GCC" = yes ; then
12771 output_verbose_link_cmd='echo'
12772 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12773 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12774 # 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 +000012775 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}'
12776 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 +000012777 else
12778 case "$cc_basename" in
12779 xlc*)
12780 output_verbose_link_cmd='echo'
12781 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12782 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12783 # 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 +000012784 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}'
12785 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 +000012786 ;;
12787 *)
12788 ld_shlibs=no
12789 ;;
12790 esac
John Criswell7a73b802003-06-30 21:59:07 +000012791 fi
John Criswell47fdd832003-07-14 16:52:07 +000012792 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012793
John Criswell47fdd832003-07-14 16:52:07 +000012794 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012796 hardcode_libdir_flag_spec='-L$libdir'
12797 hardcode_shlibpath_var=no
12798 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012799
John Criswell47fdd832003-07-14 16:52:07 +000012800 freebsd1*)
12801 ld_shlibs=no
12802 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012803
John Criswell47fdd832003-07-14 16:52:07 +000012804 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12805 # support. Future versions do this automatically, but an explicit c++rt0.o
12806 # does not break anything, and helps significantly (at the cost of a little
12807 # extra space).
12808 freebsd2.2*)
12809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12810 hardcode_libdir_flag_spec='-R$libdir'
12811 hardcode_direct=yes
12812 hardcode_shlibpath_var=no
12813 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012814
John Criswell47fdd832003-07-14 16:52:07 +000012815 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12816 freebsd2*)
12817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12818 hardcode_direct=yes
12819 hardcode_minus_L=yes
12820 hardcode_shlibpath_var=no
12821 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012822
John Criswell47fdd832003-07-14 16:52:07 +000012823 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012824 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012825 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12826 hardcode_libdir_flag_spec='-R$libdir'
12827 hardcode_direct=yes
12828 hardcode_shlibpath_var=no
12829 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012830
John Criswell47fdd832003-07-14 16:52:07 +000012831 hpux9*)
12832 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012833 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 +000012834 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012835 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 +000012836 fi
12837 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12838 hardcode_libdir_separator=:
12839 hardcode_direct=yes
12840
12841 # hardcode_minus_L: Not really in the search PATH,
12842 # but as the default location of the library.
12843 hardcode_minus_L=yes
12844 export_dynamic_flag_spec='${wl}-E'
12845 ;;
12846
12847 hpux10* | hpux11*)
12848 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12849 case "$host_cpu" in
12850 hppa*64*|ia64*)
12851 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12852 ;;
12853 *)
12854 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12855 ;;
12856 esac
12857 else
12858 case "$host_cpu" in
12859 hppa*64*|ia64*)
12860 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12861 ;;
12862 *)
12863 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12864 ;;
12865 esac
12866 fi
12867 if test "$with_gnu_ld" = no; then
12868 case "$host_cpu" in
12869 hppa*64*)
12870 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12871 hardcode_libdir_flag_spec_ld='+b $libdir'
12872 hardcode_libdir_separator=:
12873 hardcode_direct=no
12874 hardcode_shlibpath_var=no
12875 ;;
12876 ia64*)
12877 hardcode_libdir_flag_spec='-L$libdir'
12878 hardcode_direct=no
12879 hardcode_shlibpath_var=no
12880
12881 # hardcode_minus_L: Not really in the search PATH,
12882 # but as the default location of the library.
12883 hardcode_minus_L=yes
12884 ;;
12885 *)
12886 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12887 hardcode_libdir_separator=:
12888 hardcode_direct=yes
12889 export_dynamic_flag_spec='${wl}-E'
12890
12891 # hardcode_minus_L: Not really in the search PATH,
12892 # but as the default location of the library.
12893 hardcode_minus_L=yes
12894 ;;
12895 esac
12896 fi
12897 ;;
12898
12899 irix5* | irix6* | nonstopux*)
12900 if test "$GCC" = yes; then
12901 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'
12902 else
12903 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'
12904 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12905 fi
12906 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12907 hardcode_libdir_separator=:
12908 link_all_deplibs=yes
12909 ;;
12910
12911 netbsd*)
12912 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12913 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12914 else
12915 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12916 fi
12917 hardcode_libdir_flag_spec='-R$libdir'
12918 hardcode_direct=yes
12919 hardcode_shlibpath_var=no
12920 ;;
12921
12922 newsos6)
12923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12924 hardcode_direct=yes
12925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12926 hardcode_libdir_separator=:
12927 hardcode_shlibpath_var=no
12928 ;;
12929
12930 openbsd*)
12931 hardcode_direct=yes
12932 hardcode_shlibpath_var=no
12933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12934 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012935 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 +000012936 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12937 export_dynamic_flag_spec='${wl}-E'
12938 else
12939 case $host_os in
12940 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12942 hardcode_libdir_flag_spec='-R$libdir'
12943 ;;
12944 *)
12945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12946 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12947 ;;
12948 esac
12949 fi
12950 ;;
12951
12952 os2*)
12953 hardcode_libdir_flag_spec='-L$libdir'
12954 hardcode_minus_L=yes
12955 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012956 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 +000012957 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12958 ;;
12959
12960 osf3*)
12961 if test "$GCC" = yes; then
12962 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12963 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'
12964 else
12965 allow_undefined_flag=' -expect_unresolved \*'
12966 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'
12967 fi
12968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12969 hardcode_libdir_separator=:
12970 ;;
12971
12972 osf4* | osf5*) # as osf3* with the addition of -msym flag
12973 if test "$GCC" = yes; then
12974 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12975 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'
12976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12977 else
12978 allow_undefined_flag=' -expect_unresolved \*'
12979 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 +000012980 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12981 $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'
12982
John Criswell47fdd832003-07-14 16:52:07 +000012983 # Both c and cxx compiler support -rpath directly
12984 hardcode_libdir_flag_spec='-rpath $libdir'
12985 fi
12986 hardcode_libdir_separator=:
12987 ;;
12988
12989 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12991 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012992 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012993 runpath_var=LD_RUN_PATH
12994 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012995 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012996
John Criswell47fdd832003-07-14 16:52:07 +000012997 solaris*)
12998 no_undefined_flag=' -z text'
12999 if test "$GCC" = yes; then
13000 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013001 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13002 $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 +000013003 else
13004 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013005 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13006 $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 +000013007 fi
13008 hardcode_libdir_flag_spec='-R$libdir'
13009 hardcode_shlibpath_var=no
13010 case $host_os in
13011 solaris2.[0-5] | solaris2.[0-5].*) ;;
13012 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13013 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
13014 esac
13015 link_all_deplibs=yes
13016 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013017
John Criswell47fdd832003-07-14 16:52:07 +000013018 sunos4*)
13019 if test "x$host_vendor" = xsequent; then
13020 # Use $CC to link under sequent, because it throws in some extra .o
13021 # files that make .init and .fini sections work.
13022 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13023 else
13024 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13025 fi
13026 hardcode_libdir_flag_spec='-L$libdir'
13027 hardcode_direct=yes
13028 hardcode_minus_L=yes
13029 hardcode_shlibpath_var=no
13030 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013031
John Criswell47fdd832003-07-14 16:52:07 +000013032 sysv4)
13033 case $host_vendor in
13034 sni)
13035 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13036 hardcode_direct=yes # is this really true???
13037 ;;
13038 siemens)
13039 ## LD is ld it makes a PLAMLIB
13040 ## CC just makes a GrossModule.
13041 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13042 reload_cmds='$CC -r -o $output$reload_objs'
13043 hardcode_direct=no
13044 ;;
13045 motorola)
13046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13047 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13048 ;;
13049 esac
13050 runpath_var='LD_RUN_PATH'
13051 hardcode_shlibpath_var=no
13052 ;;
13053
13054 sysv4.3*)
13055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13056 hardcode_shlibpath_var=no
13057 export_dynamic_flag_spec='-Bexport'
13058 ;;
13059
13060 sysv4*MP*)
13061 if test -d /usr/nec; then
13062 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13063 hardcode_shlibpath_var=no
13064 runpath_var=LD_RUN_PATH
13065 hardcode_runpath_var=yes
13066 ld_shlibs=yes
13067 fi
13068 ;;
13069
13070 sysv4.2uw2*)
13071 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13072 hardcode_direct=yes
13073 hardcode_minus_L=no
13074 hardcode_shlibpath_var=no
13075 hardcode_runpath_var=yes
13076 runpath_var=LD_RUN_PATH
13077 ;;
13078
13079 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13080 no_undefined_flag='${wl}-z ${wl}text'
13081 if test "$GCC" = yes; then
13082 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13083 else
13084 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13085 fi
13086 runpath_var='LD_RUN_PATH'
13087 hardcode_shlibpath_var=no
13088 ;;
13089
13090 sysv5*)
13091 no_undefined_flag=' -z text'
13092 # $CC -shared without GNU ld will not create a library from C++
13093 # object files and a static libstdc++, better avoid it by now
13094 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000013095 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13096 $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 +000013097 hardcode_libdir_flag_spec=
13098 hardcode_shlibpath_var=no
13099 runpath_var='LD_RUN_PATH'
13100 ;;
13101
13102 uts4*)
13103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13104 hardcode_libdir_flag_spec='-L$libdir'
13105 hardcode_shlibpath_var=no
13106 ;;
13107
13108 *)
13109 ld_shlibs=no
13110 ;;
13111 esac
13112 fi
13113
John Criswell7a73b802003-06-30 21:59:07 +000013114echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13115echo "${ECHO_T}$ld_shlibs" >&6
13116test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013117
John Criswell47fdd832003-07-14 16:52:07 +000013118variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13119if test "$GCC" = yes; then
13120 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13121fi
13122
13123#
13124# Do we need to explicitly link libc?
13125#
13126case "x$archive_cmds_need_lc" in
13127x|xyes)
13128 # Assume -lc should be added
13129 archive_cmds_need_lc=yes
13130
13131 if test "$enable_shared" = yes && test "$GCC" = yes; then
13132 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013133 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000013134 # FIXME: we may have to deal with multi-command sequences.
13135 ;;
13136 '$CC '*)
13137 # Test whether the compiler implicitly links with -lc since on some
13138 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13139 # to ld, don't add -lc before -lgcc.
13140 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13141echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13142 $rm conftest*
13143 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13144
13145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13146 (eval $ac_compile) 2>&5
13147 ac_status=$?
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } 2>conftest.err; then
13150 soname=conftest
13151 lib=conftest
13152 libobjs=conftest.$ac_objext
13153 deplibs=
13154 wl=$lt_prog_compiler_wl
13155 compiler_flags=-v
13156 linker_flags=-v
13157 verstring=
13158 output_objdir=.
13159 libname=conftest
13160 lt_save_allow_undefined_flag=$allow_undefined_flag
13161 allow_undefined_flag=
13162 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13163 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13164 ac_status=$?
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }
13167 then
13168 archive_cmds_need_lc=no
13169 else
13170 archive_cmds_need_lc=yes
13171 fi
13172 allow_undefined_flag=$lt_save_allow_undefined_flag
13173 else
13174 cat conftest.err 1>&5
13175 fi
13176 $rm conftest*
13177 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13178echo "${ECHO_T}$archive_cmds_need_lc" >&6
13179 ;;
13180 esac
13181 fi
13182 ;;
13183esac
13184
John Criswell7a73b802003-06-30 21:59:07 +000013185echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13186echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13187library_names_spec=
13188libname_spec='lib$name'
13189soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000013190shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000013191postinstall_cmds=
13192postuninstall_cmds=
13193finish_cmds=
13194finish_eval=
13195shlibpath_var=
13196shlibpath_overrides_runpath=unknown
13197version_type=none
13198dynamic_linker="$host_os ld.so"
13199sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013200if test "$GCC" = yes; then
13201 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13202 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13203 # if the path contains ";" then we assume it to be the separator
13204 # otherwise default to the standard path separator (i.e. ":") - it is
13205 # assumed that no part of a normal pathname contains ";" but that should
13206 # okay in the real world where ";" in dirpaths is itself problematic.
13207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13208 else
13209 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13210 fi
13211else
13212 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13213fi
13214need_lib_prefix=unknown
13215hardcode_into_libs=no
13216
13217# when you set need_version to no, make sure it does not cause -set_version
13218# flags to be left without arguments
13219need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000013220
13221case $host_os in
13222aix3*)
13223 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013224 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013225 shlibpath_var=LIBPATH
13226
John Criswell47fdd832003-07-14 16:52:07 +000013227 # AIX 3 has no versioning support, so we append a major version to the name.
13228 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013229 ;;
13230
13231aix4* | aix5*)
13232 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013233 need_lib_prefix=no
13234 need_version=no
13235 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013236 if test "$host_cpu" = ia64; then
13237 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000013238 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013239 shlibpath_var=LD_LIBRARY_PATH
13240 else
13241 # With GCC up to 2.95.x, collect2 would create an import file
13242 # for dependence libraries. The import file would start with
13243 # the line `#! .'. This would cause the generated library to
13244 # depend on `.', always an invalid library. This was fixed in
13245 # development snapshots of GCC prior to 3.0.
13246 case $host_os in
13247 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000013248 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13249 echo ' yes '
13250 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13251 :
13252 else
13253 can_build_shared=no
13254 fi
13255 ;;
John Criswell7a73b802003-06-30 21:59:07 +000013256 esac
John Criswell47fdd832003-07-14 16:52:07 +000013257 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13258 # soname into executable. Probably we can add versioning support to
13259 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000013260 if test "$aix_use_runtimelinking" = yes; then
13261 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13262 # instead of lib<name>.a to let people know that these are not
13263 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000013264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013265 else
13266 # We preserve .a as extension for shared libraries through AIX4.2
13267 # and later when we are not doing run time linking.
13268 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000013269 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013270 fi
13271 shlibpath_var=LIBPATH
13272 fi
13273 ;;
13274
13275amigaos*)
13276 library_names_spec='$libname.ixlibrary $libname.a'
13277 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013278 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 +000013279 ;;
13280
13281beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013282 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013283 dynamic_linker="$host_os ld.so"
13284 shlibpath_var=LIBRARY_PATH
13285 ;;
13286
Reid Spencer2706f8c2004-09-19 23:53:36 +000013287bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013288 version_type=linux
13289 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13291 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013292 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13293 shlibpath_var=LD_LIBRARY_PATH
13294 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13295 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013296 # the default ld.so.conf also contains /usr/contrib/lib and
13297 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13298 # libtool to hard-code these into programs
13299 ;;
13300
13301cygwin* | mingw* | pw32*)
13302 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013303 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013304 need_version=no
13305 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013306
John Criswell7a73b802003-06-30 21:59:07 +000013307 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013308 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013309 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013311 postinstall_cmds='base_file=`basename \${file}`~
13312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13313 dldir=$destdir/`dirname \$dlpath`~
13314 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013315 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013316 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13317 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013318 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013319 shlibpath_overrides_runpath=yes
13320
13321 case $host_os in
13322 cygwin*)
13323 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13324 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 +000013325 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013326 ;;
13327 mingw*)
13328 # MinGW DLLs use traditional 'lib' prefix
13329 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13330 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13331 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13332 # It is most probably a Windows format PATH printed by
13333 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13334 # path with ; separators, and with drive letters. We can handle the
13335 # drive letters (cygwin fileutils understands them), so leave them,
13336 # especially as we might pass files found there to a mingw objdump,
13337 # which wouldn't understand a cygwinified path. Ahh.
13338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13339 else
13340 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13341 fi
13342 ;;
13343 pw32*)
13344 # pw32 DLLs use 'pw' prefix rather than 'lib'
13345 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13346 ;;
13347 esac
John Criswell7a73b802003-06-30 21:59:07 +000013348 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013349
John Criswell7a73b802003-06-30 21:59:07 +000013350 *)
John Criswell47fdd832003-07-14 16:52:07 +000013351 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013352 ;;
13353 esac
13354 dynamic_linker='Win32 ld.exe'
13355 # FIXME: first we should search . and the directory the executable is in
13356 shlibpath_var=PATH
13357 ;;
13358
13359darwin* | rhapsody*)
13360 dynamic_linker="$host_os dyld"
13361 version_type=darwin
13362 need_lib_prefix=no
13363 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013364 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013365 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013366 shlibpath_overrides_runpath=yes
13367 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013368 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013369 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013370 if test "$GCC" = yes; then
13371 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"`
13372 else
13373 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013374 fi
13375 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13376 ;;
13377
13378dgux*)
13379 version_type=linux
13380 need_lib_prefix=no
13381 need_version=no
13382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13383 soname_spec='${libname}${release}${shared_ext}$major'
13384 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013385 ;;
13386
13387freebsd1*)
13388 dynamic_linker=no
13389 ;;
13390
Reid Spencer2706f8c2004-09-19 23:53:36 +000013391kfreebsd*-gnu)
13392 version_type=linux
13393 need_lib_prefix=no
13394 need_version=no
13395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13396 soname_spec='${libname}${release}${shared_ext}$major'
13397 shlibpath_var=LD_LIBRARY_PATH
13398 shlibpath_overrides_runpath=no
13399 hardcode_into_libs=yes
13400 dynamic_linker='GNU ld.so'
13401 ;;
13402
John Criswell7a73b802003-06-30 21:59:07 +000013403freebsd*)
13404 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13405 version_type=freebsd-$objformat
13406 case $version_type in
13407 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013409 need_version=no
13410 need_lib_prefix=no
13411 ;;
13412 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013414 need_version=yes
13415 ;;
13416 esac
13417 shlibpath_var=LD_LIBRARY_PATH
13418 case $host_os in
13419 freebsd2*)
13420 shlibpath_overrides_runpath=yes
13421 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013422 freebsd3.01* | freebsdelf3.01*)
13423 shlibpath_overrides_runpath=yes
13424 hardcode_into_libs=yes
13425 ;;
13426 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013427 shlibpath_overrides_runpath=no
13428 hardcode_into_libs=yes
13429 ;;
13430 esac
13431 ;;
13432
13433gnu*)
13434 version_type=linux
13435 need_lib_prefix=no
13436 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13438 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013439 shlibpath_var=LD_LIBRARY_PATH
13440 hardcode_into_libs=yes
13441 ;;
13442
13443hpux9* | hpux10* | hpux11*)
13444 # Give a soname corresponding to the major version so that dld.sl refuses to
13445 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013446 version_type=sunos
13447 need_lib_prefix=no
13448 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013449 case "$host_cpu" in
13450 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013451 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013452 hardcode_into_libs=yes
13453 dynamic_linker="$host_os dld.so"
13454 shlibpath_var=LD_LIBRARY_PATH
13455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457 soname_spec='${libname}${release}${shared_ext}$major'
13458 if test "X$HPUX_IA64_MODE" = X32; then
13459 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13460 else
13461 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13462 fi
13463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13464 ;;
13465 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013466 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013467 hardcode_into_libs=yes
13468 dynamic_linker="$host_os dld.sl"
13469 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13470 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13472 soname_spec='${libname}${release}${shared_ext}$major'
13473 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13474 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13475 ;;
13476 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013477 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013478 dynamic_linker="$host_os dld.sl"
13479 shlibpath_var=SHLIB_PATH
13480 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13482 soname_spec='${libname}${release}${shared_ext}$major'
13483 ;;
13484 esac
John Criswell7a73b802003-06-30 21:59:07 +000013485 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13486 postinstall_cmds='chmod 555 $lib'
13487 ;;
13488
John Criswell47fdd832003-07-14 16:52:07 +000013489irix5* | irix6* | nonstopux*)
13490 case $host_os in
13491 nonstopux*) version_type=nonstopux ;;
13492 *)
13493 if test "$lt_cv_prog_gnu_ld" = yes; then
13494 version_type=linux
13495 else
13496 version_type=irix
13497 fi ;;
13498 esac
John Criswell7a73b802003-06-30 21:59:07 +000013499 need_lib_prefix=no
13500 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013501 soname_spec='${libname}${release}${shared_ext}$major'
13502 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 +000013503 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013504 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013505 libsuff= shlibsuff=
13506 ;;
13507 *)
13508 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013509 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13510 libsuff= shlibsuff= libmagic=32-bit;;
13511 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13512 libsuff=32 shlibsuff=N32 libmagic=N32;;
13513 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13514 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013515 *) libsuff= shlibsuff= libmagic=never-match;;
13516 esac
13517 ;;
13518 esac
13519 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13520 shlibpath_overrides_runpath=no
13521 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13522 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013523 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013524 ;;
13525
13526# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013527linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013528 dynamic_linker=no
13529 ;;
13530
13531# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013532linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013533 version_type=linux
13534 need_lib_prefix=no
13535 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13537 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013538 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13539 shlibpath_var=LD_LIBRARY_PATH
13540 shlibpath_overrides_runpath=no
13541 # This implies no fast_install, which is unacceptable.
13542 # Some rework will be needed to allow for fast_install
13543 # before this can be enabled.
13544 hardcode_into_libs=yes
13545
Reid Spencer2706f8c2004-09-19 23:53:36 +000013546 # Append ld.so.conf contents to the search path
13547 if test -f /etc/ld.so.conf; then
13548 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13549 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13550 fi
13551
John Criswell7a73b802003-06-30 21:59:07 +000013552 # We used to test for /lib/ld.so.1 and disable shared libraries on
13553 # powerpc, because MkLinux only supported shared libraries with the
13554 # GNU dynamic linker. Since this was broken with cross compilers,
13555 # most powerpc-linux boxes support dynamic linking these days and
13556 # people can always --disable-shared, the test was removed, and we
13557 # assume the GNU/Linux dynamic linker is in use.
13558 dynamic_linker='GNU/Linux ld.so'
13559 ;;
13560
Reid Spencer2706f8c2004-09-19 23:53:36 +000013561knetbsd*-gnu)
13562 version_type=linux
13563 need_lib_prefix=no
13564 need_version=no
13565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13566 soname_spec='${libname}${release}${shared_ext}$major'
13567 shlibpath_var=LD_LIBRARY_PATH
13568 shlibpath_overrides_runpath=no
13569 hardcode_into_libs=yes
13570 dynamic_linker='GNU ld.so'
13571 ;;
13572
John Criswell7a73b802003-06-30 21:59:07 +000013573netbsd*)
13574 version_type=sunos
13575 need_lib_prefix=no
13576 need_version=no
13577 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013579 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13580 dynamic_linker='NetBSD (a.out) ld.so'
13581 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013583 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013584 dynamic_linker='NetBSD ld.elf_so'
13585 fi
13586 shlibpath_var=LD_LIBRARY_PATH
13587 shlibpath_overrides_runpath=yes
13588 hardcode_into_libs=yes
13589 ;;
13590
13591newsos6)
13592 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13594 shlibpath_var=LD_LIBRARY_PATH
13595 shlibpath_overrides_runpath=yes
13596 ;;
13597
Reid Spencer2706f8c2004-09-19 23:53:36 +000013598nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013599 version_type=linux
13600 need_lib_prefix=no
13601 need_version=no
13602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13603 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013604 shlibpath_var=LD_LIBRARY_PATH
13605 shlibpath_overrides_runpath=yes
13606 ;;
13607
13608openbsd*)
13609 version_type=sunos
13610 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013611 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13614 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013615 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 +000013616 case $host_os in
13617 openbsd2.[89] | openbsd2.[89].*)
13618 shlibpath_overrides_runpath=no
13619 ;;
13620 *)
13621 shlibpath_overrides_runpath=yes
13622 ;;
13623 esac
John Criswell7a73b802003-06-30 21:59:07 +000013624 else
13625 shlibpath_overrides_runpath=yes
13626 fi
John Criswell7a73b802003-06-30 21:59:07 +000013627 ;;
13628
13629os2*)
13630 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013631 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013632 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013633 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013634 dynamic_linker='OS/2 ld.exe'
13635 shlibpath_var=LIBPATH
13636 ;;
13637
13638osf3* | osf4* | osf5*)
13639 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013640 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013641 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013642 soname_spec='${libname}${release}${shared_ext}$major'
13643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013644 shlibpath_var=LD_LIBRARY_PATH
13645 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13646 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13647 ;;
13648
13649sco3.2v5*)
13650 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013651 soname_spec='${libname}${release}${shared_ext}$major'
13652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013653 shlibpath_var=LD_LIBRARY_PATH
13654 ;;
13655
13656solaris*)
13657 version_type=linux
13658 need_lib_prefix=no
13659 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13661 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013662 shlibpath_var=LD_LIBRARY_PATH
13663 shlibpath_overrides_runpath=yes
13664 hardcode_into_libs=yes
13665 # ldd complains unless libraries are executable
13666 postinstall_cmds='chmod +x $lib'
13667 ;;
13668
13669sunos4*)
13670 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013672 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13673 shlibpath_var=LD_LIBRARY_PATH
13674 shlibpath_overrides_runpath=yes
13675 if test "$with_gnu_ld" = yes; then
13676 need_lib_prefix=no
13677 fi
13678 need_version=yes
13679 ;;
13680
13681sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13682 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13684 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013685 shlibpath_var=LD_LIBRARY_PATH
13686 case $host_vendor in
13687 sni)
13688 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013689 need_lib_prefix=no
13690 export_dynamic_flag_spec='${wl}-Blargedynsym'
13691 runpath_var=LD_RUN_PATH
13692 ;;
13693 siemens)
13694 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013695 ;;
13696 motorola)
13697 need_lib_prefix=no
13698 need_version=no
13699 shlibpath_overrides_runpath=no
13700 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13701 ;;
13702 esac
13703 ;;
13704
John Criswell7a73b802003-06-30 21:59:07 +000013705sysv4*MP*)
13706 if test -d /usr/nec ;then
13707 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013708 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13709 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013710 shlibpath_var=LD_LIBRARY_PATH
13711 fi
13712 ;;
13713
John Criswell47fdd832003-07-14 16:52:07 +000013714uts4*)
13715 version_type=linux
13716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13717 soname_spec='${libname}${release}${shared_ext}$major'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 ;;
13720
John Criswell7a73b802003-06-30 21:59:07 +000013721*)
13722 dynamic_linker=no
13723 ;;
13724esac
13725echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13726echo "${ECHO_T}$dynamic_linker" >&6
13727test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013728
Reid Spencer2706f8c2004-09-19 23:53:36 +000013729echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13730echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13731hardcode_action=
13732if test -n "$hardcode_libdir_flag_spec" || \
13733 test -n "$runpath_var" || \
13734 test "X$hardcode_automatic" = "Xyes" ; then
13735
13736 # We can hardcode non-existant directories.
13737 if test "$hardcode_direct" != no &&
13738 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13739 # have to relink, otherwise we might link with an installed library
13740 # when we should be linking with a yet-to-be-installed one
13741 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13742 test "$hardcode_minus_L" != no; then
13743 # Linking always hardcodes the temporary library directory.
13744 hardcode_action=relink
13745 else
13746 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13747 hardcode_action=immediate
13748 fi
13749else
13750 # We cannot hardcode anything, or else we can only hardcode existing
13751 # directories.
13752 hardcode_action=unsupported
13753fi
13754echo "$as_me:$LINENO: result: $hardcode_action" >&5
13755echo "${ECHO_T}$hardcode_action" >&6
13756
13757if test "$hardcode_action" = relink; then
13758 # Fast installation is not supported
13759 enable_fast_install=no
13760elif test "$shlibpath_overrides_runpath" = yes ||
13761 test "$enable_shared" = no; then
13762 # Fast installation is not necessary
13763 enable_fast_install=needless
13764fi
13765
13766striplib=
13767old_striplib=
13768echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13769echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13770if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13771 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13772 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13773 echo "$as_me:$LINENO: result: yes" >&5
13774echo "${ECHO_T}yes" >&6
13775else
13776# FIXME - insert some real tests, host_os isn't really good enough
13777 case $host_os in
13778 darwin*)
13779 if test -n "$STRIP" ; then
13780 striplib="$STRIP -x"
13781 echo "$as_me:$LINENO: result: yes" >&5
13782echo "${ECHO_T}yes" >&6
13783 else
13784 echo "$as_me:$LINENO: result: no" >&5
13785echo "${ECHO_T}no" >&6
13786fi
13787 ;;
13788 *)
13789 echo "$as_me:$LINENO: result: no" >&5
13790echo "${ECHO_T}no" >&6
13791 ;;
13792 esac
13793fi
13794
John Criswell7a73b802003-06-30 21:59:07 +000013795if test "x$enable_dlopen" != xyes; then
13796 enable_dlopen=unknown
13797 enable_dlopen_self=unknown
13798 enable_dlopen_self_static=unknown
13799else
13800 lt_cv_dlopen=no
13801 lt_cv_dlopen_libs=
13802
13803 case $host_os in
13804 beos*)
13805 lt_cv_dlopen="load_add_on"
13806 lt_cv_dlopen_libs=
13807 lt_cv_dlopen_self=yes
13808 ;;
13809
John Criswell47fdd832003-07-14 16:52:07 +000013810 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013811 lt_cv_dlopen="LoadLibrary"
13812 lt_cv_dlopen_libs=
13813 ;;
13814
John Criswell47fdd832003-07-14 16:52:07 +000013815 cygwin*)
13816 lt_cv_dlopen="dlopen"
13817 lt_cv_dlopen_libs=
13818 ;;
13819
13820 darwin*)
13821 # if libdl is installed we need to link against it
13822 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13823echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13824if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13826else
13827 ac_check_lib_save_LIBS=$LIBS
13828LIBS="-ldl $LIBS"
13829cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013830/* confdefs.h. */
13831_ACEOF
13832cat confdefs.h >>conftest.$ac_ext
13833cat >>conftest.$ac_ext <<_ACEOF
13834/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013835
13836/* Override any gcc2 internal prototype to avoid an error. */
13837#ifdef __cplusplus
13838extern "C"
13839#endif
13840/* We use char because int might match the return type of a gcc2
13841 builtin and then its argument prototype would still apply. */
13842char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013843int
13844main ()
13845{
13846dlopen ();
13847 ;
13848 return 0;
13849}
13850_ACEOF
13851rm -f conftest.$ac_objext conftest$ac_exeext
13852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013853 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013854 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013855 grep -v '^ *+' conftest.er1 >conftest.err
13856 rm -f conftest.er1
13857 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013860 { ac_try='test -z "$ac_c_werror_flag"
13861 || test ! -s conftest.err'
13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863 (eval $ac_try) 2>&5
13864 ac_status=$?
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; } &&
13867 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13870 ac_status=$?
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
13873 ac_cv_lib_dl_dlopen=yes
13874else
13875 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013876sed 's/^/| /' conftest.$ac_ext >&5
13877
John Criswell47fdd832003-07-14 16:52:07 +000013878ac_cv_lib_dl_dlopen=no
13879fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013880rm -f conftest.err conftest.$ac_objext \
13881 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013882LIBS=$ac_check_lib_save_LIBS
13883fi
13884echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13885echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13886if test $ac_cv_lib_dl_dlopen = yes; then
13887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13888else
13889
13890 lt_cv_dlopen="dyld"
13891 lt_cv_dlopen_libs=
13892 lt_cv_dlopen_self=yes
13893
13894fi
13895
13896 ;;
13897
John Criswell7a73b802003-06-30 21:59:07 +000013898 *)
13899 echo "$as_me:$LINENO: checking for shl_load" >&5
13900echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13901if test "${ac_cv_func_shl_load+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13903else
13904 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013905/* confdefs.h. */
13906_ACEOF
13907cat confdefs.h >>conftest.$ac_ext
13908cat >>conftest.$ac_ext <<_ACEOF
13909/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013910/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13912#define shl_load innocuous_shl_load
13913
John Criswell7a73b802003-06-30 21:59:07 +000013914/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013915 which can conflict with char shl_load (); below.
13916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13917 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013918
John Criswell0c38eaf2003-09-10 15:17:25 +000013919#ifdef __STDC__
13920# include <limits.h>
13921#else
13922# include <assert.h>
13923#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013924
13925#undef shl_load
13926
John Criswell7a73b802003-06-30 21:59:07 +000013927/* Override any gcc2 internal prototype to avoid an error. */
13928#ifdef __cplusplus
13929extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013930{
John Criswell7a73b802003-06-30 21:59:07 +000013931#endif
13932/* We use char because int might match the return type of a gcc2
13933 builtin and then its argument prototype would still apply. */
13934char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013935/* The GNU C library defines this for functions which it implements
13936 to always fail with ENOSYS. Some functions are actually named
13937 something starting with __ and the normal name is an alias. */
13938#if defined (__stub_shl_load) || defined (__stub___shl_load)
13939choke me
13940#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013941char (*f) () = shl_load;
13942#endif
13943#ifdef __cplusplus
13944}
John Criswell7a73b802003-06-30 21:59:07 +000013945#endif
13946
John Criswell0c38eaf2003-09-10 15:17:25 +000013947int
13948main ()
13949{
13950return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013951 ;
13952 return 0;
13953}
13954_ACEOF
13955rm -f conftest.$ac_objext conftest$ac_exeext
13956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013957 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013958 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013959 grep -v '^ *+' conftest.er1 >conftest.err
13960 rm -f conftest.er1
13961 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013964 { ac_try='test -z "$ac_c_werror_flag"
13965 || test ! -s conftest.err'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; } &&
13971 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13973 (eval $ac_try) 2>&5
13974 ac_status=$?
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); }; }; then
13977 ac_cv_func_shl_load=yes
13978else
13979 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013980sed 's/^/| /' conftest.$ac_ext >&5
13981
John Criswell7a73b802003-06-30 21:59:07 +000013982ac_cv_func_shl_load=no
13983fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013984rm -f conftest.err conftest.$ac_objext \
13985 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013986fi
13987echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13988echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13989if test $ac_cv_func_shl_load = yes; then
13990 lt_cv_dlopen="shl_load"
13991else
13992 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13993echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13994if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996else
13997 ac_check_lib_save_LIBS=$LIBS
13998LIBS="-ldld $LIBS"
13999cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014000/* confdefs.h. */
14001_ACEOF
14002cat confdefs.h >>conftest.$ac_ext
14003cat >>conftest.$ac_ext <<_ACEOF
14004/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014005
14006/* Override any gcc2 internal prototype to avoid an error. */
14007#ifdef __cplusplus
14008extern "C"
14009#endif
14010/* We use char because int might match the return type of a gcc2
14011 builtin and then its argument prototype would still apply. */
14012char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000014013int
14014main ()
14015{
14016shl_load ();
14017 ;
14018 return 0;
14019}
14020_ACEOF
14021rm -f conftest.$ac_objext conftest$ac_exeext
14022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014023 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014024 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014025 grep -v '^ *+' conftest.er1 >conftest.err
14026 rm -f conftest.er1
14027 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014030 { ac_try='test -z "$ac_c_werror_flag"
14031 || test ! -s conftest.err'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14043 ac_cv_lib_dld_shl_load=yes
14044else
14045 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014046sed 's/^/| /' conftest.$ac_ext >&5
14047
John Criswell7a73b802003-06-30 21:59:07 +000014048ac_cv_lib_dld_shl_load=no
14049fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014050rm -f conftest.err conftest.$ac_objext \
14051 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014052LIBS=$ac_check_lib_save_LIBS
14053fi
14054echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14055echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14056if test $ac_cv_lib_dld_shl_load = yes; then
14057 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14058else
14059 echo "$as_me:$LINENO: checking for dlopen" >&5
14060echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14061if test "${ac_cv_func_dlopen+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14063else
14064 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014065/* confdefs.h. */
14066_ACEOF
14067cat confdefs.h >>conftest.$ac_ext
14068cat >>conftest.$ac_ext <<_ACEOF
14069/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014070/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14072#define dlopen innocuous_dlopen
14073
John Criswell7a73b802003-06-30 21:59:07 +000014074/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000014075 which can conflict with char dlopen (); below.
14076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14077 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000014078
John Criswell0c38eaf2003-09-10 15:17:25 +000014079#ifdef __STDC__
14080# include <limits.h>
14081#else
14082# include <assert.h>
14083#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000014084
14085#undef dlopen
14086
John Criswell7a73b802003-06-30 21:59:07 +000014087/* Override any gcc2 internal prototype to avoid an error. */
14088#ifdef __cplusplus
14089extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000014090{
John Criswell7a73b802003-06-30 21:59:07 +000014091#endif
14092/* We use char because int might match the return type of a gcc2
14093 builtin and then its argument prototype would still apply. */
14094char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014095/* The GNU C library defines this for functions which it implements
14096 to always fail with ENOSYS. Some functions are actually named
14097 something starting with __ and the normal name is an alias. */
14098#if defined (__stub_dlopen) || defined (__stub___dlopen)
14099choke me
14100#else
John Criswell0c38eaf2003-09-10 15:17:25 +000014101char (*f) () = dlopen;
14102#endif
14103#ifdef __cplusplus
14104}
John Criswell7a73b802003-06-30 21:59:07 +000014105#endif
14106
John Criswell0c38eaf2003-09-10 15:17:25 +000014107int
14108main ()
14109{
14110return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000014111 ;
14112 return 0;
14113}
14114_ACEOF
14115rm -f conftest.$ac_objext conftest$ac_exeext
14116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014117 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014118 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014119 grep -v '^ *+' conftest.er1 >conftest.err
14120 rm -f conftest.er1
14121 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014124 { ac_try='test -z "$ac_c_werror_flag"
14125 || test ! -s conftest.err'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 ac_cv_func_dlopen=yes
14138else
14139 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014140sed 's/^/| /' conftest.$ac_ext >&5
14141
John Criswell7a73b802003-06-30 21:59:07 +000014142ac_cv_func_dlopen=no
14143fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014144rm -f conftest.err conftest.$ac_objext \
14145 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014146fi
14147echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14148echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14149if test $ac_cv_func_dlopen = yes; then
14150 lt_cv_dlopen="dlopen"
14151else
14152 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14153echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14154if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14155 echo $ECHO_N "(cached) $ECHO_C" >&6
14156else
14157 ac_check_lib_save_LIBS=$LIBS
14158LIBS="-ldl $LIBS"
14159cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014160/* confdefs.h. */
14161_ACEOF
14162cat confdefs.h >>conftest.$ac_ext
14163cat >>conftest.$ac_ext <<_ACEOF
14164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014165
14166/* Override any gcc2 internal prototype to avoid an error. */
14167#ifdef __cplusplus
14168extern "C"
14169#endif
14170/* We use char because int might match the return type of a gcc2
14171 builtin and then its argument prototype would still apply. */
14172char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014173int
14174main ()
14175{
14176dlopen ();
14177 ;
14178 return 0;
14179}
14180_ACEOF
14181rm -f conftest.$ac_objext conftest$ac_exeext
14182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014183 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014184 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014185 grep -v '^ *+' conftest.er1 >conftest.err
14186 rm -f conftest.er1
14187 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014190 { ac_try='test -z "$ac_c_werror_flag"
14191 || test ! -s conftest.err'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; } &&
14197 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 ac_cv_lib_dl_dlopen=yes
14204else
14205 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014206sed 's/^/| /' conftest.$ac_ext >&5
14207
John Criswell7a73b802003-06-30 21:59:07 +000014208ac_cv_lib_dl_dlopen=no
14209fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014210rm -f conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014212LIBS=$ac_check_lib_save_LIBS
14213fi
14214echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14215echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14216if test $ac_cv_lib_dl_dlopen = yes; then
14217 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14218else
14219 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14220echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14221if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14223else
14224 ac_check_lib_save_LIBS=$LIBS
14225LIBS="-lsvld $LIBS"
14226cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014227/* confdefs.h. */
14228_ACEOF
14229cat confdefs.h >>conftest.$ac_ext
14230cat >>conftest.$ac_ext <<_ACEOF
14231/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014232
14233/* Override any gcc2 internal prototype to avoid an error. */
14234#ifdef __cplusplus
14235extern "C"
14236#endif
14237/* We use char because int might match the return type of a gcc2
14238 builtin and then its argument prototype would still apply. */
14239char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000014240int
14241main ()
14242{
14243dlopen ();
14244 ;
14245 return 0;
14246}
14247_ACEOF
14248rm -f conftest.$ac_objext conftest$ac_exeext
14249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014250 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014251 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014257 { ac_try='test -z "$ac_c_werror_flag"
14258 || test ! -s conftest.err'
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; } &&
14264 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14267 ac_status=$?
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; }; then
14270 ac_cv_lib_svld_dlopen=yes
14271else
14272 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014273sed 's/^/| /' conftest.$ac_ext >&5
14274
John Criswell7a73b802003-06-30 21:59:07 +000014275ac_cv_lib_svld_dlopen=no
14276fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014277rm -f conftest.err conftest.$ac_objext \
14278 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014279LIBS=$ac_check_lib_save_LIBS
14280fi
14281echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14282echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14283if test $ac_cv_lib_svld_dlopen = yes; then
14284 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14285else
14286 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14287echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14288if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14290else
14291 ac_check_lib_save_LIBS=$LIBS
14292LIBS="-ldld $LIBS"
14293cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014294/* confdefs.h. */
14295_ACEOF
14296cat confdefs.h >>conftest.$ac_ext
14297cat >>conftest.$ac_ext <<_ACEOF
14298/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014299
14300/* Override any gcc2 internal prototype to avoid an error. */
14301#ifdef __cplusplus
14302extern "C"
14303#endif
14304/* We use char because int might match the return type of a gcc2
14305 builtin and then its argument prototype would still apply. */
14306char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014307int
14308main ()
14309{
14310dld_link ();
14311 ;
14312 return 0;
14313}
14314_ACEOF
14315rm -f conftest.$ac_objext conftest$ac_exeext
14316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014317 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014318 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014319 grep -v '^ *+' conftest.er1 >conftest.err
14320 rm -f conftest.er1
14321 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014324 { ac_try='test -z "$ac_c_werror_flag"
14325 || test ! -s conftest.err'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14328 ac_status=$?
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14334 ac_status=$?
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14337 ac_cv_lib_dld_dld_link=yes
14338else
14339 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014340sed 's/^/| /' conftest.$ac_ext >&5
14341
John Criswell7a73b802003-06-30 21:59:07 +000014342ac_cv_lib_dld_dld_link=no
14343fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014344rm -f conftest.err conftest.$ac_objext \
14345 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014346LIBS=$ac_check_lib_save_LIBS
14347fi
14348echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14349echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14350if test $ac_cv_lib_dld_dld_link = yes; then
14351 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14352fi
14353
14354
14355fi
14356
14357
14358fi
14359
14360
14361fi
14362
14363
14364fi
14365
14366
14367fi
14368
14369 ;;
14370 esac
14371
14372 if test "x$lt_cv_dlopen" != xno; then
14373 enable_dlopen=yes
14374 else
14375 enable_dlopen=no
14376 fi
14377
14378 case $lt_cv_dlopen in
14379 dlopen)
14380 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014381 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014382
14383 save_LDFLAGS="$LDFLAGS"
14384 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14385
14386 save_LIBS="$LIBS"
14387 LIBS="$lt_cv_dlopen_libs $LIBS"
14388
14389 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14390echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14391if test "${lt_cv_dlopen_self+set}" = set; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14393else
14394 if test "$cross_compiling" = yes; then :
14395 lt_cv_dlopen_self=cross
14396else
John Criswell47fdd832003-07-14 16:52:07 +000014397 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014398 lt_status=$lt_dlunknown
14399 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +000014400#line 14401 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014401#include "confdefs.h"
14402
14403#if HAVE_DLFCN_H
14404#include <dlfcn.h>
14405#endif
14406
14407#include <stdio.h>
14408
14409#ifdef RTLD_GLOBAL
14410# define LT_DLGLOBAL RTLD_GLOBAL
14411#else
14412# ifdef DL_GLOBAL
14413# define LT_DLGLOBAL DL_GLOBAL
14414# else
14415# define LT_DLGLOBAL 0
14416# endif
14417#endif
14418
14419/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14420 find out it does not work in some platform. */
14421#ifndef LT_DLLAZY_OR_NOW
14422# ifdef RTLD_LAZY
14423# define LT_DLLAZY_OR_NOW RTLD_LAZY
14424# else
14425# ifdef DL_LAZY
14426# define LT_DLLAZY_OR_NOW DL_LAZY
14427# else
14428# ifdef RTLD_NOW
14429# define LT_DLLAZY_OR_NOW RTLD_NOW
14430# else
14431# ifdef DL_NOW
14432# define LT_DLLAZY_OR_NOW DL_NOW
14433# else
14434# define LT_DLLAZY_OR_NOW 0
14435# endif
14436# endif
14437# endif
14438# endif
14439#endif
14440
14441#ifdef __cplusplus
14442extern "C" void exit (int);
14443#endif
14444
14445void fnord() { int i=42;}
14446int main ()
14447{
14448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14449 int status = $lt_dlunknown;
14450
14451 if (self)
14452 {
14453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14454 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14455 /* dlclose (self); */
14456 }
14457
14458 exit (status);
14459}
14460EOF
14461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14462 (eval $ac_link) 2>&5
14463 ac_status=$?
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14466 (./conftest; exit; ) 2>/dev/null
14467 lt_status=$?
14468 case x$lt_status in
14469 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14470 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14471 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14472 esac
14473 else :
14474 # compilation failed
14475 lt_cv_dlopen_self=no
14476 fi
14477fi
14478rm -fr conftest*
14479
14480
14481fi
14482echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14483echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14484
14485 if test "x$lt_cv_dlopen_self" = xyes; then
14486 LDFLAGS="$LDFLAGS $link_static_flag"
14487 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14488echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14489if test "${lt_cv_dlopen_self_static+set}" = set; then
14490 echo $ECHO_N "(cached) $ECHO_C" >&6
14491else
14492 if test "$cross_compiling" = yes; then :
14493 lt_cv_dlopen_self_static=cross
14494else
John Criswell47fdd832003-07-14 16:52:07 +000014495 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014496 lt_status=$lt_dlunknown
14497 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +000014498#line 14499 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014499#include "confdefs.h"
14500
14501#if HAVE_DLFCN_H
14502#include <dlfcn.h>
14503#endif
14504
14505#include <stdio.h>
14506
14507#ifdef RTLD_GLOBAL
14508# define LT_DLGLOBAL RTLD_GLOBAL
14509#else
14510# ifdef DL_GLOBAL
14511# define LT_DLGLOBAL DL_GLOBAL
14512# else
14513# define LT_DLGLOBAL 0
14514# endif
14515#endif
14516
14517/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14518 find out it does not work in some platform. */
14519#ifndef LT_DLLAZY_OR_NOW
14520# ifdef RTLD_LAZY
14521# define LT_DLLAZY_OR_NOW RTLD_LAZY
14522# else
14523# ifdef DL_LAZY
14524# define LT_DLLAZY_OR_NOW DL_LAZY
14525# else
14526# ifdef RTLD_NOW
14527# define LT_DLLAZY_OR_NOW RTLD_NOW
14528# else
14529# ifdef DL_NOW
14530# define LT_DLLAZY_OR_NOW DL_NOW
14531# else
14532# define LT_DLLAZY_OR_NOW 0
14533# endif
14534# endif
14535# endif
14536# endif
14537#endif
14538
14539#ifdef __cplusplus
14540extern "C" void exit (int);
14541#endif
14542
14543void fnord() { int i=42;}
14544int main ()
14545{
14546 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14547 int status = $lt_dlunknown;
14548
14549 if (self)
14550 {
14551 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14552 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14553 /* dlclose (self); */
14554 }
14555
14556 exit (status);
14557}
14558EOF
14559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14560 (eval $ac_link) 2>&5
14561 ac_status=$?
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14564 (./conftest; exit; ) 2>/dev/null
14565 lt_status=$?
14566 case x$lt_status in
14567 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14568 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14569 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14570 esac
14571 else :
14572 # compilation failed
14573 lt_cv_dlopen_self_static=no
14574 fi
14575fi
14576rm -fr conftest*
14577
14578
14579fi
14580echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14581echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14582 fi
14583
14584 CPPFLAGS="$save_CPPFLAGS"
14585 LDFLAGS="$save_LDFLAGS"
14586 LIBS="$save_LIBS"
14587 ;;
14588 esac
14589
14590 case $lt_cv_dlopen_self in
14591 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14592 *) enable_dlopen_self=unknown ;;
14593 esac
14594
14595 case $lt_cv_dlopen_self_static in
14596 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14597 *) enable_dlopen_self_static=unknown ;;
14598 esac
14599fi
14600
14601
John Criswell47fdd832003-07-14 16:52:07 +000014602# Report which librarie types wil actually be built
14603echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14604echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14605echo "$as_me:$LINENO: result: $can_build_shared" >&5
14606echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014607
John Criswell47fdd832003-07-14 16:52:07 +000014608echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14609echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14610test "$can_build_shared" = "no" && enable_shared=no
14611
14612# On AIX, shared libraries and static libraries use the same namespace, and
14613# are all built from PIC.
14614case "$host_os" in
14615aix3*)
14616 test "$enable_shared" = yes && enable_static=no
14617 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014618 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014619 postinstall_cmds='$RANLIB $lib'
14620 fi
14621 ;;
14622
Reid Spencer2706f8c2004-09-19 23:53:36 +000014623aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014624 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14625 test "$enable_shared" = yes && enable_static=no
14626 fi
John Criswell7a73b802003-06-30 21:59:07 +000014627 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014628esac
14629echo "$as_me:$LINENO: result: $enable_shared" >&5
14630echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014631
John Criswell47fdd832003-07-14 16:52:07 +000014632echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14633echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14634# Make sure either enable_shared or enable_static is yes.
14635test "$enable_shared" = yes || enable_static=yes
14636echo "$as_me:$LINENO: result: $enable_static" >&5
14637echo "${ECHO_T}$enable_static" >&6
14638
14639# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014640# libtool distribution, otherwise you forgot to ship ltmain.sh
14641# with your package, and you will get complaints that there are
14642# no rules to generate ltmain.sh.
14643if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014644 # See if we are running on zsh, and set the options which allow our commands through
14645 # without removal of \ escapes.
14646 if test -n "${ZSH_VERSION+set}" ; then
14647 setopt NO_GLOB_SUBST
14648 fi
John Criswell7a73b802003-06-30 21:59:07 +000014649 # Now quote all the things that may contain metacharacters while being
14650 # careful not to overquote the AC_SUBSTed values. We take copies of the
14651 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014652 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14653 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014654 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14655 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14656 deplibs_check_method reload_flag reload_cmds need_locks \
14657 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14658 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014659 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014660 old_postinstall_cmds old_postuninstall_cmds \
14661 compiler \
14662 CC \
14663 LD \
14664 lt_prog_compiler_wl \
14665 lt_prog_compiler_pic \
14666 lt_prog_compiler_static \
14667 lt_prog_compiler_no_builtin_flag \
14668 export_dynamic_flag_spec \
14669 thread_safe_flag_spec \
14670 whole_archive_flag_spec \
14671 enable_shared_with_static_runtimes \
14672 old_archive_cmds \
14673 old_archive_from_new_cmds \
14674 predep_objects \
14675 postdep_objects \
14676 predeps \
14677 postdeps \
14678 compiler_lib_search_path \
14679 archive_cmds \
14680 archive_expsym_cmds \
14681 postinstall_cmds \
14682 postuninstall_cmds \
14683 old_archive_from_expsyms_cmds \
14684 allow_undefined_flag \
14685 no_undefined_flag \
14686 export_symbols_cmds \
14687 hardcode_libdir_flag_spec \
14688 hardcode_libdir_flag_spec_ld \
14689 hardcode_libdir_separator \
14690 hardcode_automatic \
14691 module_cmds \
14692 module_expsym_cmds \
14693 lt_cv_prog_compiler_c_o \
14694 exclude_expsyms \
14695 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014696
14697 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014698 old_archive_cmds | \
14699 old_archive_from_new_cmds | \
14700 archive_cmds | \
14701 archive_expsym_cmds | \
14702 module_cmds | \
14703 module_expsym_cmds | \
14704 old_archive_from_expsyms_cmds | \
14705 export_symbols_cmds | \
14706 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014707 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014708 old_postinstall_cmds | old_postuninstall_cmds | \
14709 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014710 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014711 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 +000014712 ;;
14713 *)
14714 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14715 ;;
14716 esac
14717 done
14718
John Criswell47fdd832003-07-14 16:52:07 +000014719 case $lt_echo in
14720 *'\$0 --fallback-echo"')
14721 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14722 ;;
14723 esac
14724
14725cfgfile="${ofile}T"
14726 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14727 $rm -f "$cfgfile"
14728 { echo "$as_me:$LINENO: creating $ofile" >&5
14729echo "$as_me: creating $ofile" >&6;}
14730
14731 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014732#! $SHELL
14733
John Criswell47fdd832003-07-14 16:52:07 +000014734# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014735# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14736# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14737#
John Criswell47fdd832003-07-14 16:52:07 +000014738# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14739# Free Software Foundation, Inc.
14740#
14741# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014742# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14743#
14744# This program is free software; you can redistribute it and/or modify
14745# it under the terms of the GNU General Public License as published by
14746# the Free Software Foundation; either version 2 of the License, or
14747# (at your option) any later version.
14748#
14749# This program is distributed in the hope that it will be useful, but
14750# WITHOUT ANY WARRANTY; without even the implied warranty of
14751# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14752# General Public License for more details.
14753#
14754# You should have received a copy of the GNU General Public License
14755# along with this program; if not, write to the Free Software
14756# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14757#
14758# As a special exception to the GNU General Public License, if you
14759# distribute this file as part of a program that contains a
14760# configuration script generated by Autoconf, you may include it under
14761# the same distribution terms that you use for the rest of that program.
14762
John Criswell47fdd832003-07-14 16:52:07 +000014763# A sed program that does not truncate output.
14764SED=$lt_SED
14765
John Criswell7a73b802003-06-30 21:59:07 +000014766# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014767Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014768
14769# The HP-UX ksh and POSIX shell print the target directory to stdout
14770# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014771(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014772
John Criswell47fdd832003-07-14 16:52:07 +000014773# The names of the tagged configurations supported by this script.
14774available_tags=
14775
John Criswell7a73b802003-06-30 21:59:07 +000014776# ### BEGIN LIBTOOL CONFIG
14777
14778# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14779
14780# Shell to use when invoking shell scripts.
14781SHELL=$lt_SHELL
14782
14783# Whether or not to build shared libraries.
14784build_libtool_libs=$enable_shared
14785
14786# Whether or not to build static libraries.
14787build_old_libs=$enable_static
14788
14789# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014790build_libtool_need_lc=$archive_cmds_need_lc
14791
14792# Whether or not to disallow shared libs when runtime libs are static
14793allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014794
14795# Whether or not to optimize for fast installation.
14796fast_install=$enable_fast_install
14797
14798# The host system.
14799host_alias=$host_alias
14800host=$host
14801
14802# An echo program that does not interpret backslashes.
14803echo=$lt_echo
14804
14805# The archiver.
14806AR=$lt_AR
14807AR_FLAGS=$lt_AR_FLAGS
14808
John Criswell47fdd832003-07-14 16:52:07 +000014809# A C compiler.
14810LTCC=$lt_LTCC
14811
14812# A language-specific compiler.
14813CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014814
14815# Is the compiler the GNU C compiler?
14816with_gcc=$GCC
14817
John Criswell47fdd832003-07-14 16:52:07 +000014818# An ERE matcher.
14819EGREP=$lt_EGREP
14820
John Criswell7a73b802003-06-30 21:59:07 +000014821# The linker used to build libraries.
14822LD=$lt_LD
14823
14824# Whether we need hard or soft links.
14825LN_S=$lt_LN_S
14826
14827# A BSD-compatible nm program.
14828NM=$lt_NM
14829
14830# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014831STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014832
14833# Used to examine libraries when file_magic_cmd begins "file"
14834MAGIC_CMD=$MAGIC_CMD
14835
14836# Used on cygwin: DLL creation program.
14837DLLTOOL="$DLLTOOL"
14838
14839# Used on cygwin: object dumper.
14840OBJDUMP="$OBJDUMP"
14841
14842# Used on cygwin: assembler.
14843AS="$AS"
14844
14845# The name of the directory that contains temporary libtool files.
14846objdir=$objdir
14847
14848# How to create reloadable object files.
14849reload_flag=$lt_reload_flag
14850reload_cmds=$lt_reload_cmds
14851
14852# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014853wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014854
14855# Object file suffix (normally "o").
14856objext="$ac_objext"
14857
14858# Old archive suffix (normally "a").
14859libext="$libext"
14860
John Criswell47fdd832003-07-14 16:52:07 +000014861# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014862shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014863
John Criswell7a73b802003-06-30 21:59:07 +000014864# Executable file suffix (normally "").
14865exeext="$exeext"
14866
14867# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014868pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014869pic_mode=$pic_mode
14870
John Criswell47fdd832003-07-14 16:52:07 +000014871# What is the maximum length of a command?
14872max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014873
John Criswell47fdd832003-07-14 16:52:07 +000014874# Does compiler simultaneously support -c and -o options?
14875compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014876
14877# Must we lock files when doing compilation ?
14878need_locks=$lt_need_locks
14879
14880# Do we need the lib prefix for modules?
14881need_lib_prefix=$need_lib_prefix
14882
14883# Do we need a version for libraries?
14884need_version=$need_version
14885
14886# Whether dlopen is supported.
14887dlopen_support=$enable_dlopen
14888
14889# Whether dlopen of programs is supported.
14890dlopen_self=$enable_dlopen_self
14891
14892# Whether dlopen of statically linked programs is supported.
14893dlopen_self_static=$enable_dlopen_self_static
14894
14895# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014896link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014897
14898# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014899no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014900
14901# Compiler flag to allow reflexive dlopens.
14902export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14903
14904# Compiler flag to generate shared objects directly from archives.
14905whole_archive_flag_spec=$lt_whole_archive_flag_spec
14906
14907# Compiler flag to generate thread-safe objects.
14908thread_safe_flag_spec=$lt_thread_safe_flag_spec
14909
14910# Library versioning type.
14911version_type=$version_type
14912
14913# Format of library name prefix.
14914libname_spec=$lt_libname_spec
14915
14916# List of archive names. First name is the real one, the rest are links.
14917# The last name is the one that the linker finds with -lNAME.
14918library_names_spec=$lt_library_names_spec
14919
14920# The coded name of the library, if different from the real name.
14921soname_spec=$lt_soname_spec
14922
14923# Commands used to build and install an old-style archive.
14924RANLIB=$lt_RANLIB
14925old_archive_cmds=$lt_old_archive_cmds
14926old_postinstall_cmds=$lt_old_postinstall_cmds
14927old_postuninstall_cmds=$lt_old_postuninstall_cmds
14928
14929# Create an old-style archive from a shared archive.
14930old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14931
14932# Create a temporary old-style archive to link instead of a shared archive.
14933old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14934
14935# Commands used to build and install a shared archive.
14936archive_cmds=$lt_archive_cmds
14937archive_expsym_cmds=$lt_archive_expsym_cmds
14938postinstall_cmds=$lt_postinstall_cmds
14939postuninstall_cmds=$lt_postuninstall_cmds
14940
John Criswell47fdd832003-07-14 16:52:07 +000014941# Commands used to build a loadable module (assumed same as above if empty)
14942module_cmds=$lt_module_cmds
14943module_expsym_cmds=$lt_module_expsym_cmds
14944
John Criswell7a73b802003-06-30 21:59:07 +000014945# Commands to strip libraries.
14946old_striplib=$lt_old_striplib
14947striplib=$lt_striplib
14948
John Criswell47fdd832003-07-14 16:52:07 +000014949# Dependencies to place before the objects being linked to create a
14950# shared library.
14951predep_objects=$lt_predep_objects
14952
14953# Dependencies to place after the objects being linked to create a
14954# shared library.
14955postdep_objects=$lt_postdep_objects
14956
14957# Dependencies to place before the objects being linked to create a
14958# shared library.
14959predeps=$lt_predeps
14960
14961# Dependencies to place after the objects being linked to create a
14962# shared library.
14963postdeps=$lt_postdeps
14964
14965# The library search path used internally by the compiler when linking
14966# a shared library.
14967compiler_lib_search_path=$lt_compiler_lib_search_path
14968
John Criswell7a73b802003-06-30 21:59:07 +000014969# Method to check whether dependent libraries are shared objects.
14970deplibs_check_method=$lt_deplibs_check_method
14971
14972# Command to use when deplibs_check_method == file_magic.
14973file_magic_cmd=$lt_file_magic_cmd
14974
14975# Flag that allows shared libraries with undefined symbols to be built.
14976allow_undefined_flag=$lt_allow_undefined_flag
14977
14978# Flag that forces no undefined symbols.
14979no_undefined_flag=$lt_no_undefined_flag
14980
14981# Commands used to finish a libtool library installation in a directory.
14982finish_cmds=$lt_finish_cmds
14983
14984# Same as above, but a single script fragment to be evaled but not shown.
14985finish_eval=$lt_finish_eval
14986
14987# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014988global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014989
14990# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014991global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014992
14993# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014994global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014995
14996# This is the shared library runtime path variable.
14997runpath_var=$runpath_var
14998
14999# This is the shared library path variable.
15000shlibpath_var=$shlibpath_var
15001
15002# Is shlibpath searched before the hard-coded library search path?
15003shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15004
15005# How to hardcode a shared library path into an executable.
15006hardcode_action=$hardcode_action
15007
15008# Whether we should hardcode library paths into libraries.
15009hardcode_into_libs=$hardcode_into_libs
15010
15011# Flag to hardcode \$libdir into a binary during linking.
15012# This must work even if \$libdir does not exist.
15013hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15014
John Criswell47fdd832003-07-14 16:52:07 +000015015# If ld is used when linking, flag to hardcode \$libdir into
15016# a binary during linking. This must work even if \$libdir does
15017# not exist.
15018hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15019
John Criswell7a73b802003-06-30 21:59:07 +000015020# Whether we need a single -rpath flag with a separated argument.
15021hardcode_libdir_separator=$lt_hardcode_libdir_separator
15022
John Criswell47fdd832003-07-14 16:52:07 +000015023# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000015024# resulting binary.
15025hardcode_direct=$hardcode_direct
15026
15027# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15028# resulting binary.
15029hardcode_minus_L=$hardcode_minus_L
15030
15031# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15032# the resulting binary.
15033hardcode_shlibpath_var=$hardcode_shlibpath_var
15034
John Criswell47fdd832003-07-14 16:52:07 +000015035# Set to yes if building a shared library automatically hardcodes DIR into the library
15036# and all subsequent libraries and executables linked against it.
15037hardcode_automatic=$hardcode_automatic
15038
John Criswell7a73b802003-06-30 21:59:07 +000015039# Variables whose values should be saved in libtool wrapper scripts and
15040# restored at relink time.
15041variables_saved_for_relink="$variables_saved_for_relink"
15042
15043# Whether libtool must link a program against all its dependency libraries.
15044link_all_deplibs=$link_all_deplibs
15045
15046# Compile-time system search path for libraries
15047sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15048
15049# Run-time system search path for libraries
15050sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15051
15052# Fix the shell variable \$srcfile for the compiler.
15053fix_srcfile_path="$fix_srcfile_path"
15054
15055# Set to yes if exported symbols are required.
15056always_export_symbols=$always_export_symbols
15057
15058# The commands to list exported symbols.
15059export_symbols_cmds=$lt_export_symbols_cmds
15060
15061# The commands to extract the exported symbol list from a shared archive.
15062extract_expsyms_cmds=$lt_extract_expsyms_cmds
15063
15064# Symbols that should not be listed in the preloaded symbols.
15065exclude_expsyms=$lt_exclude_expsyms
15066
15067# Symbols that must always be exported.
15068include_expsyms=$lt_include_expsyms
15069
15070# ### END LIBTOOL CONFIG
15071
15072__EOF__
15073
John Criswell47fdd832003-07-14 16:52:07 +000015074
John Criswell7a73b802003-06-30 21:59:07 +000015075 case $host_os in
15076 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000015077 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000015078
15079# AIX sometimes has problems with the GCC collect2 program. For some
15080# reason, if we set the COLLECT_NAMES environment variable, the problems
15081# vanish in a puff of smoke.
15082if test "X${COLLECT_NAMES+set}" != Xset; then
15083 COLLECT_NAMES=
15084 export COLLECT_NAMES
15085fi
15086EOF
15087 ;;
15088 esac
15089
John Criswell7a73b802003-06-30 21:59:07 +000015090 # We use sed instead of cat because bash on DJGPP gets confused if
15091 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15092 # text mode, it properly converts lines to CR/LF. This bash problem
15093 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000015094 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000015095
John Criswell47fdd832003-07-14 16:52:07 +000015096 mv -f "$cfgfile" "$ofile" || \
15097 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000015098 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000015099
15100else
15101 # If there is no Makefile yet, we rely on a make rule to execute
15102 # `config.status --recheck' to rerun these tests and create the
15103 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015104 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15105 if test -f "$ltmain_in"; then
15106 test -f Makefile && make "$ltmain"
15107 fi
John Criswell7a73b802003-06-30 21:59:07 +000015108fi
John Criswell7a73b802003-06-30 21:59:07 +000015109
15110
John Criswell47fdd832003-07-14 16:52:07 +000015111ac_ext=c
15112ac_cpp='$CPP $CPPFLAGS'
15113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15115ac_compiler_gnu=$ac_cv_c_compiler_gnu
15116
15117CC="$lt_save_CC"
15118
15119
15120# Check whether --with-tags or --without-tags was given.
15121if test "${with_tags+set}" = set; then
15122 withval="$with_tags"
15123 tagnames="$withval"
15124fi;
15125
15126if test -f "$ltmain" && test -n "$tagnames"; then
15127 if test ! -f "${ofile}"; then
15128 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15129echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15130 fi
15131
15132 if test -z "$LTCC"; then
15133 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15134 if test -z "$LTCC"; then
15135 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15136echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15137 else
15138 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15139echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15140 fi
15141 fi
15142
15143 # Extract list of available tagged configurations in $ofile.
15144 # Note that this assumes the entire list is on one line.
15145 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15146
15147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
15148 for tagname in $tagnames; do
15149 IFS="$lt_save_ifs"
15150 # Check whether tagname contains only valid characters
15151 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15152 "") ;;
15153 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15154echo "$as_me: error: invalid tag name: $tagname" >&2;}
15155 { (exit 1); exit 1; }; }
15156 ;;
15157 esac
15158
15159 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15160 then
15161 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15162echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15163 { (exit 1); exit 1; }; }
15164 fi
15165
15166 # Update the list of available tags.
15167 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015168 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000015169
15170 case $tagname in
15171 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015172 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15173 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15174 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000015175 ac_ext=cc
15176ac_cpp='$CXXCPP $CPPFLAGS'
15177ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15178ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15179ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15180
15181
15182
15183
15184archive_cmds_need_lc_CXX=no
15185allow_undefined_flag_CXX=
15186always_export_symbols_CXX=no
15187archive_expsym_cmds_CXX=
15188export_dynamic_flag_spec_CXX=
15189hardcode_direct_CXX=no
15190hardcode_libdir_flag_spec_CXX=
15191hardcode_libdir_flag_spec_ld_CXX=
15192hardcode_libdir_separator_CXX=
15193hardcode_minus_L_CXX=no
15194hardcode_automatic_CXX=no
15195module_cmds_CXX=
15196module_expsym_cmds_CXX=
15197link_all_deplibs_CXX=unknown
15198old_archive_cmds_CXX=$old_archive_cmds
15199no_undefined_flag_CXX=
15200whole_archive_flag_spec_CXX=
15201enable_shared_with_static_runtimes_CXX=no
15202
15203# Dependencies to place before and after the object being linked:
15204predep_objects_CXX=
15205postdep_objects_CXX=
15206predeps_CXX=
15207postdeps_CXX=
15208compiler_lib_search_path_CXX=
15209
15210# Source file extension for C++ test sources.
15211ac_ext=cc
15212
15213# Object file extension for compiled C++ test sources.
15214objext=o
15215objext_CXX=$objext
15216
15217# Code to be used in simple compile tests
15218lt_simple_compile_test_code="int some_variable = 0;\n"
15219
15220# Code to be used in simple link tests
15221lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15222
15223# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15224
15225# If no C compiler was specified, use CC.
15226LTCC=${LTCC-"$CC"}
15227
15228# Allow CC to be a program name with arguments.
15229compiler=$CC
15230
15231
15232# Allow CC to be a program name with arguments.
15233lt_save_CC=$CC
15234lt_save_LD=$LD
15235lt_save_GCC=$GCC
15236GCC=$GXX
15237lt_save_with_gnu_ld=$with_gnu_ld
15238lt_save_path_LD=$lt_cv_path_LD
15239if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15240 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15241else
15242 unset lt_cv_prog_gnu_ld
15243fi
15244if test -n "${lt_cv_path_LDCXX+set}"; then
15245 lt_cv_path_LD=$lt_cv_path_LDCXX
15246else
15247 unset lt_cv_path_LD
15248fi
15249test -z "${LDCXX+set}" || LD=$LDCXX
15250CC=${CXX-"c++"}
15251compiler=$CC
15252compiler_CXX=$CC
15253cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15254
15255# We don't want -fno-exception wen compiling C++ code, so set the
15256# no_builtin_flag separately
15257if test "$GXX" = yes; then
15258 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15259else
15260 lt_prog_compiler_no_builtin_flag_CXX=
15261fi
15262
15263if test "$GXX" = yes; then
15264 # Set up default GNU C++ configuration
15265
15266
15267# Check whether --with-gnu-ld or --without-gnu-ld was given.
15268if test "${with_gnu_ld+set}" = set; then
15269 withval="$with_gnu_ld"
15270 test "$withval" = no || with_gnu_ld=yes
15271else
15272 with_gnu_ld=no
15273fi;
15274ac_prog=ld
15275if test "$GCC" = yes; then
15276 # Check if gcc -print-prog-name=ld gives a path.
15277 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15278echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15279 case $host in
15280 *-*-mingw*)
15281 # gcc leaves a trailing carriage return which upsets mingw
15282 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15283 *)
15284 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15285 esac
15286 case $ac_prog in
15287 # Accept absolute paths.
15288 [\\/]* | ?:[\\/]*)
15289 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015290 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015291 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15292 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15293 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15294 done
15295 test -z "$LD" && LD="$ac_prog"
15296 ;;
15297 "")
15298 # If it fails, then pretend we aren't using GCC.
15299 ac_prog=ld
15300 ;;
15301 *)
15302 # If it is relative, then search for the first ld in PATH.
15303 with_gnu_ld=unknown
15304 ;;
15305 esac
15306elif test "$with_gnu_ld" = yes; then
15307 echo "$as_me:$LINENO: checking for GNU ld" >&5
15308echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15309else
15310 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15311echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15312fi
15313if test "${lt_cv_path_LD+set}" = set; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315else
15316 if test -z "$LD"; then
15317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15318 for ac_dir in $PATH; do
15319 IFS="$lt_save_ifs"
15320 test -z "$ac_dir" && ac_dir=.
15321 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15322 lt_cv_path_LD="$ac_dir/$ac_prog"
15323 # Check to see if the program is GNU ld. I'd rather use --version,
15324 # but apparently some GNU ld's only accept -v.
15325 # Break only if it was the GNU/non-GNU ld that we prefer.
15326 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15327 *GNU* | *'with BFD'*)
15328 test "$with_gnu_ld" != no && break
15329 ;;
15330 *)
15331 test "$with_gnu_ld" != yes && break
15332 ;;
15333 esac
15334 fi
15335 done
15336 IFS="$lt_save_ifs"
15337else
15338 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15339fi
15340fi
15341
15342LD="$lt_cv_path_LD"
15343if test -n "$LD"; then
15344 echo "$as_me:$LINENO: result: $LD" >&5
15345echo "${ECHO_T}$LD" >&6
15346else
15347 echo "$as_me:$LINENO: result: no" >&5
15348echo "${ECHO_T}no" >&6
15349fi
15350test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15351echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15352 { (exit 1); exit 1; }; }
15353echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15354echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15355if test "${lt_cv_prog_gnu_ld+set}" = set; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15357else
15358 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015359case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015360*GNU* | *'with BFD'*)
15361 lt_cv_prog_gnu_ld=yes
15362 ;;
15363*)
15364 lt_cv_prog_gnu_ld=no
15365 ;;
15366esac
15367fi
15368echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15369echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15370with_gnu_ld=$lt_cv_prog_gnu_ld
15371
15372
15373
15374 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15375 # archiving commands below assume that GNU ld is being used.
15376 if test "$with_gnu_ld" = yes; then
15377 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15378 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'
15379
15380 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15381 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15382
15383 # If archive_cmds runs LD, not CC, wlarc should be empty
15384 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15385 # investigate it a little bit more. (MM)
15386 wlarc='${wl}'
15387
15388 # ancient GNU ld didn't support --whole-archive et. al.
15389 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15390 grep 'no-whole-archive' > /dev/null; then
15391 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15392 else
15393 whole_archive_flag_spec_CXX=
15394 fi
15395 else
15396 with_gnu_ld=no
15397 wlarc=
15398
15399 # A generic and very simple default shared library creation
15400 # command for GNU C++ for the case where it uses the native
15401 # linker, instead of GNU ld. If possible, this setting should
15402 # overridden to take advantage of the native linker features on
15403 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015404 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015405 fi
15406
15407 # Commands to make compiler produce verbose output that lists
15408 # what "hidden" libraries, object files and flags are used when
15409 # linking a shared library.
15410 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15411
15412else
15413 GXX=no
15414 with_gnu_ld=no
15415 wlarc=
15416fi
15417
15418# PORTME: fill in a description of your system's C++ link characteristics
15419echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15420echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15421ld_shlibs_CXX=yes
15422case $host_os in
15423 aix3*)
15424 # FIXME: insert proper C++ library support
15425 ld_shlibs_CXX=no
15426 ;;
15427 aix4* | aix5*)
15428 if test "$host_cpu" = ia64; then
15429 # On IA64, the linker does run time linking by default, so we don't
15430 # have to do anything special.
15431 aix_use_runtimelinking=no
15432 exp_sym_flag='-Bexport'
15433 no_entry_flag=""
15434 else
15435 aix_use_runtimelinking=no
15436
15437 # Test if we are trying to use run time linking or normal
15438 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15439 # need to do runtime linking.
15440 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15441 for ld_flag in $LDFLAGS; do
15442 case $ld_flag in
15443 *-brtl*)
15444 aix_use_runtimelinking=yes
15445 break
15446 ;;
15447 esac
15448 done
15449 esac
15450
15451 exp_sym_flag='-bexport'
15452 no_entry_flag='-bnoentry'
15453 fi
15454
15455 # When large executables or shared objects are built, AIX ld can
15456 # have problems creating the table of contents. If linking a library
15457 # or program results in "error TOC overflow" add -mminimal-toc to
15458 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15459 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15460
15461 archive_cmds_CXX=''
15462 hardcode_direct_CXX=yes
15463 hardcode_libdir_separator_CXX=':'
15464 link_all_deplibs_CXX=yes
15465
15466 if test "$GXX" = yes; then
15467 case $host_os in aix4.012|aix4.012.*)
15468 # We only want to do this on AIX 4.2 and lower, the check
15469 # below for broken collect2 doesn't work under 4.3+
15470 collect2name=`${CC} -print-prog-name=collect2`
15471 if test -f "$collect2name" && \
15472 strings "$collect2name" | grep resolve_lib_name >/dev/null
15473 then
15474 # We have reworked collect2
15475 hardcode_direct_CXX=yes
15476 else
15477 # We have old collect2
15478 hardcode_direct_CXX=unsupported
15479 # It fails to find uninstalled libraries when the uninstalled
15480 # path is not listed in the libpath. Setting hardcode_minus_L
15481 # to unsupported forces relinking
15482 hardcode_minus_L_CXX=yes
15483 hardcode_libdir_flag_spec_CXX='-L$libdir'
15484 hardcode_libdir_separator_CXX=
15485 fi
15486 esac
15487 shared_flag='-shared'
15488 else
15489 # not using gcc
15490 if test "$host_cpu" = ia64; then
15491 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15492 # chokes on -Wl,-G. The following line is correct:
15493 shared_flag='-G'
15494 else
15495 if test "$aix_use_runtimelinking" = yes; then
15496 shared_flag='${wl}-G'
15497 else
15498 shared_flag='${wl}-bM:SRE'
15499 fi
15500 fi
15501 fi
15502
15503 # It seems that -bexpall does not export symbols beginning with
15504 # underscore (_), so it is better to generate a list of symbols to export.
15505 always_export_symbols_CXX=yes
15506 if test "$aix_use_runtimelinking" = yes; then
15507 # Warning - without using the other runtime loading flags (-brtl),
15508 # -berok will link without error, but may produce a broken library.
15509 allow_undefined_flag_CXX='-berok'
15510 # Determine the default libpath from the value encoded in an empty executable.
15511 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015512/* confdefs.h. */
15513_ACEOF
15514cat confdefs.h >>conftest.$ac_ext
15515cat >>conftest.$ac_ext <<_ACEOF
15516/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015517
John Criswell47fdd832003-07-14 16:52:07 +000015518int
15519main ()
15520{
15521
15522 ;
15523 return 0;
15524}
15525_ACEOF
15526rm -f conftest.$ac_objext conftest$ac_exeext
15527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015528 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015529 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015535 { ac_try='test -z "$ac_cxx_werror_flag"
15536 || test ! -s conftest.err'
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
15542 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
15548
15549aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15550}'`
15551# Check for a 64-bit object if we didn't find anything.
15552if 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; }
15553}'`; fi
15554else
15555 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015556sed 's/^/| /' conftest.$ac_ext >&5
15557
John Criswell47fdd832003-07-14 16:52:07 +000015558fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015559rm -f conftest.err conftest.$ac_objext \
15560 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015561if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15562
15563 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15564
15565 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"
15566 else
15567 if test "$host_cpu" = ia64; then
15568 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15569 allow_undefined_flag_CXX="-z nodefs"
15570 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"
15571 else
15572 # Determine the default libpath from the value encoded in an empty executable.
15573 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015574/* confdefs.h. */
15575_ACEOF
15576cat confdefs.h >>conftest.$ac_ext
15577cat >>conftest.$ac_ext <<_ACEOF
15578/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015579
John Criswell47fdd832003-07-14 16:52:07 +000015580int
15581main ()
15582{
15583
15584 ;
15585 return 0;
15586}
15587_ACEOF
15588rm -f conftest.$ac_objext conftest$ac_exeext
15589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015590 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015591 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015592 grep -v '^ *+' conftest.er1 >conftest.err
15593 rm -f conftest.er1
15594 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015597 { ac_try='test -z "$ac_cxx_werror_flag"
15598 || test ! -s conftest.err'
15599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600 (eval $ac_try) 2>&5
15601 ac_status=$?
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); }; } &&
15604 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15606 (eval $ac_try) 2>&5
15607 ac_status=$?
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); }; }; then
15610
15611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15612}'`
15613# Check for a 64-bit object if we didn't find anything.
15614if 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; }
15615}'`; fi
15616else
15617 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015618sed 's/^/| /' conftest.$ac_ext >&5
15619
John Criswell47fdd832003-07-14 16:52:07 +000015620fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015621rm -f conftest.err conftest.$ac_objext \
15622 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015623if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15624
15625 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15626 # Warning - without using the other run time loading flags,
15627 # -berok will link without error, but may produce a broken library.
15628 no_undefined_flag_CXX=' ${wl}-bernotok'
15629 allow_undefined_flag_CXX=' ${wl}-berok'
15630 # -bexpall does not export symbols beginning with underscore (_)
15631 always_export_symbols_CXX=yes
15632 # Exported symbols can be pulled into shared objects from archives
15633 whole_archive_flag_spec_CXX=' '
15634 archive_cmds_need_lc_CXX=yes
15635 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015636 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 +000015637 fi
15638 fi
15639 ;;
15640 chorus*)
15641 case $cc_basename in
15642 *)
15643 # FIXME: insert proper C++ library support
15644 ld_shlibs_CXX=no
15645 ;;
15646 esac
15647 ;;
15648
Reid Spencer2706f8c2004-09-19 23:53:36 +000015649
John Criswell47fdd832003-07-14 16:52:07 +000015650 cygwin* | mingw* | pw32*)
15651 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15652 # as there is no search path for DLLs.
15653 hardcode_libdir_flag_spec_CXX='-L$libdir'
15654 allow_undefined_flag_CXX=unsupported
15655 always_export_symbols_CXX=no
15656 enable_shared_with_static_runtimes_CXX=yes
15657
15658 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15659 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'
15660 # If the export-symbols file already is a .def file (1st line
15661 # is EXPORTS), use it as is; otherwise, prepend...
15662 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15663 cp $export_symbols $output_objdir/$soname.def;
15664 else
15665 echo EXPORTS > $output_objdir/$soname.def;
15666 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015667 fi~
15668 $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 +000015669 else
15670 ld_shlibs_CXX=no
15671 fi
15672 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015673 darwin* | rhapsody*)
15674 case "$host_os" in
15675 rhapsody* | darwin1.[012])
15676 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15677 ;;
15678 *) # Darwin 1.3 on
15679 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15680 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15681 else
15682 case ${MACOSX_DEPLOYMENT_TARGET} in
15683 10.[012])
15684 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15685 ;;
15686 10.*)
15687 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15688 ;;
15689 esac
15690 fi
15691 ;;
15692 esac
15693 archive_cmds_need_lc_CXX=no
15694 hardcode_direct_CXX=no
15695 hardcode_automatic_CXX=yes
15696 hardcode_shlibpath_var_CXX=unsupported
15697 whole_archive_flag_spec_CXX=''
15698 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015699
Reid Spencer2706f8c2004-09-19 23:53:36 +000015700 if test "$GXX" = yes ; then
15701 lt_int_apple_cc_single_mod=no
15702 output_verbose_link_cmd='echo'
15703 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15704 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015705 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015706 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015707 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 +000015708 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015709 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 +000015710 fi
15711 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15712 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15713 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015714 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 +000015715 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015716 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 +000015717 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015718 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 +000015719 else
15720 case "$cc_basename" in
15721 xlc*)
15722 output_verbose_link_cmd='echo'
15723 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'
15724 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15725 # 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 +000015726 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}'
15727 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 +000015728 ;;
15729 *)
15730 ld_shlibs_CXX=no
15731 ;;
15732 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015733 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015734 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015735
15736 dgux*)
15737 case $cc_basename in
15738 ec++)
15739 # FIXME: insert proper C++ library support
15740 ld_shlibs_CXX=no
15741 ;;
15742 ghcx)
15743 # Green Hills C++ Compiler
15744 # FIXME: insert proper C++ library support
15745 ld_shlibs_CXX=no
15746 ;;
15747 *)
15748 # FIXME: insert proper C++ library support
15749 ld_shlibs_CXX=no
15750 ;;
15751 esac
15752 ;;
15753 freebsd12*)
15754 # C++ shared libraries reported to be fairly broken before switch to ELF
15755 ld_shlibs_CXX=no
15756 ;;
15757 freebsd-elf*)
15758 archive_cmds_need_lc_CXX=no
15759 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015760 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015761 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15762 # conventions
15763 ld_shlibs_CXX=yes
15764 ;;
15765 gnu*)
15766 ;;
15767 hpux9*)
15768 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15769 hardcode_libdir_separator_CXX=:
15770 export_dynamic_flag_spec_CXX='${wl}-E'
15771 hardcode_direct_CXX=yes
15772 hardcode_minus_L_CXX=yes # Not in the search PATH,
15773 # but as the default
15774 # location of the library.
15775
15776 case $cc_basename in
15777 CC)
15778 # FIXME: insert proper C++ library support
15779 ld_shlibs_CXX=no
15780 ;;
15781 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015782 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 +000015783 # Commands to make compiler produce verbose output that lists
15784 # what "hidden" libraries, object files and flags are used when
15785 # linking a shared library.
15786 #
15787 # There doesn't appear to be a way to prevent this compiler from
15788 # explicitly linking system object files so we need to strip them
15789 # from the output so that they don't get included in the library
15790 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015791 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 +000015792 ;;
15793 *)
15794 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015795 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 +000015796 else
15797 # FIXME: insert proper C++ library support
15798 ld_shlibs_CXX=no
15799 fi
15800 ;;
15801 esac
15802 ;;
15803 hpux10*|hpux11*)
15804 if test $with_gnu_ld = no; then
15805 case "$host_cpu" in
15806 hppa*64*)
15807 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15808 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15809 hardcode_libdir_separator_CXX=:
15810 ;;
15811 ia64*)
15812 hardcode_libdir_flag_spec_CXX='-L$libdir'
15813 ;;
15814 *)
15815 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15816 hardcode_libdir_separator_CXX=:
15817 export_dynamic_flag_spec_CXX='${wl}-E'
15818 ;;
15819 esac
15820 fi
15821 case "$host_cpu" in
15822 hppa*64*)
15823 hardcode_direct_CXX=no
15824 hardcode_shlibpath_var_CXX=no
15825 ;;
15826 ia64*)
15827 hardcode_direct_CXX=no
15828 hardcode_shlibpath_var_CXX=no
15829 hardcode_minus_L_CXX=yes # Not in the search PATH,
15830 # but as the default
15831 # location of the library.
15832 ;;
15833 *)
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 esac
15840
15841 case $cc_basename in
15842 CC)
15843 # FIXME: insert proper C++ library support
15844 ld_shlibs_CXX=no
15845 ;;
15846 aCC)
15847 case "$host_cpu" in
15848 hppa*64*|ia64*)
15849 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15850 ;;
15851 *)
15852 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15853 ;;
15854 esac
15855 # Commands to make compiler produce verbose output that lists
15856 # what "hidden" libraries, object files and flags are used when
15857 # linking a shared library.
15858 #
15859 # There doesn't appear to be a way to prevent this compiler from
15860 # explicitly linking system object files so we need to strip them
15861 # from the output so that they don't get included in the library
15862 # dependencies.
15863 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'
15864 ;;
15865 *)
15866 if test "$GXX" = yes; then
15867 if test $with_gnu_ld = no; then
15868 case "$host_cpu" in
15869 ia64*|hppa*64*)
15870 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15871 ;;
15872 *)
15873 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'
15874 ;;
15875 esac
15876 fi
15877 else
15878 # FIXME: insert proper C++ library support
15879 ld_shlibs_CXX=no
15880 fi
15881 ;;
15882 esac
15883 ;;
15884 irix5* | irix6*)
15885 case $cc_basename in
15886 CC)
15887 # SGI C++
15888 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'
15889
15890 # Archives containing C++ object files must be created using
15891 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15892 # necessary to make sure instantiated templates are included
15893 # in the archive.
15894 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15895 ;;
15896 *)
15897 if test "$GXX" = yes; then
15898 if test "$with_gnu_ld" = no; then
15899 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'
15900 else
15901 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'
15902 fi
15903 fi
15904 link_all_deplibs_CXX=yes
15905 ;;
15906 esac
15907 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15908 hardcode_libdir_separator_CXX=:
15909 ;;
15910 linux*)
15911 case $cc_basename in
15912 KCC)
15913 # Kuck and Associates, Inc. (KAI) C++ Compiler
15914
15915 # KCC will only create a shared library if the output file
15916 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15917 # to its proper name (with version) after linking.
15918 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'
15919 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'
15920 # Commands to make compiler produce verbose output that lists
15921 # what "hidden" libraries, object files and flags are used when
15922 # linking a shared library.
15923 #
15924 # There doesn't appear to be a way to prevent this compiler from
15925 # explicitly linking system object files so we need to strip them
15926 # from the output so that they don't get included in the library
15927 # dependencies.
15928 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'
15929
15930 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15931 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15932
15933 # Archives containing C++ object files must be created using
15934 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15935 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15936 ;;
15937 icpc)
15938 # Intel C++
15939 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015940 # version 8.0 and above of icpc choke on multiply defined symbols
15941 # if we add $predep_objects and $postdep_objects, however 7.1 and
15942 # earlier do not add the objects themselves.
15943 case `$CC -V 2>&1` in
15944 *"Version 7."*)
15945 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15946 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'
15947 ;;
15948 *) # Version 8.0 or newer
15949 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15950 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15951 ;;
15952 esac
John Criswell47fdd832003-07-14 16:52:07 +000015953 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015954 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15955 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15956 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15957 ;;
15958 cxx)
15959 # Compaq C++
15960 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15961 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'
15962
15963 runpath_var=LD_RUN_PATH
15964 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15965 hardcode_libdir_separator_CXX=:
15966
15967 # Commands to make compiler produce verbose output that lists
15968 # what "hidden" libraries, object files and flags are used when
15969 # linking a shared library.
15970 #
15971 # There doesn't appear to be a way to prevent this compiler from
15972 # explicitly linking system object files so we need to strip them
15973 # from the output so that they don't get included in the library
15974 # dependencies.
15975 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'
15976 ;;
15977 esac
15978 ;;
15979 lynxos*)
15980 # FIXME: insert proper C++ library support
15981 ld_shlibs_CXX=no
15982 ;;
15983 m88k*)
15984 # FIXME: insert proper C++ library support
15985 ld_shlibs_CXX=no
15986 ;;
15987 mvs*)
15988 case $cc_basename in
15989 cxx)
15990 # FIXME: insert proper C++ library support
15991 ld_shlibs_CXX=no
15992 ;;
15993 *)
15994 # FIXME: insert proper C++ library support
15995 ld_shlibs_CXX=no
15996 ;;
15997 esac
15998 ;;
15999 netbsd*)
16000 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16001 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16002 wlarc=
16003 hardcode_libdir_flag_spec_CXX='-R$libdir'
16004 hardcode_direct_CXX=yes
16005 hardcode_shlibpath_var_CXX=no
16006 fi
16007 # Workaround some broken pre-1.5 toolchains
16008 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16009 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016010 openbsd2*)
16011 # C++ shared libraries are fairly broken
16012 ld_shlibs_CXX=no
16013 ;;
16014 openbsd*)
16015 hardcode_direct_CXX=yes
16016 hardcode_shlibpath_var_CXX=no
16017 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16018 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16020 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16021 export_dynamic_flag_spec_CXX='${wl}-E'
16022 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16023 fi
16024 output_verbose_link_cmd='echo'
16025 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016026 osf3*)
16027 case $cc_basename in
16028 KCC)
16029 # Kuck and Associates, Inc. (KAI) C++ Compiler
16030
16031 # KCC will only create a shared library if the output file
16032 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16033 # to its proper name (with version) after linking.
16034 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'
16035
16036 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16037 hardcode_libdir_separator_CXX=:
16038
16039 # Archives containing C++ object files must be created using
16040 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16041 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16042
16043 ;;
16044 RCC)
16045 # Rational C++ 2.4.1
16046 # FIXME: insert proper C++ library support
16047 ld_shlibs_CXX=no
16048 ;;
16049 cxx)
16050 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16051 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'
16052
16053 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16054 hardcode_libdir_separator_CXX=:
16055
16056 # Commands to make compiler produce verbose output that lists
16057 # what "hidden" libraries, object files and flags are used when
16058 # linking a shared library.
16059 #
16060 # There doesn't appear to be a way to prevent this compiler from
16061 # explicitly linking system object files so we need to strip them
16062 # from the output so that they don't get included in the library
16063 # dependencies.
16064 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'
16065 ;;
16066 *)
16067 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16068 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16069 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'
16070
16071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16072 hardcode_libdir_separator_CXX=:
16073
16074 # Commands to make compiler produce verbose output that lists
16075 # what "hidden" libraries, object files and flags are used when
16076 # linking a shared library.
16077 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16078
16079 else
16080 # FIXME: insert proper C++ library support
16081 ld_shlibs_CXX=no
16082 fi
16083 ;;
16084 esac
16085 ;;
16086 osf4* | osf5*)
16087 case $cc_basename in
16088 KCC)
16089 # Kuck and Associates, Inc. (KAI) C++ Compiler
16090
16091 # KCC will only create a shared library if the output file
16092 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16093 # to its proper name (with version) after linking.
16094 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'
16095
16096 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16097 hardcode_libdir_separator_CXX=:
16098
16099 # Archives containing C++ object files must be created using
16100 # the KAI C++ compiler.
16101 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
16102 ;;
16103 RCC)
16104 # Rational C++ 2.4.1
16105 # FIXME: insert proper C++ library support
16106 ld_shlibs_CXX=no
16107 ;;
16108 cxx)
16109 allow_undefined_flag_CXX=' -expect_unresolved \*'
16110 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 +000016111 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16112 echo "-hidden">> $lib.exp~
16113 $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~
16114 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000016115
16116 hardcode_libdir_flag_spec_CXX='-rpath $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}-msym ${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 psos*)
16150 # FIXME: insert proper C++ library support
16151 ld_shlibs_CXX=no
16152 ;;
16153 sco*)
16154 archive_cmds_need_lc_CXX=no
16155 case $cc_basename in
16156 CC)
16157 # FIXME: insert proper C++ library support
16158 ld_shlibs_CXX=no
16159 ;;
16160 *)
16161 # FIXME: insert proper C++ library support
16162 ld_shlibs_CXX=no
16163 ;;
16164 esac
16165 ;;
16166 sunos4*)
16167 case $cc_basename in
16168 CC)
16169 # Sun C++ 4.x
16170 # FIXME: insert proper C++ library support
16171 ld_shlibs_CXX=no
16172 ;;
16173 lcc)
16174 # Lucid
16175 # FIXME: insert proper C++ library support
16176 ld_shlibs_CXX=no
16177 ;;
16178 *)
16179 # FIXME: insert proper C++ library support
16180 ld_shlibs_CXX=no
16181 ;;
16182 esac
16183 ;;
16184 solaris*)
16185 case $cc_basename in
16186 CC)
16187 # Sun C++ 4.2, 5.x and Centerline C++
16188 no_undefined_flag_CXX=' -zdefs'
16189 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 +000016190 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16191 $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 +000016192
16193 hardcode_libdir_flag_spec_CXX='-R$libdir'
16194 hardcode_shlibpath_var_CXX=no
16195 case $host_os in
16196 solaris2.0-5 | solaris2.0-5.*) ;;
16197 *)
16198 # The C++ compiler is used as linker so we must use $wl
16199 # flag to pass the commands to the underlying system
16200 # linker.
16201 # Supported since Solaris 2.6 (maybe 2.5.1?)
16202 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16203 ;;
16204 esac
16205 link_all_deplibs_CXX=yes
16206
16207 # Commands to make compiler produce verbose output that lists
16208 # what "hidden" libraries, object files and flags are used when
16209 # linking a shared library.
16210 #
16211 # There doesn't appear to be a way to prevent this compiler from
16212 # explicitly linking system object files so we need to strip them
16213 # from the output so that they don't get included in the library
16214 # dependencies.
16215 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'
16216
16217 # Archives containing C++ object files must be created using
16218 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16219 # necessary to make sure instantiated templates are included
16220 # in the archive.
16221 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16222 ;;
16223 gcx)
16224 # Green Hills C++ Compiler
16225 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16226
16227 # The C++ compiler must be used to create the archive.
16228 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16229 ;;
16230 *)
16231 # GNU C++ compiler with Solaris linker
16232 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16233 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16234 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000016235 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 +000016236 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16237 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16238
John Criswell47fdd832003-07-14 16:52:07 +000016239 # Commands to make compiler produce verbose output that lists
16240 # what "hidden" libraries, object files and flags are used when
16241 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000016242 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000016243 else
16244 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16245 # platform.
16246 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 +000016247 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16248 $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 +000016249
16250 # Commands to make compiler produce verbose output that lists
16251 # what "hidden" libraries, object files and flags are used when
16252 # linking a shared library.
16253 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16254 fi
16255
16256 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16257 fi
16258 ;;
16259 esac
16260 ;;
16261 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16262 archive_cmds_need_lc_CXX=no
16263 ;;
16264 tandem*)
16265 case $cc_basename in
16266 NCC)
16267 # NonStop-UX NCC 3.20
16268 # FIXME: insert proper C++ library support
16269 ld_shlibs_CXX=no
16270 ;;
16271 *)
16272 # FIXME: insert proper C++ library support
16273 ld_shlibs_CXX=no
16274 ;;
16275 esac
16276 ;;
16277 vxworks*)
16278 # FIXME: insert proper C++ library support
16279 ld_shlibs_CXX=no
16280 ;;
16281 *)
16282 # FIXME: insert proper C++ library support
16283 ld_shlibs_CXX=no
16284 ;;
16285esac
16286echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16287echo "${ECHO_T}$ld_shlibs_CXX" >&6
16288test "$ld_shlibs_CXX" = no && can_build_shared=no
16289
16290GCC_CXX="$GXX"
16291LD_CXX="$LD"
16292
John Criswell47fdd832003-07-14 16:52:07 +000016293
16294cat > conftest.$ac_ext <<EOF
16295class Foo
16296{
16297public:
16298 Foo (void) { a = 0; }
16299private:
16300 int a;
16301};
16302EOF
16303
16304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16305 (eval $ac_compile) 2>&5
16306 ac_status=$?
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); }; then
16309 # Parse the compiler output and extract the necessary
16310 # objects, libraries and library flags.
16311
16312 # Sentinel used to keep track of whether or not we are before
16313 # the conftest object file.
16314 pre_test_object_deps_done=no
16315
16316 # The `*' in the case matches for architectures that use `case' in
16317 # $output_verbose_cmd can trigger glob expansion during the loop
16318 # eval without this substitution.
16319 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16320
16321 for p in `eval $output_verbose_link_cmd`; do
16322 case $p in
16323
16324 -L* | -R* | -l*)
16325 # Some compilers place space between "-{L,R}" and the path.
16326 # Remove the space.
16327 if test $p = "-L" \
16328 || test $p = "-R"; then
16329 prev=$p
16330 continue
16331 else
16332 prev=
16333 fi
16334
16335 if test "$pre_test_object_deps_done" = no; then
16336 case $p in
16337 -L* | -R*)
16338 # Internal compiler library paths should come after those
16339 # provided the user. The postdeps already come after the
16340 # user supplied libs so there is no need to process them.
16341 if test -z "$compiler_lib_search_path_CXX"; then
16342 compiler_lib_search_path_CXX="${prev}${p}"
16343 else
16344 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16345 fi
16346 ;;
16347 # The "-l" case would never come before the object being
16348 # linked, so don't bother handling this case.
16349 esac
16350 else
16351 if test -z "$postdeps_CXX"; then
16352 postdeps_CXX="${prev}${p}"
16353 else
16354 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16355 fi
16356 fi
16357 ;;
16358
16359 *.$objext)
16360 # This assumes that the test object file only shows up
16361 # once in the compiler output.
16362 if test "$p" = "conftest.$objext"; then
16363 pre_test_object_deps_done=yes
16364 continue
16365 fi
16366
16367 if test "$pre_test_object_deps_done" = no; then
16368 if test -z "$predep_objects_CXX"; then
16369 predep_objects_CXX="$p"
16370 else
16371 predep_objects_CXX="$predep_objects_CXX $p"
16372 fi
16373 else
16374 if test -z "$postdep_objects_CXX"; then
16375 postdep_objects_CXX="$p"
16376 else
16377 postdep_objects_CXX="$postdep_objects_CXX $p"
16378 fi
16379 fi
16380 ;;
16381
16382 *) ;; # Ignore the rest.
16383
16384 esac
16385 done
16386
16387 # Clean up.
16388 rm -f a.out a.exe
16389else
16390 echo "libtool.m4: error: problem compiling CXX test program"
16391fi
16392
16393$rm -f confest.$objext
16394
16395case " $postdeps_CXX " in
16396*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16397esac
16398
16399lt_prog_compiler_wl_CXX=
16400lt_prog_compiler_pic_CXX=
16401lt_prog_compiler_static_CXX=
16402
16403echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16404echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16405
16406 # C++ specific cases for pic, static, wl, etc.
16407 if test "$GXX" = yes; then
16408 lt_prog_compiler_wl_CXX='-Wl,'
16409 lt_prog_compiler_static_CXX='-static'
16410
16411 case $host_os in
16412 aix*)
16413 # All AIX code is PIC.
16414 if test "$host_cpu" = ia64; then
16415 # AIX 5 now supports IA64 processor
16416 lt_prog_compiler_static_CXX='-Bstatic'
16417 fi
16418 ;;
16419 amigaos*)
16420 # FIXME: we need at least 68020 code to build shared libraries, but
16421 # adding the `-m68020' flag to GCC prevents building anything better,
16422 # like `-m68040'.
16423 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16424 ;;
16425 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16426 # PIC is the default for these OSes.
16427 ;;
16428 mingw* | os2* | pw32*)
16429 # This hack is so that the source file can tell whether it is being
16430 # built for inclusion in a dll (and should export symbols for example).
16431 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16432 ;;
16433 darwin* | rhapsody*)
16434 # PIC is the default on this platform
16435 # Common symbols not allowed in MH_DYLIB files
16436 lt_prog_compiler_pic_CXX='-fno-common'
16437 ;;
16438 *djgpp*)
16439 # DJGPP does not support shared libraries at all
16440 lt_prog_compiler_pic_CXX=
16441 ;;
16442 sysv4*MP*)
16443 if test -d /usr/nec; then
16444 lt_prog_compiler_pic_CXX=-Kconform_pic
16445 fi
16446 ;;
16447 hpux*)
16448 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16449 # not for PA HP-UX.
16450 case "$host_cpu" in
16451 hppa*64*|ia64*)
16452 ;;
16453 *)
16454 lt_prog_compiler_pic_CXX='-fPIC'
16455 ;;
16456 esac
16457 ;;
16458 *)
16459 lt_prog_compiler_pic_CXX='-fPIC'
16460 ;;
16461 esac
16462 else
16463 case $host_os in
16464 aix4* | aix5*)
16465 # All AIX code is PIC.
16466 if test "$host_cpu" = ia64; then
16467 # AIX 5 now supports IA64 processor
16468 lt_prog_compiler_static_CXX='-Bstatic'
16469 else
16470 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16471 fi
16472 ;;
16473 chorus*)
16474 case $cc_basename in
16475 cxch68)
16476 # Green Hills C++ Compiler
16477 # _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"
16478 ;;
16479 esac
16480 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016481 darwin*)
16482 # PIC is the default on this platform
16483 # Common symbols not allowed in MH_DYLIB files
16484 case "$cc_basename" in
16485 xlc*)
16486 lt_prog_compiler_pic_CXX='-qnocommon'
16487 lt_prog_compiler_wl_CXX='-Wl,'
16488 ;;
16489 esac
16490 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016491 dgux*)
16492 case $cc_basename in
16493 ec++)
16494 lt_prog_compiler_pic_CXX='-KPIC'
16495 ;;
16496 ghcx)
16497 # Green Hills C++ Compiler
16498 lt_prog_compiler_pic_CXX='-pic'
16499 ;;
16500 *)
16501 ;;
16502 esac
16503 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016504 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016505 # FreeBSD uses GNU C++
16506 ;;
16507 hpux9* | hpux10* | hpux11*)
16508 case $cc_basename in
16509 CC)
16510 lt_prog_compiler_wl_CXX='-Wl,'
16511 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16512 if test "$host_cpu" != ia64; then
16513 lt_prog_compiler_pic_CXX='+Z'
16514 fi
16515 ;;
16516 aCC)
16517 lt_prog_compiler_wl_CXX='-Wl,'
16518 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16519 case "$host_cpu" in
16520 hppa*64*|ia64*)
16521 # +Z the default
16522 ;;
16523 *)
16524 lt_prog_compiler_pic_CXX='+Z'
16525 ;;
16526 esac
16527 ;;
16528 *)
16529 ;;
16530 esac
16531 ;;
16532 irix5* | irix6* | nonstopux*)
16533 case $cc_basename in
16534 CC)
16535 lt_prog_compiler_wl_CXX='-Wl,'
16536 lt_prog_compiler_static_CXX='-non_shared'
16537 # CC pic flag -KPIC is the default.
16538 ;;
16539 *)
16540 ;;
16541 esac
16542 ;;
16543 linux*)
16544 case $cc_basename in
16545 KCC)
16546 # KAI C++ Compiler
16547 lt_prog_compiler_wl_CXX='--backend -Wl,'
16548 lt_prog_compiler_pic_CXX='-fPIC'
16549 ;;
16550 icpc)
16551 # Intel C++
16552 lt_prog_compiler_wl_CXX='-Wl,'
16553 lt_prog_compiler_pic_CXX='-KPIC'
16554 lt_prog_compiler_static_CXX='-static'
16555 ;;
16556 cxx)
16557 # Compaq C++
16558 # Make sure the PIC flag is empty. It appears that all Alpha
16559 # Linux and Compaq Tru64 Unix objects are PIC.
16560 lt_prog_compiler_pic_CXX=
16561 lt_prog_compiler_static_CXX='-non_shared'
16562 ;;
16563 *)
16564 ;;
16565 esac
16566 ;;
16567 lynxos*)
16568 ;;
16569 m88k*)
16570 ;;
16571 mvs*)
16572 case $cc_basename in
16573 cxx)
16574 lt_prog_compiler_pic_CXX='-W c,exportall'
16575 ;;
16576 *)
16577 ;;
16578 esac
16579 ;;
16580 netbsd*)
16581 ;;
16582 osf3* | osf4* | osf5*)
16583 case $cc_basename in
16584 KCC)
16585 lt_prog_compiler_wl_CXX='--backend -Wl,'
16586 ;;
16587 RCC)
16588 # Rational C++ 2.4.1
16589 lt_prog_compiler_pic_CXX='-pic'
16590 ;;
16591 cxx)
16592 # Digital/Compaq C++
16593 lt_prog_compiler_wl_CXX='-Wl,'
16594 # Make sure the PIC flag is empty. It appears that all Alpha
16595 # Linux and Compaq Tru64 Unix objects are PIC.
16596 lt_prog_compiler_pic_CXX=
16597 lt_prog_compiler_static_CXX='-non_shared'
16598 ;;
16599 *)
16600 ;;
16601 esac
16602 ;;
16603 psos*)
16604 ;;
16605 sco*)
16606 case $cc_basename in
16607 CC)
16608 lt_prog_compiler_pic_CXX='-fPIC'
16609 ;;
16610 *)
16611 ;;
16612 esac
16613 ;;
16614 solaris*)
16615 case $cc_basename in
16616 CC)
16617 # Sun C++ 4.2, 5.x and Centerline C++
16618 lt_prog_compiler_pic_CXX='-KPIC'
16619 lt_prog_compiler_static_CXX='-Bstatic'
16620 lt_prog_compiler_wl_CXX='-Qoption ld '
16621 ;;
16622 gcx)
16623 # Green Hills C++ Compiler
16624 lt_prog_compiler_pic_CXX='-PIC'
16625 ;;
16626 *)
16627 ;;
16628 esac
16629 ;;
16630 sunos4*)
16631 case $cc_basename in
16632 CC)
16633 # Sun C++ 4.x
16634 lt_prog_compiler_pic_CXX='-pic'
16635 lt_prog_compiler_static_CXX='-Bstatic'
16636 ;;
16637 lcc)
16638 # Lucid
16639 lt_prog_compiler_pic_CXX='-pic'
16640 ;;
16641 *)
16642 ;;
16643 esac
16644 ;;
16645 tandem*)
16646 case $cc_basename in
16647 NCC)
16648 # NonStop-UX NCC 3.20
16649 lt_prog_compiler_pic_CXX='-KPIC'
16650 ;;
16651 *)
16652 ;;
16653 esac
16654 ;;
16655 unixware*)
16656 ;;
16657 vxworks*)
16658 ;;
16659 *)
16660 lt_prog_compiler_can_build_shared_CXX=no
16661 ;;
16662 esac
16663 fi
16664
16665echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16666echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16667
16668#
16669# Check to make sure the PIC flag actually works.
16670#
16671if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016672
16673echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016674echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16675if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16677else
16678 lt_prog_compiler_pic_works_CXX=no
16679 ac_outfile=conftest.$ac_objext
16680 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16681 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16682 # Insert the option either (1) after the last *FLAGS variable, or
16683 # (2) before a word containing "conftest.", or (3) at the end.
16684 # Note that $ac_compile itself does not contain backslashes and begins
16685 # with a dollar sign (not a hyphen), so the echo should work correctly.
16686 # The option is referenced via a variable to avoid confusing sed.
16687 lt_compile=`echo "$ac_compile" | $SED \
16688 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16690 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000016691 (eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016692 (eval "$lt_compile" 2>conftest.err)
16693 ac_status=$?
16694 cat conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000016695 echo "$as_me:16696: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016696 if (exit $ac_status) && test -s "$ac_outfile"; then
16697 # The compiler can only warn and ignore the option if not recognized
16698 # So say no if there are warnings
16699 if test ! -s conftest.err; then
16700 lt_prog_compiler_pic_works_CXX=yes
16701 fi
16702 fi
16703 $rm conftest*
16704
16705fi
16706echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16707echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16708
16709if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16710 case $lt_prog_compiler_pic_CXX in
16711 "" | " "*) ;;
16712 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16713 esac
16714else
16715 lt_prog_compiler_pic_CXX=
16716 lt_prog_compiler_can_build_shared_CXX=no
16717fi
16718
16719fi
16720case "$host_os" in
16721 # For platforms which do not support PIC, -DPIC is meaningless:
16722 *djgpp*)
16723 lt_prog_compiler_pic_CXX=
16724 ;;
16725 *)
16726 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16727 ;;
16728esac
16729
16730echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16731echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16732if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16733 echo $ECHO_N "(cached) $ECHO_C" >&6
16734else
16735 lt_cv_prog_compiler_c_o_CXX=no
16736 $rm -r conftest 2>/dev/null
16737 mkdir conftest
16738 cd conftest
16739 mkdir out
16740 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16741
John Criswell47fdd832003-07-14 16:52:07 +000016742 lt_compiler_flag="-o out/conftest2.$ac_objext"
16743 # Insert the option either (1) after the last *FLAGS variable, or
16744 # (2) before a word containing "conftest.", or (3) at the end.
16745 # Note that $ac_compile itself does not contain backslashes and begins
16746 # with a dollar sign (not a hyphen), so the echo should work correctly.
16747 lt_compile=`echo "$ac_compile" | $SED \
16748 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16750 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000016751 (eval echo "\"\$as_me:16752: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016752 (eval "$lt_compile" 2>out/conftest.err)
16753 ac_status=$?
16754 cat out/conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000016755 echo "$as_me:16756: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016756 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16757 then
16758 # The compiler can only warn and ignore the option if not recognized
16759 # So say no if there are warnings
16760 if test ! -s out/conftest.err; then
16761 lt_cv_prog_compiler_c_o_CXX=yes
16762 fi
16763 fi
16764 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016765 $rm conftest*
16766 # SGI C++ compiler will create directory out/ii_files/ for
16767 # template instantiation
16768 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16769 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016770 cd ..
16771 rmdir conftest
16772 $rm conftest*
16773
16774fi
16775echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16776echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16777
16778
16779hard_links="nottested"
16780if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16781 # do not overwrite the value of need_locks provided by the user
16782 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16783echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16784 hard_links=yes
16785 $rm conftest*
16786 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16787 touch conftest.a
16788 ln conftest.a conftest.b 2>&5 || hard_links=no
16789 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16790 echo "$as_me:$LINENO: result: $hard_links" >&5
16791echo "${ECHO_T}$hard_links" >&6
16792 if test "$hard_links" = no; then
16793 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16794echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16795 need_locks=warn
16796 fi
16797else
16798 need_locks=no
16799fi
16800
16801echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16802echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16803
16804 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16805 case $host_os in
16806 aix4* | aix5*)
16807 # If we're using GNU nm, then we don't want the "-C" option.
16808 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16809 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16810 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'
16811 else
16812 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'
16813 fi
16814 ;;
16815 pw32*)
16816 export_symbols_cmds_CXX="$ltdll_cmds"
16817 ;;
16818 cygwin* | mingw*)
16819 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16820 ;;
16821 *)
16822 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16823 ;;
16824 esac
16825
16826echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16827echo "${ECHO_T}$ld_shlibs_CXX" >&6
16828test "$ld_shlibs_CXX" = no && can_build_shared=no
16829
16830variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16831if test "$GCC" = yes; then
16832 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16833fi
16834
16835#
16836# Do we need to explicitly link libc?
16837#
16838case "x$archive_cmds_need_lc_CXX" in
16839x|xyes)
16840 # Assume -lc should be added
16841 archive_cmds_need_lc_CXX=yes
16842
16843 if test "$enable_shared" = yes && test "$GCC" = yes; then
16844 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016845 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016846 # FIXME: we may have to deal with multi-command sequences.
16847 ;;
16848 '$CC '*)
16849 # Test whether the compiler implicitly links with -lc since on some
16850 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16851 # to ld, don't add -lc before -lgcc.
16852 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16853echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16854 $rm conftest*
16855 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16856
16857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16858 (eval $ac_compile) 2>&5
16859 ac_status=$?
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } 2>conftest.err; then
16862 soname=conftest
16863 lib=conftest
16864 libobjs=conftest.$ac_objext
16865 deplibs=
16866 wl=$lt_prog_compiler_wl_CXX
16867 compiler_flags=-v
16868 linker_flags=-v
16869 verstring=
16870 output_objdir=.
16871 libname=conftest
16872 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16873 allow_undefined_flag_CXX=
16874 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16875 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }
16879 then
16880 archive_cmds_need_lc_CXX=no
16881 else
16882 archive_cmds_need_lc_CXX=yes
16883 fi
16884 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16885 else
16886 cat conftest.err 1>&5
16887 fi
16888 $rm conftest*
16889 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16890echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16891 ;;
16892 esac
16893 fi
16894 ;;
16895esac
16896
John Criswell47fdd832003-07-14 16:52:07 +000016897echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16898echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16899library_names_spec=
16900libname_spec='lib$name'
16901soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016902shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016903postinstall_cmds=
16904postuninstall_cmds=
16905finish_cmds=
16906finish_eval=
16907shlibpath_var=
16908shlibpath_overrides_runpath=unknown
16909version_type=none
16910dynamic_linker="$host_os ld.so"
16911sys_lib_dlsearch_path_spec="/lib /usr/lib"
16912if test "$GCC" = yes; then
16913 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16914 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16915 # if the path contains ";" then we assume it to be the separator
16916 # otherwise default to the standard path separator (i.e. ":") - it is
16917 # assumed that no part of a normal pathname contains ";" but that should
16918 # okay in the real world where ";" in dirpaths is itself problematic.
16919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16920 else
16921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16922 fi
16923else
16924 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16925fi
16926need_lib_prefix=unknown
16927hardcode_into_libs=no
16928
16929# when you set need_version to no, make sure it does not cause -set_version
16930# flags to be left without arguments
16931need_version=unknown
16932
16933case $host_os in
16934aix3*)
16935 version_type=linux
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16937 shlibpath_var=LIBPATH
16938
16939 # AIX 3 has no versioning support, so we append a major version to the name.
16940 soname_spec='${libname}${release}${shared_ext}$major'
16941 ;;
16942
16943aix4* | aix5*)
16944 version_type=linux
16945 need_lib_prefix=no
16946 need_version=no
16947 hardcode_into_libs=yes
16948 if test "$host_cpu" = ia64; then
16949 # AIX 5 supports IA64
16950 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16951 shlibpath_var=LD_LIBRARY_PATH
16952 else
16953 # With GCC up to 2.95.x, collect2 would create an import file
16954 # for dependence libraries. The import file would start with
16955 # the line `#! .'. This would cause the generated library to
16956 # depend on `.', always an invalid library. This was fixed in
16957 # development snapshots of GCC prior to 3.0.
16958 case $host_os in
16959 aix4 | aix4.[01] | aix4.[01].*)
16960 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16961 echo ' yes '
16962 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16963 :
16964 else
16965 can_build_shared=no
16966 fi
16967 ;;
16968 esac
16969 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16970 # soname into executable. Probably we can add versioning support to
16971 # collect2, so additional links can be useful in future.
16972 if test "$aix_use_runtimelinking" = yes; then
16973 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16974 # instead of lib<name>.a to let people know that these are not
16975 # typical AIX shared libraries.
16976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16977 else
16978 # We preserve .a as extension for shared libraries through AIX4.2
16979 # and later when we are not doing run time linking.
16980 library_names_spec='${libname}${release}.a $libname.a'
16981 soname_spec='${libname}${release}${shared_ext}$major'
16982 fi
16983 shlibpath_var=LIBPATH
16984 fi
16985 ;;
16986
16987amigaos*)
16988 library_names_spec='$libname.ixlibrary $libname.a'
16989 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016990 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 +000016991 ;;
16992
16993beos*)
16994 library_names_spec='${libname}${shared_ext}'
16995 dynamic_linker="$host_os ld.so"
16996 shlibpath_var=LIBRARY_PATH
16997 ;;
16998
Reid Spencer2706f8c2004-09-19 23:53:36 +000016999bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000017000 version_type=linux
17001 need_version=no
17002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17003 soname_spec='${libname}${release}${shared_ext}$major'
17004 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17005 shlibpath_var=LD_LIBRARY_PATH
17006 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17007 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17008 # the default ld.so.conf also contains /usr/contrib/lib and
17009 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17010 # libtool to hard-code these into programs
17011 ;;
17012
17013cygwin* | mingw* | pw32*)
17014 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000017015 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017016 need_version=no
17017 need_lib_prefix=no
17018
17019 case $GCC,$host_os in
17020 yes,cygwin* | yes,mingw* | yes,pw32*)
17021 library_names_spec='$libname.dll.a'
17022 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000017023 postinstall_cmds='base_file=`basename \${file}`~
17024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17025 dldir=$destdir/`dirname \$dlpath`~
17026 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000017027 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000017028 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17029 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000017030 $rm \$dlpath'
17031 shlibpath_overrides_runpath=yes
17032
17033 case $host_os in
17034 cygwin*)
17035 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17036 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 +000017037 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000017038 ;;
17039 mingw*)
17040 # MinGW DLLs use traditional 'lib' prefix
17041 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17042 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17043 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17044 # It is most probably a Windows format PATH printed by
17045 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17046 # path with ; separators, and with drive letters. We can handle the
17047 # drive letters (cygwin fileutils understands them), so leave them,
17048 # especially as we might pass files found there to a mingw objdump,
17049 # which wouldn't understand a cygwinified path. Ahh.
17050 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17051 else
17052 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17053 fi
17054 ;;
17055 pw32*)
17056 # pw32 DLLs use 'pw' prefix rather than 'lib'
17057 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17058 ;;
17059 esac
17060 ;;
17061
17062 *)
17063 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17064 ;;
17065 esac
17066 dynamic_linker='Win32 ld.exe'
17067 # FIXME: first we should search . and the directory the executable is in
17068 shlibpath_var=PATH
17069 ;;
17070
17071darwin* | rhapsody*)
17072 dynamic_linker="$host_os dyld"
17073 version_type=darwin
17074 need_lib_prefix=no
17075 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000017076 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000017077 soname_spec='${libname}${release}${major}$shared_ext'
17078 shlibpath_overrides_runpath=yes
17079 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000017080 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000017081 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000017082 if test "$GCC" = yes; then
17083 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"`
17084 else
17085 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000017086 fi
17087 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17088 ;;
17089
17090dgux*)
17091 version_type=linux
17092 need_lib_prefix=no
17093 need_version=no
17094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17095 soname_spec='${libname}${release}${shared_ext}$major'
17096 shlibpath_var=LD_LIBRARY_PATH
17097 ;;
17098
17099freebsd1*)
17100 dynamic_linker=no
17101 ;;
17102
Reid Spencer2706f8c2004-09-19 23:53:36 +000017103kfreebsd*-gnu)
17104 version_type=linux
17105 need_lib_prefix=no
17106 need_version=no
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17108 soname_spec='${libname}${release}${shared_ext}$major'
17109 shlibpath_var=LD_LIBRARY_PATH
17110 shlibpath_overrides_runpath=no
17111 hardcode_into_libs=yes
17112 dynamic_linker='GNU ld.so'
17113 ;;
17114
John Criswell47fdd832003-07-14 16:52:07 +000017115freebsd*)
17116 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17117 version_type=freebsd-$objformat
17118 case $version_type in
17119 freebsd-elf*)
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17121 need_version=no
17122 need_lib_prefix=no
17123 ;;
17124 freebsd-*)
17125 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17126 need_version=yes
17127 ;;
17128 esac
17129 shlibpath_var=LD_LIBRARY_PATH
17130 case $host_os in
17131 freebsd2*)
17132 shlibpath_overrides_runpath=yes
17133 ;;
17134 freebsd3.01* | freebsdelf3.01*)
17135 shlibpath_overrides_runpath=yes
17136 hardcode_into_libs=yes
17137 ;;
17138 *) # from 3.2 on
17139 shlibpath_overrides_runpath=no
17140 hardcode_into_libs=yes
17141 ;;
17142 esac
17143 ;;
17144
17145gnu*)
17146 version_type=linux
17147 need_lib_prefix=no
17148 need_version=no
17149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17150 soname_spec='${libname}${release}${shared_ext}$major'
17151 shlibpath_var=LD_LIBRARY_PATH
17152 hardcode_into_libs=yes
17153 ;;
17154
17155hpux9* | hpux10* | hpux11*)
17156 # Give a soname corresponding to the major version so that dld.sl refuses to
17157 # link against other versions.
17158 version_type=sunos
17159 need_lib_prefix=no
17160 need_version=no
17161 case "$host_cpu" in
17162 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017163 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000017164 hardcode_into_libs=yes
17165 dynamic_linker="$host_os dld.so"
17166 shlibpath_var=LD_LIBRARY_PATH
17167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169 soname_spec='${libname}${release}${shared_ext}$major'
17170 if test "X$HPUX_IA64_MODE" = X32; then
17171 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17172 else
17173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17174 fi
17175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17176 ;;
17177 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017178 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017179 hardcode_into_libs=yes
17180 dynamic_linker="$host_os dld.sl"
17181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184 soname_spec='${libname}${release}${shared_ext}$major'
17185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17187 ;;
17188 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000017189 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000017190 dynamic_linker="$host_os dld.sl"
17191 shlibpath_var=SHLIB_PATH
17192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17194 soname_spec='${libname}${release}${shared_ext}$major'
17195 ;;
17196 esac
17197 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17198 postinstall_cmds='chmod 555 $lib'
17199 ;;
17200
17201irix5* | irix6* | nonstopux*)
17202 case $host_os in
17203 nonstopux*) version_type=nonstopux ;;
17204 *)
17205 if test "$lt_cv_prog_gnu_ld" = yes; then
17206 version_type=linux
17207 else
17208 version_type=irix
17209 fi ;;
17210 esac
17211 need_lib_prefix=no
17212 need_version=no
17213 soname_spec='${libname}${release}${shared_ext}$major'
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17215 case $host_os in
17216 irix5* | nonstopux*)
17217 libsuff= shlibsuff=
17218 ;;
17219 *)
17220 case $LD in # libtool.m4 will add one of these switches to LD
17221 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17222 libsuff= shlibsuff= libmagic=32-bit;;
17223 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17224 libsuff=32 shlibsuff=N32 libmagic=N32;;
17225 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17226 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17227 *) libsuff= shlibsuff= libmagic=never-match;;
17228 esac
17229 ;;
17230 esac
17231 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17232 shlibpath_overrides_runpath=no
17233 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17234 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17235 hardcode_into_libs=yes
17236 ;;
17237
17238# No shared lib support for Linux oldld, aout, or coff.
17239linux*oldld* | linux*aout* | linux*coff*)
17240 dynamic_linker=no
17241 ;;
17242
17243# This must be Linux ELF.
17244linux*)
17245 version_type=linux
17246 need_lib_prefix=no
17247 need_version=no
17248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17249 soname_spec='${libname}${release}${shared_ext}$major'
17250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17251 shlibpath_var=LD_LIBRARY_PATH
17252 shlibpath_overrides_runpath=no
17253 # This implies no fast_install, which is unacceptable.
17254 # Some rework will be needed to allow for fast_install
17255 # before this can be enabled.
17256 hardcode_into_libs=yes
17257
Reid Spencer2706f8c2004-09-19 23:53:36 +000017258 # Append ld.so.conf contents to the search path
17259 if test -f /etc/ld.so.conf; then
17260 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17261 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17262 fi
17263
John Criswell47fdd832003-07-14 16:52:07 +000017264 # We used to test for /lib/ld.so.1 and disable shared libraries on
17265 # powerpc, because MkLinux only supported shared libraries with the
17266 # GNU dynamic linker. Since this was broken with cross compilers,
17267 # most powerpc-linux boxes support dynamic linking these days and
17268 # people can always --disable-shared, the test was removed, and we
17269 # assume the GNU/Linux dynamic linker is in use.
17270 dynamic_linker='GNU/Linux ld.so'
17271 ;;
17272
Reid Spencer2706f8c2004-09-19 23:53:36 +000017273knetbsd*-gnu)
17274 version_type=linux
17275 need_lib_prefix=no
17276 need_version=no
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17278 soname_spec='${libname}${release}${shared_ext}$major'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 shlibpath_overrides_runpath=no
17281 hardcode_into_libs=yes
17282 dynamic_linker='GNU ld.so'
17283 ;;
17284
John Criswell47fdd832003-07-14 16:52:07 +000017285netbsd*)
17286 version_type=sunos
17287 need_lib_prefix=no
17288 need_version=no
17289 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17291 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17292 dynamic_linker='NetBSD (a.out) ld.so'
17293 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017295 soname_spec='${libname}${release}${shared_ext}$major'
17296 dynamic_linker='NetBSD ld.elf_so'
17297 fi
17298 shlibpath_var=LD_LIBRARY_PATH
17299 shlibpath_overrides_runpath=yes
17300 hardcode_into_libs=yes
17301 ;;
17302
17303newsos6)
17304 version_type=linux
17305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17306 shlibpath_var=LD_LIBRARY_PATH
17307 shlibpath_overrides_runpath=yes
17308 ;;
17309
Reid Spencer2706f8c2004-09-19 23:53:36 +000017310nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017311 version_type=linux
17312 need_lib_prefix=no
17313 need_version=no
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17315 soname_spec='${libname}${release}${shared_ext}$major'
17316 shlibpath_var=LD_LIBRARY_PATH
17317 shlibpath_overrides_runpath=yes
17318 ;;
17319
17320openbsd*)
17321 version_type=sunos
17322 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017323 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17326 shlibpath_var=LD_LIBRARY_PATH
17327 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17328 case $host_os in
17329 openbsd2.[89] | openbsd2.[89].*)
17330 shlibpath_overrides_runpath=no
17331 ;;
17332 *)
17333 shlibpath_overrides_runpath=yes
17334 ;;
17335 esac
17336 else
17337 shlibpath_overrides_runpath=yes
17338 fi
17339 ;;
17340
17341os2*)
17342 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017343 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017344 need_lib_prefix=no
17345 library_names_spec='$libname${shared_ext} $libname.a'
17346 dynamic_linker='OS/2 ld.exe'
17347 shlibpath_var=LIBPATH
17348 ;;
17349
17350osf3* | osf4* | osf5*)
17351 version_type=osf
17352 need_lib_prefix=no
17353 need_version=no
17354 soname_spec='${libname}${release}${shared_ext}$major'
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17358 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17359 ;;
17360
17361sco3.2v5*)
17362 version_type=osf
17363 soname_spec='${libname}${release}${shared_ext}$major'
17364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17365 shlibpath_var=LD_LIBRARY_PATH
17366 ;;
17367
17368solaris*)
17369 version_type=linux
17370 need_lib_prefix=no
17371 need_version=no
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 shlibpath_var=LD_LIBRARY_PATH
17375 shlibpath_overrides_runpath=yes
17376 hardcode_into_libs=yes
17377 # ldd complains unless libraries are executable
17378 postinstall_cmds='chmod +x $lib'
17379 ;;
17380
17381sunos4*)
17382 version_type=sunos
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17384 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17385 shlibpath_var=LD_LIBRARY_PATH
17386 shlibpath_overrides_runpath=yes
17387 if test "$with_gnu_ld" = yes; then
17388 need_lib_prefix=no
17389 fi
17390 need_version=yes
17391 ;;
17392
17393sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17394 version_type=linux
17395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17396 soname_spec='${libname}${release}${shared_ext}$major'
17397 shlibpath_var=LD_LIBRARY_PATH
17398 case $host_vendor in
17399 sni)
17400 shlibpath_overrides_runpath=no
17401 need_lib_prefix=no
17402 export_dynamic_flag_spec='${wl}-Blargedynsym'
17403 runpath_var=LD_RUN_PATH
17404 ;;
17405 siemens)
17406 need_lib_prefix=no
17407 ;;
17408 motorola)
17409 need_lib_prefix=no
17410 need_version=no
17411 shlibpath_overrides_runpath=no
17412 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17413 ;;
17414 esac
17415 ;;
17416
17417sysv4*MP*)
17418 if test -d /usr/nec ;then
17419 version_type=linux
17420 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17421 soname_spec='$libname${shared_ext}.$major'
17422 shlibpath_var=LD_LIBRARY_PATH
17423 fi
17424 ;;
17425
17426uts4*)
17427 version_type=linux
17428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429 soname_spec='${libname}${release}${shared_ext}$major'
17430 shlibpath_var=LD_LIBRARY_PATH
17431 ;;
17432
17433*)
17434 dynamic_linker=no
17435 ;;
17436esac
17437echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17438echo "${ECHO_T}$dynamic_linker" >&6
17439test "$dynamic_linker" = no && can_build_shared=no
17440
Reid Spencer2706f8c2004-09-19 23:53:36 +000017441echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17442echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17443hardcode_action_CXX=
17444if test -n "$hardcode_libdir_flag_spec_CXX" || \
17445 test -n "$runpath_var_CXX" || \
17446 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17447
17448 # We can hardcode non-existant directories.
17449 if test "$hardcode_direct_CXX" != no &&
17450 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17451 # have to relink, otherwise we might link with an installed library
17452 # when we should be linking with a yet-to-be-installed one
17453 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17454 test "$hardcode_minus_L_CXX" != no; then
17455 # Linking always hardcodes the temporary library directory.
17456 hardcode_action_CXX=relink
17457 else
17458 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17459 hardcode_action_CXX=immediate
17460 fi
17461else
17462 # We cannot hardcode anything, or else we can only hardcode existing
17463 # directories.
17464 hardcode_action_CXX=unsupported
17465fi
17466echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17467echo "${ECHO_T}$hardcode_action_CXX" >&6
17468
17469if test "$hardcode_action_CXX" = relink; then
17470 # Fast installation is not supported
17471 enable_fast_install=no
17472elif test "$shlibpath_overrides_runpath" = yes ||
17473 test "$enable_shared" = no; then
17474 # Fast installation is not necessary
17475 enable_fast_install=needless
17476fi
17477
17478striplib=
17479old_striplib=
17480echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17481echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17482if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17483 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17484 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17485 echo "$as_me:$LINENO: result: yes" >&5
17486echo "${ECHO_T}yes" >&6
17487else
17488# FIXME - insert some real tests, host_os isn't really good enough
17489 case $host_os in
17490 darwin*)
17491 if test -n "$STRIP" ; then
17492 striplib="$STRIP -x"
17493 echo "$as_me:$LINENO: result: yes" >&5
17494echo "${ECHO_T}yes" >&6
17495 else
17496 echo "$as_me:$LINENO: result: no" >&5
17497echo "${ECHO_T}no" >&6
17498fi
17499 ;;
17500 *)
17501 echo "$as_me:$LINENO: result: no" >&5
17502echo "${ECHO_T}no" >&6
17503 ;;
17504 esac
17505fi
17506
John Criswell47fdd832003-07-14 16:52:07 +000017507if test "x$enable_dlopen" != xyes; then
17508 enable_dlopen=unknown
17509 enable_dlopen_self=unknown
17510 enable_dlopen_self_static=unknown
17511else
17512 lt_cv_dlopen=no
17513 lt_cv_dlopen_libs=
17514
17515 case $host_os in
17516 beos*)
17517 lt_cv_dlopen="load_add_on"
17518 lt_cv_dlopen_libs=
17519 lt_cv_dlopen_self=yes
17520 ;;
17521
17522 mingw* | pw32*)
17523 lt_cv_dlopen="LoadLibrary"
17524 lt_cv_dlopen_libs=
17525 ;;
17526
17527 cygwin*)
17528 lt_cv_dlopen="dlopen"
17529 lt_cv_dlopen_libs=
17530 ;;
17531
17532 darwin*)
17533 # if libdl is installed we need to link against it
17534 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17535echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17536if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17537 echo $ECHO_N "(cached) $ECHO_C" >&6
17538else
17539 ac_check_lib_save_LIBS=$LIBS
17540LIBS="-ldl $LIBS"
17541cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017542/* confdefs.h. */
17543_ACEOF
17544cat confdefs.h >>conftest.$ac_ext
17545cat >>conftest.$ac_ext <<_ACEOF
17546/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017547
17548/* Override any gcc2 internal prototype to avoid an error. */
17549#ifdef __cplusplus
17550extern "C"
17551#endif
17552/* We use char because int might match the return type of a gcc2
17553 builtin and then its argument prototype would still apply. */
17554char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017555int
17556main ()
17557{
17558dlopen ();
17559 ;
17560 return 0;
17561}
17562_ACEOF
17563rm -f conftest.$ac_objext conftest$ac_exeext
17564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017565 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017566 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017567 grep -v '^ *+' conftest.er1 >conftest.err
17568 rm -f conftest.er1
17569 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017572 { ac_try='test -z "$ac_cxx_werror_flag"
17573 || test ! -s conftest.err'
17574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17575 (eval $ac_try) 2>&5
17576 ac_status=$?
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); }; } &&
17579 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17581 (eval $ac_try) 2>&5
17582 ac_status=$?
17583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584 (exit $ac_status); }; }; then
17585 ac_cv_lib_dl_dlopen=yes
17586else
17587 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017588sed 's/^/| /' conftest.$ac_ext >&5
17589
John Criswell47fdd832003-07-14 16:52:07 +000017590ac_cv_lib_dl_dlopen=no
17591fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017592rm -f conftest.err conftest.$ac_objext \
17593 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017594LIBS=$ac_check_lib_save_LIBS
17595fi
17596echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17597echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17598if test $ac_cv_lib_dl_dlopen = yes; then
17599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17600else
17601
17602 lt_cv_dlopen="dyld"
17603 lt_cv_dlopen_libs=
17604 lt_cv_dlopen_self=yes
17605
17606fi
17607
17608 ;;
17609
17610 *)
17611 echo "$as_me:$LINENO: checking for shl_load" >&5
17612echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17613if test "${ac_cv_func_shl_load+set}" = set; then
17614 echo $ECHO_N "(cached) $ECHO_C" >&6
17615else
17616 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017617/* confdefs.h. */
17618_ACEOF
17619cat confdefs.h >>conftest.$ac_ext
17620cat >>conftest.$ac_ext <<_ACEOF
17621/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017622/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17624#define shl_load innocuous_shl_load
17625
John Criswell47fdd832003-07-14 16:52:07 +000017626/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017627 which can conflict with char shl_load (); below.
17628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17629 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017630
John Criswell0c38eaf2003-09-10 15:17:25 +000017631#ifdef __STDC__
17632# include <limits.h>
17633#else
17634# include <assert.h>
17635#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017636
17637#undef shl_load
17638
John Criswell47fdd832003-07-14 16:52:07 +000017639/* Override any gcc2 internal prototype to avoid an error. */
17640#ifdef __cplusplus
17641extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017642{
John Criswell47fdd832003-07-14 16:52:07 +000017643#endif
17644/* We use char because int might match the return type of a gcc2
17645 builtin and then its argument prototype would still apply. */
17646char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017647/* The GNU C library defines this for functions which it implements
17648 to always fail with ENOSYS. Some functions are actually named
17649 something starting with __ and the normal name is an alias. */
17650#if defined (__stub_shl_load) || defined (__stub___shl_load)
17651choke me
17652#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017653char (*f) () = shl_load;
17654#endif
17655#ifdef __cplusplus
17656}
John Criswell47fdd832003-07-14 16:52:07 +000017657#endif
17658
John Criswell0c38eaf2003-09-10 15:17:25 +000017659int
17660main ()
17661{
17662return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017663 ;
17664 return 0;
17665}
17666_ACEOF
17667rm -f conftest.$ac_objext conftest$ac_exeext
17668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017669 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017670 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017671 grep -v '^ *+' conftest.er1 >conftest.err
17672 rm -f conftest.er1
17673 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017676 { ac_try='test -z "$ac_cxx_werror_flag"
17677 || test ! -s conftest.err'
17678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17679 (eval $ac_try) 2>&5
17680 ac_status=$?
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); }; } &&
17683 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17685 (eval $ac_try) 2>&5
17686 ac_status=$?
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); }; }; then
17689 ac_cv_func_shl_load=yes
17690else
17691 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017692sed 's/^/| /' conftest.$ac_ext >&5
17693
John Criswell47fdd832003-07-14 16:52:07 +000017694ac_cv_func_shl_load=no
17695fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017696rm -f conftest.err conftest.$ac_objext \
17697 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017698fi
17699echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17700echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17701if test $ac_cv_func_shl_load = yes; then
17702 lt_cv_dlopen="shl_load"
17703else
17704 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17705echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17706if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17707 echo $ECHO_N "(cached) $ECHO_C" >&6
17708else
17709 ac_check_lib_save_LIBS=$LIBS
17710LIBS="-ldld $LIBS"
17711cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017712/* confdefs.h. */
17713_ACEOF
17714cat confdefs.h >>conftest.$ac_ext
17715cat >>conftest.$ac_ext <<_ACEOF
17716/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017717
17718/* Override any gcc2 internal prototype to avoid an error. */
17719#ifdef __cplusplus
17720extern "C"
17721#endif
17722/* We use char because int might match the return type of a gcc2
17723 builtin and then its argument prototype would still apply. */
17724char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017725int
17726main ()
17727{
17728shl_load ();
17729 ;
17730 return 0;
17731}
17732_ACEOF
17733rm -f conftest.$ac_objext conftest$ac_exeext
17734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017735 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017736 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017737 grep -v '^ *+' conftest.er1 >conftest.err
17738 rm -f conftest.er1
17739 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017742 { ac_try='test -z "$ac_cxx_werror_flag"
17743 || test ! -s conftest.err'
17744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17745 (eval $ac_try) 2>&5
17746 ac_status=$?
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); }; } &&
17749 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17751 (eval $ac_try) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); }; }; then
17755 ac_cv_lib_dld_shl_load=yes
17756else
17757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017758sed 's/^/| /' conftest.$ac_ext >&5
17759
John Criswell47fdd832003-07-14 16:52:07 +000017760ac_cv_lib_dld_shl_load=no
17761fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017762rm -f conftest.err conftest.$ac_objext \
17763 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017764LIBS=$ac_check_lib_save_LIBS
17765fi
17766echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17767echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17768if test $ac_cv_lib_dld_shl_load = yes; then
17769 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17770else
17771 echo "$as_me:$LINENO: checking for dlopen" >&5
17772echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17773if test "${ac_cv_func_dlopen+set}" = set; then
17774 echo $ECHO_N "(cached) $ECHO_C" >&6
17775else
17776 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017777/* confdefs.h. */
17778_ACEOF
17779cat confdefs.h >>conftest.$ac_ext
17780cat >>conftest.$ac_ext <<_ACEOF
17781/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017782/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17784#define dlopen innocuous_dlopen
17785
John Criswell47fdd832003-07-14 16:52:07 +000017786/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017787 which can conflict with char dlopen (); below.
17788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17789 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017790
John Criswell0c38eaf2003-09-10 15:17:25 +000017791#ifdef __STDC__
17792# include <limits.h>
17793#else
17794# include <assert.h>
17795#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017796
17797#undef dlopen
17798
John Criswell47fdd832003-07-14 16:52:07 +000017799/* Override any gcc2 internal prototype to avoid an error. */
17800#ifdef __cplusplus
17801extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017802{
John Criswell47fdd832003-07-14 16:52:07 +000017803#endif
17804/* We use char because int might match the return type of a gcc2
17805 builtin and then its argument prototype would still apply. */
17806char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017807/* The GNU C library defines this for functions which it implements
17808 to always fail with ENOSYS. Some functions are actually named
17809 something starting with __ and the normal name is an alias. */
17810#if defined (__stub_dlopen) || defined (__stub___dlopen)
17811choke me
17812#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017813char (*f) () = dlopen;
17814#endif
17815#ifdef __cplusplus
17816}
John Criswell47fdd832003-07-14 16:52:07 +000017817#endif
17818
John Criswell0c38eaf2003-09-10 15:17:25 +000017819int
17820main ()
17821{
17822return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017823 ;
17824 return 0;
17825}
17826_ACEOF
17827rm -f conftest.$ac_objext conftest$ac_exeext
17828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017829 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017830 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017831 grep -v '^ *+' conftest.er1 >conftest.err
17832 rm -f conftest.er1
17833 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017836 { ac_try='test -z "$ac_cxx_werror_flag"
17837 || test ! -s conftest.err'
17838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17839 (eval $ac_try) 2>&5
17840 ac_status=$?
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; } &&
17843 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17845 (eval $ac_try) 2>&5
17846 ac_status=$?
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); }; }; then
17849 ac_cv_func_dlopen=yes
17850else
17851 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017852sed 's/^/| /' conftest.$ac_ext >&5
17853
John Criswell47fdd832003-07-14 16:52:07 +000017854ac_cv_func_dlopen=no
17855fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017856rm -f conftest.err conftest.$ac_objext \
17857 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017858fi
17859echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17860echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17861if test $ac_cv_func_dlopen = yes; then
17862 lt_cv_dlopen="dlopen"
17863else
17864 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17865echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17866if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
17868else
17869 ac_check_lib_save_LIBS=$LIBS
17870LIBS="-ldl $LIBS"
17871cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017872/* confdefs.h. */
17873_ACEOF
17874cat confdefs.h >>conftest.$ac_ext
17875cat >>conftest.$ac_ext <<_ACEOF
17876/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017877
17878/* Override any gcc2 internal prototype to avoid an error. */
17879#ifdef __cplusplus
17880extern "C"
17881#endif
17882/* We use char because int might match the return type of a gcc2
17883 builtin and then its argument prototype would still apply. */
17884char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017885int
17886main ()
17887{
17888dlopen ();
17889 ;
17890 return 0;
17891}
17892_ACEOF
17893rm -f conftest.$ac_objext conftest$ac_exeext
17894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017895 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017896 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017897 grep -v '^ *+' conftest.er1 >conftest.err
17898 rm -f conftest.er1
17899 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017902 { ac_try='test -z "$ac_cxx_werror_flag"
17903 || test ! -s conftest.err'
17904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17905 (eval $ac_try) 2>&5
17906 ac_status=$?
17907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908 (exit $ac_status); }; } &&
17909 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17911 (eval $ac_try) 2>&5
17912 ac_status=$?
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); }; }; then
17915 ac_cv_lib_dl_dlopen=yes
17916else
17917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017918sed 's/^/| /' conftest.$ac_ext >&5
17919
John Criswell47fdd832003-07-14 16:52:07 +000017920ac_cv_lib_dl_dlopen=no
17921fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017922rm -f conftest.err conftest.$ac_objext \
17923 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017924LIBS=$ac_check_lib_save_LIBS
17925fi
17926echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17927echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17928if test $ac_cv_lib_dl_dlopen = yes; then
17929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17930else
17931 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17932echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17933if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17934 echo $ECHO_N "(cached) $ECHO_C" >&6
17935else
17936 ac_check_lib_save_LIBS=$LIBS
17937LIBS="-lsvld $LIBS"
17938cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017939/* confdefs.h. */
17940_ACEOF
17941cat confdefs.h >>conftest.$ac_ext
17942cat >>conftest.$ac_ext <<_ACEOF
17943/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017944
17945/* Override any gcc2 internal prototype to avoid an error. */
17946#ifdef __cplusplus
17947extern "C"
17948#endif
17949/* We use char because int might match the return type of a gcc2
17950 builtin and then its argument prototype would still apply. */
17951char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017952int
17953main ()
17954{
17955dlopen ();
17956 ;
17957 return 0;
17958}
17959_ACEOF
17960rm -f conftest.$ac_objext conftest$ac_exeext
17961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017962 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017963 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017964 grep -v '^ *+' conftest.er1 >conftest.err
17965 rm -f conftest.er1
17966 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017969 { ac_try='test -z "$ac_cxx_werror_flag"
17970 || test ! -s conftest.err'
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; } &&
17976 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17978 (eval $ac_try) 2>&5
17979 ac_status=$?
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); }; }; then
17982 ac_cv_lib_svld_dlopen=yes
17983else
17984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017985sed 's/^/| /' conftest.$ac_ext >&5
17986
John Criswell47fdd832003-07-14 16:52:07 +000017987ac_cv_lib_svld_dlopen=no
17988fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017989rm -f conftest.err conftest.$ac_objext \
17990 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017991LIBS=$ac_check_lib_save_LIBS
17992fi
17993echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17994echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17995if test $ac_cv_lib_svld_dlopen = yes; then
17996 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17997else
17998 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17999echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18000if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18001 echo $ECHO_N "(cached) $ECHO_C" >&6
18002else
18003 ac_check_lib_save_LIBS=$LIBS
18004LIBS="-ldld $LIBS"
18005cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018006/* confdefs.h. */
18007_ACEOF
18008cat confdefs.h >>conftest.$ac_ext
18009cat >>conftest.$ac_ext <<_ACEOF
18010/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000018011
18012/* Override any gcc2 internal prototype to avoid an error. */
18013#ifdef __cplusplus
18014extern "C"
18015#endif
18016/* We use char because int might match the return type of a gcc2
18017 builtin and then its argument prototype would still apply. */
18018char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000018019int
18020main ()
18021{
18022dld_link ();
18023 ;
18024 return 0;
18025}
18026_ACEOF
18027rm -f conftest.$ac_objext conftest$ac_exeext
18028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000018029 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000018030 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000018031 grep -v '^ *+' conftest.er1 >conftest.err
18032 rm -f conftest.er1
18033 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000018034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000018036 { ac_try='test -z "$ac_cxx_werror_flag"
18037 || test ! -s conftest.err'
18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039 (eval $ac_try) 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; } &&
18043 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000018044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18045 (eval $ac_try) 2>&5
18046 ac_status=$?
18047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18048 (exit $ac_status); }; }; then
18049 ac_cv_lib_dld_dld_link=yes
18050else
18051 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018052sed 's/^/| /' conftest.$ac_ext >&5
18053
John Criswell47fdd832003-07-14 16:52:07 +000018054ac_cv_lib_dld_dld_link=no
18055fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000018056rm -f conftest.err conftest.$ac_objext \
18057 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000018058LIBS=$ac_check_lib_save_LIBS
18059fi
18060echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18061echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18062if test $ac_cv_lib_dld_dld_link = yes; then
18063 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18064fi
18065
18066
18067fi
18068
18069
18070fi
18071
18072
18073fi
18074
18075
18076fi
18077
18078
18079fi
18080
18081 ;;
18082 esac
18083
18084 if test "x$lt_cv_dlopen" != xno; then
18085 enable_dlopen=yes
18086 else
18087 enable_dlopen=no
18088 fi
18089
18090 case $lt_cv_dlopen in
18091 dlopen)
18092 save_CPPFLAGS="$CPPFLAGS"
18093 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18094
18095 save_LDFLAGS="$LDFLAGS"
18096 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18097
18098 save_LIBS="$LIBS"
18099 LIBS="$lt_cv_dlopen_libs $LIBS"
18100
18101 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18102echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18103if test "${lt_cv_dlopen_self+set}" = set; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18105else
18106 if test "$cross_compiling" = yes; then :
18107 lt_cv_dlopen_self=cross
18108else
18109 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18110 lt_status=$lt_dlunknown
18111 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +000018112#line 18113 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018113#include "confdefs.h"
18114
18115#if HAVE_DLFCN_H
18116#include <dlfcn.h>
18117#endif
18118
18119#include <stdio.h>
18120
18121#ifdef RTLD_GLOBAL
18122# define LT_DLGLOBAL RTLD_GLOBAL
18123#else
18124# ifdef DL_GLOBAL
18125# define LT_DLGLOBAL DL_GLOBAL
18126# else
18127# define LT_DLGLOBAL 0
18128# endif
18129#endif
18130
18131/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18132 find out it does not work in some platform. */
18133#ifndef LT_DLLAZY_OR_NOW
18134# ifdef RTLD_LAZY
18135# define LT_DLLAZY_OR_NOW RTLD_LAZY
18136# else
18137# ifdef DL_LAZY
18138# define LT_DLLAZY_OR_NOW DL_LAZY
18139# else
18140# ifdef RTLD_NOW
18141# define LT_DLLAZY_OR_NOW RTLD_NOW
18142# else
18143# ifdef DL_NOW
18144# define LT_DLLAZY_OR_NOW DL_NOW
18145# else
18146# define LT_DLLAZY_OR_NOW 0
18147# endif
18148# endif
18149# endif
18150# endif
18151#endif
18152
18153#ifdef __cplusplus
18154extern "C" void exit (int);
18155#endif
18156
18157void fnord() { int i=42;}
18158int main ()
18159{
18160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18161 int status = $lt_dlunknown;
18162
18163 if (self)
18164 {
18165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18166 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18167 /* dlclose (self); */
18168 }
18169
18170 exit (status);
18171}
18172EOF
18173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18174 (eval $ac_link) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18178 (./conftest; exit; ) 2>/dev/null
18179 lt_status=$?
18180 case x$lt_status in
18181 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18182 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18183 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18184 esac
18185 else :
18186 # compilation failed
18187 lt_cv_dlopen_self=no
18188 fi
18189fi
18190rm -fr conftest*
18191
18192
18193fi
18194echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18195echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18196
18197 if test "x$lt_cv_dlopen_self" = xyes; then
18198 LDFLAGS="$LDFLAGS $link_static_flag"
18199 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18200echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18201if test "${lt_cv_dlopen_self_static+set}" = set; then
18202 echo $ECHO_N "(cached) $ECHO_C" >&6
18203else
18204 if test "$cross_compiling" = yes; then :
18205 lt_cv_dlopen_self_static=cross
18206else
18207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18208 lt_status=$lt_dlunknown
18209 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +000018210#line 18211 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000018211#include "confdefs.h"
18212
18213#if HAVE_DLFCN_H
18214#include <dlfcn.h>
18215#endif
18216
18217#include <stdio.h>
18218
18219#ifdef RTLD_GLOBAL
18220# define LT_DLGLOBAL RTLD_GLOBAL
18221#else
18222# ifdef DL_GLOBAL
18223# define LT_DLGLOBAL DL_GLOBAL
18224# else
18225# define LT_DLGLOBAL 0
18226# endif
18227#endif
18228
18229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18230 find out it does not work in some platform. */
18231#ifndef LT_DLLAZY_OR_NOW
18232# ifdef RTLD_LAZY
18233# define LT_DLLAZY_OR_NOW RTLD_LAZY
18234# else
18235# ifdef DL_LAZY
18236# define LT_DLLAZY_OR_NOW DL_LAZY
18237# else
18238# ifdef RTLD_NOW
18239# define LT_DLLAZY_OR_NOW RTLD_NOW
18240# else
18241# ifdef DL_NOW
18242# define LT_DLLAZY_OR_NOW DL_NOW
18243# else
18244# define LT_DLLAZY_OR_NOW 0
18245# endif
18246# endif
18247# endif
18248# endif
18249#endif
18250
18251#ifdef __cplusplus
18252extern "C" void exit (int);
18253#endif
18254
18255void fnord() { int i=42;}
18256int main ()
18257{
18258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18259 int status = $lt_dlunknown;
18260
18261 if (self)
18262 {
18263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18264 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18265 /* dlclose (self); */
18266 }
18267
18268 exit (status);
18269}
18270EOF
18271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272 (eval $ac_link) 2>&5
18273 ac_status=$?
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18276 (./conftest; exit; ) 2>/dev/null
18277 lt_status=$?
18278 case x$lt_status in
18279 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18280 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18281 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18282 esac
18283 else :
18284 # compilation failed
18285 lt_cv_dlopen_self_static=no
18286 fi
18287fi
18288rm -fr conftest*
18289
18290
18291fi
18292echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18293echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18294 fi
18295
18296 CPPFLAGS="$save_CPPFLAGS"
18297 LDFLAGS="$save_LDFLAGS"
18298 LIBS="$save_LIBS"
18299 ;;
18300 esac
18301
18302 case $lt_cv_dlopen_self in
18303 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18304 *) enable_dlopen_self=unknown ;;
18305 esac
18306
18307 case $lt_cv_dlopen_self_static in
18308 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18309 *) enable_dlopen_self_static=unknown ;;
18310 esac
18311fi
18312
18313
18314# The else clause should only fire when bootstrapping the
18315# libtool distribution, otherwise you forgot to ship ltmain.sh
18316# with your package, and you will get complaints that there are
18317# no rules to generate ltmain.sh.
18318if test -f "$ltmain"; then
18319 # See if we are running on zsh, and set the options which allow our commands through
18320 # without removal of \ escapes.
18321 if test -n "${ZSH_VERSION+set}" ; then
18322 setopt NO_GLOB_SUBST
18323 fi
18324 # Now quote all the things that may contain metacharacters while being
18325 # careful not to overquote the AC_SUBSTed values. We take copies of the
18326 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018327 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18328 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018329 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18330 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18331 deplibs_check_method reload_flag reload_cmds need_locks \
18332 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18333 lt_cv_sys_global_symbol_to_c_name_address \
18334 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18335 old_postinstall_cmds old_postuninstall_cmds \
18336 compiler_CXX \
18337 CC_CXX \
18338 LD_CXX \
18339 lt_prog_compiler_wl_CXX \
18340 lt_prog_compiler_pic_CXX \
18341 lt_prog_compiler_static_CXX \
18342 lt_prog_compiler_no_builtin_flag_CXX \
18343 export_dynamic_flag_spec_CXX \
18344 thread_safe_flag_spec_CXX \
18345 whole_archive_flag_spec_CXX \
18346 enable_shared_with_static_runtimes_CXX \
18347 old_archive_cmds_CXX \
18348 old_archive_from_new_cmds_CXX \
18349 predep_objects_CXX \
18350 postdep_objects_CXX \
18351 predeps_CXX \
18352 postdeps_CXX \
18353 compiler_lib_search_path_CXX \
18354 archive_cmds_CXX \
18355 archive_expsym_cmds_CXX \
18356 postinstall_cmds_CXX \
18357 postuninstall_cmds_CXX \
18358 old_archive_from_expsyms_cmds_CXX \
18359 allow_undefined_flag_CXX \
18360 no_undefined_flag_CXX \
18361 export_symbols_cmds_CXX \
18362 hardcode_libdir_flag_spec_CXX \
18363 hardcode_libdir_flag_spec_ld_CXX \
18364 hardcode_libdir_separator_CXX \
18365 hardcode_automatic_CXX \
18366 module_cmds_CXX \
18367 module_expsym_cmds_CXX \
18368 lt_cv_prog_compiler_c_o_CXX \
18369 exclude_expsyms_CXX \
18370 include_expsyms_CXX; do
18371
18372 case $var in
18373 old_archive_cmds_CXX | \
18374 old_archive_from_new_cmds_CXX | \
18375 archive_cmds_CXX | \
18376 archive_expsym_cmds_CXX | \
18377 module_cmds_CXX | \
18378 module_expsym_cmds_CXX | \
18379 old_archive_from_expsyms_cmds_CXX | \
18380 export_symbols_cmds_CXX | \
18381 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18382 postinstall_cmds | postuninstall_cmds | \
18383 old_postinstall_cmds | old_postuninstall_cmds | \
18384 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18385 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018386 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 +000018387 ;;
18388 *)
18389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18390 ;;
18391 esac
18392 done
18393
18394 case $lt_echo in
18395 *'\$0 --fallback-echo"')
18396 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18397 ;;
18398 esac
18399
18400cfgfile="$ofile"
18401
18402 cat <<__EOF__ >> "$cfgfile"
18403# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18404
18405# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18406
18407# Shell to use when invoking shell scripts.
18408SHELL=$lt_SHELL
18409
18410# Whether or not to build shared libraries.
18411build_libtool_libs=$enable_shared
18412
18413# Whether or not to build static libraries.
18414build_old_libs=$enable_static
18415
18416# Whether or not to add -lc for building shared libraries.
18417build_libtool_need_lc=$archive_cmds_need_lc_CXX
18418
18419# Whether or not to disallow shared libs when runtime libs are static
18420allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18421
18422# Whether or not to optimize for fast installation.
18423fast_install=$enable_fast_install
18424
18425# The host system.
18426host_alias=$host_alias
18427host=$host
18428
18429# An echo program that does not interpret backslashes.
18430echo=$lt_echo
18431
18432# The archiver.
18433AR=$lt_AR
18434AR_FLAGS=$lt_AR_FLAGS
18435
18436# A C compiler.
18437LTCC=$lt_LTCC
18438
18439# A language-specific compiler.
18440CC=$lt_compiler_CXX
18441
18442# Is the compiler the GNU C compiler?
18443with_gcc=$GCC_CXX
18444
18445# An ERE matcher.
18446EGREP=$lt_EGREP
18447
18448# The linker used to build libraries.
18449LD=$lt_LD_CXX
18450
18451# Whether we need hard or soft links.
18452LN_S=$lt_LN_S
18453
18454# A BSD-compatible nm program.
18455NM=$lt_NM
18456
18457# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018458STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018459
18460# Used to examine libraries when file_magic_cmd begins "file"
18461MAGIC_CMD=$MAGIC_CMD
18462
18463# Used on cygwin: DLL creation program.
18464DLLTOOL="$DLLTOOL"
18465
18466# Used on cygwin: object dumper.
18467OBJDUMP="$OBJDUMP"
18468
18469# Used on cygwin: assembler.
18470AS="$AS"
18471
18472# The name of the directory that contains temporary libtool files.
18473objdir=$objdir
18474
18475# How to create reloadable object files.
18476reload_flag=$lt_reload_flag
18477reload_cmds=$lt_reload_cmds
18478
18479# How to pass a linker flag through the compiler.
18480wl=$lt_lt_prog_compiler_wl_CXX
18481
18482# Object file suffix (normally "o").
18483objext="$ac_objext"
18484
18485# Old archive suffix (normally "a").
18486libext="$libext"
18487
18488# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018489shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018490
18491# Executable file suffix (normally "").
18492exeext="$exeext"
18493
18494# Additional compiler flags for building library objects.
18495pic_flag=$lt_lt_prog_compiler_pic_CXX
18496pic_mode=$pic_mode
18497
18498# What is the maximum length of a command?
18499max_cmd_len=$lt_cv_sys_max_cmd_len
18500
18501# Does compiler simultaneously support -c and -o options?
18502compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18503
18504# Must we lock files when doing compilation ?
18505need_locks=$lt_need_locks
18506
18507# Do we need the lib prefix for modules?
18508need_lib_prefix=$need_lib_prefix
18509
18510# Do we need a version for libraries?
18511need_version=$need_version
18512
18513# Whether dlopen is supported.
18514dlopen_support=$enable_dlopen
18515
18516# Whether dlopen of programs is supported.
18517dlopen_self=$enable_dlopen_self
18518
18519# Whether dlopen of statically linked programs is supported.
18520dlopen_self_static=$enable_dlopen_self_static
18521
18522# Compiler flag to prevent dynamic linking.
18523link_static_flag=$lt_lt_prog_compiler_static_CXX
18524
18525# Compiler flag to turn off builtin functions.
18526no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18527
18528# Compiler flag to allow reflexive dlopens.
18529export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18530
18531# Compiler flag to generate shared objects directly from archives.
18532whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18533
18534# Compiler flag to generate thread-safe objects.
18535thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18536
18537# Library versioning type.
18538version_type=$version_type
18539
18540# Format of library name prefix.
18541libname_spec=$lt_libname_spec
18542
18543# List of archive names. First name is the real one, the rest are links.
18544# The last name is the one that the linker finds with -lNAME.
18545library_names_spec=$lt_library_names_spec
18546
18547# The coded name of the library, if different from the real name.
18548soname_spec=$lt_soname_spec
18549
18550# Commands used to build and install an old-style archive.
18551RANLIB=$lt_RANLIB
18552old_archive_cmds=$lt_old_archive_cmds_CXX
18553old_postinstall_cmds=$lt_old_postinstall_cmds
18554old_postuninstall_cmds=$lt_old_postuninstall_cmds
18555
18556# Create an old-style archive from a shared archive.
18557old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18558
18559# Create a temporary old-style archive to link instead of a shared archive.
18560old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18561
18562# Commands used to build and install a shared archive.
18563archive_cmds=$lt_archive_cmds_CXX
18564archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18565postinstall_cmds=$lt_postinstall_cmds
18566postuninstall_cmds=$lt_postuninstall_cmds
18567
18568# Commands used to build a loadable module (assumed same as above if empty)
18569module_cmds=$lt_module_cmds_CXX
18570module_expsym_cmds=$lt_module_expsym_cmds_CXX
18571
18572# Commands to strip libraries.
18573old_striplib=$lt_old_striplib
18574striplib=$lt_striplib
18575
18576# Dependencies to place before the objects being linked to create a
18577# shared library.
18578predep_objects=$lt_predep_objects_CXX
18579
18580# Dependencies to place after the objects being linked to create a
18581# shared library.
18582postdep_objects=$lt_postdep_objects_CXX
18583
18584# Dependencies to place before the objects being linked to create a
18585# shared library.
18586predeps=$lt_predeps_CXX
18587
18588# Dependencies to place after the objects being linked to create a
18589# shared library.
18590postdeps=$lt_postdeps_CXX
18591
18592# The library search path used internally by the compiler when linking
18593# a shared library.
18594compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18595
18596# Method to check whether dependent libraries are shared objects.
18597deplibs_check_method=$lt_deplibs_check_method
18598
18599# Command to use when deplibs_check_method == file_magic.
18600file_magic_cmd=$lt_file_magic_cmd
18601
18602# Flag that allows shared libraries with undefined symbols to be built.
18603allow_undefined_flag=$lt_allow_undefined_flag_CXX
18604
18605# Flag that forces no undefined symbols.
18606no_undefined_flag=$lt_no_undefined_flag_CXX
18607
18608# Commands used to finish a libtool library installation in a directory.
18609finish_cmds=$lt_finish_cmds
18610
18611# Same as above, but a single script fragment to be evaled but not shown.
18612finish_eval=$lt_finish_eval
18613
18614# Take the output of nm and produce a listing of raw symbols and C names.
18615global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18616
18617# Transform the output of nm in a proper C declaration
18618global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18619
18620# Transform the output of nm in a C name address pair
18621global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18622
18623# This is the shared library runtime path variable.
18624runpath_var=$runpath_var
18625
18626# This is the shared library path variable.
18627shlibpath_var=$shlibpath_var
18628
18629# Is shlibpath searched before the hard-coded library search path?
18630shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18631
18632# How to hardcode a shared library path into an executable.
18633hardcode_action=$hardcode_action_CXX
18634
18635# Whether we should hardcode library paths into libraries.
18636hardcode_into_libs=$hardcode_into_libs
18637
18638# Flag to hardcode \$libdir into a binary during linking.
18639# This must work even if \$libdir does not exist.
18640hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18641
18642# If ld is used when linking, flag to hardcode \$libdir into
18643# a binary during linking. This must work even if \$libdir does
18644# not exist.
18645hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18646
18647# Whether we need a single -rpath flag with a separated argument.
18648hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18649
18650# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18651# resulting binary.
18652hardcode_direct=$hardcode_direct_CXX
18653
18654# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18655# resulting binary.
18656hardcode_minus_L=$hardcode_minus_L_CXX
18657
18658# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18659# the resulting binary.
18660hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18661
18662# Set to yes if building a shared library automatically hardcodes DIR into the library
18663# and all subsequent libraries and executables linked against it.
18664hardcode_automatic=$hardcode_automatic_CXX
18665
18666# Variables whose values should be saved in libtool wrapper scripts and
18667# restored at relink time.
18668variables_saved_for_relink="$variables_saved_for_relink"
18669
18670# Whether libtool must link a program against all its dependency libraries.
18671link_all_deplibs=$link_all_deplibs_CXX
18672
18673# Compile-time system search path for libraries
18674sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18675
18676# Run-time system search path for libraries
18677sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18678
18679# Fix the shell variable \$srcfile for the compiler.
18680fix_srcfile_path="$fix_srcfile_path_CXX"
18681
18682# Set to yes if exported symbols are required.
18683always_export_symbols=$always_export_symbols_CXX
18684
18685# The commands to list exported symbols.
18686export_symbols_cmds=$lt_export_symbols_cmds_CXX
18687
18688# The commands to extract the exported symbol list from a shared archive.
18689extract_expsyms_cmds=$lt_extract_expsyms_cmds
18690
18691# Symbols that should not be listed in the preloaded symbols.
18692exclude_expsyms=$lt_exclude_expsyms_CXX
18693
18694# Symbols that must always be exported.
18695include_expsyms=$lt_include_expsyms_CXX
18696
18697# ### END LIBTOOL TAG CONFIG: $tagname
18698
18699__EOF__
18700
18701
18702else
18703 # If there is no Makefile yet, we rely on a make rule to execute
18704 # `config.status --recheck' to rerun these tests and create the
18705 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018706 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18707 if test -f "$ltmain_in"; then
18708 test -f Makefile && make "$ltmain"
18709 fi
John Criswell47fdd832003-07-14 16:52:07 +000018710fi
18711
18712
18713ac_ext=c
18714ac_cpp='$CPP $CPPFLAGS'
18715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18717ac_compiler_gnu=$ac_cv_c_compiler_gnu
18718
18719CC=$lt_save_CC
18720LDCXX=$LD
18721LD=$lt_save_LD
18722GCC=$lt_save_GCC
18723with_gnu_ldcxx=$with_gnu_ld
18724with_gnu_ld=$lt_save_with_gnu_ld
18725lt_cv_path_LDCXX=$lt_cv_path_LD
18726lt_cv_path_LD=$lt_save_path_LD
18727lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18728lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18729
18730 else
18731 tagname=""
18732 fi
18733 ;;
18734
18735 F77)
18736 if test -n "$F77" && test "X$F77" != "Xno"; then
18737
18738ac_ext=f
18739ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18740ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18741ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18742
18743
18744archive_cmds_need_lc_F77=no
18745allow_undefined_flag_F77=
18746always_export_symbols_F77=no
18747archive_expsym_cmds_F77=
18748export_dynamic_flag_spec_F77=
18749hardcode_direct_F77=no
18750hardcode_libdir_flag_spec_F77=
18751hardcode_libdir_flag_spec_ld_F77=
18752hardcode_libdir_separator_F77=
18753hardcode_minus_L_F77=no
18754hardcode_automatic_F77=no
18755module_cmds_F77=
18756module_expsym_cmds_F77=
18757link_all_deplibs_F77=unknown
18758old_archive_cmds_F77=$old_archive_cmds
18759no_undefined_flag_F77=
18760whole_archive_flag_spec_F77=
18761enable_shared_with_static_runtimes_F77=no
18762
18763# Source file extension for f77 test sources.
18764ac_ext=f
18765
18766# Object file extension for compiled f77 test sources.
18767objext=o
18768objext_F77=$objext
18769
18770# Code to be used in simple compile tests
18771lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18772
18773# Code to be used in simple link tests
18774lt_simple_link_test_code=" program t\n end\n"
18775
18776# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18777
18778# If no C compiler was specified, use CC.
18779LTCC=${LTCC-"$CC"}
18780
18781# Allow CC to be a program name with arguments.
18782compiler=$CC
18783
18784
18785# Allow CC to be a program name with arguments.
18786lt_save_CC="$CC"
18787CC=${F77-"f77"}
18788compiler=$CC
18789compiler_F77=$CC
18790cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18791
18792echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18793echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18794echo "$as_me:$LINENO: result: $can_build_shared" >&5
18795echo "${ECHO_T}$can_build_shared" >&6
18796
18797echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18798echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18799test "$can_build_shared" = "no" && enable_shared=no
18800
18801# On AIX, shared libraries and static libraries use the same namespace, and
18802# are all built from PIC.
18803case "$host_os" in
18804aix3*)
18805 test "$enable_shared" = yes && enable_static=no
18806 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018807 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018808 postinstall_cmds='$RANLIB $lib'
18809 fi
18810 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018811aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018812 test "$enable_shared" = yes && enable_static=no
18813 ;;
18814esac
18815echo "$as_me:$LINENO: result: $enable_shared" >&5
18816echo "${ECHO_T}$enable_shared" >&6
18817
18818echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18819echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18820# Make sure either enable_shared or enable_static is yes.
18821test "$enable_shared" = yes || enable_static=yes
18822echo "$as_me:$LINENO: result: $enable_static" >&5
18823echo "${ECHO_T}$enable_static" >&6
18824
18825test "$ld_shlibs_F77" = no && can_build_shared=no
18826
18827GCC_F77="$G77"
18828LD_F77="$LD"
18829
18830lt_prog_compiler_wl_F77=
18831lt_prog_compiler_pic_F77=
18832lt_prog_compiler_static_F77=
18833
18834echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18835echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18836
18837 if test "$GCC" = yes; then
18838 lt_prog_compiler_wl_F77='-Wl,'
18839 lt_prog_compiler_static_F77='-static'
18840
18841 case $host_os in
18842 aix*)
18843 # All AIX code is PIC.
18844 if test "$host_cpu" = ia64; then
18845 # AIX 5 now supports IA64 processor
18846 lt_prog_compiler_static_F77='-Bstatic'
18847 fi
18848 ;;
18849
18850 amigaos*)
18851 # FIXME: we need at least 68020 code to build shared libraries, but
18852 # adding the `-m68020' flag to GCC prevents building anything better,
18853 # like `-m68040'.
18854 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18855 ;;
18856
18857 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18858 # PIC is the default for these OSes.
18859 ;;
18860
18861 mingw* | pw32* | os2*)
18862 # This hack is so that the source file can tell whether it is being
18863 # built for inclusion in a dll (and should export symbols for example).
18864 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18865 ;;
18866
18867 darwin* | rhapsody*)
18868 # PIC is the default on this platform
18869 # Common symbols not allowed in MH_DYLIB files
18870 lt_prog_compiler_pic_F77='-fno-common'
18871 ;;
18872
18873 msdosdjgpp*)
18874 # Just because we use GCC doesn't mean we suddenly get shared libraries
18875 # on systems that don't support them.
18876 lt_prog_compiler_can_build_shared_F77=no
18877 enable_shared=no
18878 ;;
18879
18880 sysv4*MP*)
18881 if test -d /usr/nec; then
18882 lt_prog_compiler_pic_F77=-Kconform_pic
18883 fi
18884 ;;
18885
18886 hpux*)
18887 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18888 # not for PA HP-UX.
18889 case "$host_cpu" in
18890 hppa*64*|ia64*)
18891 # +Z the default
18892 ;;
18893 *)
18894 lt_prog_compiler_pic_F77='-fPIC'
18895 ;;
18896 esac
18897 ;;
18898
18899 *)
18900 lt_prog_compiler_pic_F77='-fPIC'
18901 ;;
18902 esac
18903 else
18904 # PORTME Check for flag to pass linker flags through the system compiler.
18905 case $host_os in
18906 aix*)
18907 lt_prog_compiler_wl_F77='-Wl,'
18908 if test "$host_cpu" = ia64; then
18909 # AIX 5 now supports IA64 processor
18910 lt_prog_compiler_static_F77='-Bstatic'
18911 else
18912 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18913 fi
18914 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018915 darwin*)
18916 # PIC is the default on this platform
18917 # Common symbols not allowed in MH_DYLIB files
18918 case "$cc_basename" in
18919 xlc*)
18920 lt_prog_compiler_pic_F77='-qnocommon'
18921 lt_prog_compiler_wl_F77='-Wl,'
18922 ;;
18923 esac
18924 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018925
18926 mingw* | pw32* | os2*)
18927 # This hack is so that the source file can tell whether it is being
18928 # built for inclusion in a dll (and should export symbols for example).
18929 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18930 ;;
18931
18932 hpux9* | hpux10* | hpux11*)
18933 lt_prog_compiler_wl_F77='-Wl,'
18934 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18935 # not for PA HP-UX.
18936 case "$host_cpu" in
18937 hppa*64*|ia64*)
18938 # +Z the default
18939 ;;
18940 *)
18941 lt_prog_compiler_pic_F77='+Z'
18942 ;;
18943 esac
18944 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18945 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18946 ;;
18947
18948 irix5* | irix6* | nonstopux*)
18949 lt_prog_compiler_wl_F77='-Wl,'
18950 # PIC (with -KPIC) is the default.
18951 lt_prog_compiler_static_F77='-non_shared'
18952 ;;
18953
18954 newsos6)
18955 lt_prog_compiler_pic_F77='-KPIC'
18956 lt_prog_compiler_static_F77='-Bstatic'
18957 ;;
18958
18959 linux*)
18960 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018961 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018962 lt_prog_compiler_wl_F77='-Wl,'
18963 lt_prog_compiler_pic_F77='-KPIC'
18964 lt_prog_compiler_static_F77='-static'
18965 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018966 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018967 lt_prog_compiler_wl_F77='-Wl,'
18968 # All Alpha code is PIC.
18969 lt_prog_compiler_static_F77='-non_shared'
18970 ;;
18971 esac
18972 ;;
18973
18974 osf3* | osf4* | osf5*)
18975 lt_prog_compiler_wl_F77='-Wl,'
18976 # All OSF/1 code is PIC.
18977 lt_prog_compiler_static_F77='-non_shared'
18978 ;;
18979
18980 sco3.2v5*)
18981 lt_prog_compiler_pic_F77='-Kpic'
18982 lt_prog_compiler_static_F77='-dn'
18983 ;;
18984
18985 solaris*)
18986 lt_prog_compiler_wl_F77='-Wl,'
18987 lt_prog_compiler_pic_F77='-KPIC'
18988 lt_prog_compiler_static_F77='-Bstatic'
18989 ;;
18990
18991 sunos4*)
18992 lt_prog_compiler_wl_F77='-Qoption ld '
18993 lt_prog_compiler_pic_F77='-PIC'
18994 lt_prog_compiler_static_F77='-Bstatic'
18995 ;;
18996
18997 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18998 lt_prog_compiler_wl_F77='-Wl,'
18999 lt_prog_compiler_pic_F77='-KPIC'
19000 lt_prog_compiler_static_F77='-Bstatic'
19001 ;;
19002
19003 sysv4*MP*)
19004 if test -d /usr/nec ;then
19005 lt_prog_compiler_pic_F77='-Kconform_pic'
19006 lt_prog_compiler_static_F77='-Bstatic'
19007 fi
19008 ;;
19009
19010 uts4*)
19011 lt_prog_compiler_pic_F77='-pic'
19012 lt_prog_compiler_static_F77='-Bstatic'
19013 ;;
19014
19015 *)
19016 lt_prog_compiler_can_build_shared_F77=no
19017 ;;
19018 esac
19019 fi
19020
19021echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19022echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19023
19024#
19025# Check to make sure the PIC flag actually works.
19026#
19027if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000019028
19029echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019030echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19031if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19032 echo $ECHO_N "(cached) $ECHO_C" >&6
19033else
19034 lt_prog_compiler_pic_works_F77=no
19035 ac_outfile=conftest.$ac_objext
19036 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19037 lt_compiler_flag="$lt_prog_compiler_pic_F77"
19038 # Insert the option either (1) after the last *FLAGS variable, or
19039 # (2) before a word containing "conftest.", or (3) at the end.
19040 # Note that $ac_compile itself does not contain backslashes and begins
19041 # with a dollar sign (not a hyphen), so the echo should work correctly.
19042 # The option is referenced via a variable to avoid confusing sed.
19043 lt_compile=`echo "$ac_compile" | $SED \
19044 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19045 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19046 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000019047 (eval echo "\"\$as_me:19048: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019048 (eval "$lt_compile" 2>conftest.err)
19049 ac_status=$?
19050 cat conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000019051 echo "$as_me:19052: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019052 if (exit $ac_status) && test -s "$ac_outfile"; then
19053 # The compiler can only warn and ignore the option if not recognized
19054 # So say no if there are warnings
19055 if test ! -s conftest.err; then
19056 lt_prog_compiler_pic_works_F77=yes
19057 fi
19058 fi
19059 $rm conftest*
19060
19061fi
19062echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19063echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19064
19065if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
19066 case $lt_prog_compiler_pic_F77 in
19067 "" | " "*) ;;
19068 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
19069 esac
19070else
19071 lt_prog_compiler_pic_F77=
19072 lt_prog_compiler_can_build_shared_F77=no
19073fi
19074
19075fi
19076case "$host_os" in
19077 # For platforms which do not support PIC, -DPIC is meaningless:
19078 *djgpp*)
19079 lt_prog_compiler_pic_F77=
19080 ;;
19081 *)
19082 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
19083 ;;
19084esac
19085
19086echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19087echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19088if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
19090else
19091 lt_cv_prog_compiler_c_o_F77=no
19092 $rm -r conftest 2>/dev/null
19093 mkdir conftest
19094 cd conftest
19095 mkdir out
19096 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19097
John Criswell47fdd832003-07-14 16:52:07 +000019098 lt_compiler_flag="-o out/conftest2.$ac_objext"
19099 # Insert the option either (1) after the last *FLAGS variable, or
19100 # (2) before a word containing "conftest.", or (3) at the end.
19101 # Note that $ac_compile itself does not contain backslashes and begins
19102 # with a dollar sign (not a hyphen), so the echo should work correctly.
19103 lt_compile=`echo "$ac_compile" | $SED \
19104 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19105 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19106 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000019107 (eval echo "\"\$as_me:19108: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000019108 (eval "$lt_compile" 2>out/conftest.err)
19109 ac_status=$?
19110 cat out/conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000019111 echo "$as_me:19112: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000019112 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19113 then
19114 # The compiler can only warn and ignore the option if not recognized
19115 # So say no if there are warnings
19116 if test ! -s out/conftest.err; then
19117 lt_cv_prog_compiler_c_o_F77=yes
19118 fi
19119 fi
19120 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000019121 $rm conftest*
19122 # SGI C++ compiler will create directory out/ii_files/ for
19123 # template instantiation
19124 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19125 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000019126 cd ..
19127 rmdir conftest
19128 $rm conftest*
19129
19130fi
19131echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19132echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19133
19134
19135hard_links="nottested"
19136if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
19137 # do not overwrite the value of need_locks provided by the user
19138 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19139echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19140 hard_links=yes
19141 $rm conftest*
19142 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19143 touch conftest.a
19144 ln conftest.a conftest.b 2>&5 || hard_links=no
19145 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19146 echo "$as_me:$LINENO: result: $hard_links" >&5
19147echo "${ECHO_T}$hard_links" >&6
19148 if test "$hard_links" = no; then
19149 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19150echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19151 need_locks=warn
19152 fi
19153else
19154 need_locks=no
19155fi
19156
19157echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19158echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19159
19160 runpath_var=
19161 allow_undefined_flag_F77=
19162 enable_shared_with_static_runtimes_F77=no
19163 archive_cmds_F77=
19164 archive_expsym_cmds_F77=
19165 old_archive_From_new_cmds_F77=
19166 old_archive_from_expsyms_cmds_F77=
19167 export_dynamic_flag_spec_F77=
19168 whole_archive_flag_spec_F77=
19169 thread_safe_flag_spec_F77=
19170 hardcode_libdir_flag_spec_F77=
19171 hardcode_libdir_flag_spec_ld_F77=
19172 hardcode_libdir_separator_F77=
19173 hardcode_direct_F77=no
19174 hardcode_minus_L_F77=no
19175 hardcode_shlibpath_var_F77=unsupported
19176 link_all_deplibs_F77=unknown
19177 hardcode_automatic_F77=no
19178 module_cmds_F77=
19179 module_expsym_cmds_F77=
19180 always_export_symbols_F77=no
19181 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19182 # include_expsyms should be a list of space-separated symbols to be *always*
19183 # included in the symbol list
19184 include_expsyms_F77=
19185 # exclude_expsyms can be an extended regexp of symbols to exclude
19186 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19187 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19188 # as well as any symbol that contains `d'.
19189 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
19190 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19191 # platforms (ab)use it in PIC code, but their linkers get confused if
19192 # the symbol is explicitly referenced. Since portable code cannot
19193 # rely on this symbol name, it's probably fine to never include it in
19194 # preloaded symbol tables.
19195 extract_expsyms_cmds=
19196
19197 case $host_os in
19198 cygwin* | mingw* | pw32*)
19199 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19200 # When not using gcc, we currently assume that we are using
19201 # Microsoft Visual C++.
19202 if test "$GCC" != yes; then
19203 with_gnu_ld=no
19204 fi
19205 ;;
19206 openbsd*)
19207 with_gnu_ld=no
19208 ;;
19209 esac
19210
19211 ld_shlibs_F77=yes
19212 if test "$with_gnu_ld" = yes; then
19213 # If archive_cmds runs LD, not CC, wlarc should be empty
19214 wlarc='${wl}'
19215
19216 # See if GNU ld supports shared libraries.
19217 case $host_os in
19218 aix3* | aix4* | aix5*)
19219 # On AIX/PPC, the GNU linker is very broken
19220 if test "$host_cpu" != ia64; then
19221 ld_shlibs_F77=no
19222 cat <<EOF 1>&2
19223
19224*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19225*** to be unable to reliably create shared libraries on AIX.
19226*** Therefore, libtool is disabling shared libraries support. If you
19227*** really care for shared libraries, you may want to modify your PATH
19228*** so that a non-GNU linker is found, and then restart.
19229
19230EOF
19231 fi
19232 ;;
19233
19234 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019235 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 +000019236 hardcode_libdir_flag_spec_F77='-L$libdir'
19237 hardcode_minus_L_F77=yes
19238
19239 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19240 # that the semantics of dynamic libraries on AmigaOS, at least up
19241 # to version 4, is to share data among multiple programs linked
19242 # with the same dynamic library. Since this doesn't match the
19243 # behavior of shared libraries on other platforms, we can't use
19244 # them.
19245 ld_shlibs_F77=no
19246 ;;
19247
19248 beos*)
19249 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19250 allow_undefined_flag_F77=unsupported
19251 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19252 # support --undefined. This deserves some investigation. FIXME
19253 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19254 else
19255 ld_shlibs_F77=no
19256 fi
19257 ;;
19258
19259 cygwin* | mingw* | pw32*)
19260 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19261 # as there is no search path for DLLs.
19262 hardcode_libdir_flag_spec_F77='-L$libdir'
19263 allow_undefined_flag_F77=unsupported
19264 always_export_symbols_F77=no
19265 enable_shared_with_static_runtimes_F77=yes
19266 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19267
19268 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19269 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19270 # If the export-symbols file already is a .def file (1st line
19271 # is EXPORTS), use it as is; otherwise, prepend...
19272 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19273 cp $export_symbols $output_objdir/$soname.def;
19274 else
19275 echo EXPORTS > $output_objdir/$soname.def;
19276 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019277 fi~
19278 $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 +000019279 else
19280 ld_shlibs=no
19281 fi
19282 ;;
19283
19284 netbsd*)
19285 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19286 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19287 wlarc=
19288 else
19289 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19290 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19291 fi
19292 ;;
19293
19294 solaris* | sysv5*)
19295 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19296 ld_shlibs_F77=no
19297 cat <<EOF 1>&2
19298
19299*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19300*** create shared libraries on Solaris systems. Therefore, libtool
19301*** is disabling shared libraries support. We urge you to upgrade GNU
19302*** binutils to release 2.9.1 or newer. Another option is to modify
19303*** your PATH or compiler configuration so that the native linker is
19304*** used, and then restart.
19305
19306EOF
19307 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19308 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19309 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19310 else
19311 ld_shlibs_F77=no
19312 fi
19313 ;;
19314
19315 sunos4*)
19316 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19317 wlarc=
19318 hardcode_direct_F77=yes
19319 hardcode_shlibpath_var_F77=no
19320 ;;
19321
Reid Spencer2706f8c2004-09-19 23:53:36 +000019322 linux*)
19323 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19324 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19325 archive_cmds_F77="$tmp_archive_cmds"
19326 supports_anon_versioning=no
19327 case `$LD -v 2>/dev/null` in
19328 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19329 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19330 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19331 *\ 2.11.*) ;; # other 2.11 versions
19332 *) supports_anon_versioning=yes ;;
19333 esac
19334 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019335 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19336cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19337$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019338 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19339 else
19340 archive_expsym_cmds_F77="$tmp_archive_cmds"
19341 fi
19342 else
19343 ld_shlibs_F77=no
19344 fi
19345 ;;
19346
John Criswell47fdd832003-07-14 16:52:07 +000019347 *)
19348 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19349 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19350 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19351 else
19352 ld_shlibs_F77=no
19353 fi
19354 ;;
19355 esac
19356
19357 if test "$ld_shlibs_F77" = yes; then
19358 runpath_var=LD_RUN_PATH
19359 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19360 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19361 # ancient GNU ld didn't support --whole-archive et. al.
19362 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19363 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19364 else
19365 whole_archive_flag_spec_F77=
19366 fi
19367 fi
19368 else
19369 # PORTME fill in a description of your system's linker (not GNU ld)
19370 case $host_os in
19371 aix3*)
19372 allow_undefined_flag_F77=unsupported
19373 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019374 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 +000019375 # Note: this linker hardcodes the directories in LIBPATH if there
19376 # are no directories specified by -L.
19377 hardcode_minus_L_F77=yes
19378 if test "$GCC" = yes && test -z "$link_static_flag"; then
19379 # Neither direct hardcoding nor static linking is supported with a
19380 # broken collect2.
19381 hardcode_direct_F77=unsupported
19382 fi
19383 ;;
19384
19385 aix4* | aix5*)
19386 if test "$host_cpu" = ia64; then
19387 # On IA64, the linker does run time linking by default, so we don't
19388 # have to do anything special.
19389 aix_use_runtimelinking=no
19390 exp_sym_flag='-Bexport'
19391 no_entry_flag=""
19392 else
19393 # If we're using GNU nm, then we don't want the "-C" option.
19394 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19395 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19396 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'
19397 else
19398 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'
19399 fi
19400 aix_use_runtimelinking=no
19401
19402 # Test if we are trying to use run time linking or normal
19403 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19404 # need to do runtime linking.
19405 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19406 for ld_flag in $LDFLAGS; do
19407 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19408 aix_use_runtimelinking=yes
19409 break
19410 fi
19411 done
19412 esac
19413
19414 exp_sym_flag='-bexport'
19415 no_entry_flag='-bnoentry'
19416 fi
19417
19418 # When large executables or shared objects are built, AIX ld can
19419 # have problems creating the table of contents. If linking a library
19420 # or program results in "error TOC overflow" add -mminimal-toc to
19421 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19422 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19423
19424 archive_cmds_F77=''
19425 hardcode_direct_F77=yes
19426 hardcode_libdir_separator_F77=':'
19427 link_all_deplibs_F77=yes
19428
19429 if test "$GCC" = yes; then
19430 case $host_os in aix4.012|aix4.012.*)
19431 # We only want to do this on AIX 4.2 and lower, the check
19432 # below for broken collect2 doesn't work under 4.3+
19433 collect2name=`${CC} -print-prog-name=collect2`
19434 if test -f "$collect2name" && \
19435 strings "$collect2name" | grep resolve_lib_name >/dev/null
19436 then
19437 # We have reworked collect2
19438 hardcode_direct_F77=yes
19439 else
19440 # We have old collect2
19441 hardcode_direct_F77=unsupported
19442 # It fails to find uninstalled libraries when the uninstalled
19443 # path is not listed in the libpath. Setting hardcode_minus_L
19444 # to unsupported forces relinking
19445 hardcode_minus_L_F77=yes
19446 hardcode_libdir_flag_spec_F77='-L$libdir'
19447 hardcode_libdir_separator_F77=
19448 fi
19449 esac
19450 shared_flag='-shared'
19451 else
19452 # not using gcc
19453 if test "$host_cpu" = ia64; then
19454 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19455 # chokes on -Wl,-G. The following line is correct:
19456 shared_flag='-G'
19457 else
19458 if test "$aix_use_runtimelinking" = yes; then
19459 shared_flag='${wl}-G'
19460 else
19461 shared_flag='${wl}-bM:SRE'
19462 fi
19463 fi
19464 fi
19465
19466 # It seems that -bexpall does not export symbols beginning with
19467 # underscore (_), so it is better to generate a list of symbols to export.
19468 always_export_symbols_F77=yes
19469 if test "$aix_use_runtimelinking" = yes; then
19470 # Warning - without using the other runtime loading flags (-brtl),
19471 # -berok will link without error, but may produce a broken library.
19472 allow_undefined_flag_F77='-berok'
19473 # Determine the default libpath from the value encoded in an empty executable.
19474 cat >conftest.$ac_ext <<_ACEOF
19475 program main
19476
19477 end
19478_ACEOF
19479rm -f conftest.$ac_objext conftest$ac_exeext
19480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019481 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019482 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019483 grep -v '^ *+' conftest.er1 >conftest.err
19484 rm -f conftest.er1
19485 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019488 { ac_try='test -z "$ac_f77_werror_flag"
19489 || test ! -s conftest.err'
19490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491 (eval $ac_try) 2>&5
19492 ac_status=$?
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); }; } &&
19495 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19497 (eval $ac_try) 2>&5
19498 ac_status=$?
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }; }; then
19501
19502aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19503}'`
19504# Check for a 64-bit object if we didn't find anything.
19505if 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; }
19506}'`; fi
19507else
19508 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019509sed 's/^/| /' conftest.$ac_ext >&5
19510
John Criswell47fdd832003-07-14 16:52:07 +000019511fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019512rm -f conftest.err conftest.$ac_objext \
19513 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019514if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19515
19516 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19517 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"
19518 else
19519 if test "$host_cpu" = ia64; then
19520 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19521 allow_undefined_flag_F77="-z nodefs"
19522 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"
19523 else
19524 # Determine the default libpath from the value encoded in an empty executable.
19525 cat >conftest.$ac_ext <<_ACEOF
19526 program main
19527
19528 end
19529_ACEOF
19530rm -f conftest.$ac_objext conftest$ac_exeext
19531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019532 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019533 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019534 grep -v '^ *+' conftest.er1 >conftest.err
19535 rm -f conftest.er1
19536 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019539 { ac_try='test -z "$ac_f77_werror_flag"
19540 || test ! -s conftest.err'
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; } &&
19546 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19548 (eval $ac_try) 2>&5
19549 ac_status=$?
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); }; }; then
19552
19553aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19554}'`
19555# Check for a 64-bit object if we didn't find anything.
19556if 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; }
19557}'`; fi
19558else
19559 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019560sed 's/^/| /' conftest.$ac_ext >&5
19561
John Criswell47fdd832003-07-14 16:52:07 +000019562fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019563rm -f conftest.err conftest.$ac_objext \
19564 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019565if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19566
19567 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19568 # Warning - without using the other run time loading flags,
19569 # -berok will link without error, but may produce a broken library.
19570 no_undefined_flag_F77=' ${wl}-bernotok'
19571 allow_undefined_flag_F77=' ${wl}-berok'
19572 # -bexpall does not export symbols beginning with underscore (_)
19573 always_export_symbols_F77=yes
19574 # Exported symbols can be pulled into shared objects from archives
19575 whole_archive_flag_spec_F77=' '
19576 archive_cmds_need_lc_F77=yes
19577 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019578 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 +000019579 fi
19580 fi
19581 ;;
19582
19583 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019584 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 +000019585 hardcode_libdir_flag_spec_F77='-L$libdir'
19586 hardcode_minus_L_F77=yes
19587 # see comment about different semantics on the GNU ld section
19588 ld_shlibs_F77=no
19589 ;;
19590
Reid Spencer2706f8c2004-09-19 23:53:36 +000019591 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019592 export_dynamic_flag_spec_F77=-rdynamic
19593 ;;
19594
19595 cygwin* | mingw* | pw32*)
19596 # When not using gcc, we currently assume that we are using
19597 # Microsoft Visual C++.
19598 # hardcode_libdir_flag_spec is actually meaningless, as there is
19599 # no search path for DLLs.
19600 hardcode_libdir_flag_spec_F77=' '
19601 allow_undefined_flag_F77=unsupported
19602 # Tell ltmain to make .lib files, not .a files.
19603 libext=lib
19604 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019605 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019606 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019607 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 +000019608 # The linker will automatically build a .lib file if we build a DLL.
19609 old_archive_From_new_cmds_F77='true'
19610 # FIXME: Should let the user specify the lib program.
19611 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19612 fix_srcfile_path='`cygpath -w "$srcfile"`'
19613 enable_shared_with_static_runtimes_F77=yes
19614 ;;
19615
19616 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019617 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019618 rhapsody* | darwin1.[012])
19619 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19620 ;;
19621 *) # Darwin 1.3 on
19622 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19623 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19624 else
19625 case ${MACOSX_DEPLOYMENT_TARGET} in
19626 10.[012])
19627 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19628 ;;
19629 10.*)
19630 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19631 ;;
19632 esac
19633 fi
19634 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019635 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019636 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019637 hardcode_direct_F77=no
19638 hardcode_automatic_F77=yes
19639 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019640 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019641 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019642 if test "$GCC" = yes ; then
19643 output_verbose_link_cmd='echo'
19644 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19645 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19646 # 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 +000019647 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}'
19648 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 +000019649 else
19650 case "$cc_basename" in
19651 xlc*)
19652 output_verbose_link_cmd='echo'
19653 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19654 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19655 # 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 +000019656 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}'
19657 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 +000019658 ;;
19659 *)
19660 ld_shlibs_F77=no
19661 ;;
19662 esac
John Criswell47fdd832003-07-14 16:52:07 +000019663 fi
19664 ;;
19665
19666 dgux*)
19667 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19668 hardcode_libdir_flag_spec_F77='-L$libdir'
19669 hardcode_shlibpath_var_F77=no
19670 ;;
19671
19672 freebsd1*)
19673 ld_shlibs_F77=no
19674 ;;
19675
19676 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19677 # support. Future versions do this automatically, but an explicit c++rt0.o
19678 # does not break anything, and helps significantly (at the cost of a little
19679 # extra space).
19680 freebsd2.2*)
19681 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19682 hardcode_libdir_flag_spec_F77='-R$libdir'
19683 hardcode_direct_F77=yes
19684 hardcode_shlibpath_var_F77=no
19685 ;;
19686
19687 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19688 freebsd2*)
19689 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19690 hardcode_direct_F77=yes
19691 hardcode_minus_L_F77=yes
19692 hardcode_shlibpath_var_F77=no
19693 ;;
19694
19695 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019696 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019697 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19698 hardcode_libdir_flag_spec_F77='-R$libdir'
19699 hardcode_direct_F77=yes
19700 hardcode_shlibpath_var_F77=no
19701 ;;
19702
19703 hpux9*)
19704 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019705 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 +000019706 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019707 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 +000019708 fi
19709 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19710 hardcode_libdir_separator_F77=:
19711 hardcode_direct_F77=yes
19712
19713 # hardcode_minus_L: Not really in the search PATH,
19714 # but as the default location of the library.
19715 hardcode_minus_L_F77=yes
19716 export_dynamic_flag_spec_F77='${wl}-E'
19717 ;;
19718
19719 hpux10* | hpux11*)
19720 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19721 case "$host_cpu" in
19722 hppa*64*|ia64*)
19723 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19724 ;;
19725 *)
19726 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19727 ;;
19728 esac
19729 else
19730 case "$host_cpu" in
19731 hppa*64*|ia64*)
19732 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19733 ;;
19734 *)
19735 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19736 ;;
19737 esac
19738 fi
19739 if test "$with_gnu_ld" = no; then
19740 case "$host_cpu" in
19741 hppa*64*)
19742 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19743 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19744 hardcode_libdir_separator_F77=:
19745 hardcode_direct_F77=no
19746 hardcode_shlibpath_var_F77=no
19747 ;;
19748 ia64*)
19749 hardcode_libdir_flag_spec_F77='-L$libdir'
19750 hardcode_direct_F77=no
19751 hardcode_shlibpath_var_F77=no
19752
19753 # hardcode_minus_L: Not really in the search PATH,
19754 # but as the default location of the library.
19755 hardcode_minus_L_F77=yes
19756 ;;
19757 *)
19758 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19759 hardcode_libdir_separator_F77=:
19760 hardcode_direct_F77=yes
19761 export_dynamic_flag_spec_F77='${wl}-E'
19762
19763 # hardcode_minus_L: Not really in the search PATH,
19764 # but as the default location of the library.
19765 hardcode_minus_L_F77=yes
19766 ;;
19767 esac
19768 fi
19769 ;;
19770
19771 irix5* | irix6* | nonstopux*)
19772 if test "$GCC" = yes; then
19773 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'
19774 else
19775 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'
19776 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19777 fi
19778 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19779 hardcode_libdir_separator_F77=:
19780 link_all_deplibs_F77=yes
19781 ;;
19782
19783 netbsd*)
19784 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19785 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19786 else
19787 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19788 fi
19789 hardcode_libdir_flag_spec_F77='-R$libdir'
19790 hardcode_direct_F77=yes
19791 hardcode_shlibpath_var_F77=no
19792 ;;
19793
19794 newsos6)
19795 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19796 hardcode_direct_F77=yes
19797 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19798 hardcode_libdir_separator_F77=:
19799 hardcode_shlibpath_var_F77=no
19800 ;;
19801
19802 openbsd*)
19803 hardcode_direct_F77=yes
19804 hardcode_shlibpath_var_F77=no
19805 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19806 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019807 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 +000019808 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19809 export_dynamic_flag_spec_F77='${wl}-E'
19810 else
19811 case $host_os in
19812 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19813 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19814 hardcode_libdir_flag_spec_F77='-R$libdir'
19815 ;;
19816 *)
19817 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19818 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19819 ;;
19820 esac
19821 fi
19822 ;;
19823
19824 os2*)
19825 hardcode_libdir_flag_spec_F77='-L$libdir'
19826 hardcode_minus_L_F77=yes
19827 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019828 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 +000019829 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19830 ;;
19831
19832 osf3*)
19833 if test "$GCC" = yes; then
19834 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19835 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'
19836 else
19837 allow_undefined_flag_F77=' -expect_unresolved \*'
19838 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'
19839 fi
19840 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19841 hardcode_libdir_separator_F77=:
19842 ;;
19843
19844 osf4* | osf5*) # as osf3* with the addition of -msym flag
19845 if test "$GCC" = yes; then
19846 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19847 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'
19848 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19849 else
19850 allow_undefined_flag_F77=' -expect_unresolved \*'
19851 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 +000019852 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~
19853 $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'
19854
John Criswell47fdd832003-07-14 16:52:07 +000019855 # Both c and cxx compiler support -rpath directly
19856 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19857 fi
19858 hardcode_libdir_separator_F77=:
19859 ;;
19860
19861 sco3.2v5*)
19862 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19863 hardcode_shlibpath_var_F77=no
19864 export_dynamic_flag_spec_F77='${wl}-Bexport'
19865 runpath_var=LD_RUN_PATH
19866 hardcode_runpath_var=yes
19867 ;;
19868
19869 solaris*)
19870 no_undefined_flag_F77=' -z text'
19871 if test "$GCC" = yes; then
19872 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019873 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19874 $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 +000019875 else
19876 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019877 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19878 $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 +000019879 fi
19880 hardcode_libdir_flag_spec_F77='-R$libdir'
19881 hardcode_shlibpath_var_F77=no
19882 case $host_os in
19883 solaris2.[0-5] | solaris2.[0-5].*) ;;
19884 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19885 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19886 esac
19887 link_all_deplibs_F77=yes
19888 ;;
19889
19890 sunos4*)
19891 if test "x$host_vendor" = xsequent; then
19892 # Use $CC to link under sequent, because it throws in some extra .o
19893 # files that make .init and .fini sections work.
19894 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19895 else
19896 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19897 fi
19898 hardcode_libdir_flag_spec_F77='-L$libdir'
19899 hardcode_direct_F77=yes
19900 hardcode_minus_L_F77=yes
19901 hardcode_shlibpath_var_F77=no
19902 ;;
19903
19904 sysv4)
19905 case $host_vendor in
19906 sni)
19907 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19908 hardcode_direct_F77=yes # is this really true???
19909 ;;
19910 siemens)
19911 ## LD is ld it makes a PLAMLIB
19912 ## CC just makes a GrossModule.
19913 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19914 reload_cmds_F77='$CC -r -o $output$reload_objs'
19915 hardcode_direct_F77=no
19916 ;;
19917 motorola)
19918 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19919 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19920 ;;
19921 esac
19922 runpath_var='LD_RUN_PATH'
19923 hardcode_shlibpath_var_F77=no
19924 ;;
19925
19926 sysv4.3*)
19927 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19928 hardcode_shlibpath_var_F77=no
19929 export_dynamic_flag_spec_F77='-Bexport'
19930 ;;
19931
19932 sysv4*MP*)
19933 if test -d /usr/nec; then
19934 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19935 hardcode_shlibpath_var_F77=no
19936 runpath_var=LD_RUN_PATH
19937 hardcode_runpath_var=yes
19938 ld_shlibs_F77=yes
19939 fi
19940 ;;
19941
19942 sysv4.2uw2*)
19943 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19944 hardcode_direct_F77=yes
19945 hardcode_minus_L_F77=no
19946 hardcode_shlibpath_var_F77=no
19947 hardcode_runpath_var=yes
19948 runpath_var=LD_RUN_PATH
19949 ;;
19950
19951 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19952 no_undefined_flag_F77='${wl}-z ${wl}text'
19953 if test "$GCC" = yes; then
19954 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19955 else
19956 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19957 fi
19958 runpath_var='LD_RUN_PATH'
19959 hardcode_shlibpath_var_F77=no
19960 ;;
19961
19962 sysv5*)
19963 no_undefined_flag_F77=' -z text'
19964 # $CC -shared without GNU ld will not create a library from C++
19965 # object files and a static libstdc++, better avoid it by now
19966 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019967 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19968 $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 +000019969 hardcode_libdir_flag_spec_F77=
19970 hardcode_shlibpath_var_F77=no
19971 runpath_var='LD_RUN_PATH'
19972 ;;
19973
19974 uts4*)
19975 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19976 hardcode_libdir_flag_spec_F77='-L$libdir'
19977 hardcode_shlibpath_var_F77=no
19978 ;;
19979
19980 *)
19981 ld_shlibs_F77=no
19982 ;;
19983 esac
19984 fi
19985
19986echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19987echo "${ECHO_T}$ld_shlibs_F77" >&6
19988test "$ld_shlibs_F77" = no && can_build_shared=no
19989
19990variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19991if test "$GCC" = yes; then
19992 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19993fi
19994
19995#
19996# Do we need to explicitly link libc?
19997#
19998case "x$archive_cmds_need_lc_F77" in
19999x|xyes)
20000 # Assume -lc should be added
20001 archive_cmds_need_lc_F77=yes
20002
20003 if test "$enable_shared" = yes && test "$GCC" = yes; then
20004 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000020005 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000020006 # FIXME: we may have to deal with multi-command sequences.
20007 ;;
20008 '$CC '*)
20009 # Test whether the compiler implicitly links with -lc since on some
20010 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20011 # to ld, don't add -lc before -lgcc.
20012 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20013echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20014 $rm conftest*
20015 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20016
20017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20018 (eval $ac_compile) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } 2>conftest.err; then
20022 soname=conftest
20023 lib=conftest
20024 libobjs=conftest.$ac_objext
20025 deplibs=
20026 wl=$lt_prog_compiler_wl_F77
20027 compiler_flags=-v
20028 linker_flags=-v
20029 verstring=
20030 output_objdir=.
20031 libname=conftest
20032 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
20033 allow_undefined_flag_F77=
20034 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20035 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }
20039 then
20040 archive_cmds_need_lc_F77=no
20041 else
20042 archive_cmds_need_lc_F77=yes
20043 fi
20044 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
20045 else
20046 cat conftest.err 1>&5
20047 fi
20048 $rm conftest*
20049 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20050echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20051 ;;
20052 esac
20053 fi
20054 ;;
20055esac
20056
John Criswell47fdd832003-07-14 16:52:07 +000020057echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20058echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20059library_names_spec=
20060libname_spec='lib$name'
20061soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000020062shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000020063postinstall_cmds=
20064postuninstall_cmds=
20065finish_cmds=
20066finish_eval=
20067shlibpath_var=
20068shlibpath_overrides_runpath=unknown
20069version_type=none
20070dynamic_linker="$host_os ld.so"
20071sys_lib_dlsearch_path_spec="/lib /usr/lib"
20072if test "$GCC" = yes; then
20073 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20074 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20075 # if the path contains ";" then we assume it to be the separator
20076 # otherwise default to the standard path separator (i.e. ":") - it is
20077 # assumed that no part of a normal pathname contains ";" but that should
20078 # okay in the real world where ";" in dirpaths is itself problematic.
20079 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20080 else
20081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20082 fi
20083else
20084 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20085fi
20086need_lib_prefix=unknown
20087hardcode_into_libs=no
20088
20089# when you set need_version to no, make sure it does not cause -set_version
20090# flags to be left without arguments
20091need_version=unknown
20092
20093case $host_os in
20094aix3*)
20095 version_type=linux
20096 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20097 shlibpath_var=LIBPATH
20098
20099 # AIX 3 has no versioning support, so we append a major version to the name.
20100 soname_spec='${libname}${release}${shared_ext}$major'
20101 ;;
20102
20103aix4* | aix5*)
20104 version_type=linux
20105 need_lib_prefix=no
20106 need_version=no
20107 hardcode_into_libs=yes
20108 if test "$host_cpu" = ia64; then
20109 # AIX 5 supports IA64
20110 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20111 shlibpath_var=LD_LIBRARY_PATH
20112 else
20113 # With GCC up to 2.95.x, collect2 would create an import file
20114 # for dependence libraries. The import file would start with
20115 # the line `#! .'. This would cause the generated library to
20116 # depend on `.', always an invalid library. This was fixed in
20117 # development snapshots of GCC prior to 3.0.
20118 case $host_os in
20119 aix4 | aix4.[01] | aix4.[01].*)
20120 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20121 echo ' yes '
20122 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20123 :
20124 else
20125 can_build_shared=no
20126 fi
20127 ;;
20128 esac
20129 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20130 # soname into executable. Probably we can add versioning support to
20131 # collect2, so additional links can be useful in future.
20132 if test "$aix_use_runtimelinking" = yes; then
20133 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20134 # instead of lib<name>.a to let people know that these are not
20135 # typical AIX shared libraries.
20136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20137 else
20138 # We preserve .a as extension for shared libraries through AIX4.2
20139 # and later when we are not doing run time linking.
20140 library_names_spec='${libname}${release}.a $libname.a'
20141 soname_spec='${libname}${release}${shared_ext}$major'
20142 fi
20143 shlibpath_var=LIBPATH
20144 fi
20145 ;;
20146
20147amigaos*)
20148 library_names_spec='$libname.ixlibrary $libname.a'
20149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020150 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 +000020151 ;;
20152
20153beos*)
20154 library_names_spec='${libname}${shared_ext}'
20155 dynamic_linker="$host_os ld.so"
20156 shlibpath_var=LIBRARY_PATH
20157 ;;
20158
Reid Spencer2706f8c2004-09-19 23:53:36 +000020159bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000020160 version_type=linux
20161 need_version=no
20162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20163 soname_spec='${libname}${release}${shared_ext}$major'
20164 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20165 shlibpath_var=LD_LIBRARY_PATH
20166 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20167 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20168 # the default ld.so.conf also contains /usr/contrib/lib and
20169 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20170 # libtool to hard-code these into programs
20171 ;;
20172
20173cygwin* | mingw* | pw32*)
20174 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000020175 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020176 need_version=no
20177 need_lib_prefix=no
20178
20179 case $GCC,$host_os in
20180 yes,cygwin* | yes,mingw* | yes,pw32*)
20181 library_names_spec='$libname.dll.a'
20182 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000020183 postinstall_cmds='base_file=`basename \${file}`~
20184 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20185 dldir=$destdir/`dirname \$dlpath`~
20186 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000020187 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000020188 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20189 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000020190 $rm \$dlpath'
20191 shlibpath_overrides_runpath=yes
20192
20193 case $host_os in
20194 cygwin*)
20195 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20196 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 +000020197 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000020198 ;;
20199 mingw*)
20200 # MinGW DLLs use traditional 'lib' prefix
20201 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20202 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20203 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20204 # It is most probably a Windows format PATH printed by
20205 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20206 # path with ; separators, and with drive letters. We can handle the
20207 # drive letters (cygwin fileutils understands them), so leave them,
20208 # especially as we might pass files found there to a mingw objdump,
20209 # which wouldn't understand a cygwinified path. Ahh.
20210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20211 else
20212 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20213 fi
20214 ;;
20215 pw32*)
20216 # pw32 DLLs use 'pw' prefix rather than 'lib'
20217 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20218 ;;
20219 esac
20220 ;;
20221
20222 *)
20223 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20224 ;;
20225 esac
20226 dynamic_linker='Win32 ld.exe'
20227 # FIXME: first we should search . and the directory the executable is in
20228 shlibpath_var=PATH
20229 ;;
20230
20231darwin* | rhapsody*)
20232 dynamic_linker="$host_os dyld"
20233 version_type=darwin
20234 need_lib_prefix=no
20235 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000020236 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000020237 soname_spec='${libname}${release}${major}$shared_ext'
20238 shlibpath_overrides_runpath=yes
20239 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000020240 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000020241 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020242 if test "$GCC" = yes; then
20243 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"`
20244 else
20245 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000020246 fi
20247 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20248 ;;
20249
20250dgux*)
20251 version_type=linux
20252 need_lib_prefix=no
20253 need_version=no
20254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20255 soname_spec='${libname}${release}${shared_ext}$major'
20256 shlibpath_var=LD_LIBRARY_PATH
20257 ;;
20258
20259freebsd1*)
20260 dynamic_linker=no
20261 ;;
20262
Reid Spencer2706f8c2004-09-19 23:53:36 +000020263kfreebsd*-gnu)
20264 version_type=linux
20265 need_lib_prefix=no
20266 need_version=no
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20268 soname_spec='${libname}${release}${shared_ext}$major'
20269 shlibpath_var=LD_LIBRARY_PATH
20270 shlibpath_overrides_runpath=no
20271 hardcode_into_libs=yes
20272 dynamic_linker='GNU ld.so'
20273 ;;
20274
John Criswell47fdd832003-07-14 16:52:07 +000020275freebsd*)
20276 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20277 version_type=freebsd-$objformat
20278 case $version_type in
20279 freebsd-elf*)
20280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20281 need_version=no
20282 need_lib_prefix=no
20283 ;;
20284 freebsd-*)
20285 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20286 need_version=yes
20287 ;;
20288 esac
20289 shlibpath_var=LD_LIBRARY_PATH
20290 case $host_os in
20291 freebsd2*)
20292 shlibpath_overrides_runpath=yes
20293 ;;
20294 freebsd3.01* | freebsdelf3.01*)
20295 shlibpath_overrides_runpath=yes
20296 hardcode_into_libs=yes
20297 ;;
20298 *) # from 3.2 on
20299 shlibpath_overrides_runpath=no
20300 hardcode_into_libs=yes
20301 ;;
20302 esac
20303 ;;
20304
20305gnu*)
20306 version_type=linux
20307 need_lib_prefix=no
20308 need_version=no
20309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20310 soname_spec='${libname}${release}${shared_ext}$major'
20311 shlibpath_var=LD_LIBRARY_PATH
20312 hardcode_into_libs=yes
20313 ;;
20314
20315hpux9* | hpux10* | hpux11*)
20316 # Give a soname corresponding to the major version so that dld.sl refuses to
20317 # link against other versions.
20318 version_type=sunos
20319 need_lib_prefix=no
20320 need_version=no
20321 case "$host_cpu" in
20322 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020323 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020324 hardcode_into_libs=yes
20325 dynamic_linker="$host_os dld.so"
20326 shlibpath_var=LD_LIBRARY_PATH
20327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20329 soname_spec='${libname}${release}${shared_ext}$major'
20330 if test "X$HPUX_IA64_MODE" = X32; then
20331 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20332 else
20333 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20334 fi
20335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20336 ;;
20337 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020338 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020339 hardcode_into_libs=yes
20340 dynamic_linker="$host_os dld.sl"
20341 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20347 ;;
20348 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020349 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020350 dynamic_linker="$host_os dld.sl"
20351 shlibpath_var=SHLIB_PATH
20352 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20354 soname_spec='${libname}${release}${shared_ext}$major'
20355 ;;
20356 esac
20357 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20358 postinstall_cmds='chmod 555 $lib'
20359 ;;
20360
20361irix5* | irix6* | nonstopux*)
20362 case $host_os in
20363 nonstopux*) version_type=nonstopux ;;
20364 *)
20365 if test "$lt_cv_prog_gnu_ld" = yes; then
20366 version_type=linux
20367 else
20368 version_type=irix
20369 fi ;;
20370 esac
20371 need_lib_prefix=no
20372 need_version=no
20373 soname_spec='${libname}${release}${shared_ext}$major'
20374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20375 case $host_os in
20376 irix5* | nonstopux*)
20377 libsuff= shlibsuff=
20378 ;;
20379 *)
20380 case $LD in # libtool.m4 will add one of these switches to LD
20381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20382 libsuff= shlibsuff= libmagic=32-bit;;
20383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20384 libsuff=32 shlibsuff=N32 libmagic=N32;;
20385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20387 *) libsuff= shlibsuff= libmagic=never-match;;
20388 esac
20389 ;;
20390 esac
20391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20392 shlibpath_overrides_runpath=no
20393 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20394 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20395 hardcode_into_libs=yes
20396 ;;
20397
20398# No shared lib support for Linux oldld, aout, or coff.
20399linux*oldld* | linux*aout* | linux*coff*)
20400 dynamic_linker=no
20401 ;;
20402
20403# This must be Linux ELF.
20404linux*)
20405 version_type=linux
20406 need_lib_prefix=no
20407 need_version=no
20408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20409 soname_spec='${libname}${release}${shared_ext}$major'
20410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 shlibpath_overrides_runpath=no
20413 # This implies no fast_install, which is unacceptable.
20414 # Some rework will be needed to allow for fast_install
20415 # before this can be enabled.
20416 hardcode_into_libs=yes
20417
Reid Spencer2706f8c2004-09-19 23:53:36 +000020418 # Append ld.so.conf contents to the search path
20419 if test -f /etc/ld.so.conf; then
20420 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20421 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20422 fi
20423
John Criswell47fdd832003-07-14 16:52:07 +000020424 # We used to test for /lib/ld.so.1 and disable shared libraries on
20425 # powerpc, because MkLinux only supported shared libraries with the
20426 # GNU dynamic linker. Since this was broken with cross compilers,
20427 # most powerpc-linux boxes support dynamic linking these days and
20428 # people can always --disable-shared, the test was removed, and we
20429 # assume the GNU/Linux dynamic linker is in use.
20430 dynamic_linker='GNU/Linux ld.so'
20431 ;;
20432
Reid Spencer2706f8c2004-09-19 23:53:36 +000020433knetbsd*-gnu)
20434 version_type=linux
20435 need_lib_prefix=no
20436 need_version=no
20437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20438 soname_spec='${libname}${release}${shared_ext}$major'
20439 shlibpath_var=LD_LIBRARY_PATH
20440 shlibpath_overrides_runpath=no
20441 hardcode_into_libs=yes
20442 dynamic_linker='GNU ld.so'
20443 ;;
20444
John Criswell47fdd832003-07-14 16:52:07 +000020445netbsd*)
20446 version_type=sunos
20447 need_lib_prefix=no
20448 need_version=no
20449 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20451 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20452 dynamic_linker='NetBSD (a.out) ld.so'
20453 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020455 soname_spec='${libname}${release}${shared_ext}$major'
20456 dynamic_linker='NetBSD ld.elf_so'
20457 fi
20458 shlibpath_var=LD_LIBRARY_PATH
20459 shlibpath_overrides_runpath=yes
20460 hardcode_into_libs=yes
20461 ;;
20462
20463newsos6)
20464 version_type=linux
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20466 shlibpath_var=LD_LIBRARY_PATH
20467 shlibpath_overrides_runpath=yes
20468 ;;
20469
Reid Spencer2706f8c2004-09-19 23:53:36 +000020470nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020471 version_type=linux
20472 need_lib_prefix=no
20473 need_version=no
20474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20475 soname_spec='${libname}${release}${shared_ext}$major'
20476 shlibpath_var=LD_LIBRARY_PATH
20477 shlibpath_overrides_runpath=yes
20478 ;;
20479
20480openbsd*)
20481 version_type=sunos
20482 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020483 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20486 shlibpath_var=LD_LIBRARY_PATH
20487 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20488 case $host_os in
20489 openbsd2.[89] | openbsd2.[89].*)
20490 shlibpath_overrides_runpath=no
20491 ;;
20492 *)
20493 shlibpath_overrides_runpath=yes
20494 ;;
20495 esac
20496 else
20497 shlibpath_overrides_runpath=yes
20498 fi
20499 ;;
20500
20501os2*)
20502 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020503 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020504 need_lib_prefix=no
20505 library_names_spec='$libname${shared_ext} $libname.a'
20506 dynamic_linker='OS/2 ld.exe'
20507 shlibpath_var=LIBPATH
20508 ;;
20509
20510osf3* | osf4* | osf5*)
20511 version_type=osf
20512 need_lib_prefix=no
20513 need_version=no
20514 soname_spec='${libname}${release}${shared_ext}$major'
20515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20516 shlibpath_var=LD_LIBRARY_PATH
20517 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20518 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20519 ;;
20520
20521sco3.2v5*)
20522 version_type=osf
20523 soname_spec='${libname}${release}${shared_ext}$major'
20524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20525 shlibpath_var=LD_LIBRARY_PATH
20526 ;;
20527
20528solaris*)
20529 version_type=linux
20530 need_lib_prefix=no
20531 need_version=no
20532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20533 soname_spec='${libname}${release}${shared_ext}$major'
20534 shlibpath_var=LD_LIBRARY_PATH
20535 shlibpath_overrides_runpath=yes
20536 hardcode_into_libs=yes
20537 # ldd complains unless libraries are executable
20538 postinstall_cmds='chmod +x $lib'
20539 ;;
20540
20541sunos4*)
20542 version_type=sunos
20543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20544 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20545 shlibpath_var=LD_LIBRARY_PATH
20546 shlibpath_overrides_runpath=yes
20547 if test "$with_gnu_ld" = yes; then
20548 need_lib_prefix=no
20549 fi
20550 need_version=yes
20551 ;;
20552
20553sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20554 version_type=linux
20555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20556 soname_spec='${libname}${release}${shared_ext}$major'
20557 shlibpath_var=LD_LIBRARY_PATH
20558 case $host_vendor in
20559 sni)
20560 shlibpath_overrides_runpath=no
20561 need_lib_prefix=no
20562 export_dynamic_flag_spec='${wl}-Blargedynsym'
20563 runpath_var=LD_RUN_PATH
20564 ;;
20565 siemens)
20566 need_lib_prefix=no
20567 ;;
20568 motorola)
20569 need_lib_prefix=no
20570 need_version=no
20571 shlibpath_overrides_runpath=no
20572 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20573 ;;
20574 esac
20575 ;;
20576
20577sysv4*MP*)
20578 if test -d /usr/nec ;then
20579 version_type=linux
20580 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20581 soname_spec='$libname${shared_ext}.$major'
20582 shlibpath_var=LD_LIBRARY_PATH
20583 fi
20584 ;;
20585
20586uts4*)
20587 version_type=linux
20588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20589 soname_spec='${libname}${release}${shared_ext}$major'
20590 shlibpath_var=LD_LIBRARY_PATH
20591 ;;
20592
20593*)
20594 dynamic_linker=no
20595 ;;
20596esac
20597echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20598echo "${ECHO_T}$dynamic_linker" >&6
20599test "$dynamic_linker" = no && can_build_shared=no
20600
Reid Spencer2706f8c2004-09-19 23:53:36 +000020601echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20602echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20603hardcode_action_F77=
20604if test -n "$hardcode_libdir_flag_spec_F77" || \
20605 test -n "$runpath_var_F77" || \
20606 test "X$hardcode_automatic_F77" = "Xyes" ; then
20607
20608 # We can hardcode non-existant directories.
20609 if test "$hardcode_direct_F77" != no &&
20610 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20611 # have to relink, otherwise we might link with an installed library
20612 # when we should be linking with a yet-to-be-installed one
20613 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20614 test "$hardcode_minus_L_F77" != no; then
20615 # Linking always hardcodes the temporary library directory.
20616 hardcode_action_F77=relink
20617 else
20618 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20619 hardcode_action_F77=immediate
20620 fi
20621else
20622 # We cannot hardcode anything, or else we can only hardcode existing
20623 # directories.
20624 hardcode_action_F77=unsupported
20625fi
20626echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20627echo "${ECHO_T}$hardcode_action_F77" >&6
20628
20629if test "$hardcode_action_F77" = relink; then
20630 # Fast installation is not supported
20631 enable_fast_install=no
20632elif test "$shlibpath_overrides_runpath" = yes ||
20633 test "$enable_shared" = no; then
20634 # Fast installation is not necessary
20635 enable_fast_install=needless
20636fi
20637
20638striplib=
20639old_striplib=
20640echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20641echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20642if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20643 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20644 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20645 echo "$as_me:$LINENO: result: yes" >&5
20646echo "${ECHO_T}yes" >&6
20647else
20648# FIXME - insert some real tests, host_os isn't really good enough
20649 case $host_os in
20650 darwin*)
20651 if test -n "$STRIP" ; then
20652 striplib="$STRIP -x"
20653 echo "$as_me:$LINENO: result: yes" >&5
20654echo "${ECHO_T}yes" >&6
20655 else
20656 echo "$as_me:$LINENO: result: no" >&5
20657echo "${ECHO_T}no" >&6
20658fi
20659 ;;
20660 *)
20661 echo "$as_me:$LINENO: result: no" >&5
20662echo "${ECHO_T}no" >&6
20663 ;;
20664 esac
20665fi
20666
20667
John Criswell47fdd832003-07-14 16:52:07 +000020668
20669# The else clause should only fire when bootstrapping the
20670# libtool distribution, otherwise you forgot to ship ltmain.sh
20671# with your package, and you will get complaints that there are
20672# no rules to generate ltmain.sh.
20673if test -f "$ltmain"; then
20674 # See if we are running on zsh, and set the options which allow our commands through
20675 # without removal of \ escapes.
20676 if test -n "${ZSH_VERSION+set}" ; then
20677 setopt NO_GLOB_SUBST
20678 fi
20679 # Now quote all the things that may contain metacharacters while being
20680 # careful not to overquote the AC_SUBSTed values. We take copies of the
20681 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020682 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20683 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020684 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20685 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20686 deplibs_check_method reload_flag reload_cmds need_locks \
20687 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20688 lt_cv_sys_global_symbol_to_c_name_address \
20689 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20690 old_postinstall_cmds old_postuninstall_cmds \
20691 compiler_F77 \
20692 CC_F77 \
20693 LD_F77 \
20694 lt_prog_compiler_wl_F77 \
20695 lt_prog_compiler_pic_F77 \
20696 lt_prog_compiler_static_F77 \
20697 lt_prog_compiler_no_builtin_flag_F77 \
20698 export_dynamic_flag_spec_F77 \
20699 thread_safe_flag_spec_F77 \
20700 whole_archive_flag_spec_F77 \
20701 enable_shared_with_static_runtimes_F77 \
20702 old_archive_cmds_F77 \
20703 old_archive_from_new_cmds_F77 \
20704 predep_objects_F77 \
20705 postdep_objects_F77 \
20706 predeps_F77 \
20707 postdeps_F77 \
20708 compiler_lib_search_path_F77 \
20709 archive_cmds_F77 \
20710 archive_expsym_cmds_F77 \
20711 postinstall_cmds_F77 \
20712 postuninstall_cmds_F77 \
20713 old_archive_from_expsyms_cmds_F77 \
20714 allow_undefined_flag_F77 \
20715 no_undefined_flag_F77 \
20716 export_symbols_cmds_F77 \
20717 hardcode_libdir_flag_spec_F77 \
20718 hardcode_libdir_flag_spec_ld_F77 \
20719 hardcode_libdir_separator_F77 \
20720 hardcode_automatic_F77 \
20721 module_cmds_F77 \
20722 module_expsym_cmds_F77 \
20723 lt_cv_prog_compiler_c_o_F77 \
20724 exclude_expsyms_F77 \
20725 include_expsyms_F77; do
20726
20727 case $var in
20728 old_archive_cmds_F77 | \
20729 old_archive_from_new_cmds_F77 | \
20730 archive_cmds_F77 | \
20731 archive_expsym_cmds_F77 | \
20732 module_cmds_F77 | \
20733 module_expsym_cmds_F77 | \
20734 old_archive_from_expsyms_cmds_F77 | \
20735 export_symbols_cmds_F77 | \
20736 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20737 postinstall_cmds | postuninstall_cmds | \
20738 old_postinstall_cmds | old_postuninstall_cmds | \
20739 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20740 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020741 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 +000020742 ;;
20743 *)
20744 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20745 ;;
20746 esac
20747 done
20748
20749 case $lt_echo in
20750 *'\$0 --fallback-echo"')
20751 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20752 ;;
20753 esac
20754
20755cfgfile="$ofile"
20756
20757 cat <<__EOF__ >> "$cfgfile"
20758# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20759
20760# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20761
20762# Shell to use when invoking shell scripts.
20763SHELL=$lt_SHELL
20764
20765# Whether or not to build shared libraries.
20766build_libtool_libs=$enable_shared
20767
20768# Whether or not to build static libraries.
20769build_old_libs=$enable_static
20770
20771# Whether or not to add -lc for building shared libraries.
20772build_libtool_need_lc=$archive_cmds_need_lc_F77
20773
20774# Whether or not to disallow shared libs when runtime libs are static
20775allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20776
20777# Whether or not to optimize for fast installation.
20778fast_install=$enable_fast_install
20779
20780# The host system.
20781host_alias=$host_alias
20782host=$host
20783
20784# An echo program that does not interpret backslashes.
20785echo=$lt_echo
20786
20787# The archiver.
20788AR=$lt_AR
20789AR_FLAGS=$lt_AR_FLAGS
20790
20791# A C compiler.
20792LTCC=$lt_LTCC
20793
20794# A language-specific compiler.
20795CC=$lt_compiler_F77
20796
20797# Is the compiler the GNU C compiler?
20798with_gcc=$GCC_F77
20799
20800# An ERE matcher.
20801EGREP=$lt_EGREP
20802
20803# The linker used to build libraries.
20804LD=$lt_LD_F77
20805
20806# Whether we need hard or soft links.
20807LN_S=$lt_LN_S
20808
20809# A BSD-compatible nm program.
20810NM=$lt_NM
20811
20812# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020813STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020814
20815# Used to examine libraries when file_magic_cmd begins "file"
20816MAGIC_CMD=$MAGIC_CMD
20817
20818# Used on cygwin: DLL creation program.
20819DLLTOOL="$DLLTOOL"
20820
20821# Used on cygwin: object dumper.
20822OBJDUMP="$OBJDUMP"
20823
20824# Used on cygwin: assembler.
20825AS="$AS"
20826
20827# The name of the directory that contains temporary libtool files.
20828objdir=$objdir
20829
20830# How to create reloadable object files.
20831reload_flag=$lt_reload_flag
20832reload_cmds=$lt_reload_cmds
20833
20834# How to pass a linker flag through the compiler.
20835wl=$lt_lt_prog_compiler_wl_F77
20836
20837# Object file suffix (normally "o").
20838objext="$ac_objext"
20839
20840# Old archive suffix (normally "a").
20841libext="$libext"
20842
20843# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020844shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020845
20846# Executable file suffix (normally "").
20847exeext="$exeext"
20848
20849# Additional compiler flags for building library objects.
20850pic_flag=$lt_lt_prog_compiler_pic_F77
20851pic_mode=$pic_mode
20852
20853# What is the maximum length of a command?
20854max_cmd_len=$lt_cv_sys_max_cmd_len
20855
20856# Does compiler simultaneously support -c and -o options?
20857compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20858
20859# Must we lock files when doing compilation ?
20860need_locks=$lt_need_locks
20861
20862# Do we need the lib prefix for modules?
20863need_lib_prefix=$need_lib_prefix
20864
20865# Do we need a version for libraries?
20866need_version=$need_version
20867
20868# Whether dlopen is supported.
20869dlopen_support=$enable_dlopen
20870
20871# Whether dlopen of programs is supported.
20872dlopen_self=$enable_dlopen_self
20873
20874# Whether dlopen of statically linked programs is supported.
20875dlopen_self_static=$enable_dlopen_self_static
20876
20877# Compiler flag to prevent dynamic linking.
20878link_static_flag=$lt_lt_prog_compiler_static_F77
20879
20880# Compiler flag to turn off builtin functions.
20881no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20882
20883# Compiler flag to allow reflexive dlopens.
20884export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20885
20886# Compiler flag to generate shared objects directly from archives.
20887whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20888
20889# Compiler flag to generate thread-safe objects.
20890thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20891
20892# Library versioning type.
20893version_type=$version_type
20894
20895# Format of library name prefix.
20896libname_spec=$lt_libname_spec
20897
20898# List of archive names. First name is the real one, the rest are links.
20899# The last name is the one that the linker finds with -lNAME.
20900library_names_spec=$lt_library_names_spec
20901
20902# The coded name of the library, if different from the real name.
20903soname_spec=$lt_soname_spec
20904
20905# Commands used to build and install an old-style archive.
20906RANLIB=$lt_RANLIB
20907old_archive_cmds=$lt_old_archive_cmds_F77
20908old_postinstall_cmds=$lt_old_postinstall_cmds
20909old_postuninstall_cmds=$lt_old_postuninstall_cmds
20910
20911# Create an old-style archive from a shared archive.
20912old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20913
20914# Create a temporary old-style archive to link instead of a shared archive.
20915old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20916
20917# Commands used to build and install a shared archive.
20918archive_cmds=$lt_archive_cmds_F77
20919archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20920postinstall_cmds=$lt_postinstall_cmds
20921postuninstall_cmds=$lt_postuninstall_cmds
20922
20923# Commands used to build a loadable module (assumed same as above if empty)
20924module_cmds=$lt_module_cmds_F77
20925module_expsym_cmds=$lt_module_expsym_cmds_F77
20926
20927# Commands to strip libraries.
20928old_striplib=$lt_old_striplib
20929striplib=$lt_striplib
20930
20931# Dependencies to place before the objects being linked to create a
20932# shared library.
20933predep_objects=$lt_predep_objects_F77
20934
20935# Dependencies to place after the objects being linked to create a
20936# shared library.
20937postdep_objects=$lt_postdep_objects_F77
20938
20939# Dependencies to place before the objects being linked to create a
20940# shared library.
20941predeps=$lt_predeps_F77
20942
20943# Dependencies to place after the objects being linked to create a
20944# shared library.
20945postdeps=$lt_postdeps_F77
20946
20947# The library search path used internally by the compiler when linking
20948# a shared library.
20949compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20950
20951# Method to check whether dependent libraries are shared objects.
20952deplibs_check_method=$lt_deplibs_check_method
20953
20954# Command to use when deplibs_check_method == file_magic.
20955file_magic_cmd=$lt_file_magic_cmd
20956
20957# Flag that allows shared libraries with undefined symbols to be built.
20958allow_undefined_flag=$lt_allow_undefined_flag_F77
20959
20960# Flag that forces no undefined symbols.
20961no_undefined_flag=$lt_no_undefined_flag_F77
20962
20963# Commands used to finish a libtool library installation in a directory.
20964finish_cmds=$lt_finish_cmds
20965
20966# Same as above, but a single script fragment to be evaled but not shown.
20967finish_eval=$lt_finish_eval
20968
20969# Take the output of nm and produce a listing of raw symbols and C names.
20970global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20971
20972# Transform the output of nm in a proper C declaration
20973global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20974
20975# Transform the output of nm in a C name address pair
20976global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20977
20978# This is the shared library runtime path variable.
20979runpath_var=$runpath_var
20980
20981# This is the shared library path variable.
20982shlibpath_var=$shlibpath_var
20983
20984# Is shlibpath searched before the hard-coded library search path?
20985shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20986
20987# How to hardcode a shared library path into an executable.
20988hardcode_action=$hardcode_action_F77
20989
20990# Whether we should hardcode library paths into libraries.
20991hardcode_into_libs=$hardcode_into_libs
20992
20993# Flag to hardcode \$libdir into a binary during linking.
20994# This must work even if \$libdir does not exist.
20995hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20996
20997# If ld is used when linking, flag to hardcode \$libdir into
20998# a binary during linking. This must work even if \$libdir does
20999# not exist.
21000hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21001
21002# Whether we need a single -rpath flag with a separated argument.
21003hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21004
21005# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21006# resulting binary.
21007hardcode_direct=$hardcode_direct_F77
21008
21009# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21010# resulting binary.
21011hardcode_minus_L=$hardcode_minus_L_F77
21012
21013# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21014# the resulting binary.
21015hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21016
21017# Set to yes if building a shared library automatically hardcodes DIR into the library
21018# and all subsequent libraries and executables linked against it.
21019hardcode_automatic=$hardcode_automatic_F77
21020
21021# Variables whose values should be saved in libtool wrapper scripts and
21022# restored at relink time.
21023variables_saved_for_relink="$variables_saved_for_relink"
21024
21025# Whether libtool must link a program against all its dependency libraries.
21026link_all_deplibs=$link_all_deplibs_F77
21027
21028# Compile-time system search path for libraries
21029sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21030
21031# Run-time system search path for libraries
21032sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21033
21034# Fix the shell variable \$srcfile for the compiler.
21035fix_srcfile_path="$fix_srcfile_path_F77"
21036
21037# Set to yes if exported symbols are required.
21038always_export_symbols=$always_export_symbols_F77
21039
21040# The commands to list exported symbols.
21041export_symbols_cmds=$lt_export_symbols_cmds_F77
21042
21043# The commands to extract the exported symbol list from a shared archive.
21044extract_expsyms_cmds=$lt_extract_expsyms_cmds
21045
21046# Symbols that should not be listed in the preloaded symbols.
21047exclude_expsyms=$lt_exclude_expsyms_F77
21048
21049# Symbols that must always be exported.
21050include_expsyms=$lt_include_expsyms_F77
21051
21052# ### END LIBTOOL TAG CONFIG: $tagname
21053
21054__EOF__
21055
21056
21057else
21058 # If there is no Makefile yet, we rely on a make rule to execute
21059 # `config.status --recheck' to rerun these tests and create the
21060 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021061 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21062 if test -f "$ltmain_in"; then
21063 test -f Makefile && make "$ltmain"
21064 fi
John Criswell47fdd832003-07-14 16:52:07 +000021065fi
21066
21067
21068ac_ext=c
21069ac_cpp='$CPP $CPPFLAGS'
21070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21072ac_compiler_gnu=$ac_cv_c_compiler_gnu
21073
21074CC="$lt_save_CC"
21075
21076 else
21077 tagname=""
21078 fi
21079 ;;
21080
21081 GCJ)
21082 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021083 ac_ext=c
21084ac_cpp='$CPP $CPPFLAGS'
21085ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21086ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21087ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000021088
21089
21090# Source file extension for Java test sources.
21091ac_ext=java
21092
21093# Object file extension for compiled Java test sources.
21094objext=o
21095objext_GCJ=$objext
21096
21097# Code to be used in simple compile tests
21098lt_simple_compile_test_code="class foo {}\n"
21099
21100# Code to be used in simple link tests
21101lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
21102
21103# ltmain only uses $CC for tagged configurations so make sure $CC is set.
21104
21105# If no C compiler was specified, use CC.
21106LTCC=${LTCC-"$CC"}
21107
21108# Allow CC to be a program name with arguments.
21109compiler=$CC
21110
21111
21112# Allow CC to be a program name with arguments.
21113lt_save_CC="$CC"
21114CC=${GCJ-"gcj"}
21115compiler=$CC
21116compiler_GCJ=$CC
21117
21118# GCJ did not exist at the time GCC didn't implicitly link libc in.
21119archive_cmds_need_lc_GCJ=no
21120
John Criswell47fdd832003-07-14 16:52:07 +000021121
21122lt_prog_compiler_no_builtin_flag_GCJ=
21123
21124if test "$GCC" = yes; then
21125 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
21126
Reid Spencer2706f8c2004-09-19 23:53:36 +000021127
21128echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021129echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21130if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21132else
21133 lt_cv_prog_compiler_rtti_exceptions=no
21134 ac_outfile=conftest.$ac_objext
21135 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21136 lt_compiler_flag="-fno-rtti -fno-exceptions"
21137 # Insert the option either (1) after the last *FLAGS variable, or
21138 # (2) before a word containing "conftest.", or (3) at the end.
21139 # Note that $ac_compile itself does not contain backslashes and begins
21140 # with a dollar sign (not a hyphen), so the echo should work correctly.
21141 # The option is referenced via a variable to avoid confusing sed.
21142 lt_compile=`echo "$ac_compile" | $SED \
21143 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21145 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000021146 (eval echo "\"\$as_me:21147: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021147 (eval "$lt_compile" 2>conftest.err)
21148 ac_status=$?
21149 cat conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000021150 echo "$as_me:21151: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021151 if (exit $ac_status) && test -s "$ac_outfile"; then
21152 # The compiler can only warn and ignore the option if not recognized
21153 # So say no if there are warnings
21154 if test ! -s conftest.err; then
21155 lt_cv_prog_compiler_rtti_exceptions=yes
21156 fi
21157 fi
21158 $rm conftest*
21159
21160fi
21161echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21162echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21163
21164if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
21165 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21166else
21167 :
21168fi
21169
21170fi
21171
21172lt_prog_compiler_wl_GCJ=
21173lt_prog_compiler_pic_GCJ=
21174lt_prog_compiler_static_GCJ=
21175
21176echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21177echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21178
21179 if test "$GCC" = yes; then
21180 lt_prog_compiler_wl_GCJ='-Wl,'
21181 lt_prog_compiler_static_GCJ='-static'
21182
21183 case $host_os in
21184 aix*)
21185 # All AIX code is PIC.
21186 if test "$host_cpu" = ia64; then
21187 # AIX 5 now supports IA64 processor
21188 lt_prog_compiler_static_GCJ='-Bstatic'
21189 fi
21190 ;;
21191
21192 amigaos*)
21193 # FIXME: we need at least 68020 code to build shared libraries, but
21194 # adding the `-m68020' flag to GCC prevents building anything better,
21195 # like `-m68040'.
21196 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
21197 ;;
21198
21199 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21200 # PIC is the default for these OSes.
21201 ;;
21202
21203 mingw* | pw32* | os2*)
21204 # This hack is so that the source file can tell whether it is being
21205 # built for inclusion in a dll (and should export symbols for example).
21206 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21207 ;;
21208
21209 darwin* | rhapsody*)
21210 # PIC is the default on this platform
21211 # Common symbols not allowed in MH_DYLIB files
21212 lt_prog_compiler_pic_GCJ='-fno-common'
21213 ;;
21214
21215 msdosdjgpp*)
21216 # Just because we use GCC doesn't mean we suddenly get shared libraries
21217 # on systems that don't support them.
21218 lt_prog_compiler_can_build_shared_GCJ=no
21219 enable_shared=no
21220 ;;
21221
21222 sysv4*MP*)
21223 if test -d /usr/nec; then
21224 lt_prog_compiler_pic_GCJ=-Kconform_pic
21225 fi
21226 ;;
21227
21228 hpux*)
21229 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21230 # not for PA HP-UX.
21231 case "$host_cpu" in
21232 hppa*64*|ia64*)
21233 # +Z the default
21234 ;;
21235 *)
21236 lt_prog_compiler_pic_GCJ='-fPIC'
21237 ;;
21238 esac
21239 ;;
21240
21241 *)
21242 lt_prog_compiler_pic_GCJ='-fPIC'
21243 ;;
21244 esac
21245 else
21246 # PORTME Check for flag to pass linker flags through the system compiler.
21247 case $host_os in
21248 aix*)
21249 lt_prog_compiler_wl_GCJ='-Wl,'
21250 if test "$host_cpu" = ia64; then
21251 # AIX 5 now supports IA64 processor
21252 lt_prog_compiler_static_GCJ='-Bstatic'
21253 else
21254 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21255 fi
21256 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021257 darwin*)
21258 # PIC is the default on this platform
21259 # Common symbols not allowed in MH_DYLIB files
21260 case "$cc_basename" in
21261 xlc*)
21262 lt_prog_compiler_pic_GCJ='-qnocommon'
21263 lt_prog_compiler_wl_GCJ='-Wl,'
21264 ;;
21265 esac
21266 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021267
21268 mingw* | pw32* | os2*)
21269 # This hack is so that the source file can tell whether it is being
21270 # built for inclusion in a dll (and should export symbols for example).
21271 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21272 ;;
21273
21274 hpux9* | hpux10* | hpux11*)
21275 lt_prog_compiler_wl_GCJ='-Wl,'
21276 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21277 # not for PA HP-UX.
21278 case "$host_cpu" in
21279 hppa*64*|ia64*)
21280 # +Z the default
21281 ;;
21282 *)
21283 lt_prog_compiler_pic_GCJ='+Z'
21284 ;;
21285 esac
21286 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21287 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21288 ;;
21289
21290 irix5* | irix6* | nonstopux*)
21291 lt_prog_compiler_wl_GCJ='-Wl,'
21292 # PIC (with -KPIC) is the default.
21293 lt_prog_compiler_static_GCJ='-non_shared'
21294 ;;
21295
21296 newsos6)
21297 lt_prog_compiler_pic_GCJ='-KPIC'
21298 lt_prog_compiler_static_GCJ='-Bstatic'
21299 ;;
21300
21301 linux*)
21302 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021303 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021304 lt_prog_compiler_wl_GCJ='-Wl,'
21305 lt_prog_compiler_pic_GCJ='-KPIC'
21306 lt_prog_compiler_static_GCJ='-static'
21307 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021308 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021309 lt_prog_compiler_wl_GCJ='-Wl,'
21310 # All Alpha code is PIC.
21311 lt_prog_compiler_static_GCJ='-non_shared'
21312 ;;
21313 esac
21314 ;;
21315
21316 osf3* | osf4* | osf5*)
21317 lt_prog_compiler_wl_GCJ='-Wl,'
21318 # All OSF/1 code is PIC.
21319 lt_prog_compiler_static_GCJ='-non_shared'
21320 ;;
21321
21322 sco3.2v5*)
21323 lt_prog_compiler_pic_GCJ='-Kpic'
21324 lt_prog_compiler_static_GCJ='-dn'
21325 ;;
21326
21327 solaris*)
21328 lt_prog_compiler_wl_GCJ='-Wl,'
21329 lt_prog_compiler_pic_GCJ='-KPIC'
21330 lt_prog_compiler_static_GCJ='-Bstatic'
21331 ;;
21332
21333 sunos4*)
21334 lt_prog_compiler_wl_GCJ='-Qoption ld '
21335 lt_prog_compiler_pic_GCJ='-PIC'
21336 lt_prog_compiler_static_GCJ='-Bstatic'
21337 ;;
21338
21339 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21340 lt_prog_compiler_wl_GCJ='-Wl,'
21341 lt_prog_compiler_pic_GCJ='-KPIC'
21342 lt_prog_compiler_static_GCJ='-Bstatic'
21343 ;;
21344
21345 sysv4*MP*)
21346 if test -d /usr/nec ;then
21347 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21348 lt_prog_compiler_static_GCJ='-Bstatic'
21349 fi
21350 ;;
21351
21352 uts4*)
21353 lt_prog_compiler_pic_GCJ='-pic'
21354 lt_prog_compiler_static_GCJ='-Bstatic'
21355 ;;
21356
21357 *)
21358 lt_prog_compiler_can_build_shared_GCJ=no
21359 ;;
21360 esac
21361 fi
21362
21363echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21364echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21365
21366#
21367# Check to make sure the PIC flag actually works.
21368#
21369if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021370
21371echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021372echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21373if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21374 echo $ECHO_N "(cached) $ECHO_C" >&6
21375else
21376 lt_prog_compiler_pic_works_GCJ=no
21377 ac_outfile=conftest.$ac_objext
21378 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21379 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21380 # Insert the option either (1) after the last *FLAGS variable, or
21381 # (2) before a word containing "conftest.", or (3) at the end.
21382 # Note that $ac_compile itself does not contain backslashes and begins
21383 # with a dollar sign (not a hyphen), so the echo should work correctly.
21384 # The option is referenced via a variable to avoid confusing sed.
21385 lt_compile=`echo "$ac_compile" | $SED \
21386 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21387 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21388 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000021389 (eval echo "\"\$as_me:21390: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021390 (eval "$lt_compile" 2>conftest.err)
21391 ac_status=$?
21392 cat conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000021393 echo "$as_me:21394: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021394 if (exit $ac_status) && test -s "$ac_outfile"; then
21395 # The compiler can only warn and ignore the option if not recognized
21396 # So say no if there are warnings
21397 if test ! -s conftest.err; then
21398 lt_prog_compiler_pic_works_GCJ=yes
21399 fi
21400 fi
21401 $rm conftest*
21402
21403fi
21404echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21405echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21406
21407if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21408 case $lt_prog_compiler_pic_GCJ in
21409 "" | " "*) ;;
21410 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21411 esac
21412else
21413 lt_prog_compiler_pic_GCJ=
21414 lt_prog_compiler_can_build_shared_GCJ=no
21415fi
21416
21417fi
21418case "$host_os" in
21419 # For platforms which do not support PIC, -DPIC is meaningless:
21420 *djgpp*)
21421 lt_prog_compiler_pic_GCJ=
21422 ;;
21423 *)
21424 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21425 ;;
21426esac
21427
21428echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21429echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21430if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21431 echo $ECHO_N "(cached) $ECHO_C" >&6
21432else
21433 lt_cv_prog_compiler_c_o_GCJ=no
21434 $rm -r conftest 2>/dev/null
21435 mkdir conftest
21436 cd conftest
21437 mkdir out
21438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21439
John Criswell47fdd832003-07-14 16:52:07 +000021440 lt_compiler_flag="-o out/conftest2.$ac_objext"
21441 # Insert the option either (1) after the last *FLAGS variable, or
21442 # (2) before a word containing "conftest.", or (3) at the end.
21443 # Note that $ac_compile itself does not contain backslashes and begins
21444 # with a dollar sign (not a hyphen), so the echo should work correctly.
21445 lt_compile=`echo "$ac_compile" | $SED \
21446 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21448 -e 's:$: $lt_compiler_flag:'`
Reid Spencer6e96d812005-12-21 03:31:53 +000021449 (eval echo "\"\$as_me:21450: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021450 (eval "$lt_compile" 2>out/conftest.err)
21451 ac_status=$?
21452 cat out/conftest.err >&5
Reid Spencer6e96d812005-12-21 03:31:53 +000021453 echo "$as_me:21454: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021454 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21455 then
21456 # The compiler can only warn and ignore the option if not recognized
21457 # So say no if there are warnings
21458 if test ! -s out/conftest.err; then
21459 lt_cv_prog_compiler_c_o_GCJ=yes
21460 fi
21461 fi
21462 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021463 $rm conftest*
21464 # SGI C++ compiler will create directory out/ii_files/ for
21465 # template instantiation
21466 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21467 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021468 cd ..
21469 rmdir conftest
21470 $rm conftest*
21471
21472fi
21473echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21474echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21475
21476
21477hard_links="nottested"
21478if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21479 # do not overwrite the value of need_locks provided by the user
21480 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21481echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21482 hard_links=yes
21483 $rm conftest*
21484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21485 touch conftest.a
21486 ln conftest.a conftest.b 2>&5 || hard_links=no
21487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21488 echo "$as_me:$LINENO: result: $hard_links" >&5
21489echo "${ECHO_T}$hard_links" >&6
21490 if test "$hard_links" = no; then
21491 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21492echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21493 need_locks=warn
21494 fi
21495else
21496 need_locks=no
21497fi
21498
21499echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21500echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21501
21502 runpath_var=
21503 allow_undefined_flag_GCJ=
21504 enable_shared_with_static_runtimes_GCJ=no
21505 archive_cmds_GCJ=
21506 archive_expsym_cmds_GCJ=
21507 old_archive_From_new_cmds_GCJ=
21508 old_archive_from_expsyms_cmds_GCJ=
21509 export_dynamic_flag_spec_GCJ=
21510 whole_archive_flag_spec_GCJ=
21511 thread_safe_flag_spec_GCJ=
21512 hardcode_libdir_flag_spec_GCJ=
21513 hardcode_libdir_flag_spec_ld_GCJ=
21514 hardcode_libdir_separator_GCJ=
21515 hardcode_direct_GCJ=no
21516 hardcode_minus_L_GCJ=no
21517 hardcode_shlibpath_var_GCJ=unsupported
21518 link_all_deplibs_GCJ=unknown
21519 hardcode_automatic_GCJ=no
21520 module_cmds_GCJ=
21521 module_expsym_cmds_GCJ=
21522 always_export_symbols_GCJ=no
21523 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21524 # include_expsyms should be a list of space-separated symbols to be *always*
21525 # included in the symbol list
21526 include_expsyms_GCJ=
21527 # exclude_expsyms can be an extended regexp of symbols to exclude
21528 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21529 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21530 # as well as any symbol that contains `d'.
21531 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21532 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21533 # platforms (ab)use it in PIC code, but their linkers get confused if
21534 # the symbol is explicitly referenced. Since portable code cannot
21535 # rely on this symbol name, it's probably fine to never include it in
21536 # preloaded symbol tables.
21537 extract_expsyms_cmds=
21538
21539 case $host_os in
21540 cygwin* | mingw* | pw32*)
21541 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21542 # When not using gcc, we currently assume that we are using
21543 # Microsoft Visual C++.
21544 if test "$GCC" != yes; then
21545 with_gnu_ld=no
21546 fi
21547 ;;
21548 openbsd*)
21549 with_gnu_ld=no
21550 ;;
21551 esac
21552
21553 ld_shlibs_GCJ=yes
21554 if test "$with_gnu_ld" = yes; then
21555 # If archive_cmds runs LD, not CC, wlarc should be empty
21556 wlarc='${wl}'
21557
21558 # See if GNU ld supports shared libraries.
21559 case $host_os in
21560 aix3* | aix4* | aix5*)
21561 # On AIX/PPC, the GNU linker is very broken
21562 if test "$host_cpu" != ia64; then
21563 ld_shlibs_GCJ=no
21564 cat <<EOF 1>&2
21565
21566*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21567*** to be unable to reliably create shared libraries on AIX.
21568*** Therefore, libtool is disabling shared libraries support. If you
21569*** really care for shared libraries, you may want to modify your PATH
21570*** so that a non-GNU linker is found, and then restart.
21571
21572EOF
21573 fi
21574 ;;
21575
21576 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021577 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 +000021578 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21579 hardcode_minus_L_GCJ=yes
21580
21581 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21582 # that the semantics of dynamic libraries on AmigaOS, at least up
21583 # to version 4, is to share data among multiple programs linked
21584 # with the same dynamic library. Since this doesn't match the
21585 # behavior of shared libraries on other platforms, we can't use
21586 # them.
21587 ld_shlibs_GCJ=no
21588 ;;
21589
21590 beos*)
21591 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21592 allow_undefined_flag_GCJ=unsupported
21593 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21594 # support --undefined. This deserves some investigation. FIXME
21595 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21596 else
21597 ld_shlibs_GCJ=no
21598 fi
21599 ;;
21600
21601 cygwin* | mingw* | pw32*)
21602 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21603 # as there is no search path for DLLs.
21604 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21605 allow_undefined_flag_GCJ=unsupported
21606 always_export_symbols_GCJ=no
21607 enable_shared_with_static_runtimes_GCJ=yes
21608 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21609
21610 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21611 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21612 # If the export-symbols file already is a .def file (1st line
21613 # is EXPORTS), use it as is; otherwise, prepend...
21614 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21615 cp $export_symbols $output_objdir/$soname.def;
21616 else
21617 echo EXPORTS > $output_objdir/$soname.def;
21618 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021619 fi~
21620 $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 +000021621 else
21622 ld_shlibs=no
21623 fi
21624 ;;
21625
21626 netbsd*)
21627 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21628 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21629 wlarc=
21630 else
21631 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21632 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21633 fi
21634 ;;
21635
21636 solaris* | sysv5*)
21637 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21638 ld_shlibs_GCJ=no
21639 cat <<EOF 1>&2
21640
21641*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21642*** create shared libraries on Solaris systems. Therefore, libtool
21643*** is disabling shared libraries support. We urge you to upgrade GNU
21644*** binutils to release 2.9.1 or newer. Another option is to modify
21645*** your PATH or compiler configuration so that the native linker is
21646*** used, and then restart.
21647
21648EOF
21649 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21650 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21651 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21652 else
21653 ld_shlibs_GCJ=no
21654 fi
21655 ;;
21656
21657 sunos4*)
21658 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21659 wlarc=
21660 hardcode_direct_GCJ=yes
21661 hardcode_shlibpath_var_GCJ=no
21662 ;;
21663
Reid Spencer2706f8c2004-09-19 23:53:36 +000021664 linux*)
21665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21666 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21667 archive_cmds_GCJ="$tmp_archive_cmds"
21668 supports_anon_versioning=no
21669 case `$LD -v 2>/dev/null` in
21670 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21671 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21672 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21673 *\ 2.11.*) ;; # other 2.11 versions
21674 *) supports_anon_versioning=yes ;;
21675 esac
21676 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021677 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21678cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21679$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021680 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21681 else
21682 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21683 fi
21684 else
21685 ld_shlibs_GCJ=no
21686 fi
21687 ;;
21688
John Criswell47fdd832003-07-14 16:52:07 +000021689 *)
21690 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21691 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21692 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21693 else
21694 ld_shlibs_GCJ=no
21695 fi
21696 ;;
21697 esac
21698
21699 if test "$ld_shlibs_GCJ" = yes; then
21700 runpath_var=LD_RUN_PATH
21701 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21702 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21703 # ancient GNU ld didn't support --whole-archive et. al.
21704 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21705 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21706 else
21707 whole_archive_flag_spec_GCJ=
21708 fi
21709 fi
21710 else
21711 # PORTME fill in a description of your system's linker (not GNU ld)
21712 case $host_os in
21713 aix3*)
21714 allow_undefined_flag_GCJ=unsupported
21715 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021716 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 +000021717 # Note: this linker hardcodes the directories in LIBPATH if there
21718 # are no directories specified by -L.
21719 hardcode_minus_L_GCJ=yes
21720 if test "$GCC" = yes && test -z "$link_static_flag"; then
21721 # Neither direct hardcoding nor static linking is supported with a
21722 # broken collect2.
21723 hardcode_direct_GCJ=unsupported
21724 fi
21725 ;;
21726
21727 aix4* | aix5*)
21728 if test "$host_cpu" = ia64; then
21729 # On IA64, the linker does run time linking by default, so we don't
21730 # have to do anything special.
21731 aix_use_runtimelinking=no
21732 exp_sym_flag='-Bexport'
21733 no_entry_flag=""
21734 else
21735 # If we're using GNU nm, then we don't want the "-C" option.
21736 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21737 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21738 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'
21739 else
21740 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'
21741 fi
21742 aix_use_runtimelinking=no
21743
21744 # Test if we are trying to use run time linking or normal
21745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21746 # need to do runtime linking.
21747 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21748 for ld_flag in $LDFLAGS; do
21749 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21750 aix_use_runtimelinking=yes
21751 break
21752 fi
21753 done
21754 esac
21755
21756 exp_sym_flag='-bexport'
21757 no_entry_flag='-bnoentry'
21758 fi
21759
21760 # When large executables or shared objects are built, AIX ld can
21761 # have problems creating the table of contents. If linking a library
21762 # or program results in "error TOC overflow" add -mminimal-toc to
21763 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21764 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21765
21766 archive_cmds_GCJ=''
21767 hardcode_direct_GCJ=yes
21768 hardcode_libdir_separator_GCJ=':'
21769 link_all_deplibs_GCJ=yes
21770
21771 if test "$GCC" = yes; then
21772 case $host_os in aix4.012|aix4.012.*)
21773 # We only want to do this on AIX 4.2 and lower, the check
21774 # below for broken collect2 doesn't work under 4.3+
21775 collect2name=`${CC} -print-prog-name=collect2`
21776 if test -f "$collect2name" && \
21777 strings "$collect2name" | grep resolve_lib_name >/dev/null
21778 then
21779 # We have reworked collect2
21780 hardcode_direct_GCJ=yes
21781 else
21782 # We have old collect2
21783 hardcode_direct_GCJ=unsupported
21784 # It fails to find uninstalled libraries when the uninstalled
21785 # path is not listed in the libpath. Setting hardcode_minus_L
21786 # to unsupported forces relinking
21787 hardcode_minus_L_GCJ=yes
21788 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21789 hardcode_libdir_separator_GCJ=
21790 fi
21791 esac
21792 shared_flag='-shared'
21793 else
21794 # not using gcc
21795 if test "$host_cpu" = ia64; then
21796 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21797 # chokes on -Wl,-G. The following line is correct:
21798 shared_flag='-G'
21799 else
21800 if test "$aix_use_runtimelinking" = yes; then
21801 shared_flag='${wl}-G'
21802 else
21803 shared_flag='${wl}-bM:SRE'
21804 fi
21805 fi
21806 fi
21807
21808 # It seems that -bexpall does not export symbols beginning with
21809 # underscore (_), so it is better to generate a list of symbols to export.
21810 always_export_symbols_GCJ=yes
21811 if test "$aix_use_runtimelinking" = yes; then
21812 # Warning - without using the other runtime loading flags (-brtl),
21813 # -berok will link without error, but may produce a broken library.
21814 allow_undefined_flag_GCJ='-berok'
21815 # Determine the default libpath from the value encoded in an empty executable.
21816 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021817/* confdefs.h. */
21818_ACEOF
21819cat confdefs.h >>conftest.$ac_ext
21820cat >>conftest.$ac_ext <<_ACEOF
21821/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021822
John Criswell47fdd832003-07-14 16:52:07 +000021823int
21824main ()
21825{
21826
21827 ;
21828 return 0;
21829}
21830_ACEOF
21831rm -f conftest.$ac_objext conftest$ac_exeext
21832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021833 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021834 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021835 grep -v '^ *+' conftest.er1 >conftest.err
21836 rm -f conftest.er1
21837 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21839 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021840 { ac_try='test -z "$ac_c_werror_flag"
21841 || test ! -s conftest.err'
21842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843 (eval $ac_try) 2>&5
21844 ac_status=$?
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); }; } &&
21847 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849 (eval $ac_try) 2>&5
21850 ac_status=$?
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853
21854aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21855}'`
21856# Check for a 64-bit object if we didn't find anything.
21857if 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; }
21858}'`; fi
21859else
21860 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021861sed 's/^/| /' conftest.$ac_ext >&5
21862
John Criswell47fdd832003-07-14 16:52:07 +000021863fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021864rm -f conftest.err conftest.$ac_objext \
21865 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021866if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21867
21868 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21869 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"
21870 else
21871 if test "$host_cpu" = ia64; then
21872 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21873 allow_undefined_flag_GCJ="-z nodefs"
21874 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"
21875 else
21876 # Determine the default libpath from the value encoded in an empty executable.
21877 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021878/* confdefs.h. */
21879_ACEOF
21880cat confdefs.h >>conftest.$ac_ext
21881cat >>conftest.$ac_ext <<_ACEOF
21882/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021883
John Criswell47fdd832003-07-14 16:52:07 +000021884int
21885main ()
21886{
21887
21888 ;
21889 return 0;
21890}
21891_ACEOF
21892rm -f conftest.$ac_objext conftest$ac_exeext
21893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021894 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021895 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021896 grep -v '^ *+' conftest.er1 >conftest.err
21897 rm -f conftest.er1
21898 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021901 { ac_try='test -z "$ac_c_werror_flag"
21902 || test ! -s conftest.err'
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21905 ac_status=$?
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; } &&
21908 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910 (eval $ac_try) 2>&5
21911 ac_status=$?
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; }; then
21914
21915aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21916}'`
21917# Check for a 64-bit object if we didn't find anything.
21918if 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; }
21919}'`; fi
21920else
21921 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021922sed 's/^/| /' conftest.$ac_ext >&5
21923
John Criswell47fdd832003-07-14 16:52:07 +000021924fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021925rm -f conftest.err conftest.$ac_objext \
21926 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021927if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21928
21929 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21930 # Warning - without using the other run time loading flags,
21931 # -berok will link without error, but may produce a broken library.
21932 no_undefined_flag_GCJ=' ${wl}-bernotok'
21933 allow_undefined_flag_GCJ=' ${wl}-berok'
21934 # -bexpall does not export symbols beginning with underscore (_)
21935 always_export_symbols_GCJ=yes
21936 # Exported symbols can be pulled into shared objects from archives
21937 whole_archive_flag_spec_GCJ=' '
21938 archive_cmds_need_lc_GCJ=yes
21939 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021940 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 +000021941 fi
21942 fi
21943 ;;
21944
21945 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021946 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 +000021947 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21948 hardcode_minus_L_GCJ=yes
21949 # see comment about different semantics on the GNU ld section
21950 ld_shlibs_GCJ=no
21951 ;;
21952
Reid Spencer2706f8c2004-09-19 23:53:36 +000021953 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021954 export_dynamic_flag_spec_GCJ=-rdynamic
21955 ;;
21956
21957 cygwin* | mingw* | pw32*)
21958 # When not using gcc, we currently assume that we are using
21959 # Microsoft Visual C++.
21960 # hardcode_libdir_flag_spec is actually meaningless, as there is
21961 # no search path for DLLs.
21962 hardcode_libdir_flag_spec_GCJ=' '
21963 allow_undefined_flag_GCJ=unsupported
21964 # Tell ltmain to make .lib files, not .a files.
21965 libext=lib
21966 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021967 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021968 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021969 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 +000021970 # The linker will automatically build a .lib file if we build a DLL.
21971 old_archive_From_new_cmds_GCJ='true'
21972 # FIXME: Should let the user specify the lib program.
21973 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21974 fix_srcfile_path='`cygpath -w "$srcfile"`'
21975 enable_shared_with_static_runtimes_GCJ=yes
21976 ;;
21977
21978 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021979 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021980 rhapsody* | darwin1.[012])
21981 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21982 ;;
21983 *) # Darwin 1.3 on
21984 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21985 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21986 else
21987 case ${MACOSX_DEPLOYMENT_TARGET} in
21988 10.[012])
21989 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21990 ;;
21991 10.*)
21992 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21993 ;;
21994 esac
21995 fi
21996 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021997 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021998 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021999 hardcode_direct_GCJ=no
22000 hardcode_automatic_GCJ=yes
22001 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000022002 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000022003 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000022004 if test "$GCC" = yes ; then
22005 output_verbose_link_cmd='echo'
22006 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22007 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22008 # 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 +000022009 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}'
22010 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 +000022011 else
22012 case "$cc_basename" in
22013 xlc*)
22014 output_verbose_link_cmd='echo'
22015 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
22016 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22017 # 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 +000022018 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}'
22019 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 +000022020 ;;
22021 *)
22022 ld_shlibs_GCJ=no
22023 ;;
22024 esac
John Criswell47fdd832003-07-14 16:52:07 +000022025 fi
22026 ;;
22027
22028 dgux*)
22029 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22030 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22031 hardcode_shlibpath_var_GCJ=no
22032 ;;
22033
22034 freebsd1*)
22035 ld_shlibs_GCJ=no
22036 ;;
22037
22038 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22039 # support. Future versions do this automatically, but an explicit c++rt0.o
22040 # does not break anything, and helps significantly (at the cost of a little
22041 # extra space).
22042 freebsd2.2*)
22043 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22044 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22045 hardcode_direct_GCJ=yes
22046 hardcode_shlibpath_var_GCJ=no
22047 ;;
22048
22049 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22050 freebsd2*)
22051 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22052 hardcode_direct_GCJ=yes
22053 hardcode_minus_L_GCJ=yes
22054 hardcode_shlibpath_var_GCJ=no
22055 ;;
22056
22057 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022058 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000022059 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22060 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22061 hardcode_direct_GCJ=yes
22062 hardcode_shlibpath_var_GCJ=no
22063 ;;
22064
22065 hpux9*)
22066 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000022067 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 +000022068 else
Reid Spencer177dbe22004-10-13 01:01:03 +000022069 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 +000022070 fi
22071 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22072 hardcode_libdir_separator_GCJ=:
22073 hardcode_direct_GCJ=yes
22074
22075 # hardcode_minus_L: Not really in the search PATH,
22076 # but as the default location of the library.
22077 hardcode_minus_L_GCJ=yes
22078 export_dynamic_flag_spec_GCJ='${wl}-E'
22079 ;;
22080
22081 hpux10* | hpux11*)
22082 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22083 case "$host_cpu" in
22084 hppa*64*|ia64*)
22085 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22086 ;;
22087 *)
22088 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22089 ;;
22090 esac
22091 else
22092 case "$host_cpu" in
22093 hppa*64*|ia64*)
22094 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
22095 ;;
22096 *)
22097 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22098 ;;
22099 esac
22100 fi
22101 if test "$with_gnu_ld" = no; then
22102 case "$host_cpu" in
22103 hppa*64*)
22104 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22105 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
22106 hardcode_libdir_separator_GCJ=:
22107 hardcode_direct_GCJ=no
22108 hardcode_shlibpath_var_GCJ=no
22109 ;;
22110 ia64*)
22111 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22112 hardcode_direct_GCJ=no
22113 hardcode_shlibpath_var_GCJ=no
22114
22115 # hardcode_minus_L: Not really in the search PATH,
22116 # but as the default location of the library.
22117 hardcode_minus_L_GCJ=yes
22118 ;;
22119 *)
22120 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
22121 hardcode_libdir_separator_GCJ=:
22122 hardcode_direct_GCJ=yes
22123 export_dynamic_flag_spec_GCJ='${wl}-E'
22124
22125 # hardcode_minus_L: Not really in the search PATH,
22126 # but as the default location of the library.
22127 hardcode_minus_L_GCJ=yes
22128 ;;
22129 esac
22130 fi
22131 ;;
22132
22133 irix5* | irix6* | nonstopux*)
22134 if test "$GCC" = yes; then
22135 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'
22136 else
22137 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'
22138 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
22139 fi
22140 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22141 hardcode_libdir_separator_GCJ=:
22142 link_all_deplibs_GCJ=yes
22143 ;;
22144
22145 netbsd*)
22146 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22147 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22148 else
22149 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22150 fi
22151 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22152 hardcode_direct_GCJ=yes
22153 hardcode_shlibpath_var_GCJ=no
22154 ;;
22155
22156 newsos6)
22157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22158 hardcode_direct_GCJ=yes
22159 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22160 hardcode_libdir_separator_GCJ=:
22161 hardcode_shlibpath_var_GCJ=no
22162 ;;
22163
22164 openbsd*)
22165 hardcode_direct_GCJ=yes
22166 hardcode_shlibpath_var_GCJ=no
22167 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22168 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022169 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 +000022170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22171 export_dynamic_flag_spec_GCJ='${wl}-E'
22172 else
22173 case $host_os in
22174 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22175 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22176 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22177 ;;
22178 *)
22179 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22180 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
22181 ;;
22182 esac
22183 fi
22184 ;;
22185
22186 os2*)
22187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22188 hardcode_minus_L_GCJ=yes
22189 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000022190 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 +000022191 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22192 ;;
22193
22194 osf3*)
22195 if test "$GCC" = yes; then
22196 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22197 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'
22198 else
22199 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22200 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'
22201 fi
22202 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22203 hardcode_libdir_separator_GCJ=:
22204 ;;
22205
22206 osf4* | osf5*) # as osf3* with the addition of -msym flag
22207 if test "$GCC" = yes; then
22208 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
22209 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'
22210 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
22211 else
22212 allow_undefined_flag_GCJ=' -expect_unresolved \*'
22213 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 +000022214 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~
22215 $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'
22216
John Criswell47fdd832003-07-14 16:52:07 +000022217 # Both c and cxx compiler support -rpath directly
22218 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
22219 fi
22220 hardcode_libdir_separator_GCJ=:
22221 ;;
22222
22223 sco3.2v5*)
22224 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22225 hardcode_shlibpath_var_GCJ=no
22226 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
22227 runpath_var=LD_RUN_PATH
22228 hardcode_runpath_var=yes
22229 ;;
22230
22231 solaris*)
22232 no_undefined_flag_GCJ=' -z text'
22233 if test "$GCC" = yes; then
22234 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022235 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22236 $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 +000022237 else
22238 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022239 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22240 $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 +000022241 fi
22242 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22243 hardcode_shlibpath_var_GCJ=no
22244 case $host_os in
22245 solaris2.[0-5] | solaris2.[0-5].*) ;;
22246 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22247 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22248 esac
22249 link_all_deplibs_GCJ=yes
22250 ;;
22251
22252 sunos4*)
22253 if test "x$host_vendor" = xsequent; then
22254 # Use $CC to link under sequent, because it throws in some extra .o
22255 # files that make .init and .fini sections work.
22256 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22257 else
22258 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22259 fi
22260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22261 hardcode_direct_GCJ=yes
22262 hardcode_minus_L_GCJ=yes
22263 hardcode_shlibpath_var_GCJ=no
22264 ;;
22265
22266 sysv4)
22267 case $host_vendor in
22268 sni)
22269 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22270 hardcode_direct_GCJ=yes # is this really true???
22271 ;;
22272 siemens)
22273 ## LD is ld it makes a PLAMLIB
22274 ## CC just makes a GrossModule.
22275 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22276 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22277 hardcode_direct_GCJ=no
22278 ;;
22279 motorola)
22280 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22281 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22282 ;;
22283 esac
22284 runpath_var='LD_RUN_PATH'
22285 hardcode_shlibpath_var_GCJ=no
22286 ;;
22287
22288 sysv4.3*)
22289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22290 hardcode_shlibpath_var_GCJ=no
22291 export_dynamic_flag_spec_GCJ='-Bexport'
22292 ;;
22293
22294 sysv4*MP*)
22295 if test -d /usr/nec; then
22296 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22297 hardcode_shlibpath_var_GCJ=no
22298 runpath_var=LD_RUN_PATH
22299 hardcode_runpath_var=yes
22300 ld_shlibs_GCJ=yes
22301 fi
22302 ;;
22303
22304 sysv4.2uw2*)
22305 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22306 hardcode_direct_GCJ=yes
22307 hardcode_minus_L_GCJ=no
22308 hardcode_shlibpath_var_GCJ=no
22309 hardcode_runpath_var=yes
22310 runpath_var=LD_RUN_PATH
22311 ;;
22312
22313 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22314 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22315 if test "$GCC" = yes; then
22316 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22317 else
22318 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22319 fi
22320 runpath_var='LD_RUN_PATH'
22321 hardcode_shlibpath_var_GCJ=no
22322 ;;
22323
22324 sysv5*)
22325 no_undefined_flag_GCJ=' -z text'
22326 # $CC -shared without GNU ld will not create a library from C++
22327 # object files and a static libstdc++, better avoid it by now
22328 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022329 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22330 $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 +000022331 hardcode_libdir_flag_spec_GCJ=
22332 hardcode_shlibpath_var_GCJ=no
22333 runpath_var='LD_RUN_PATH'
22334 ;;
22335
22336 uts4*)
22337 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22338 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22339 hardcode_shlibpath_var_GCJ=no
22340 ;;
22341
22342 *)
22343 ld_shlibs_GCJ=no
22344 ;;
22345 esac
22346 fi
22347
22348echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22349echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22350test "$ld_shlibs_GCJ" = no && can_build_shared=no
22351
22352variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22353if test "$GCC" = yes; then
22354 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22355fi
22356
22357#
22358# Do we need to explicitly link libc?
22359#
22360case "x$archive_cmds_need_lc_GCJ" in
22361x|xyes)
22362 # Assume -lc should be added
22363 archive_cmds_need_lc_GCJ=yes
22364
22365 if test "$enable_shared" = yes && test "$GCC" = yes; then
22366 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022367 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022368 # FIXME: we may have to deal with multi-command sequences.
22369 ;;
22370 '$CC '*)
22371 # Test whether the compiler implicitly links with -lc since on some
22372 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22373 # to ld, don't add -lc before -lgcc.
22374 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22375echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22376 $rm conftest*
22377 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22378
22379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22380 (eval $ac_compile) 2>&5
22381 ac_status=$?
22382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383 (exit $ac_status); } 2>conftest.err; then
22384 soname=conftest
22385 lib=conftest
22386 libobjs=conftest.$ac_objext
22387 deplibs=
22388 wl=$lt_prog_compiler_wl_GCJ
22389 compiler_flags=-v
22390 linker_flags=-v
22391 verstring=
22392 output_objdir=.
22393 libname=conftest
22394 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22395 allow_undefined_flag_GCJ=
22396 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22397 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22398 ac_status=$?
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }
22401 then
22402 archive_cmds_need_lc_GCJ=no
22403 else
22404 archive_cmds_need_lc_GCJ=yes
22405 fi
22406 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22407 else
22408 cat conftest.err 1>&5
22409 fi
22410 $rm conftest*
22411 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22412echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22413 ;;
22414 esac
22415 fi
22416 ;;
22417esac
22418
John Criswell47fdd832003-07-14 16:52:07 +000022419echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22420echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22421library_names_spec=
22422libname_spec='lib$name'
22423soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022424shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022425postinstall_cmds=
22426postuninstall_cmds=
22427finish_cmds=
22428finish_eval=
22429shlibpath_var=
22430shlibpath_overrides_runpath=unknown
22431version_type=none
22432dynamic_linker="$host_os ld.so"
22433sys_lib_dlsearch_path_spec="/lib /usr/lib"
22434if test "$GCC" = yes; then
22435 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22436 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22437 # if the path contains ";" then we assume it to be the separator
22438 # otherwise default to the standard path separator (i.e. ":") - it is
22439 # assumed that no part of a normal pathname contains ";" but that should
22440 # okay in the real world where ";" in dirpaths is itself problematic.
22441 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22442 else
22443 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22444 fi
22445else
22446 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22447fi
22448need_lib_prefix=unknown
22449hardcode_into_libs=no
22450
22451# when you set need_version to no, make sure it does not cause -set_version
22452# flags to be left without arguments
22453need_version=unknown
22454
22455case $host_os in
22456aix3*)
22457 version_type=linux
22458 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22459 shlibpath_var=LIBPATH
22460
22461 # AIX 3 has no versioning support, so we append a major version to the name.
22462 soname_spec='${libname}${release}${shared_ext}$major'
22463 ;;
22464
22465aix4* | aix5*)
22466 version_type=linux
22467 need_lib_prefix=no
22468 need_version=no
22469 hardcode_into_libs=yes
22470 if test "$host_cpu" = ia64; then
22471 # AIX 5 supports IA64
22472 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22473 shlibpath_var=LD_LIBRARY_PATH
22474 else
22475 # With GCC up to 2.95.x, collect2 would create an import file
22476 # for dependence libraries. The import file would start with
22477 # the line `#! .'. This would cause the generated library to
22478 # depend on `.', always an invalid library. This was fixed in
22479 # development snapshots of GCC prior to 3.0.
22480 case $host_os in
22481 aix4 | aix4.[01] | aix4.[01].*)
22482 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22483 echo ' yes '
22484 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22485 :
22486 else
22487 can_build_shared=no
22488 fi
22489 ;;
22490 esac
22491 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22492 # soname into executable. Probably we can add versioning support to
22493 # collect2, so additional links can be useful in future.
22494 if test "$aix_use_runtimelinking" = yes; then
22495 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22496 # instead of lib<name>.a to let people know that these are not
22497 # typical AIX shared libraries.
22498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22499 else
22500 # We preserve .a as extension for shared libraries through AIX4.2
22501 # and later when we are not doing run time linking.
22502 library_names_spec='${libname}${release}.a $libname.a'
22503 soname_spec='${libname}${release}${shared_ext}$major'
22504 fi
22505 shlibpath_var=LIBPATH
22506 fi
22507 ;;
22508
22509amigaos*)
22510 library_names_spec='$libname.ixlibrary $libname.a'
22511 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022512 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 +000022513 ;;
22514
22515beos*)
22516 library_names_spec='${libname}${shared_ext}'
22517 dynamic_linker="$host_os ld.so"
22518 shlibpath_var=LIBRARY_PATH
22519 ;;
22520
Reid Spencer2706f8c2004-09-19 23:53:36 +000022521bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022522 version_type=linux
22523 need_version=no
22524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22525 soname_spec='${libname}${release}${shared_ext}$major'
22526 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22527 shlibpath_var=LD_LIBRARY_PATH
22528 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22529 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22530 # the default ld.so.conf also contains /usr/contrib/lib and
22531 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22532 # libtool to hard-code these into programs
22533 ;;
22534
22535cygwin* | mingw* | pw32*)
22536 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022537 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022538 need_version=no
22539 need_lib_prefix=no
22540
22541 case $GCC,$host_os in
22542 yes,cygwin* | yes,mingw* | yes,pw32*)
22543 library_names_spec='$libname.dll.a'
22544 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022545 postinstall_cmds='base_file=`basename \${file}`~
22546 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22547 dldir=$destdir/`dirname \$dlpath`~
22548 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022549 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022550 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22551 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022552 $rm \$dlpath'
22553 shlibpath_overrides_runpath=yes
22554
22555 case $host_os in
22556 cygwin*)
22557 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22558 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 +000022559 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022560 ;;
22561 mingw*)
22562 # MinGW DLLs use traditional 'lib' prefix
22563 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22564 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22565 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22566 # It is most probably a Windows format PATH printed by
22567 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22568 # path with ; separators, and with drive letters. We can handle the
22569 # drive letters (cygwin fileutils understands them), so leave them,
22570 # especially as we might pass files found there to a mingw objdump,
22571 # which wouldn't understand a cygwinified path. Ahh.
22572 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22573 else
22574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22575 fi
22576 ;;
22577 pw32*)
22578 # pw32 DLLs use 'pw' prefix rather than 'lib'
22579 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22580 ;;
22581 esac
22582 ;;
22583
22584 *)
22585 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22586 ;;
22587 esac
22588 dynamic_linker='Win32 ld.exe'
22589 # FIXME: first we should search . and the directory the executable is in
22590 shlibpath_var=PATH
22591 ;;
22592
22593darwin* | rhapsody*)
22594 dynamic_linker="$host_os dyld"
22595 version_type=darwin
22596 need_lib_prefix=no
22597 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022598 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022599 soname_spec='${libname}${release}${major}$shared_ext'
22600 shlibpath_overrides_runpath=yes
22601 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022602 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022603 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022604 if test "$GCC" = yes; then
22605 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"`
22606 else
22607 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022608 fi
22609 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22610 ;;
22611
22612dgux*)
22613 version_type=linux
22614 need_lib_prefix=no
22615 need_version=no
22616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22617 soname_spec='${libname}${release}${shared_ext}$major'
22618 shlibpath_var=LD_LIBRARY_PATH
22619 ;;
22620
22621freebsd1*)
22622 dynamic_linker=no
22623 ;;
22624
Reid Spencer2706f8c2004-09-19 23:53:36 +000022625kfreebsd*-gnu)
22626 version_type=linux
22627 need_lib_prefix=no
22628 need_version=no
22629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22630 soname_spec='${libname}${release}${shared_ext}$major'
22631 shlibpath_var=LD_LIBRARY_PATH
22632 shlibpath_overrides_runpath=no
22633 hardcode_into_libs=yes
22634 dynamic_linker='GNU ld.so'
22635 ;;
22636
John Criswell47fdd832003-07-14 16:52:07 +000022637freebsd*)
22638 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22639 version_type=freebsd-$objformat
22640 case $version_type in
22641 freebsd-elf*)
22642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22643 need_version=no
22644 need_lib_prefix=no
22645 ;;
22646 freebsd-*)
22647 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22648 need_version=yes
22649 ;;
22650 esac
22651 shlibpath_var=LD_LIBRARY_PATH
22652 case $host_os in
22653 freebsd2*)
22654 shlibpath_overrides_runpath=yes
22655 ;;
22656 freebsd3.01* | freebsdelf3.01*)
22657 shlibpath_overrides_runpath=yes
22658 hardcode_into_libs=yes
22659 ;;
22660 *) # from 3.2 on
22661 shlibpath_overrides_runpath=no
22662 hardcode_into_libs=yes
22663 ;;
22664 esac
22665 ;;
22666
22667gnu*)
22668 version_type=linux
22669 need_lib_prefix=no
22670 need_version=no
22671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22672 soname_spec='${libname}${release}${shared_ext}$major'
22673 shlibpath_var=LD_LIBRARY_PATH
22674 hardcode_into_libs=yes
22675 ;;
22676
22677hpux9* | hpux10* | hpux11*)
22678 # Give a soname corresponding to the major version so that dld.sl refuses to
22679 # link against other versions.
22680 version_type=sunos
22681 need_lib_prefix=no
22682 need_version=no
22683 case "$host_cpu" in
22684 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022685 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022686 hardcode_into_libs=yes
22687 dynamic_linker="$host_os dld.so"
22688 shlibpath_var=LD_LIBRARY_PATH
22689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22691 soname_spec='${libname}${release}${shared_ext}$major'
22692 if test "X$HPUX_IA64_MODE" = X32; then
22693 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22694 else
22695 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22696 fi
22697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22698 ;;
22699 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022700 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022701 hardcode_into_libs=yes
22702 dynamic_linker="$host_os dld.sl"
22703 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22706 soname_spec='${libname}${release}${shared_ext}$major'
22707 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22709 ;;
22710 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022711 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022712 dynamic_linker="$host_os dld.sl"
22713 shlibpath_var=SHLIB_PATH
22714 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22716 soname_spec='${libname}${release}${shared_ext}$major'
22717 ;;
22718 esac
22719 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22720 postinstall_cmds='chmod 555 $lib'
22721 ;;
22722
22723irix5* | irix6* | nonstopux*)
22724 case $host_os in
22725 nonstopux*) version_type=nonstopux ;;
22726 *)
22727 if test "$lt_cv_prog_gnu_ld" = yes; then
22728 version_type=linux
22729 else
22730 version_type=irix
22731 fi ;;
22732 esac
22733 need_lib_prefix=no
22734 need_version=no
22735 soname_spec='${libname}${release}${shared_ext}$major'
22736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22737 case $host_os in
22738 irix5* | nonstopux*)
22739 libsuff= shlibsuff=
22740 ;;
22741 *)
22742 case $LD in # libtool.m4 will add one of these switches to LD
22743 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22744 libsuff= shlibsuff= libmagic=32-bit;;
22745 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22746 libsuff=32 shlibsuff=N32 libmagic=N32;;
22747 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22748 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22749 *) libsuff= shlibsuff= libmagic=never-match;;
22750 esac
22751 ;;
22752 esac
22753 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22754 shlibpath_overrides_runpath=no
22755 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22756 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22757 hardcode_into_libs=yes
22758 ;;
22759
22760# No shared lib support for Linux oldld, aout, or coff.
22761linux*oldld* | linux*aout* | linux*coff*)
22762 dynamic_linker=no
22763 ;;
22764
22765# This must be Linux ELF.
22766linux*)
22767 version_type=linux
22768 need_lib_prefix=no
22769 need_version=no
22770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22771 soname_spec='${libname}${release}${shared_ext}$major'
22772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22773 shlibpath_var=LD_LIBRARY_PATH
22774 shlibpath_overrides_runpath=no
22775 # This implies no fast_install, which is unacceptable.
22776 # Some rework will be needed to allow for fast_install
22777 # before this can be enabled.
22778 hardcode_into_libs=yes
22779
Reid Spencer2706f8c2004-09-19 23:53:36 +000022780 # Append ld.so.conf contents to the search path
22781 if test -f /etc/ld.so.conf; then
22782 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22783 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22784 fi
22785
John Criswell47fdd832003-07-14 16:52:07 +000022786 # We used to test for /lib/ld.so.1 and disable shared libraries on
22787 # powerpc, because MkLinux only supported shared libraries with the
22788 # GNU dynamic linker. Since this was broken with cross compilers,
22789 # most powerpc-linux boxes support dynamic linking these days and
22790 # people can always --disable-shared, the test was removed, and we
22791 # assume the GNU/Linux dynamic linker is in use.
22792 dynamic_linker='GNU/Linux ld.so'
22793 ;;
22794
Reid Spencer2706f8c2004-09-19 23:53:36 +000022795knetbsd*-gnu)
22796 version_type=linux
22797 need_lib_prefix=no
22798 need_version=no
22799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22800 soname_spec='${libname}${release}${shared_ext}$major'
22801 shlibpath_var=LD_LIBRARY_PATH
22802 shlibpath_overrides_runpath=no
22803 hardcode_into_libs=yes
22804 dynamic_linker='GNU ld.so'
22805 ;;
22806
John Criswell47fdd832003-07-14 16:52:07 +000022807netbsd*)
22808 version_type=sunos
22809 need_lib_prefix=no
22810 need_version=no
22811 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22814 dynamic_linker='NetBSD (a.out) ld.so'
22815 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022817 soname_spec='${libname}${release}${shared_ext}$major'
22818 dynamic_linker='NetBSD ld.elf_so'
22819 fi
22820 shlibpath_var=LD_LIBRARY_PATH
22821 shlibpath_overrides_runpath=yes
22822 hardcode_into_libs=yes
22823 ;;
22824
22825newsos6)
22826 version_type=linux
22827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22828 shlibpath_var=LD_LIBRARY_PATH
22829 shlibpath_overrides_runpath=yes
22830 ;;
22831
Reid Spencer2706f8c2004-09-19 23:53:36 +000022832nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022833 version_type=linux
22834 need_lib_prefix=no
22835 need_version=no
22836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22837 soname_spec='${libname}${release}${shared_ext}$major'
22838 shlibpath_var=LD_LIBRARY_PATH
22839 shlibpath_overrides_runpath=yes
22840 ;;
22841
22842openbsd*)
22843 version_type=sunos
22844 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022845 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22847 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22848 shlibpath_var=LD_LIBRARY_PATH
22849 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22850 case $host_os in
22851 openbsd2.[89] | openbsd2.[89].*)
22852 shlibpath_overrides_runpath=no
22853 ;;
22854 *)
22855 shlibpath_overrides_runpath=yes
22856 ;;
22857 esac
22858 else
22859 shlibpath_overrides_runpath=yes
22860 fi
22861 ;;
22862
22863os2*)
22864 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022865 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022866 need_lib_prefix=no
22867 library_names_spec='$libname${shared_ext} $libname.a'
22868 dynamic_linker='OS/2 ld.exe'
22869 shlibpath_var=LIBPATH
22870 ;;
22871
22872osf3* | osf4* | osf5*)
22873 version_type=osf
22874 need_lib_prefix=no
22875 need_version=no
22876 soname_spec='${libname}${release}${shared_ext}$major'
22877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22878 shlibpath_var=LD_LIBRARY_PATH
22879 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22880 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22881 ;;
22882
22883sco3.2v5*)
22884 version_type=osf
22885 soname_spec='${libname}${release}${shared_ext}$major'
22886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22887 shlibpath_var=LD_LIBRARY_PATH
22888 ;;
22889
22890solaris*)
22891 version_type=linux
22892 need_lib_prefix=no
22893 need_version=no
22894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22895 soname_spec='${libname}${release}${shared_ext}$major'
22896 shlibpath_var=LD_LIBRARY_PATH
22897 shlibpath_overrides_runpath=yes
22898 hardcode_into_libs=yes
22899 # ldd complains unless libraries are executable
22900 postinstall_cmds='chmod +x $lib'
22901 ;;
22902
22903sunos4*)
22904 version_type=sunos
22905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22906 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22907 shlibpath_var=LD_LIBRARY_PATH
22908 shlibpath_overrides_runpath=yes
22909 if test "$with_gnu_ld" = yes; then
22910 need_lib_prefix=no
22911 fi
22912 need_version=yes
22913 ;;
22914
22915sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22916 version_type=linux
22917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22918 soname_spec='${libname}${release}${shared_ext}$major'
22919 shlibpath_var=LD_LIBRARY_PATH
22920 case $host_vendor in
22921 sni)
22922 shlibpath_overrides_runpath=no
22923 need_lib_prefix=no
22924 export_dynamic_flag_spec='${wl}-Blargedynsym'
22925 runpath_var=LD_RUN_PATH
22926 ;;
22927 siemens)
22928 need_lib_prefix=no
22929 ;;
22930 motorola)
22931 need_lib_prefix=no
22932 need_version=no
22933 shlibpath_overrides_runpath=no
22934 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22935 ;;
22936 esac
22937 ;;
22938
22939sysv4*MP*)
22940 if test -d /usr/nec ;then
22941 version_type=linux
22942 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22943 soname_spec='$libname${shared_ext}.$major'
22944 shlibpath_var=LD_LIBRARY_PATH
22945 fi
22946 ;;
22947
22948uts4*)
22949 version_type=linux
22950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22951 soname_spec='${libname}${release}${shared_ext}$major'
22952 shlibpath_var=LD_LIBRARY_PATH
22953 ;;
22954
22955*)
22956 dynamic_linker=no
22957 ;;
22958esac
22959echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22960echo "${ECHO_T}$dynamic_linker" >&6
22961test "$dynamic_linker" = no && can_build_shared=no
22962
Reid Spencer2706f8c2004-09-19 23:53:36 +000022963echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22964echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22965hardcode_action_GCJ=
22966if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22967 test -n "$runpath_var_GCJ" || \
22968 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22969
22970 # We can hardcode non-existant directories.
22971 if test "$hardcode_direct_GCJ" != no &&
22972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22973 # have to relink, otherwise we might link with an installed library
22974 # when we should be linking with a yet-to-be-installed one
22975 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22976 test "$hardcode_minus_L_GCJ" != no; then
22977 # Linking always hardcodes the temporary library directory.
22978 hardcode_action_GCJ=relink
22979 else
22980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22981 hardcode_action_GCJ=immediate
22982 fi
22983else
22984 # We cannot hardcode anything, or else we can only hardcode existing
22985 # directories.
22986 hardcode_action_GCJ=unsupported
22987fi
22988echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22989echo "${ECHO_T}$hardcode_action_GCJ" >&6
22990
22991if test "$hardcode_action_GCJ" = relink; then
22992 # Fast installation is not supported
22993 enable_fast_install=no
22994elif test "$shlibpath_overrides_runpath" = yes ||
22995 test "$enable_shared" = no; then
22996 # Fast installation is not necessary
22997 enable_fast_install=needless
22998fi
22999
23000striplib=
23001old_striplib=
23002echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
23003echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
23004if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
23005 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
23006 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
23007 echo "$as_me:$LINENO: result: yes" >&5
23008echo "${ECHO_T}yes" >&6
23009else
23010# FIXME - insert some real tests, host_os isn't really good enough
23011 case $host_os in
23012 darwin*)
23013 if test -n "$STRIP" ; then
23014 striplib="$STRIP -x"
23015 echo "$as_me:$LINENO: result: yes" >&5
23016echo "${ECHO_T}yes" >&6
23017 else
23018 echo "$as_me:$LINENO: result: no" >&5
23019echo "${ECHO_T}no" >&6
23020fi
23021 ;;
23022 *)
23023 echo "$as_me:$LINENO: result: no" >&5
23024echo "${ECHO_T}no" >&6
23025 ;;
23026 esac
23027fi
23028
John Criswell47fdd832003-07-14 16:52:07 +000023029if test "x$enable_dlopen" != xyes; then
23030 enable_dlopen=unknown
23031 enable_dlopen_self=unknown
23032 enable_dlopen_self_static=unknown
23033else
23034 lt_cv_dlopen=no
23035 lt_cv_dlopen_libs=
23036
23037 case $host_os in
23038 beos*)
23039 lt_cv_dlopen="load_add_on"
23040 lt_cv_dlopen_libs=
23041 lt_cv_dlopen_self=yes
23042 ;;
23043
23044 mingw* | pw32*)
23045 lt_cv_dlopen="LoadLibrary"
23046 lt_cv_dlopen_libs=
23047 ;;
23048
23049 cygwin*)
23050 lt_cv_dlopen="dlopen"
23051 lt_cv_dlopen_libs=
23052 ;;
23053
23054 darwin*)
23055 # if libdl is installed we need to link against it
23056 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23057echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23058if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23059 echo $ECHO_N "(cached) $ECHO_C" >&6
23060else
23061 ac_check_lib_save_LIBS=$LIBS
23062LIBS="-ldl $LIBS"
23063cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023064/* confdefs.h. */
23065_ACEOF
23066cat confdefs.h >>conftest.$ac_ext
23067cat >>conftest.$ac_ext <<_ACEOF
23068/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023069
23070/* Override any gcc2 internal prototype to avoid an error. */
23071#ifdef __cplusplus
23072extern "C"
23073#endif
23074/* We use char because int might match the return type of a gcc2
23075 builtin and then its argument prototype would still apply. */
23076char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023077int
23078main ()
23079{
23080dlopen ();
23081 ;
23082 return 0;
23083}
23084_ACEOF
23085rm -f conftest.$ac_objext conftest$ac_exeext
23086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023087 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023088 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023089 grep -v '^ *+' conftest.er1 >conftest.err
23090 rm -f conftest.er1
23091 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23093 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023094 { ac_try='test -z "$ac_c_werror_flag"
23095 || test ! -s conftest.err'
23096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097 (eval $ac_try) 2>&5
23098 ac_status=$?
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); }; } &&
23101 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103 (eval $ac_try) 2>&5
23104 ac_status=$?
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); }; }; then
23107 ac_cv_lib_dl_dlopen=yes
23108else
23109 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023110sed 's/^/| /' conftest.$ac_ext >&5
23111
John Criswell47fdd832003-07-14 16:52:07 +000023112ac_cv_lib_dl_dlopen=no
23113fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023114rm -f conftest.err conftest.$ac_objext \
23115 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023116LIBS=$ac_check_lib_save_LIBS
23117fi
23118echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23119echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23120if test $ac_cv_lib_dl_dlopen = yes; then
23121 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23122else
23123
23124 lt_cv_dlopen="dyld"
23125 lt_cv_dlopen_libs=
23126 lt_cv_dlopen_self=yes
23127
23128fi
23129
23130 ;;
23131
23132 *)
23133 echo "$as_me:$LINENO: checking for shl_load" >&5
23134echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
23135if test "${ac_cv_func_shl_load+set}" = set; then
23136 echo $ECHO_N "(cached) $ECHO_C" >&6
23137else
23138 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023139/* confdefs.h. */
23140_ACEOF
23141cat confdefs.h >>conftest.$ac_ext
23142cat >>conftest.$ac_ext <<_ACEOF
23143/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023144/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
23145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23146#define shl_load innocuous_shl_load
23147
John Criswell47fdd832003-07-14 16:52:07 +000023148/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023149 which can conflict with char shl_load (); below.
23150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23151 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023152
John Criswell0c38eaf2003-09-10 15:17:25 +000023153#ifdef __STDC__
23154# include <limits.h>
23155#else
23156# include <assert.h>
23157#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023158
23159#undef shl_load
23160
John Criswell47fdd832003-07-14 16:52:07 +000023161/* Override any gcc2 internal prototype to avoid an error. */
23162#ifdef __cplusplus
23163extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023164{
John Criswell47fdd832003-07-14 16:52:07 +000023165#endif
23166/* We use char because int might match the return type of a gcc2
23167 builtin and then its argument prototype would still apply. */
23168char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023169/* The GNU C library defines this for functions which it implements
23170 to always fail with ENOSYS. Some functions are actually named
23171 something starting with __ and the normal name is an alias. */
23172#if defined (__stub_shl_load) || defined (__stub___shl_load)
23173choke me
23174#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023175char (*f) () = shl_load;
23176#endif
23177#ifdef __cplusplus
23178}
John Criswell47fdd832003-07-14 16:52:07 +000023179#endif
23180
John Criswell0c38eaf2003-09-10 15:17:25 +000023181int
23182main ()
23183{
23184return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000023185 ;
23186 return 0;
23187}
23188_ACEOF
23189rm -f conftest.$ac_objext conftest$ac_exeext
23190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023191 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023192 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023193 grep -v '^ *+' conftest.er1 >conftest.err
23194 rm -f conftest.er1
23195 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023198 { ac_try='test -z "$ac_c_werror_flag"
23199 || test ! -s conftest.err'
23200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23201 (eval $ac_try) 2>&5
23202 ac_status=$?
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); }; } &&
23205 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207 (eval $ac_try) 2>&5
23208 ac_status=$?
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); }; }; then
23211 ac_cv_func_shl_load=yes
23212else
23213 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023214sed 's/^/| /' conftest.$ac_ext >&5
23215
John Criswell47fdd832003-07-14 16:52:07 +000023216ac_cv_func_shl_load=no
23217fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023218rm -f conftest.err conftest.$ac_objext \
23219 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023220fi
23221echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
23222echo "${ECHO_T}$ac_cv_func_shl_load" >&6
23223if test $ac_cv_func_shl_load = yes; then
23224 lt_cv_dlopen="shl_load"
23225else
23226 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
23227echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
23228if test "${ac_cv_lib_dld_shl_load+set}" = set; then
23229 echo $ECHO_N "(cached) $ECHO_C" >&6
23230else
23231 ac_check_lib_save_LIBS=$LIBS
23232LIBS="-ldld $LIBS"
23233cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023234/* confdefs.h. */
23235_ACEOF
23236cat confdefs.h >>conftest.$ac_ext
23237cat >>conftest.$ac_ext <<_ACEOF
23238/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023239
23240/* Override any gcc2 internal prototype to avoid an error. */
23241#ifdef __cplusplus
23242extern "C"
23243#endif
23244/* We use char because int might match the return type of a gcc2
23245 builtin and then its argument prototype would still apply. */
23246char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000023247int
23248main ()
23249{
23250shl_load ();
23251 ;
23252 return 0;
23253}
23254_ACEOF
23255rm -f conftest.$ac_objext conftest$ac_exeext
23256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023257 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023258 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023259 grep -v '^ *+' conftest.er1 >conftest.err
23260 rm -f conftest.er1
23261 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023264 { ac_try='test -z "$ac_c_werror_flag"
23265 || test ! -s conftest.err'
23266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267 (eval $ac_try) 2>&5
23268 ac_status=$?
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); }; } &&
23271 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23274 ac_status=$?
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; }; then
23277 ac_cv_lib_dld_shl_load=yes
23278else
23279 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023280sed 's/^/| /' conftest.$ac_ext >&5
23281
John Criswell47fdd832003-07-14 16:52:07 +000023282ac_cv_lib_dld_shl_load=no
23283fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023284rm -f conftest.err conftest.$ac_objext \
23285 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023286LIBS=$ac_check_lib_save_LIBS
23287fi
23288echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23289echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23290if test $ac_cv_lib_dld_shl_load = yes; then
23291 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23292else
23293 echo "$as_me:$LINENO: checking for dlopen" >&5
23294echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23295if test "${ac_cv_func_dlopen+set}" = set; then
23296 echo $ECHO_N "(cached) $ECHO_C" >&6
23297else
23298 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023299/* confdefs.h. */
23300_ACEOF
23301cat confdefs.h >>conftest.$ac_ext
23302cat >>conftest.$ac_ext <<_ACEOF
23303/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023304/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23306#define dlopen innocuous_dlopen
23307
John Criswell47fdd832003-07-14 16:52:07 +000023308/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023309 which can conflict with char dlopen (); below.
23310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23311 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023312
John Criswell0c38eaf2003-09-10 15:17:25 +000023313#ifdef __STDC__
23314# include <limits.h>
23315#else
23316# include <assert.h>
23317#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023318
23319#undef dlopen
23320
John Criswell47fdd832003-07-14 16:52:07 +000023321/* Override any gcc2 internal prototype to avoid an error. */
23322#ifdef __cplusplus
23323extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023324{
John Criswell47fdd832003-07-14 16:52:07 +000023325#endif
23326/* We use char because int might match the return type of a gcc2
23327 builtin and then its argument prototype would still apply. */
23328char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023329/* The GNU C library defines this for functions which it implements
23330 to always fail with ENOSYS. Some functions are actually named
23331 something starting with __ and the normal name is an alias. */
23332#if defined (__stub_dlopen) || defined (__stub___dlopen)
23333choke me
23334#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023335char (*f) () = dlopen;
23336#endif
23337#ifdef __cplusplus
23338}
John Criswell47fdd832003-07-14 16:52:07 +000023339#endif
23340
John Criswell0c38eaf2003-09-10 15:17:25 +000023341int
23342main ()
23343{
23344return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023345 ;
23346 return 0;
23347}
23348_ACEOF
23349rm -f conftest.$ac_objext conftest$ac_exeext
23350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023351 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023352 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023353 grep -v '^ *+' conftest.er1 >conftest.err
23354 rm -f conftest.er1
23355 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023358 { ac_try='test -z "$ac_c_werror_flag"
23359 || test ! -s conftest.err'
23360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23361 (eval $ac_try) 2>&5
23362 ac_status=$?
23363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364 (exit $ac_status); }; } &&
23365 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23367 (eval $ac_try) 2>&5
23368 ac_status=$?
23369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23370 (exit $ac_status); }; }; then
23371 ac_cv_func_dlopen=yes
23372else
23373 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023374sed 's/^/| /' conftest.$ac_ext >&5
23375
John Criswell47fdd832003-07-14 16:52:07 +000023376ac_cv_func_dlopen=no
23377fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023378rm -f conftest.err conftest.$ac_objext \
23379 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023380fi
23381echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23382echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23383if test $ac_cv_func_dlopen = yes; then
23384 lt_cv_dlopen="dlopen"
23385else
23386 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23387echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23388if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23389 echo $ECHO_N "(cached) $ECHO_C" >&6
23390else
23391 ac_check_lib_save_LIBS=$LIBS
23392LIBS="-ldl $LIBS"
23393cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023394/* confdefs.h. */
23395_ACEOF
23396cat confdefs.h >>conftest.$ac_ext
23397cat >>conftest.$ac_ext <<_ACEOF
23398/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023399
23400/* Override any gcc2 internal prototype to avoid an error. */
23401#ifdef __cplusplus
23402extern "C"
23403#endif
23404/* We use char because int might match the return type of a gcc2
23405 builtin and then its argument prototype would still apply. */
23406char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023407int
23408main ()
23409{
23410dlopen ();
23411 ;
23412 return 0;
23413}
23414_ACEOF
23415rm -f conftest.$ac_objext conftest$ac_exeext
23416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023417 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023418 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023419 grep -v '^ *+' conftest.er1 >conftest.err
23420 rm -f conftest.er1
23421 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023424 { ac_try='test -z "$ac_c_werror_flag"
23425 || test ! -s conftest.err'
23426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23427 (eval $ac_try) 2>&5
23428 ac_status=$?
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); }; } &&
23431 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433 (eval $ac_try) 2>&5
23434 ac_status=$?
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); }; }; then
23437 ac_cv_lib_dl_dlopen=yes
23438else
23439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023440sed 's/^/| /' conftest.$ac_ext >&5
23441
John Criswell47fdd832003-07-14 16:52:07 +000023442ac_cv_lib_dl_dlopen=no
23443fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023444rm -f conftest.err conftest.$ac_objext \
23445 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023446LIBS=$ac_check_lib_save_LIBS
23447fi
23448echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23449echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23450if test $ac_cv_lib_dl_dlopen = yes; then
23451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23452else
23453 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23454echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23455if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23456 echo $ECHO_N "(cached) $ECHO_C" >&6
23457else
23458 ac_check_lib_save_LIBS=$LIBS
23459LIBS="-lsvld $LIBS"
23460cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023461/* confdefs.h. */
23462_ACEOF
23463cat confdefs.h >>conftest.$ac_ext
23464cat >>conftest.$ac_ext <<_ACEOF
23465/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023466
23467/* Override any gcc2 internal prototype to avoid an error. */
23468#ifdef __cplusplus
23469extern "C"
23470#endif
23471/* We use char because int might match the return type of a gcc2
23472 builtin and then its argument prototype would still apply. */
23473char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023474int
23475main ()
23476{
23477dlopen ();
23478 ;
23479 return 0;
23480}
23481_ACEOF
23482rm -f conftest.$ac_objext conftest$ac_exeext
23483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023484 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023485 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023486 grep -v '^ *+' conftest.er1 >conftest.err
23487 rm -f conftest.er1
23488 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023491 { ac_try='test -z "$ac_c_werror_flag"
23492 || test ! -s conftest.err'
23493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23494 (eval $ac_try) 2>&5
23495 ac_status=$?
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); }; } &&
23498 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23500 (eval $ac_try) 2>&5
23501 ac_status=$?
23502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); }; }; then
23504 ac_cv_lib_svld_dlopen=yes
23505else
23506 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023507sed 's/^/| /' conftest.$ac_ext >&5
23508
John Criswell47fdd832003-07-14 16:52:07 +000023509ac_cv_lib_svld_dlopen=no
23510fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023511rm -f conftest.err conftest.$ac_objext \
23512 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023513LIBS=$ac_check_lib_save_LIBS
23514fi
23515echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23516echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23517if test $ac_cv_lib_svld_dlopen = yes; then
23518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23519else
23520 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23521echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23522if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23523 echo $ECHO_N "(cached) $ECHO_C" >&6
23524else
23525 ac_check_lib_save_LIBS=$LIBS
23526LIBS="-ldld $LIBS"
23527cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023528/* confdefs.h. */
23529_ACEOF
23530cat confdefs.h >>conftest.$ac_ext
23531cat >>conftest.$ac_ext <<_ACEOF
23532/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023533
23534/* Override any gcc2 internal prototype to avoid an error. */
23535#ifdef __cplusplus
23536extern "C"
23537#endif
23538/* We use char because int might match the return type of a gcc2
23539 builtin and then its argument prototype would still apply. */
23540char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023541int
23542main ()
23543{
23544dld_link ();
23545 ;
23546 return 0;
23547}
23548_ACEOF
23549rm -f conftest.$ac_objext conftest$ac_exeext
23550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023551 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023552 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023553 grep -v '^ *+' conftest.er1 >conftest.err
23554 rm -f conftest.er1
23555 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023558 { ac_try='test -z "$ac_c_werror_flag"
23559 || test ! -s conftest.err'
23560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23561 (eval $ac_try) 2>&5
23562 ac_status=$?
23563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564 (exit $ac_status); }; } &&
23565 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23567 (eval $ac_try) 2>&5
23568 ac_status=$?
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); }; }; then
23571 ac_cv_lib_dld_dld_link=yes
23572else
23573 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023574sed 's/^/| /' conftest.$ac_ext >&5
23575
John Criswell47fdd832003-07-14 16:52:07 +000023576ac_cv_lib_dld_dld_link=no
23577fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023578rm -f conftest.err conftest.$ac_objext \
23579 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023580LIBS=$ac_check_lib_save_LIBS
23581fi
23582echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23583echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23584if test $ac_cv_lib_dld_dld_link = yes; then
23585 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23586fi
23587
23588
23589fi
23590
23591
23592fi
23593
23594
23595fi
23596
23597
23598fi
23599
23600
23601fi
23602
23603 ;;
23604 esac
23605
23606 if test "x$lt_cv_dlopen" != xno; then
23607 enable_dlopen=yes
23608 else
23609 enable_dlopen=no
23610 fi
23611
23612 case $lt_cv_dlopen in
23613 dlopen)
23614 save_CPPFLAGS="$CPPFLAGS"
23615 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23616
23617 save_LDFLAGS="$LDFLAGS"
23618 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23619
23620 save_LIBS="$LIBS"
23621 LIBS="$lt_cv_dlopen_libs $LIBS"
23622
23623 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23624echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23625if test "${lt_cv_dlopen_self+set}" = set; then
23626 echo $ECHO_N "(cached) $ECHO_C" >&6
23627else
23628 if test "$cross_compiling" = yes; then :
23629 lt_cv_dlopen_self=cross
23630else
23631 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23632 lt_status=$lt_dlunknown
23633 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +000023634#line 23635 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023635#include "confdefs.h"
23636
23637#if HAVE_DLFCN_H
23638#include <dlfcn.h>
23639#endif
23640
23641#include <stdio.h>
23642
23643#ifdef RTLD_GLOBAL
23644# define LT_DLGLOBAL RTLD_GLOBAL
23645#else
23646# ifdef DL_GLOBAL
23647# define LT_DLGLOBAL DL_GLOBAL
23648# else
23649# define LT_DLGLOBAL 0
23650# endif
23651#endif
23652
23653/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23654 find out it does not work in some platform. */
23655#ifndef LT_DLLAZY_OR_NOW
23656# ifdef RTLD_LAZY
23657# define LT_DLLAZY_OR_NOW RTLD_LAZY
23658# else
23659# ifdef DL_LAZY
23660# define LT_DLLAZY_OR_NOW DL_LAZY
23661# else
23662# ifdef RTLD_NOW
23663# define LT_DLLAZY_OR_NOW RTLD_NOW
23664# else
23665# ifdef DL_NOW
23666# define LT_DLLAZY_OR_NOW DL_NOW
23667# else
23668# define LT_DLLAZY_OR_NOW 0
23669# endif
23670# endif
23671# endif
23672# endif
23673#endif
23674
23675#ifdef __cplusplus
23676extern "C" void exit (int);
23677#endif
23678
23679void fnord() { int i=42;}
23680int main ()
23681{
23682 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23683 int status = $lt_dlunknown;
23684
23685 if (self)
23686 {
23687 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23688 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23689 /* dlclose (self); */
23690 }
23691
23692 exit (status);
23693}
23694EOF
23695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23696 (eval $ac_link) 2>&5
23697 ac_status=$?
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23700 (./conftest; exit; ) 2>/dev/null
23701 lt_status=$?
23702 case x$lt_status in
23703 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23704 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23705 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23706 esac
23707 else :
23708 # compilation failed
23709 lt_cv_dlopen_self=no
23710 fi
23711fi
23712rm -fr conftest*
23713
23714
23715fi
23716echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23717echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23718
23719 if test "x$lt_cv_dlopen_self" = xyes; then
23720 LDFLAGS="$LDFLAGS $link_static_flag"
23721 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23722echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23723if test "${lt_cv_dlopen_self_static+set}" = set; then
23724 echo $ECHO_N "(cached) $ECHO_C" >&6
23725else
23726 if test "$cross_compiling" = yes; then :
23727 lt_cv_dlopen_self_static=cross
23728else
23729 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23730 lt_status=$lt_dlunknown
23731 cat > conftest.$ac_ext <<EOF
Reid Spencer6e96d812005-12-21 03:31:53 +000023732#line 23733 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023733#include "confdefs.h"
23734
23735#if HAVE_DLFCN_H
23736#include <dlfcn.h>
23737#endif
23738
23739#include <stdio.h>
23740
23741#ifdef RTLD_GLOBAL
23742# define LT_DLGLOBAL RTLD_GLOBAL
23743#else
23744# ifdef DL_GLOBAL
23745# define LT_DLGLOBAL DL_GLOBAL
23746# else
23747# define LT_DLGLOBAL 0
23748# endif
23749#endif
23750
23751/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23752 find out it does not work in some platform. */
23753#ifndef LT_DLLAZY_OR_NOW
23754# ifdef RTLD_LAZY
23755# define LT_DLLAZY_OR_NOW RTLD_LAZY
23756# else
23757# ifdef DL_LAZY
23758# define LT_DLLAZY_OR_NOW DL_LAZY
23759# else
23760# ifdef RTLD_NOW
23761# define LT_DLLAZY_OR_NOW RTLD_NOW
23762# else
23763# ifdef DL_NOW
23764# define LT_DLLAZY_OR_NOW DL_NOW
23765# else
23766# define LT_DLLAZY_OR_NOW 0
23767# endif
23768# endif
23769# endif
23770# endif
23771#endif
23772
23773#ifdef __cplusplus
23774extern "C" void exit (int);
23775#endif
23776
23777void fnord() { int i=42;}
23778int main ()
23779{
23780 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23781 int status = $lt_dlunknown;
23782
23783 if (self)
23784 {
23785 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23786 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23787 /* dlclose (self); */
23788 }
23789
23790 exit (status);
23791}
23792EOF
23793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23794 (eval $ac_link) 2>&5
23795 ac_status=$?
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23798 (./conftest; exit; ) 2>/dev/null
23799 lt_status=$?
23800 case x$lt_status in
23801 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23802 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23803 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23804 esac
23805 else :
23806 # compilation failed
23807 lt_cv_dlopen_self_static=no
23808 fi
23809fi
23810rm -fr conftest*
23811
23812
23813fi
23814echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23815echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23816 fi
23817
23818 CPPFLAGS="$save_CPPFLAGS"
23819 LDFLAGS="$save_LDFLAGS"
23820 LIBS="$save_LIBS"
23821 ;;
23822 esac
23823
23824 case $lt_cv_dlopen_self in
23825 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23826 *) enable_dlopen_self=unknown ;;
23827 esac
23828
23829 case $lt_cv_dlopen_self_static in
23830 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23831 *) enable_dlopen_self_static=unknown ;;
23832 esac
23833fi
23834
23835
23836# The else clause should only fire when bootstrapping the
23837# libtool distribution, otherwise you forgot to ship ltmain.sh
23838# with your package, and you will get complaints that there are
23839# no rules to generate ltmain.sh.
23840if test -f "$ltmain"; then
23841 # See if we are running on zsh, and set the options which allow our commands through
23842 # without removal of \ escapes.
23843 if test -n "${ZSH_VERSION+set}" ; then
23844 setopt NO_GLOB_SUBST
23845 fi
23846 # Now quote all the things that may contain metacharacters while being
23847 # careful not to overquote the AC_SUBSTed values. We take copies of the
23848 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023849 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23850 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023851 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23852 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23853 deplibs_check_method reload_flag reload_cmds need_locks \
23854 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23855 lt_cv_sys_global_symbol_to_c_name_address \
23856 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23857 old_postinstall_cmds old_postuninstall_cmds \
23858 compiler_GCJ \
23859 CC_GCJ \
23860 LD_GCJ \
23861 lt_prog_compiler_wl_GCJ \
23862 lt_prog_compiler_pic_GCJ \
23863 lt_prog_compiler_static_GCJ \
23864 lt_prog_compiler_no_builtin_flag_GCJ \
23865 export_dynamic_flag_spec_GCJ \
23866 thread_safe_flag_spec_GCJ \
23867 whole_archive_flag_spec_GCJ \
23868 enable_shared_with_static_runtimes_GCJ \
23869 old_archive_cmds_GCJ \
23870 old_archive_from_new_cmds_GCJ \
23871 predep_objects_GCJ \
23872 postdep_objects_GCJ \
23873 predeps_GCJ \
23874 postdeps_GCJ \
23875 compiler_lib_search_path_GCJ \
23876 archive_cmds_GCJ \
23877 archive_expsym_cmds_GCJ \
23878 postinstall_cmds_GCJ \
23879 postuninstall_cmds_GCJ \
23880 old_archive_from_expsyms_cmds_GCJ \
23881 allow_undefined_flag_GCJ \
23882 no_undefined_flag_GCJ \
23883 export_symbols_cmds_GCJ \
23884 hardcode_libdir_flag_spec_GCJ \
23885 hardcode_libdir_flag_spec_ld_GCJ \
23886 hardcode_libdir_separator_GCJ \
23887 hardcode_automatic_GCJ \
23888 module_cmds_GCJ \
23889 module_expsym_cmds_GCJ \
23890 lt_cv_prog_compiler_c_o_GCJ \
23891 exclude_expsyms_GCJ \
23892 include_expsyms_GCJ; do
23893
23894 case $var in
23895 old_archive_cmds_GCJ | \
23896 old_archive_from_new_cmds_GCJ | \
23897 archive_cmds_GCJ | \
23898 archive_expsym_cmds_GCJ | \
23899 module_cmds_GCJ | \
23900 module_expsym_cmds_GCJ | \
23901 old_archive_from_expsyms_cmds_GCJ | \
23902 export_symbols_cmds_GCJ | \
23903 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23904 postinstall_cmds | postuninstall_cmds | \
23905 old_postinstall_cmds | old_postuninstall_cmds | \
23906 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23907 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023908 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 +000023909 ;;
23910 *)
23911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23912 ;;
23913 esac
23914 done
23915
23916 case $lt_echo in
23917 *'\$0 --fallback-echo"')
23918 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23919 ;;
23920 esac
23921
23922cfgfile="$ofile"
23923
23924 cat <<__EOF__ >> "$cfgfile"
23925# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23926
23927# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23928
23929# Shell to use when invoking shell scripts.
23930SHELL=$lt_SHELL
23931
23932# Whether or not to build shared libraries.
23933build_libtool_libs=$enable_shared
23934
23935# Whether or not to build static libraries.
23936build_old_libs=$enable_static
23937
23938# Whether or not to add -lc for building shared libraries.
23939build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23940
23941# Whether or not to disallow shared libs when runtime libs are static
23942allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23943
23944# Whether or not to optimize for fast installation.
23945fast_install=$enable_fast_install
23946
23947# The host system.
23948host_alias=$host_alias
23949host=$host
23950
23951# An echo program that does not interpret backslashes.
23952echo=$lt_echo
23953
23954# The archiver.
23955AR=$lt_AR
23956AR_FLAGS=$lt_AR_FLAGS
23957
23958# A C compiler.
23959LTCC=$lt_LTCC
23960
23961# A language-specific compiler.
23962CC=$lt_compiler_GCJ
23963
23964# Is the compiler the GNU C compiler?
23965with_gcc=$GCC_GCJ
23966
23967# An ERE matcher.
23968EGREP=$lt_EGREP
23969
23970# The linker used to build libraries.
23971LD=$lt_LD_GCJ
23972
23973# Whether we need hard or soft links.
23974LN_S=$lt_LN_S
23975
23976# A BSD-compatible nm program.
23977NM=$lt_NM
23978
23979# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023980STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023981
23982# Used to examine libraries when file_magic_cmd begins "file"
23983MAGIC_CMD=$MAGIC_CMD
23984
23985# Used on cygwin: DLL creation program.
23986DLLTOOL="$DLLTOOL"
23987
23988# Used on cygwin: object dumper.
23989OBJDUMP="$OBJDUMP"
23990
23991# Used on cygwin: assembler.
23992AS="$AS"
23993
23994# The name of the directory that contains temporary libtool files.
23995objdir=$objdir
23996
23997# How to create reloadable object files.
23998reload_flag=$lt_reload_flag
23999reload_cmds=$lt_reload_cmds
24000
24001# How to pass a linker flag through the compiler.
24002wl=$lt_lt_prog_compiler_wl_GCJ
24003
24004# Object file suffix (normally "o").
24005objext="$ac_objext"
24006
24007# Old archive suffix (normally "a").
24008libext="$libext"
24009
24010# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024011shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024012
24013# Executable file suffix (normally "").
24014exeext="$exeext"
24015
24016# Additional compiler flags for building library objects.
24017pic_flag=$lt_lt_prog_compiler_pic_GCJ
24018pic_mode=$pic_mode
24019
24020# What is the maximum length of a command?
24021max_cmd_len=$lt_cv_sys_max_cmd_len
24022
24023# Does compiler simultaneously support -c and -o options?
24024compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
24025
24026# Must we lock files when doing compilation ?
24027need_locks=$lt_need_locks
24028
24029# Do we need the lib prefix for modules?
24030need_lib_prefix=$need_lib_prefix
24031
24032# Do we need a version for libraries?
24033need_version=$need_version
24034
24035# Whether dlopen is supported.
24036dlopen_support=$enable_dlopen
24037
24038# Whether dlopen of programs is supported.
24039dlopen_self=$enable_dlopen_self
24040
24041# Whether dlopen of statically linked programs is supported.
24042dlopen_self_static=$enable_dlopen_self_static
24043
24044# Compiler flag to prevent dynamic linking.
24045link_static_flag=$lt_lt_prog_compiler_static_GCJ
24046
24047# Compiler flag to turn off builtin functions.
24048no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
24049
24050# Compiler flag to allow reflexive dlopens.
24051export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
24052
24053# Compiler flag to generate shared objects directly from archives.
24054whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
24055
24056# Compiler flag to generate thread-safe objects.
24057thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
24058
24059# Library versioning type.
24060version_type=$version_type
24061
24062# Format of library name prefix.
24063libname_spec=$lt_libname_spec
24064
24065# List of archive names. First name is the real one, the rest are links.
24066# The last name is the one that the linker finds with -lNAME.
24067library_names_spec=$lt_library_names_spec
24068
24069# The coded name of the library, if different from the real name.
24070soname_spec=$lt_soname_spec
24071
24072# Commands used to build and install an old-style archive.
24073RANLIB=$lt_RANLIB
24074old_archive_cmds=$lt_old_archive_cmds_GCJ
24075old_postinstall_cmds=$lt_old_postinstall_cmds
24076old_postuninstall_cmds=$lt_old_postuninstall_cmds
24077
24078# Create an old-style archive from a shared archive.
24079old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
24080
24081# Create a temporary old-style archive to link instead of a shared archive.
24082old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
24083
24084# Commands used to build and install a shared archive.
24085archive_cmds=$lt_archive_cmds_GCJ
24086archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
24087postinstall_cmds=$lt_postinstall_cmds
24088postuninstall_cmds=$lt_postuninstall_cmds
24089
24090# Commands used to build a loadable module (assumed same as above if empty)
24091module_cmds=$lt_module_cmds_GCJ
24092module_expsym_cmds=$lt_module_expsym_cmds_GCJ
24093
24094# Commands to strip libraries.
24095old_striplib=$lt_old_striplib
24096striplib=$lt_striplib
24097
24098# Dependencies to place before the objects being linked to create a
24099# shared library.
24100predep_objects=$lt_predep_objects_GCJ
24101
24102# Dependencies to place after the objects being linked to create a
24103# shared library.
24104postdep_objects=$lt_postdep_objects_GCJ
24105
24106# Dependencies to place before the objects being linked to create a
24107# shared library.
24108predeps=$lt_predeps_GCJ
24109
24110# Dependencies to place after the objects being linked to create a
24111# shared library.
24112postdeps=$lt_postdeps_GCJ
24113
24114# The library search path used internally by the compiler when linking
24115# a shared library.
24116compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
24117
24118# Method to check whether dependent libraries are shared objects.
24119deplibs_check_method=$lt_deplibs_check_method
24120
24121# Command to use when deplibs_check_method == file_magic.
24122file_magic_cmd=$lt_file_magic_cmd
24123
24124# Flag that allows shared libraries with undefined symbols to be built.
24125allow_undefined_flag=$lt_allow_undefined_flag_GCJ
24126
24127# Flag that forces no undefined symbols.
24128no_undefined_flag=$lt_no_undefined_flag_GCJ
24129
24130# Commands used to finish a libtool library installation in a directory.
24131finish_cmds=$lt_finish_cmds
24132
24133# Same as above, but a single script fragment to be evaled but not shown.
24134finish_eval=$lt_finish_eval
24135
24136# Take the output of nm and produce a listing of raw symbols and C names.
24137global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24138
24139# Transform the output of nm in a proper C declaration
24140global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24141
24142# Transform the output of nm in a C name address pair
24143global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24144
24145# This is the shared library runtime path variable.
24146runpath_var=$runpath_var
24147
24148# This is the shared library path variable.
24149shlibpath_var=$shlibpath_var
24150
24151# Is shlibpath searched before the hard-coded library search path?
24152shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24153
24154# How to hardcode a shared library path into an executable.
24155hardcode_action=$hardcode_action_GCJ
24156
24157# Whether we should hardcode library paths into libraries.
24158hardcode_into_libs=$hardcode_into_libs
24159
24160# Flag to hardcode \$libdir into a binary during linking.
24161# This must work even if \$libdir does not exist.
24162hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
24163
24164# If ld is used when linking, flag to hardcode \$libdir into
24165# a binary during linking. This must work even if \$libdir does
24166# not exist.
24167hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
24168
24169# Whether we need a single -rpath flag with a separated argument.
24170hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
24171
24172# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24173# resulting binary.
24174hardcode_direct=$hardcode_direct_GCJ
24175
24176# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24177# resulting binary.
24178hardcode_minus_L=$hardcode_minus_L_GCJ
24179
24180# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24181# the resulting binary.
24182hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
24183
24184# Set to yes if building a shared library automatically hardcodes DIR into the library
24185# and all subsequent libraries and executables linked against it.
24186hardcode_automatic=$hardcode_automatic_GCJ
24187
24188# Variables whose values should be saved in libtool wrapper scripts and
24189# restored at relink time.
24190variables_saved_for_relink="$variables_saved_for_relink"
24191
24192# Whether libtool must link a program against all its dependency libraries.
24193link_all_deplibs=$link_all_deplibs_GCJ
24194
24195# Compile-time system search path for libraries
24196sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24197
24198# Run-time system search path for libraries
24199sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24200
24201# Fix the shell variable \$srcfile for the compiler.
24202fix_srcfile_path="$fix_srcfile_path_GCJ"
24203
24204# Set to yes if exported symbols are required.
24205always_export_symbols=$always_export_symbols_GCJ
24206
24207# The commands to list exported symbols.
24208export_symbols_cmds=$lt_export_symbols_cmds_GCJ
24209
24210# The commands to extract the exported symbol list from a shared archive.
24211extract_expsyms_cmds=$lt_extract_expsyms_cmds
24212
24213# Symbols that should not be listed in the preloaded symbols.
24214exclude_expsyms=$lt_exclude_expsyms_GCJ
24215
24216# Symbols that must always be exported.
24217include_expsyms=$lt_include_expsyms_GCJ
24218
24219# ### END LIBTOOL TAG CONFIG: $tagname
24220
24221__EOF__
24222
24223
24224else
24225 # If there is no Makefile yet, we rely on a make rule to execute
24226 # `config.status --recheck' to rerun these tests and create the
24227 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024228 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24229 if test -f "$ltmain_in"; then
24230 test -f Makefile && make "$ltmain"
24231 fi
John Criswell47fdd832003-07-14 16:52:07 +000024232fi
24233
24234
24235ac_ext=c
24236ac_cpp='$CPP $CPPFLAGS'
24237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24239ac_compiler_gnu=$ac_cv_c_compiler_gnu
24240
24241CC="$lt_save_CC"
24242
24243 else
24244 tagname=""
24245 fi
24246 ;;
24247
24248 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024249 ac_ext=c
24250ac_cpp='$CPP $CPPFLAGS'
24251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24253ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000024254
24255
24256# Source file extension for RC test sources.
24257ac_ext=rc
24258
24259# Object file extension for compiled RC test sources.
24260objext=o
24261objext_RC=$objext
24262
24263# Code to be used in simple compile tests
24264lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24265
24266# Code to be used in simple link tests
24267lt_simple_link_test_code="$lt_simple_compile_test_code"
24268
24269# ltmain only uses $CC for tagged configurations so make sure $CC is set.
24270
24271# If no C compiler was specified, use CC.
24272LTCC=${LTCC-"$CC"}
24273
24274# Allow CC to be a program name with arguments.
24275compiler=$CC
24276
24277
24278# Allow CC to be a program name with arguments.
24279lt_save_CC="$CC"
24280CC=${RC-"windres"}
24281compiler=$CC
24282compiler_RC=$CC
24283lt_cv_prog_compiler_c_o_RC=yes
24284
24285# The else clause should only fire when bootstrapping the
24286# libtool distribution, otherwise you forgot to ship ltmain.sh
24287# with your package, and you will get complaints that there are
24288# no rules to generate ltmain.sh.
24289if test -f "$ltmain"; then
24290 # See if we are running on zsh, and set the options which allow our commands through
24291 # without removal of \ escapes.
24292 if test -n "${ZSH_VERSION+set}" ; then
24293 setopt NO_GLOB_SUBST
24294 fi
24295 # Now quote all the things that may contain metacharacters while being
24296 # careful not to overquote the AC_SUBSTed values. We take copies of the
24297 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024298 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24299 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024300 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24301 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24302 deplibs_check_method reload_flag reload_cmds need_locks \
24303 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24304 lt_cv_sys_global_symbol_to_c_name_address \
24305 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24306 old_postinstall_cmds old_postuninstall_cmds \
24307 compiler_RC \
24308 CC_RC \
24309 LD_RC \
24310 lt_prog_compiler_wl_RC \
24311 lt_prog_compiler_pic_RC \
24312 lt_prog_compiler_static_RC \
24313 lt_prog_compiler_no_builtin_flag_RC \
24314 export_dynamic_flag_spec_RC \
24315 thread_safe_flag_spec_RC \
24316 whole_archive_flag_spec_RC \
24317 enable_shared_with_static_runtimes_RC \
24318 old_archive_cmds_RC \
24319 old_archive_from_new_cmds_RC \
24320 predep_objects_RC \
24321 postdep_objects_RC \
24322 predeps_RC \
24323 postdeps_RC \
24324 compiler_lib_search_path_RC \
24325 archive_cmds_RC \
24326 archive_expsym_cmds_RC \
24327 postinstall_cmds_RC \
24328 postuninstall_cmds_RC \
24329 old_archive_from_expsyms_cmds_RC \
24330 allow_undefined_flag_RC \
24331 no_undefined_flag_RC \
24332 export_symbols_cmds_RC \
24333 hardcode_libdir_flag_spec_RC \
24334 hardcode_libdir_flag_spec_ld_RC \
24335 hardcode_libdir_separator_RC \
24336 hardcode_automatic_RC \
24337 module_cmds_RC \
24338 module_expsym_cmds_RC \
24339 lt_cv_prog_compiler_c_o_RC \
24340 exclude_expsyms_RC \
24341 include_expsyms_RC; do
24342
24343 case $var in
24344 old_archive_cmds_RC | \
24345 old_archive_from_new_cmds_RC | \
24346 archive_cmds_RC | \
24347 archive_expsym_cmds_RC | \
24348 module_cmds_RC | \
24349 module_expsym_cmds_RC | \
24350 old_archive_from_expsyms_cmds_RC | \
24351 export_symbols_cmds_RC | \
24352 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24353 postinstall_cmds | postuninstall_cmds | \
24354 old_postinstall_cmds | old_postuninstall_cmds | \
24355 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24356 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024357 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 +000024358 ;;
24359 *)
24360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24361 ;;
24362 esac
24363 done
24364
24365 case $lt_echo in
24366 *'\$0 --fallback-echo"')
24367 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24368 ;;
24369 esac
24370
24371cfgfile="$ofile"
24372
24373 cat <<__EOF__ >> "$cfgfile"
24374# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24375
24376# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24377
24378# Shell to use when invoking shell scripts.
24379SHELL=$lt_SHELL
24380
24381# Whether or not to build shared libraries.
24382build_libtool_libs=$enable_shared
24383
24384# Whether or not to build static libraries.
24385build_old_libs=$enable_static
24386
24387# Whether or not to add -lc for building shared libraries.
24388build_libtool_need_lc=$archive_cmds_need_lc_RC
24389
24390# Whether or not to disallow shared libs when runtime libs are static
24391allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24392
24393# Whether or not to optimize for fast installation.
24394fast_install=$enable_fast_install
24395
24396# The host system.
24397host_alias=$host_alias
24398host=$host
24399
24400# An echo program that does not interpret backslashes.
24401echo=$lt_echo
24402
24403# The archiver.
24404AR=$lt_AR
24405AR_FLAGS=$lt_AR_FLAGS
24406
24407# A C compiler.
24408LTCC=$lt_LTCC
24409
24410# A language-specific compiler.
24411CC=$lt_compiler_RC
24412
24413# Is the compiler the GNU C compiler?
24414with_gcc=$GCC_RC
24415
24416# An ERE matcher.
24417EGREP=$lt_EGREP
24418
24419# The linker used to build libraries.
24420LD=$lt_LD_RC
24421
24422# Whether we need hard or soft links.
24423LN_S=$lt_LN_S
24424
24425# A BSD-compatible nm program.
24426NM=$lt_NM
24427
24428# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024429STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024430
24431# Used to examine libraries when file_magic_cmd begins "file"
24432MAGIC_CMD=$MAGIC_CMD
24433
24434# Used on cygwin: DLL creation program.
24435DLLTOOL="$DLLTOOL"
24436
24437# Used on cygwin: object dumper.
24438OBJDUMP="$OBJDUMP"
24439
24440# Used on cygwin: assembler.
24441AS="$AS"
24442
24443# The name of the directory that contains temporary libtool files.
24444objdir=$objdir
24445
24446# How to create reloadable object files.
24447reload_flag=$lt_reload_flag
24448reload_cmds=$lt_reload_cmds
24449
24450# How to pass a linker flag through the compiler.
24451wl=$lt_lt_prog_compiler_wl_RC
24452
24453# Object file suffix (normally "o").
24454objext="$ac_objext"
24455
24456# Old archive suffix (normally "a").
24457libext="$libext"
24458
24459# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024460shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024461
24462# Executable file suffix (normally "").
24463exeext="$exeext"
24464
24465# Additional compiler flags for building library objects.
24466pic_flag=$lt_lt_prog_compiler_pic_RC
24467pic_mode=$pic_mode
24468
24469# What is the maximum length of a command?
24470max_cmd_len=$lt_cv_sys_max_cmd_len
24471
24472# Does compiler simultaneously support -c and -o options?
24473compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24474
24475# Must we lock files when doing compilation ?
24476need_locks=$lt_need_locks
24477
24478# Do we need the lib prefix for modules?
24479need_lib_prefix=$need_lib_prefix
24480
24481# Do we need a version for libraries?
24482need_version=$need_version
24483
24484# Whether dlopen is supported.
24485dlopen_support=$enable_dlopen
24486
24487# Whether dlopen of programs is supported.
24488dlopen_self=$enable_dlopen_self
24489
24490# Whether dlopen of statically linked programs is supported.
24491dlopen_self_static=$enable_dlopen_self_static
24492
24493# Compiler flag to prevent dynamic linking.
24494link_static_flag=$lt_lt_prog_compiler_static_RC
24495
24496# Compiler flag to turn off builtin functions.
24497no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24498
24499# Compiler flag to allow reflexive dlopens.
24500export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24501
24502# Compiler flag to generate shared objects directly from archives.
24503whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24504
24505# Compiler flag to generate thread-safe objects.
24506thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24507
24508# Library versioning type.
24509version_type=$version_type
24510
24511# Format of library name prefix.
24512libname_spec=$lt_libname_spec
24513
24514# List of archive names. First name is the real one, the rest are links.
24515# The last name is the one that the linker finds with -lNAME.
24516library_names_spec=$lt_library_names_spec
24517
24518# The coded name of the library, if different from the real name.
24519soname_spec=$lt_soname_spec
24520
24521# Commands used to build and install an old-style archive.
24522RANLIB=$lt_RANLIB
24523old_archive_cmds=$lt_old_archive_cmds_RC
24524old_postinstall_cmds=$lt_old_postinstall_cmds
24525old_postuninstall_cmds=$lt_old_postuninstall_cmds
24526
24527# Create an old-style archive from a shared archive.
24528old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24529
24530# Create a temporary old-style archive to link instead of a shared archive.
24531old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24532
24533# Commands used to build and install a shared archive.
24534archive_cmds=$lt_archive_cmds_RC
24535archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24536postinstall_cmds=$lt_postinstall_cmds
24537postuninstall_cmds=$lt_postuninstall_cmds
24538
24539# Commands used to build a loadable module (assumed same as above if empty)
24540module_cmds=$lt_module_cmds_RC
24541module_expsym_cmds=$lt_module_expsym_cmds_RC
24542
24543# Commands to strip libraries.
24544old_striplib=$lt_old_striplib
24545striplib=$lt_striplib
24546
24547# Dependencies to place before the objects being linked to create a
24548# shared library.
24549predep_objects=$lt_predep_objects_RC
24550
24551# Dependencies to place after the objects being linked to create a
24552# shared library.
24553postdep_objects=$lt_postdep_objects_RC
24554
24555# Dependencies to place before the objects being linked to create a
24556# shared library.
24557predeps=$lt_predeps_RC
24558
24559# Dependencies to place after the objects being linked to create a
24560# shared library.
24561postdeps=$lt_postdeps_RC
24562
24563# The library search path used internally by the compiler when linking
24564# a shared library.
24565compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24566
24567# Method to check whether dependent libraries are shared objects.
24568deplibs_check_method=$lt_deplibs_check_method
24569
24570# Command to use when deplibs_check_method == file_magic.
24571file_magic_cmd=$lt_file_magic_cmd
24572
24573# Flag that allows shared libraries with undefined symbols to be built.
24574allow_undefined_flag=$lt_allow_undefined_flag_RC
24575
24576# Flag that forces no undefined symbols.
24577no_undefined_flag=$lt_no_undefined_flag_RC
24578
24579# Commands used to finish a libtool library installation in a directory.
24580finish_cmds=$lt_finish_cmds
24581
24582# Same as above, but a single script fragment to be evaled but not shown.
24583finish_eval=$lt_finish_eval
24584
24585# Take the output of nm and produce a listing of raw symbols and C names.
24586global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24587
24588# Transform the output of nm in a proper C declaration
24589global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24590
24591# Transform the output of nm in a C name address pair
24592global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24593
24594# This is the shared library runtime path variable.
24595runpath_var=$runpath_var
24596
24597# This is the shared library path variable.
24598shlibpath_var=$shlibpath_var
24599
24600# Is shlibpath searched before the hard-coded library search path?
24601shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24602
24603# How to hardcode a shared library path into an executable.
24604hardcode_action=$hardcode_action_RC
24605
24606# Whether we should hardcode library paths into libraries.
24607hardcode_into_libs=$hardcode_into_libs
24608
24609# Flag to hardcode \$libdir into a binary during linking.
24610# This must work even if \$libdir does not exist.
24611hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24612
24613# If ld is used when linking, flag to hardcode \$libdir into
24614# a binary during linking. This must work even if \$libdir does
24615# not exist.
24616hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24617
24618# Whether we need a single -rpath flag with a separated argument.
24619hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24620
24621# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24622# resulting binary.
24623hardcode_direct=$hardcode_direct_RC
24624
24625# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24626# resulting binary.
24627hardcode_minus_L=$hardcode_minus_L_RC
24628
24629# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24630# the resulting binary.
24631hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24632
24633# Set to yes if building a shared library automatically hardcodes DIR into the library
24634# and all subsequent libraries and executables linked against it.
24635hardcode_automatic=$hardcode_automatic_RC
24636
24637# Variables whose values should be saved in libtool wrapper scripts and
24638# restored at relink time.
24639variables_saved_for_relink="$variables_saved_for_relink"
24640
24641# Whether libtool must link a program against all its dependency libraries.
24642link_all_deplibs=$link_all_deplibs_RC
24643
24644# Compile-time system search path for libraries
24645sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24646
24647# Run-time system search path for libraries
24648sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24649
24650# Fix the shell variable \$srcfile for the compiler.
24651fix_srcfile_path="$fix_srcfile_path_RC"
24652
24653# Set to yes if exported symbols are required.
24654always_export_symbols=$always_export_symbols_RC
24655
24656# The commands to list exported symbols.
24657export_symbols_cmds=$lt_export_symbols_cmds_RC
24658
24659# The commands to extract the exported symbol list from a shared archive.
24660extract_expsyms_cmds=$lt_extract_expsyms_cmds
24661
24662# Symbols that should not be listed in the preloaded symbols.
24663exclude_expsyms=$lt_exclude_expsyms_RC
24664
24665# Symbols that must always be exported.
24666include_expsyms=$lt_include_expsyms_RC
24667
24668# ### END LIBTOOL TAG CONFIG: $tagname
24669
24670__EOF__
24671
24672
24673else
24674 # If there is no Makefile yet, we rely on a make rule to execute
24675 # `config.status --recheck' to rerun these tests and create the
24676 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024677 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24678 if test -f "$ltmain_in"; then
24679 test -f Makefile && make "$ltmain"
24680 fi
John Criswell47fdd832003-07-14 16:52:07 +000024681fi
24682
24683
24684ac_ext=c
24685ac_cpp='$CPP $CPPFLAGS'
24686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24688ac_compiler_gnu=$ac_cv_c_compiler_gnu
24689
24690CC="$lt_save_CC"
24691
24692 ;;
24693
24694 *)
24695 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24696echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24697 { (exit 1); exit 1; }; }
24698 ;;
24699 esac
24700
24701 # Append the new tag name to the list of available tags.
24702 if test -n "$tagname" ; then
24703 available_tags="$available_tags $tagname"
24704 fi
24705 fi
24706 done
24707 IFS="$lt_save_ifs"
24708
24709 # Now substitute the updated list of available tags.
24710 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24711 mv "${ofile}T" "$ofile"
24712 chmod +x "$ofile"
24713 else
24714 rm -f "${ofile}T"
24715 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24716echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24717 { (exit 1); exit 1; }; }
24718 fi
24719fi
John Criswell7a73b802003-06-30 21:59:07 +000024720
24721
24722
24723# This can be used to rebuild libtool when needed
24724LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24725
24726# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024727LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024728
24729# Prevent multiple expansion
24730
24731
24732
John Criswell47fdd832003-07-14 16:52:07 +000024733
24734
24735
24736
24737
24738
24739
24740
24741
24742
24743
24744
24745
24746
24747
24748
24749
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024750
Reid Spencer582a23c2004-12-29 07:07:57 +000024751if test "$lt_cv_dlopen_self" = "yes" ; then
24752
24753cat >>confdefs.h <<\_ACEOF
24754#define CAN_DLOPEN_SELF 1
24755_ACEOF
24756
24757fi
24758
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024759etags_version=`$ETAGS --version 2>&1`
24760case "$etags_version" in
24761 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24762 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24763 *) ETAGSFLAGS="" ;;
24764esac
24765ETAGSFLAGS=$ETAGSFLAGS
24766
24767
Reid Spencer7931a782004-12-27 06:15:02 +000024768if test "$WITH_LLVMGCCDIR" = "default" ; then
Reid Spencerc84492c2005-06-02 22:34:49 +000024769 LLVMGCC="llvm-gcc${EXEEXT}"
24770 LLVMGXX="llvm-g++${EXEEXT}"
24771 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
24772set dummy $LLVMGCC; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024773echo "$as_me:$LINENO: checking for $ac_word" >&5
24774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24775if test "${ac_cv_path_LLVMGCC+set}" = set; then
24776 echo $ECHO_N "(cached) $ECHO_C" >&6
24777else
24778 case $LLVMGCC in
24779 [\\/]* | ?:[\\/]*)
24780 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
24781 ;;
24782 *)
24783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24784for as_dir in $PATH
24785do
24786 IFS=$as_save_IFS
24787 test -z "$as_dir" && as_dir=.
24788 for ac_exec_ext in '' $ac_executable_extensions; do
24789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24790 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
24791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24792 break 2
24793 fi
24794done
24795done
24796
Reid Spencer59473af2004-12-25 07:31:29 +000024797 ;;
24798esac
24799fi
24800LLVMGCC=$ac_cv_path_LLVMGCC
24801
24802if test -n "$LLVMGCC"; then
24803 echo "$as_me:$LINENO: result: $LLVMGCC" >&5
24804echo "${ECHO_T}$LLVMGCC" >&6
24805else
24806 echo "$as_me:$LINENO: result: no" >&5
24807echo "${ECHO_T}no" >&6
24808fi
24809
Reid Spencerc84492c2005-06-02 22:34:49 +000024810 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
24811set dummy $LLVMGXX; ac_word=$2
Reid Spencer59473af2004-12-25 07:31:29 +000024812echo "$as_me:$LINENO: checking for $ac_word" >&5
24813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24814if test "${ac_cv_path_LLVMGXX+set}" = set; then
24815 echo $ECHO_N "(cached) $ECHO_C" >&6
24816else
24817 case $LLVMGXX in
24818 [\\/]* | ?:[\\/]*)
24819 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
24820 ;;
24821 *)
24822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24823for as_dir in $PATH
24824do
24825 IFS=$as_save_IFS
24826 test -z "$as_dir" && as_dir=.
24827 for ac_exec_ext in '' $ac_executable_extensions; do
24828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24829 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
24830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24831 break 2
24832 fi
24833done
24834done
24835
Reid Spencer59473af2004-12-25 07:31:29 +000024836 ;;
24837esac
24838fi
24839LLVMGXX=$ac_cv_path_LLVMGXX
24840
24841if test -n "$LLVMGXX"; then
24842 echo "$as_me:$LINENO: result: $LLVMGXX" >&5
24843echo "${ECHO_T}$LLVMGXX" >&6
24844else
24845 echo "$as_me:$LINENO: result: no" >&5
24846echo "${ECHO_T}no" >&6
24847fi
24848
24849else
Reid Spencerc84492c2005-06-02 22:34:49 +000024850 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
24851 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
Reid Spencer59473af2004-12-25 07:31:29 +000024852 LLVMGCC=$LLVMGCC
24853
24854 LLVMGXX=$LLVMGXX
24855
24856fi
24857
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024858echo "$as_me:$LINENO: checking tool compatibility" >&5
24859echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24860
Reid Spencer86901802004-12-08 23:07:27 +000024861ICC=no
24862IXX=no
24863case $CC in
24864 icc*|icpc*)
24865 ICC=yes
24866 IXX=yes
24867 ;;
24868 *)
24869 ;;
24870esac
24871
Duraid Madina937c60a2006-02-15 07:57:42 +000024872if test "$GCC" != "yes" && test "$ICC" != "yes"
24873then
24874 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
24875echo "$as_me: error: gcc|icc required but not found" >&2;}
24876 { (exit 1); exit 1; }; }
24877fi
24878
24879if test "$GXX" != "yes" && test "$IXX" != "yes"
24880then
24881 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
24882echo "$as_me: error: g++|icc required but not found" >&2;}
24883 { (exit 1); exit 1; }; }
24884fi
24885
Reid Spencer86901802004-12-08 23:07:27 +000024886if test "$GCC" = "yes"
24887then
Reid Spencerbc9e49c2005-07-27 21:58:38 +000024888 gccmajor=`$CC --version | head -n 1 | sed 's/[^0-9]*\([0-9.]\).*/\1/'`
Reid Spencer86901802004-12-08 23:07:27 +000024889 if test "$gccmajor" -lt "3"
24890 then
24891 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024892echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24893 { (exit 1); exit 1; }; }
Reid Spencer86901802004-12-08 23:07:27 +000024894 fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024895fi
24896
24897if test -z "$llvm_cv_gnu_make_command"
24898then
24899 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24900echo "$as_me: error: GNU Make required but not found" >&2;}
24901 { (exit 1); exit 1; }; }
24902fi
24903
24904echo "$as_me:$LINENO: result: ok" >&5
24905echo "${ECHO_T}ok" >&6
24906
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024907
John Criswell7a73b802003-06-30 21:59:07 +000024908
John Criswell7a73b802003-06-30 21:59:07 +000024909echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24910echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24911if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24912 echo $ECHO_N "(cached) $ECHO_C" >&6
24913else
24914 ac_check_lib_save_LIBS=$LIBS
24915LIBS="-lelf $LIBS"
24916cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024917/* confdefs.h. */
24918_ACEOF
24919cat confdefs.h >>conftest.$ac_ext
24920cat >>conftest.$ac_ext <<_ACEOF
24921/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024922
24923/* Override any gcc2 internal prototype to avoid an error. */
24924#ifdef __cplusplus
24925extern "C"
24926#endif
24927/* We use char because int might match the return type of a gcc2
24928 builtin and then its argument prototype would still apply. */
24929char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024930int
24931main ()
24932{
24933elf_begin ();
24934 ;
24935 return 0;
24936}
24937_ACEOF
24938rm -f conftest.$ac_objext conftest$ac_exeext
24939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024940 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024941 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024942 grep -v '^ *+' conftest.er1 >conftest.err
24943 rm -f conftest.er1
24944 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24946 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024947 { ac_try='test -z "$ac_c_werror_flag"
24948 || test ! -s conftest.err'
24949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); }; } &&
24954 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24956 (eval $ac_try) 2>&5
24957 ac_status=$?
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); }; }; then
24960 ac_cv_lib_elf_elf_begin=yes
24961else
24962 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024963sed 's/^/| /' conftest.$ac_ext >&5
24964
John Criswell7a73b802003-06-30 21:59:07 +000024965ac_cv_lib_elf_elf_begin=no
24966fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024967rm -f conftest.err conftest.$ac_objext \
24968 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024969LIBS=$ac_check_lib_save_LIBS
24970fi
24971echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24972echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24973if test $ac_cv_lib_elf_elf_begin = yes; then
24974 cat >>confdefs.h <<_ACEOF
24975#define HAVE_LIBELF 1
24976_ACEOF
24977
24978 LIBS="-lelf $LIBS"
24979
24980fi
24981
24982
Reid Spencer3484a992006-01-19 08:31:08 +000024983echo "$as_me:$LINENO: checking for sin in -lm" >&5
24984echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
24985if test "${ac_cv_lib_m_sin+set}" = set; then
24986 echo $ECHO_N "(cached) $ECHO_C" >&6
24987else
24988 ac_check_lib_save_LIBS=$LIBS
24989LIBS="-lm $LIBS"
24990cat >conftest.$ac_ext <<_ACEOF
24991/* confdefs.h. */
24992_ACEOF
24993cat confdefs.h >>conftest.$ac_ext
24994cat >>conftest.$ac_ext <<_ACEOF
24995/* end confdefs.h. */
24996
24997/* Override any gcc2 internal prototype to avoid an error. */
24998#ifdef __cplusplus
24999extern "C"
25000#endif
25001/* We use char because int might match the return type of a gcc2
25002 builtin and then its argument prototype would still apply. */
25003char sin ();
25004int
25005main ()
25006{
25007sin ();
25008 ;
25009 return 0;
25010}
25011_ACEOF
25012rm -f conftest.$ac_objext conftest$ac_exeext
25013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25014 (eval $ac_link) 2>conftest.er1
25015 ac_status=$?
25016 grep -v '^ *+' conftest.er1 >conftest.err
25017 rm -f conftest.er1
25018 cat conftest.err >&5
25019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25020 (exit $ac_status); } &&
25021 { ac_try='test -z "$ac_c_werror_flag"
25022 || test ! -s conftest.err'
25023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25024 (eval $ac_try) 2>&5
25025 ac_status=$?
25026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027 (exit $ac_status); }; } &&
25028 { ac_try='test -s conftest$ac_exeext'
25029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25030 (eval $ac_try) 2>&5
25031 ac_status=$?
25032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25033 (exit $ac_status); }; }; then
25034 ac_cv_lib_m_sin=yes
25035else
25036 echo "$as_me: failed program was:" >&5
25037sed 's/^/| /' conftest.$ac_ext >&5
25038
25039ac_cv_lib_m_sin=no
25040fi
25041rm -f conftest.err conftest.$ac_objext \
25042 conftest$ac_exeext conftest.$ac_ext
25043LIBS=$ac_check_lib_save_LIBS
25044fi
25045echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
25046echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
25047if test $ac_cv_lib_m_sin = yes; then
25048 cat >>confdefs.h <<_ACEOF
25049#define HAVE_LIBM 1
25050_ACEOF
25051
25052 LIBS="-lm $LIBS"
25053
25054fi
25055
Reid Spencer22177fe2005-07-12 15:24:20 +000025056
Reid Spencer17795972004-11-18 09:47:37 +000025057echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
25058echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
25059if test "${ac_cv_search_lt_dlopen+set}" = set; then
25060 echo $ECHO_N "(cached) $ECHO_C" >&6
25061else
25062 ac_func_search_save_LIBS=$LIBS
25063ac_cv_search_lt_dlopen=no
25064cat >conftest.$ac_ext <<_ACEOF
25065/* confdefs.h. */
25066_ACEOF
25067cat confdefs.h >>conftest.$ac_ext
25068cat >>conftest.$ac_ext <<_ACEOF
25069/* end confdefs.h. */
25070
25071/* Override any gcc2 internal prototype to avoid an error. */
25072#ifdef __cplusplus
25073extern "C"
25074#endif
25075/* We use char because int might match the return type of a gcc2
25076 builtin and then its argument prototype would still apply. */
25077char lt_dlopen ();
25078int
25079main ()
25080{
25081lt_dlopen ();
25082 ;
25083 return 0;
25084}
25085_ACEOF
25086rm -f conftest.$ac_objext conftest$ac_exeext
25087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25088 (eval $ac_link) 2>conftest.er1
25089 ac_status=$?
25090 grep -v '^ *+' conftest.er1 >conftest.err
25091 rm -f conftest.er1
25092 cat conftest.err >&5
25093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); } &&
25095 { ac_try='test -z "$ac_c_werror_flag"
25096 || test ! -s conftest.err'
25097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25098 (eval $ac_try) 2>&5
25099 ac_status=$?
25100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101 (exit $ac_status); }; } &&
25102 { ac_try='test -s conftest$ac_exeext'
25103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25104 (eval $ac_try) 2>&5
25105 ac_status=$?
25106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); }; }; then
25108 ac_cv_search_lt_dlopen="none required"
25109else
25110 echo "$as_me: failed program was:" >&5
25111sed 's/^/| /' conftest.$ac_ext >&5
25112
25113fi
25114rm -f conftest.err conftest.$ac_objext \
25115 conftest$ac_exeext conftest.$ac_ext
25116if test "$ac_cv_search_lt_dlopen" = no; then
25117 for ac_lib in ltdl; do
25118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25119 cat >conftest.$ac_ext <<_ACEOF
25120/* confdefs.h. */
25121_ACEOF
25122cat confdefs.h >>conftest.$ac_ext
25123cat >>conftest.$ac_ext <<_ACEOF
25124/* end confdefs.h. */
25125
25126/* Override any gcc2 internal prototype to avoid an error. */
25127#ifdef __cplusplus
25128extern "C"
25129#endif
25130/* We use char because int might match the return type of a gcc2
25131 builtin and then its argument prototype would still apply. */
25132char lt_dlopen ();
25133int
25134main ()
25135{
25136lt_dlopen ();
25137 ;
25138 return 0;
25139}
25140_ACEOF
25141rm -f conftest.$ac_objext conftest$ac_exeext
25142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25143 (eval $ac_link) 2>conftest.er1
25144 ac_status=$?
25145 grep -v '^ *+' conftest.er1 >conftest.err
25146 rm -f conftest.er1
25147 cat conftest.err >&5
25148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); } &&
25150 { ac_try='test -z "$ac_c_werror_flag"
25151 || test ! -s conftest.err'
25152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25153 (eval $ac_try) 2>&5
25154 ac_status=$?
25155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); }; } &&
25157 { ac_try='test -s conftest$ac_exeext'
25158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159 (eval $ac_try) 2>&5
25160 ac_status=$?
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; }; then
25163 ac_cv_search_lt_dlopen="-l$ac_lib"
25164break
25165else
25166 echo "$as_me: failed program was:" >&5
25167sed 's/^/| /' conftest.$ac_ext >&5
25168
25169fi
25170rm -f conftest.err conftest.$ac_objext \
25171 conftest$ac_exeext conftest.$ac_ext
25172 done
25173fi
25174LIBS=$ac_func_search_save_LIBS
25175fi
25176echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
25177echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
25178if test "$ac_cv_search_lt_dlopen" != no; then
25179 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
25180
25181cat >>confdefs.h <<\_ACEOF
25182#define HAVE_LT_DLOPEN 1
25183_ACEOF
25184
25185else
25186 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
25187 not be available" >&5
25188echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
25189 not be available" >&2;}
25190fi
25191
25192
John Criswell7a73b802003-06-30 21:59:07 +000025193echo "$as_me:$LINENO: checking for library containing dlopen" >&5
25194echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
25195if test "${ac_cv_search_dlopen+set}" = set; then
25196 echo $ECHO_N "(cached) $ECHO_C" >&6
25197else
25198 ac_func_search_save_LIBS=$LIBS
25199ac_cv_search_dlopen=no
25200cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025201/* confdefs.h. */
25202_ACEOF
25203cat confdefs.h >>conftest.$ac_ext
25204cat >>conftest.$ac_ext <<_ACEOF
25205/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025206
25207/* Override any gcc2 internal prototype to avoid an error. */
25208#ifdef __cplusplus
25209extern "C"
25210#endif
25211/* We use char because int might match the return type of a gcc2
25212 builtin and then its argument prototype would still apply. */
25213char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025214int
25215main ()
25216{
25217dlopen ();
25218 ;
25219 return 0;
25220}
25221_ACEOF
25222rm -f conftest.$ac_objext conftest$ac_exeext
25223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025224 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025225 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025226 grep -v '^ *+' conftest.er1 >conftest.err
25227 rm -f conftest.er1
25228 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025231 { ac_try='test -z "$ac_c_werror_flag"
25232 || test ! -s conftest.err'
25233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25234 (eval $ac_try) 2>&5
25235 ac_status=$?
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }; } &&
25238 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240 (eval $ac_try) 2>&5
25241 ac_status=$?
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); }; }; then
25244 ac_cv_search_dlopen="none required"
25245else
25246 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025247sed 's/^/| /' conftest.$ac_ext >&5
25248
John Criswell7a73b802003-06-30 21:59:07 +000025249fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025250rm -f conftest.err conftest.$ac_objext \
25251 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025252if test "$ac_cv_search_dlopen" = no; then
25253 for ac_lib in dl; do
25254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25255 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025256/* confdefs.h. */
25257_ACEOF
25258cat confdefs.h >>conftest.$ac_ext
25259cat >>conftest.$ac_ext <<_ACEOF
25260/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025261
25262/* Override any gcc2 internal prototype to avoid an error. */
25263#ifdef __cplusplus
25264extern "C"
25265#endif
25266/* We use char because int might match the return type of a gcc2
25267 builtin and then its argument prototype would still apply. */
25268char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000025269int
25270main ()
25271{
25272dlopen ();
25273 ;
25274 return 0;
25275}
25276_ACEOF
25277rm -f conftest.$ac_objext conftest$ac_exeext
25278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025279 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025280 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025281 grep -v '^ *+' conftest.er1 >conftest.err
25282 rm -f conftest.er1
25283 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025286 { ac_try='test -z "$ac_c_werror_flag"
25287 || test ! -s conftest.err'
25288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25289 (eval $ac_try) 2>&5
25290 ac_status=$?
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); }; } &&
25293 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25295 (eval $ac_try) 2>&5
25296 ac_status=$?
25297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25298 (exit $ac_status); }; }; then
25299 ac_cv_search_dlopen="-l$ac_lib"
25300break
25301else
25302 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025303sed 's/^/| /' conftest.$ac_ext >&5
25304
John Criswell7a73b802003-06-30 21:59:07 +000025305fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025306rm -f conftest.err conftest.$ac_objext \
25307 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025308 done
25309fi
25310LIBS=$ac_func_search_save_LIBS
25311fi
25312echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
25313echo "${ECHO_T}$ac_cv_search_dlopen" >&6
25314if test "$ac_cv_search_dlopen" != no; then
25315 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025316
25317cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000025318#define HAVE_DLOPEN 1
25319_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025320
25321else
Brian Gaekec45be042003-10-07 06:01:34 +000025322 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
25323echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000025324fi
25325
25326
25327echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
25328echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
25329if test "${ac_cv_search_mallinfo+set}" = set; then
25330 echo $ECHO_N "(cached) $ECHO_C" >&6
25331else
25332 ac_func_search_save_LIBS=$LIBS
25333ac_cv_search_mallinfo=no
25334cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025335/* confdefs.h. */
25336_ACEOF
25337cat confdefs.h >>conftest.$ac_ext
25338cat >>conftest.$ac_ext <<_ACEOF
25339/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025340
25341/* Override any gcc2 internal prototype to avoid an error. */
25342#ifdef __cplusplus
25343extern "C"
25344#endif
25345/* We use char because int might match the return type of a gcc2
25346 builtin and then its argument prototype would still apply. */
25347char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025348int
25349main ()
25350{
25351mallinfo ();
25352 ;
25353 return 0;
25354}
25355_ACEOF
25356rm -f conftest.$ac_objext conftest$ac_exeext
25357if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025358 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025359 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025360 grep -v '^ *+' conftest.er1 >conftest.err
25361 rm -f conftest.er1
25362 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25364 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025365 { ac_try='test -z "$ac_c_werror_flag"
25366 || test ! -s conftest.err'
25367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25368 (eval $ac_try) 2>&5
25369 ac_status=$?
25370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25371 (exit $ac_status); }; } &&
25372 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25374 (eval $ac_try) 2>&5
25375 ac_status=$?
25376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25377 (exit $ac_status); }; }; then
25378 ac_cv_search_mallinfo="none required"
25379else
25380 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025381sed 's/^/| /' conftest.$ac_ext >&5
25382
John Criswell7a73b802003-06-30 21:59:07 +000025383fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025384rm -f conftest.err conftest.$ac_objext \
25385 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025386if test "$ac_cv_search_mallinfo" = no; then
25387 for ac_lib in malloc; do
25388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25389 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025390/* confdefs.h. */
25391_ACEOF
25392cat confdefs.h >>conftest.$ac_ext
25393cat >>conftest.$ac_ext <<_ACEOF
25394/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025395
25396/* Override any gcc2 internal prototype to avoid an error. */
25397#ifdef __cplusplus
25398extern "C"
25399#endif
25400/* We use char because int might match the return type of a gcc2
25401 builtin and then its argument prototype would still apply. */
25402char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000025403int
25404main ()
25405{
25406mallinfo ();
25407 ;
25408 return 0;
25409}
25410_ACEOF
25411rm -f conftest.$ac_objext conftest$ac_exeext
25412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025413 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025414 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025415 grep -v '^ *+' conftest.er1 >conftest.err
25416 rm -f conftest.er1
25417 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025420 { ac_try='test -z "$ac_c_werror_flag"
25421 || test ! -s conftest.err'
25422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423 (eval $ac_try) 2>&5
25424 ac_status=$?
25425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426 (exit $ac_status); }; } &&
25427 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000025428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25429 (eval $ac_try) 2>&5
25430 ac_status=$?
25431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); }; }; then
25433 ac_cv_search_mallinfo="-l$ac_lib"
25434break
25435else
25436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025437sed 's/^/| /' conftest.$ac_ext >&5
25438
John Criswell7a73b802003-06-30 21:59:07 +000025439fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025440rm -f conftest.err conftest.$ac_objext \
25441 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025442 done
25443fi
25444LIBS=$ac_func_search_save_LIBS
25445fi
25446echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25447echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25448if test "$ac_cv_search_mallinfo" != no; then
25449 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025450
25451cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025452#define HAVE_MALLINFO 1
25453_ACEOF
25454
25455fi
25456
25457
Reid Spencer0a262ba2005-08-24 10:07:20 +000025458if test "$ENABLE_THREADS" -eq 1 ; then
Reid Spencer22177fe2005-07-12 15:24:20 +000025459
25460echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
25461echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
25462if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
25463 echo $ECHO_N "(cached) $ECHO_C" >&6
25464else
25465 ac_check_lib_save_LIBS=$LIBS
25466LIBS="-lpthread $LIBS"
25467cat >conftest.$ac_ext <<_ACEOF
25468/* confdefs.h. */
25469_ACEOF
25470cat confdefs.h >>conftest.$ac_ext
25471cat >>conftest.$ac_ext <<_ACEOF
25472/* end confdefs.h. */
25473
25474/* Override any gcc2 internal prototype to avoid an error. */
25475#ifdef __cplusplus
25476extern "C"
25477#endif
25478/* We use char because int might match the return type of a gcc2
25479 builtin and then its argument prototype would still apply. */
25480char pthread_mutex_init ();
25481int
25482main ()
25483{
25484pthread_mutex_init ();
25485 ;
25486 return 0;
25487}
25488_ACEOF
25489rm -f conftest.$ac_objext conftest$ac_exeext
25490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25491 (eval $ac_link) 2>conftest.er1
25492 ac_status=$?
25493 grep -v '^ *+' conftest.er1 >conftest.err
25494 rm -f conftest.er1
25495 cat conftest.err >&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); } &&
25498 { ac_try='test -z "$ac_c_werror_flag"
25499 || test ! -s conftest.err'
25500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25501 (eval $ac_try) 2>&5
25502 ac_status=$?
25503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504 (exit $ac_status); }; } &&
25505 { ac_try='test -s conftest$ac_exeext'
25506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25507 (eval $ac_try) 2>&5
25508 ac_status=$?
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); }; }; then
25511 ac_cv_lib_pthread_pthread_mutex_init=yes
25512else
25513 echo "$as_me: failed program was:" >&5
25514sed 's/^/| /' conftest.$ac_ext >&5
25515
25516ac_cv_lib_pthread_pthread_mutex_init=no
25517fi
25518rm -f conftest.err conftest.$ac_objext \
25519 conftest$ac_exeext conftest.$ac_ext
25520LIBS=$ac_check_lib_save_LIBS
25521fi
25522echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
25523echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
25524if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
25525 cat >>confdefs.h <<_ACEOF
25526#define HAVE_LIBPTHREAD 1
25527_ACEOF
25528
25529 LIBS="-lpthread $LIBS"
25530
25531fi
25532
Reid Spencer0a262ba2005-08-24 10:07:20 +000025533 echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025534echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25535if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25536 echo $ECHO_N "(cached) $ECHO_C" >&6
25537else
25538 ac_func_search_save_LIBS=$LIBS
25539ac_cv_search_pthread_mutex_lock=no
25540cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025541/* confdefs.h. */
25542_ACEOF
25543cat confdefs.h >>conftest.$ac_ext
25544cat >>conftest.$ac_ext <<_ACEOF
25545/* end confdefs.h. */
25546
25547/* Override any gcc2 internal prototype to avoid an error. */
25548#ifdef __cplusplus
25549extern "C"
25550#endif
25551/* We use char because int might match the return type of a gcc2
25552 builtin and then its argument prototype would still apply. */
25553char pthread_mutex_lock ();
25554int
25555main ()
25556{
25557pthread_mutex_lock ();
25558 ;
25559 return 0;
25560}
25561_ACEOF
25562rm -f conftest.$ac_objext conftest$ac_exeext
25563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025564 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025565 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025566 grep -v '^ *+' conftest.er1 >conftest.err
25567 rm -f conftest.er1
25568 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25570 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025571 { ac_try='test -z "$ac_c_werror_flag"
25572 || test ! -s conftest.err'
25573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25574 (eval $ac_try) 2>&5
25575 ac_status=$?
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); }; } &&
25578 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25580 (eval $ac_try) 2>&5
25581 ac_status=$?
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); }; }; then
25584 ac_cv_search_pthread_mutex_lock="none required"
25585else
25586 echo "$as_me: failed program was:" >&5
25587sed 's/^/| /' conftest.$ac_ext >&5
25588
25589fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025590rm -f conftest.err conftest.$ac_objext \
25591 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025592if test "$ac_cv_search_pthread_mutex_lock" = no; then
25593 for ac_lib in pthread; do
25594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25595 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025596/* confdefs.h. */
25597_ACEOF
25598cat confdefs.h >>conftest.$ac_ext
25599cat >>conftest.$ac_ext <<_ACEOF
25600/* end confdefs.h. */
25601
25602/* Override any gcc2 internal prototype to avoid an error. */
25603#ifdef __cplusplus
25604extern "C"
25605#endif
25606/* We use char because int might match the return type of a gcc2
25607 builtin and then its argument prototype would still apply. */
25608char pthread_mutex_lock ();
25609int
25610main ()
25611{
25612pthread_mutex_lock ();
25613 ;
25614 return 0;
25615}
25616_ACEOF
25617rm -f conftest.$ac_objext conftest$ac_exeext
25618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025619 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025620 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025621 grep -v '^ *+' conftest.er1 >conftest.err
25622 rm -f conftest.er1
25623 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025626 { ac_try='test -z "$ac_c_werror_flag"
25627 || test ! -s conftest.err'
25628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25629 (eval $ac_try) 2>&5
25630 ac_status=$?
25631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25632 (exit $ac_status); }; } &&
25633 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25635 (eval $ac_try) 2>&5
25636 ac_status=$?
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); }; }; then
25639 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25640break
25641else
25642 echo "$as_me: failed program was:" >&5
25643sed 's/^/| /' conftest.$ac_ext >&5
25644
25645fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025646rm -f conftest.err conftest.$ac_objext \
25647 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025648 done
25649fi
25650LIBS=$ac_func_search_save_LIBS
25651fi
25652echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25653echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25654if test "$ac_cv_search_pthread_mutex_lock" != no; then
25655 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025656
John Criswell40468462004-09-24 21:19:06 +000025657cat >>confdefs.h <<\_ACEOF
25658#define HAVE_PTHREAD_MUTEX_LOCK 1
25659_ACEOF
25660
25661fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025662
Reid Spencer0a262ba2005-08-24 10:07:20 +000025663fi
Brian Gaekec9a410c2004-02-23 21:30:37 +000025664
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025665
Reid Spencer59473af2004-12-25 07:31:29 +000025666
25667
25668
25669
25670
25671ac_header_dirent=no
25672for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25673 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25674echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25675echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
25676if eval "test \"\${$as_ac_Header+set}\" = set"; then
25677 echo $ECHO_N "(cached) $ECHO_C" >&6
25678else
25679 cat >conftest.$ac_ext <<_ACEOF
25680/* confdefs.h. */
25681_ACEOF
25682cat confdefs.h >>conftest.$ac_ext
25683cat >>conftest.$ac_ext <<_ACEOF
25684/* end confdefs.h. */
25685#include <sys/types.h>
25686#include <$ac_hdr>
25687
25688int
25689main ()
25690{
25691if ((DIR *) 0)
25692return 0;
25693 ;
25694 return 0;
25695}
25696_ACEOF
25697rm -f conftest.$ac_objext
25698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25699 (eval $ac_compile) 2>conftest.er1
25700 ac_status=$?
25701 grep -v '^ *+' conftest.er1 >conftest.err
25702 rm -f conftest.er1
25703 cat conftest.err >&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); } &&
25706 { ac_try='test -z "$ac_c_werror_flag"
25707 || test ! -s conftest.err'
25708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709 (eval $ac_try) 2>&5
25710 ac_status=$?
25711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712 (exit $ac_status); }; } &&
25713 { ac_try='test -s conftest.$ac_objext'
25714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715 (eval $ac_try) 2>&5
25716 ac_status=$?
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); }; }; then
25719 eval "$as_ac_Header=yes"
25720else
25721 echo "$as_me: failed program was:" >&5
25722sed 's/^/| /' conftest.$ac_ext >&5
25723
25724eval "$as_ac_Header=no"
25725fi
25726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25727fi
25728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25730if test `eval echo '${'$as_ac_Header'}'` = yes; then
25731 cat >>confdefs.h <<_ACEOF
25732#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25733_ACEOF
25734
25735ac_header_dirent=$ac_hdr; break
25736fi
25737
25738done
25739# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25740if test $ac_header_dirent = dirent.h; then
25741 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25742echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25743if test "${ac_cv_search_opendir+set}" = set; then
25744 echo $ECHO_N "(cached) $ECHO_C" >&6
25745else
25746 ac_func_search_save_LIBS=$LIBS
25747ac_cv_search_opendir=no
25748cat >conftest.$ac_ext <<_ACEOF
25749/* confdefs.h. */
25750_ACEOF
25751cat confdefs.h >>conftest.$ac_ext
25752cat >>conftest.$ac_ext <<_ACEOF
25753/* end confdefs.h. */
25754
25755/* Override any gcc2 internal prototype to avoid an error. */
25756#ifdef __cplusplus
25757extern "C"
25758#endif
25759/* We use char because int might match the return type of a gcc2
25760 builtin and then its argument prototype would still apply. */
25761char opendir ();
25762int
25763main ()
25764{
25765opendir ();
25766 ;
25767 return 0;
25768}
25769_ACEOF
25770rm -f conftest.$ac_objext conftest$ac_exeext
25771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25772 (eval $ac_link) 2>conftest.er1
25773 ac_status=$?
25774 grep -v '^ *+' conftest.er1 >conftest.err
25775 rm -f conftest.er1
25776 cat conftest.err >&5
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); } &&
25779 { ac_try='test -z "$ac_c_werror_flag"
25780 || test ! -s conftest.err'
25781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25782 (eval $ac_try) 2>&5
25783 ac_status=$?
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); }; } &&
25786 { ac_try='test -s conftest$ac_exeext'
25787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788 (eval $ac_try) 2>&5
25789 ac_status=$?
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); }; }; then
25792 ac_cv_search_opendir="none required"
25793else
25794 echo "$as_me: failed program was:" >&5
25795sed 's/^/| /' conftest.$ac_ext >&5
25796
25797fi
25798rm -f conftest.err conftest.$ac_objext \
25799 conftest$ac_exeext conftest.$ac_ext
25800if test "$ac_cv_search_opendir" = no; then
25801 for ac_lib in dir; do
25802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25803 cat >conftest.$ac_ext <<_ACEOF
25804/* confdefs.h. */
25805_ACEOF
25806cat confdefs.h >>conftest.$ac_ext
25807cat >>conftest.$ac_ext <<_ACEOF
25808/* end confdefs.h. */
25809
25810/* Override any gcc2 internal prototype to avoid an error. */
25811#ifdef __cplusplus
25812extern "C"
25813#endif
25814/* We use char because int might match the return type of a gcc2
25815 builtin and then its argument prototype would still apply. */
25816char opendir ();
25817int
25818main ()
25819{
25820opendir ();
25821 ;
25822 return 0;
25823}
25824_ACEOF
25825rm -f conftest.$ac_objext conftest$ac_exeext
25826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25827 (eval $ac_link) 2>conftest.er1
25828 ac_status=$?
25829 grep -v '^ *+' conftest.er1 >conftest.err
25830 rm -f conftest.er1
25831 cat conftest.err >&5
25832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25833 (exit $ac_status); } &&
25834 { ac_try='test -z "$ac_c_werror_flag"
25835 || test ! -s conftest.err'
25836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25837 (eval $ac_try) 2>&5
25838 ac_status=$?
25839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25840 (exit $ac_status); }; } &&
25841 { ac_try='test -s conftest$ac_exeext'
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25844 ac_status=$?
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; }; then
25847 ac_cv_search_opendir="-l$ac_lib"
25848break
25849else
25850 echo "$as_me: failed program was:" >&5
25851sed 's/^/| /' conftest.$ac_ext >&5
25852
25853fi
25854rm -f conftest.err conftest.$ac_objext \
25855 conftest$ac_exeext conftest.$ac_ext
25856 done
25857fi
25858LIBS=$ac_func_search_save_LIBS
25859fi
25860echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25861echo "${ECHO_T}$ac_cv_search_opendir" >&6
25862if test "$ac_cv_search_opendir" != no; then
25863 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25864
25865fi
25866
25867else
25868 echo "$as_me:$LINENO: checking for library containing opendir" >&5
25869echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
25870if test "${ac_cv_search_opendir+set}" = set; then
25871 echo $ECHO_N "(cached) $ECHO_C" >&6
25872else
25873 ac_func_search_save_LIBS=$LIBS
25874ac_cv_search_opendir=no
25875cat >conftest.$ac_ext <<_ACEOF
25876/* confdefs.h. */
25877_ACEOF
25878cat confdefs.h >>conftest.$ac_ext
25879cat >>conftest.$ac_ext <<_ACEOF
25880/* end confdefs.h. */
25881
25882/* Override any gcc2 internal prototype to avoid an error. */
25883#ifdef __cplusplus
25884extern "C"
25885#endif
25886/* We use char because int might match the return type of a gcc2
25887 builtin and then its argument prototype would still apply. */
25888char opendir ();
25889int
25890main ()
25891{
25892opendir ();
25893 ;
25894 return 0;
25895}
25896_ACEOF
25897rm -f conftest.$ac_objext conftest$ac_exeext
25898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25899 (eval $ac_link) 2>conftest.er1
25900 ac_status=$?
25901 grep -v '^ *+' conftest.er1 >conftest.err
25902 rm -f conftest.er1
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } &&
25906 { ac_try='test -z "$ac_c_werror_flag"
25907 || test ! -s conftest.err'
25908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25909 (eval $ac_try) 2>&5
25910 ac_status=$?
25911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); }; } &&
25913 { ac_try='test -s conftest$ac_exeext'
25914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915 (eval $ac_try) 2>&5
25916 ac_status=$?
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); }; }; then
25919 ac_cv_search_opendir="none required"
25920else
25921 echo "$as_me: failed program was:" >&5
25922sed 's/^/| /' conftest.$ac_ext >&5
25923
25924fi
25925rm -f conftest.err conftest.$ac_objext \
25926 conftest$ac_exeext conftest.$ac_ext
25927if test "$ac_cv_search_opendir" = no; then
25928 for ac_lib in x; do
25929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25930 cat >conftest.$ac_ext <<_ACEOF
25931/* confdefs.h. */
25932_ACEOF
25933cat confdefs.h >>conftest.$ac_ext
25934cat >>conftest.$ac_ext <<_ACEOF
25935/* end confdefs.h. */
25936
25937/* Override any gcc2 internal prototype to avoid an error. */
25938#ifdef __cplusplus
25939extern "C"
25940#endif
25941/* We use char because int might match the return type of a gcc2
25942 builtin and then its argument prototype would still apply. */
25943char opendir ();
25944int
25945main ()
25946{
25947opendir ();
25948 ;
25949 return 0;
25950}
25951_ACEOF
25952rm -f conftest.$ac_objext conftest$ac_exeext
25953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25954 (eval $ac_link) 2>conftest.er1
25955 ac_status=$?
25956 grep -v '^ *+' conftest.er1 >conftest.err
25957 rm -f conftest.er1
25958 cat conftest.err >&5
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); } &&
25961 { ac_try='test -z "$ac_c_werror_flag"
25962 || test ! -s conftest.err'
25963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25964 (eval $ac_try) 2>&5
25965 ac_status=$?
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); }; } &&
25968 { ac_try='test -s conftest$ac_exeext'
25969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25970 (eval $ac_try) 2>&5
25971 ac_status=$?
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); }; }; then
25974 ac_cv_search_opendir="-l$ac_lib"
25975break
25976else
25977 echo "$as_me: failed program was:" >&5
25978sed 's/^/| /' conftest.$ac_ext >&5
25979
25980fi
25981rm -f conftest.err conftest.$ac_objext \
25982 conftest$ac_exeext conftest.$ac_ext
25983 done
25984fi
25985LIBS=$ac_func_search_save_LIBS
25986fi
25987echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25988echo "${ECHO_T}$ac_cv_search_opendir" >&6
25989if test "$ac_cv_search_opendir" != no; then
25990 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
25991
25992fi
25993
25994fi
25995
25996echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25997echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25998if test "${ac_cv_header_mmap_anon+set}" = set; then
25999 echo $ECHO_N "(cached) $ECHO_C" >&6
26000else
26001 ac_ext=c
26002ac_cpp='$CPP $CPPFLAGS'
26003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26005ac_compiler_gnu=$ac_cv_c_compiler_gnu
26006
26007 cat >conftest.$ac_ext <<_ACEOF
26008/* confdefs.h. */
26009_ACEOF
26010cat confdefs.h >>conftest.$ac_ext
26011cat >>conftest.$ac_ext <<_ACEOF
26012/* end confdefs.h. */
26013#include <sys/mman.h>
26014#include <unistd.h>
26015#include <fcntl.h>
26016int
26017main ()
26018{
26019mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
26020 ;
26021 return 0;
26022}
26023_ACEOF
26024rm -f conftest.$ac_objext
26025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26026 (eval $ac_compile) 2>conftest.er1
26027 ac_status=$?
26028 grep -v '^ *+' conftest.er1 >conftest.err
26029 rm -f conftest.er1
26030 cat conftest.err >&5
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); } &&
26033 { ac_try='test -z "$ac_c_werror_flag"
26034 || test ! -s conftest.err'
26035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036 (eval $ac_try) 2>&5
26037 ac_status=$?
26038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039 (exit $ac_status); }; } &&
26040 { ac_try='test -s conftest.$ac_objext'
26041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042 (eval $ac_try) 2>&5
26043 ac_status=$?
26044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045 (exit $ac_status); }; }; then
26046 ac_cv_header_mmap_anon=yes
26047else
26048 echo "$as_me: failed program was:" >&5
26049sed 's/^/| /' conftest.$ac_ext >&5
26050
26051ac_cv_header_mmap_anon=no
26052fi
26053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26054 ac_ext=c
26055ac_cpp='$CPP $CPPFLAGS'
26056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26058ac_compiler_gnu=$ac_cv_c_compiler_gnu
26059
26060
26061fi
26062echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
26063echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
26064if test "$ac_cv_header_mmap_anon" = yes; then
26065
26066cat >>confdefs.h <<\_ACEOF
Reid Spencer7931a782004-12-27 06:15:02 +000026067#define HAVE_MMAP_ANONYMOUS 1
Reid Spencer59473af2004-12-25 07:31:29 +000026068_ACEOF
26069
26070fi
26071
26072echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
26073echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
26074if test "${ac_cv_header_stat_broken+set}" = set; then
26075 echo $ECHO_N "(cached) $ECHO_C" >&6
26076else
26077 cat >conftest.$ac_ext <<_ACEOF
26078/* confdefs.h. */
26079_ACEOF
26080cat confdefs.h >>conftest.$ac_ext
26081cat >>conftest.$ac_ext <<_ACEOF
26082/* end confdefs.h. */
26083#include <sys/types.h>
26084#include <sys/stat.h>
26085
26086#if defined(S_ISBLK) && defined(S_IFDIR)
26087# if S_ISBLK (S_IFDIR)
26088You lose.
26089# endif
26090#endif
26091
26092#if defined(S_ISBLK) && defined(S_IFCHR)
26093# if S_ISBLK (S_IFCHR)
26094You lose.
26095# endif
26096#endif
26097
26098#if defined(S_ISLNK) && defined(S_IFREG)
26099# if S_ISLNK (S_IFREG)
26100You lose.
26101# endif
26102#endif
26103
26104#if defined(S_ISSOCK) && defined(S_IFREG)
26105# if S_ISSOCK (S_IFREG)
26106You lose.
26107# endif
26108#endif
26109
26110_ACEOF
26111if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26112 $EGREP "You lose" >/dev/null 2>&1; then
26113 ac_cv_header_stat_broken=yes
26114else
26115 ac_cv_header_stat_broken=no
26116fi
26117rm -f conftest*
26118
26119fi
26120echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
26121echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
26122if test $ac_cv_header_stat_broken = yes; then
26123
26124cat >>confdefs.h <<\_ACEOF
26125#define STAT_MACROS_BROKEN 1
26126_ACEOF
26127
26128fi
26129
John Criswell7a73b802003-06-30 21:59:07 +000026130echo "$as_me:$LINENO: checking for ANSI C header files" >&5
26131echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
26132if test "${ac_cv_header_stdc+set}" = set; then
26133 echo $ECHO_N "(cached) $ECHO_C" >&6
26134else
26135 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026136/* confdefs.h. */
26137_ACEOF
26138cat confdefs.h >>conftest.$ac_ext
26139cat >>conftest.$ac_ext <<_ACEOF
26140/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026141#include <stdlib.h>
26142#include <stdarg.h>
26143#include <string.h>
26144#include <float.h>
26145
John Criswell0c38eaf2003-09-10 15:17:25 +000026146int
26147main ()
26148{
26149
26150 ;
26151 return 0;
26152}
John Criswell7a73b802003-06-30 21:59:07 +000026153_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026154rm -f conftest.$ac_objext
26155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026156 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026157 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026158 grep -v '^ *+' conftest.er1 >conftest.err
26159 rm -f conftest.er1
26160 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026162 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026163 { ac_try='test -z "$ac_c_werror_flag"
26164 || test ! -s conftest.err'
26165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26166 (eval $ac_try) 2>&5
26167 ac_status=$?
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); }; } &&
26170 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000026171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26172 (eval $ac_try) 2>&5
26173 ac_status=$?
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000026176 ac_cv_header_stdc=yes
26177else
26178 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026179sed 's/^/| /' conftest.$ac_ext >&5
26180
26181ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000026182fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026184
26185if test $ac_cv_header_stdc = yes; then
26186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26187 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026188/* confdefs.h. */
26189_ACEOF
26190cat confdefs.h >>conftest.$ac_ext
26191cat >>conftest.$ac_ext <<_ACEOF
26192/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026193#include <string.h>
26194
26195_ACEOF
26196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026197 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026198 :
26199else
26200 ac_cv_header_stdc=no
26201fi
26202rm -f conftest*
26203
26204fi
26205
26206if test $ac_cv_header_stdc = yes; then
26207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26208 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026209/* confdefs.h. */
26210_ACEOF
26211cat confdefs.h >>conftest.$ac_ext
26212cat >>conftest.$ac_ext <<_ACEOF
26213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026214#include <stdlib.h>
26215
26216_ACEOF
26217if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000026218 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000026219 :
26220else
26221 ac_cv_header_stdc=no
26222fi
26223rm -f conftest*
26224
26225fi
26226
26227if test $ac_cv_header_stdc = yes; then
26228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26229 if test "$cross_compiling" = yes; then
26230 :
26231else
26232 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026233/* confdefs.h. */
26234_ACEOF
26235cat confdefs.h >>conftest.$ac_ext
26236cat >>conftest.$ac_ext <<_ACEOF
26237/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026238#include <ctype.h>
26239#if ((' ' & 0x0FF) == 0x020)
26240# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26241# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26242#else
John Criswell0c38eaf2003-09-10 15:17:25 +000026243# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026244 (('a' <= (c) && (c) <= 'i') \
26245 || ('j' <= (c) && (c) <= 'r') \
26246 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000026247# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26248#endif
26249
26250#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26251int
26252main ()
26253{
26254 int i;
26255 for (i = 0; i < 256; i++)
26256 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000026257 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000026258 exit(2);
26259 exit (0);
26260}
26261_ACEOF
26262rm -f conftest$ac_exeext
26263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26264 (eval $ac_link) 2>&5
26265 ac_status=$?
26266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26269 (eval $ac_try) 2>&5
26270 ac_status=$?
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); }; }; then
26273 :
26274else
26275 echo "$as_me: program exited with status $ac_status" >&5
26276echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026277sed 's/^/| /' conftest.$ac_ext >&5
26278
John Criswell7a73b802003-06-30 21:59:07 +000026279( exit $ac_status )
26280ac_cv_header_stdc=no
26281fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026282rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026283fi
26284fi
26285fi
26286echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
26287echo "${ECHO_T}$ac_cv_header_stdc" >&6
26288if test $ac_cv_header_stdc = yes; then
26289
26290cat >>confdefs.h <<\_ACEOF
26291#define STDC_HEADERS 1
26292_ACEOF
26293
26294fi
26295
26296echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
26297echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
26298if test "${ac_cv_header_sys_wait_h+set}" = set; then
26299 echo $ECHO_N "(cached) $ECHO_C" >&6
26300else
26301 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026302/* confdefs.h. */
26303_ACEOF
26304cat confdefs.h >>conftest.$ac_ext
26305cat >>conftest.$ac_ext <<_ACEOF
26306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026307#include <sys/types.h>
26308#include <sys/wait.h>
26309#ifndef WEXITSTATUS
26310# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
26311#endif
26312#ifndef WIFEXITED
26313# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26314#endif
26315
John Criswell7a73b802003-06-30 21:59:07 +000026316int
26317main ()
26318{
26319 int s;
26320 wait (&s);
26321 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26322 ;
26323 return 0;
26324}
26325_ACEOF
26326rm -f conftest.$ac_objext
26327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026328 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026329 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026330 grep -v '^ *+' conftest.er1 >conftest.err
26331 rm -f conftest.er1
26332 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026335 { ac_try='test -z "$ac_c_werror_flag"
26336 || test ! -s conftest.err'
26337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338 (eval $ac_try) 2>&5
26339 ac_status=$?
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); }; } &&
26342 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344 (eval $ac_try) 2>&5
26345 ac_status=$?
26346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); }; }; then
26348 ac_cv_header_sys_wait_h=yes
26349else
26350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026351sed 's/^/| /' conftest.$ac_ext >&5
26352
John Criswell7a73b802003-06-30 21:59:07 +000026353ac_cv_header_sys_wait_h=no
26354fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026356fi
26357echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
26358echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
26359if test $ac_cv_header_sys_wait_h = yes; then
26360
26361cat >>confdefs.h <<\_ACEOF
26362#define HAVE_SYS_WAIT_H 1
26363_ACEOF
26364
26365fi
26366
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026367echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
26368echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
26369if test "${ac_cv_header_time+set}" = set; then
26370 echo $ECHO_N "(cached) $ECHO_C" >&6
26371else
26372 cat >conftest.$ac_ext <<_ACEOF
26373/* confdefs.h. */
26374_ACEOF
26375cat confdefs.h >>conftest.$ac_ext
26376cat >>conftest.$ac_ext <<_ACEOF
26377/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026378#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026379#include <sys/time.h>
26380#include <time.h>
26381
26382int
26383main ()
26384{
26385if ((struct tm *) 0)
26386return 0;
26387 ;
26388 return 0;
26389}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026390_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026391rm -f conftest.$ac_objext
26392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26393 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026394 ac_status=$?
26395 grep -v '^ *+' conftest.er1 >conftest.err
26396 rm -f conftest.er1
26397 cat conftest.err >&5
26398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026399 (exit $ac_status); } &&
26400 { ac_try='test -z "$ac_c_werror_flag"
26401 || test ! -s conftest.err'
26402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26403 (eval $ac_try) 2>&5
26404 ac_status=$?
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); }; } &&
26407 { ac_try='test -s conftest.$ac_objext'
26408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26409 (eval $ac_try) 2>&5
26410 ac_status=$?
26411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412 (exit $ac_status); }; }; then
26413 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026414else
26415 echo "$as_me: failed program was:" >&5
26416sed 's/^/| /' conftest.$ac_ext >&5
26417
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026418ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026419fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26421fi
26422echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
26423echo "${ECHO_T}$ac_cv_header_time" >&6
26424if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026425
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026426cat >>confdefs.h <<\_ACEOF
26427#define TIME_WITH_SYS_TIME 1
26428_ACEOF
26429
26430fi
26431
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026432
Reid Spencer59473af2004-12-25 07:31:29 +000026433
26434
26435
26436
26437
26438
26439for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
26440do
26441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26442if eval "test \"\${$as_ac_Header+set}\" = set"; then
26443 echo "$as_me:$LINENO: checking for $ac_header" >&5
26444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26445if eval "test \"\${$as_ac_Header+set}\" = set"; then
26446 echo $ECHO_N "(cached) $ECHO_C" >&6
26447fi
26448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26450else
26451 # Is the header compilable?
26452echo "$as_me:$LINENO: checking $ac_header usability" >&5
26453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26454cat >conftest.$ac_ext <<_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026455/* confdefs.h. */
26456_ACEOF
26457cat confdefs.h >>conftest.$ac_ext
26458cat >>conftest.$ac_ext <<_ACEOF
26459/* end confdefs.h. */
Reid Spencer59473af2004-12-25 07:31:29 +000026460$ac_includes_default
26461#include <$ac_header>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026462_ACEOF
26463rm -f conftest.$ac_objext
26464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26465 (eval $ac_compile) 2>conftest.er1
26466 ac_status=$?
26467 grep -v '^ *+' conftest.er1 >conftest.err
26468 rm -f conftest.er1
26469 cat conftest.err >&5
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); } &&
26472 { ac_try='test -z "$ac_c_werror_flag"
26473 || test ! -s conftest.err'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; } &&
26479 { ac_try='test -s conftest.$ac_objext'
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26482 ac_status=$?
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; }; then
Reid Spencer59473af2004-12-25 07:31:29 +000026485 ac_header_compiler=yes
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026486else
26487 echo "$as_me: failed program was:" >&5
26488sed 's/^/| /' conftest.$ac_ext >&5
26489
Reid Spencer59473af2004-12-25 07:31:29 +000026490ac_header_compiler=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026491fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer59473af2004-12-25 07:31:29 +000026493echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26494echo "${ECHO_T}$ac_header_compiler" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026495
Reid Spencer59473af2004-12-25 07:31:29 +000026496# Is the header present?
26497echo "$as_me:$LINENO: checking $ac_header presence" >&5
26498echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26499cat >conftest.$ac_ext <<_ACEOF
26500/* confdefs.h. */
26501_ACEOF
26502cat confdefs.h >>conftest.$ac_ext
26503cat >>conftest.$ac_ext <<_ACEOF
26504/* end confdefs.h. */
26505#include <$ac_header>
26506_ACEOF
26507if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26508 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26509 ac_status=$?
26510 grep -v '^ *+' conftest.er1 >conftest.err
26511 rm -f conftest.er1
26512 cat conftest.err >&5
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); } >/dev/null; then
26515 if test -s conftest.err; then
26516 ac_cpp_err=$ac_c_preproc_warn_flag
26517 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26518 else
26519 ac_cpp_err=
26520 fi
26521else
26522 ac_cpp_err=yes
26523fi
26524if test -z "$ac_cpp_err"; then
26525 ac_header_preproc=yes
26526else
26527 echo "$as_me: failed program was:" >&5
26528sed 's/^/| /' conftest.$ac_ext >&5
26529
26530 ac_header_preproc=no
26531fi
26532rm -f conftest.err conftest.$ac_ext
26533echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26534echo "${ECHO_T}$ac_header_preproc" >&6
26535
26536# So? What about this header?
26537case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26538 yes:no: )
26539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26540echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26542echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26543 ac_header_preproc=yes
26544 ;;
26545 no:yes:* )
26546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26547echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26549echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26551echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26553echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26555echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26557echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26558 (
26559 cat <<\_ASBOX
26560## ----------------------------------- ##
26561## Report this to llvmbugs@cs.uiuc.edu ##
26562## ----------------------------------- ##
26563_ASBOX
26564 ) |
26565 sed "s/^/$as_me: WARNING: /" >&2
26566 ;;
26567esac
26568echo "$as_me:$LINENO: checking for $ac_header" >&5
26569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26570if eval "test \"\${$as_ac_Header+set}\" = set"; then
26571 echo $ECHO_N "(cached) $ECHO_C" >&6
26572else
26573 eval "$as_ac_Header=\$ac_header_preproc"
26574fi
26575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26576echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026577
26578fi
Reid Spencer59473af2004-12-25 07:31:29 +000026579if test `eval echo '${'$as_ac_Header'}'` = yes; then
26580 cat >>confdefs.h <<_ACEOF
26581#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026582_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026583
26584fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026585
Reid Spencer59473af2004-12-25 07:31:29 +000026586done
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026587
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026588
26589
Reid Spencer59473af2004-12-25 07:31:29 +000026590
26591
26592
26593
Reid Spencer0a262ba2005-08-24 10:07:20 +000026594for ac_header in malloc.h signal.h stdint.h unistd.h utime.h windows.h
Reid Spencer59473af2004-12-25 07:31:29 +000026595do
26596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26597if eval "test \"\${$as_ac_Header+set}\" = set"; then
26598 echo "$as_me:$LINENO: checking for $ac_header" >&5
26599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26600if eval "test \"\${$as_ac_Header+set}\" = set"; then
26601 echo $ECHO_N "(cached) $ECHO_C" >&6
26602fi
26603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26605else
26606 # Is the header compilable?
26607echo "$as_me:$LINENO: checking $ac_header usability" >&5
26608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26609cat >conftest.$ac_ext <<_ACEOF
26610/* confdefs.h. */
26611_ACEOF
26612cat confdefs.h >>conftest.$ac_ext
26613cat >>conftest.$ac_ext <<_ACEOF
26614/* end confdefs.h. */
26615$ac_includes_default
26616#include <$ac_header>
26617_ACEOF
26618rm -f conftest.$ac_objext
26619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26620 (eval $ac_compile) 2>conftest.er1
26621 ac_status=$?
26622 grep -v '^ *+' conftest.er1 >conftest.err
26623 rm -f conftest.er1
26624 cat conftest.err >&5
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); } &&
26627 { ac_try='test -z "$ac_c_werror_flag"
26628 || test ! -s conftest.err'
26629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26630 (eval $ac_try) 2>&5
26631 ac_status=$?
26632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633 (exit $ac_status); }; } &&
26634 { ac_try='test -s conftest.$ac_objext'
26635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26636 (eval $ac_try) 2>&5
26637 ac_status=$?
26638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639 (exit $ac_status); }; }; then
26640 ac_header_compiler=yes
26641else
26642 echo "$as_me: failed program was:" >&5
26643sed 's/^/| /' conftest.$ac_ext >&5
26644
26645ac_header_compiler=no
26646fi
26647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26649echo "${ECHO_T}$ac_header_compiler" >&6
26650
26651# Is the header present?
26652echo "$as_me:$LINENO: checking $ac_header presence" >&5
26653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26654cat >conftest.$ac_ext <<_ACEOF
26655/* confdefs.h. */
26656_ACEOF
26657cat confdefs.h >>conftest.$ac_ext
26658cat >>conftest.$ac_ext <<_ACEOF
26659/* end confdefs.h. */
26660#include <$ac_header>
26661_ACEOF
26662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26664 ac_status=$?
26665 grep -v '^ *+' conftest.er1 >conftest.err
26666 rm -f conftest.er1
26667 cat conftest.err >&5
26668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); } >/dev/null; then
26670 if test -s conftest.err; then
26671 ac_cpp_err=$ac_c_preproc_warn_flag
26672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26673 else
26674 ac_cpp_err=
26675 fi
26676else
26677 ac_cpp_err=yes
26678fi
26679if test -z "$ac_cpp_err"; then
26680 ac_header_preproc=yes
26681else
26682 echo "$as_me: failed program was:" >&5
26683sed 's/^/| /' conftest.$ac_ext >&5
26684
26685 ac_header_preproc=no
26686fi
26687rm -f conftest.err conftest.$ac_ext
26688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26689echo "${ECHO_T}$ac_header_preproc" >&6
26690
26691# So? What about this header?
26692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26693 yes:no: )
26694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26698 ac_header_preproc=yes
26699 ;;
26700 no:yes:* )
26701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26704echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26708echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26713 (
26714 cat <<\_ASBOX
26715## ----------------------------------- ##
26716## Report this to llvmbugs@cs.uiuc.edu ##
26717## ----------------------------------- ##
26718_ASBOX
26719 ) |
26720 sed "s/^/$as_me: WARNING: /" >&2
26721 ;;
26722esac
26723echo "$as_me:$LINENO: checking for $ac_header" >&5
26724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26725if eval "test \"\${$as_ac_Header+set}\" = set"; then
26726 echo $ECHO_N "(cached) $ECHO_C" >&6
26727else
26728 eval "$as_ac_Header=\$ac_header_preproc"
26729fi
26730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26732
26733fi
26734if test `eval echo '${'$as_ac_Header'}'` = yes; then
26735 cat >>confdefs.h <<_ACEOF
26736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26737_ACEOF
26738
26739fi
26740
26741done
26742
26743
26744
26745
26746
26747
26748for 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 +000026749do
26750as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26751if eval "test \"\${$as_ac_Header+set}\" = set"; then
26752 echo "$as_me:$LINENO: checking for $ac_header" >&5
26753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26754if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026755 echo $ECHO_N "(cached) $ECHO_C" >&6
26756fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26758echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026759else
26760 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026761echo "$as_me:$LINENO: checking $ac_header usability" >&5
26762echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026763cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026764/* confdefs.h. */
26765_ACEOF
26766cat confdefs.h >>conftest.$ac_ext
26767cat >>conftest.$ac_ext <<_ACEOF
26768/* end confdefs.h. */
26769$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026770#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026771_ACEOF
26772rm -f conftest.$ac_objext
26773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026774 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026775 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026776 grep -v '^ *+' conftest.er1 >conftest.err
26777 rm -f conftest.er1
26778 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026781 { ac_try='test -z "$ac_c_werror_flag"
26782 || test ! -s conftest.err'
26783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26784 (eval $ac_try) 2>&5
26785 ac_status=$?
26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787 (exit $ac_status); }; } &&
26788 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26790 (eval $ac_try) 2>&5
26791 ac_status=$?
26792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26793 (exit $ac_status); }; }; then
26794 ac_header_compiler=yes
26795else
26796 echo "$as_me: failed program was:" >&5
26797sed 's/^/| /' conftest.$ac_ext >&5
26798
26799ac_header_compiler=no
26800fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026801rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026802echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26803echo "${ECHO_T}$ac_header_compiler" >&6
26804
26805# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026806echo "$as_me:$LINENO: checking $ac_header presence" >&5
26807echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026808cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026809/* confdefs.h. */
26810_ACEOF
26811cat confdefs.h >>conftest.$ac_ext
26812cat >>conftest.$ac_ext <<_ACEOF
26813/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026814#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026815_ACEOF
26816if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26817 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26818 ac_status=$?
26819 grep -v '^ *+' conftest.er1 >conftest.err
26820 rm -f conftest.er1
26821 cat conftest.err >&5
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); } >/dev/null; then
26824 if test -s conftest.err; then
26825 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026826 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026827 else
26828 ac_cpp_err=
26829 fi
26830else
26831 ac_cpp_err=yes
26832fi
26833if test -z "$ac_cpp_err"; then
26834 ac_header_preproc=yes
26835else
26836 echo "$as_me: failed program was:" >&5
26837sed 's/^/| /' conftest.$ac_ext >&5
26838
26839 ac_header_preproc=no
26840fi
26841rm -f conftest.err conftest.$ac_ext
26842echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26843echo "${ECHO_T}$ac_header_preproc" >&6
26844
26845# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26847 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26849echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26851echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026852 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026853 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026854 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26856echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26858echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26860echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26862echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26864echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26866echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026867 (
26868 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026869## ----------------------------------- ##
26870## Report this to llvmbugs@cs.uiuc.edu ##
26871## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026872_ASBOX
26873 ) |
26874 sed "s/^/$as_me: WARNING: /" >&2
26875 ;;
26876esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026877echo "$as_me:$LINENO: checking for $ac_header" >&5
26878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26879if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026880 echo $ECHO_N "(cached) $ECHO_C" >&6
26881else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026882 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026883fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26885echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026886
26887fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026888if test `eval echo '${'$as_ac_Header'}'` = yes; then
26889 cat >>confdefs.h <<_ACEOF
26890#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026891_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026892
26893fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026894
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026895done
26896
John Criswell7ed43ad2004-07-19 16:12:29 +000026897
Chris Lattner0b142592005-11-14 06:57:34 +000026898for ac_header in malloc/malloc.h
26899do
26900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26901if eval "test \"\${$as_ac_Header+set}\" = set"; then
26902 echo "$as_me:$LINENO: checking for $ac_header" >&5
26903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26904if eval "test \"\${$as_ac_Header+set}\" = set"; then
26905 echo $ECHO_N "(cached) $ECHO_C" >&6
26906fi
26907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26909else
26910 # Is the header compilable?
26911echo "$as_me:$LINENO: checking $ac_header usability" >&5
26912echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26913cat >conftest.$ac_ext <<_ACEOF
26914/* confdefs.h. */
26915_ACEOF
26916cat confdefs.h >>conftest.$ac_ext
26917cat >>conftest.$ac_ext <<_ACEOF
26918/* end confdefs.h. */
26919$ac_includes_default
26920#include <$ac_header>
26921_ACEOF
26922rm -f conftest.$ac_objext
26923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26924 (eval $ac_compile) 2>conftest.er1
26925 ac_status=$?
26926 grep -v '^ *+' conftest.er1 >conftest.err
26927 rm -f conftest.er1
26928 cat conftest.err >&5
26929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26930 (exit $ac_status); } &&
26931 { ac_try='test -z "$ac_c_werror_flag"
26932 || test ! -s conftest.err'
26933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26934 (eval $ac_try) 2>&5
26935 ac_status=$?
26936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26937 (exit $ac_status); }; } &&
26938 { ac_try='test -s conftest.$ac_objext'
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26941 ac_status=$?
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; }; then
26944 ac_header_compiler=yes
26945else
26946 echo "$as_me: failed program was:" >&5
26947sed 's/^/| /' conftest.$ac_ext >&5
26948
26949ac_header_compiler=no
26950fi
26951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26952echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26953echo "${ECHO_T}$ac_header_compiler" >&6
26954
26955# Is the header present?
26956echo "$as_me:$LINENO: checking $ac_header presence" >&5
26957echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26958cat >conftest.$ac_ext <<_ACEOF
26959/* confdefs.h. */
26960_ACEOF
26961cat confdefs.h >>conftest.$ac_ext
26962cat >>conftest.$ac_ext <<_ACEOF
26963/* end confdefs.h. */
26964#include <$ac_header>
26965_ACEOF
26966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26968 ac_status=$?
26969 grep -v '^ *+' conftest.er1 >conftest.err
26970 rm -f conftest.er1
26971 cat conftest.err >&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); } >/dev/null; then
26974 if test -s conftest.err; then
26975 ac_cpp_err=$ac_c_preproc_warn_flag
26976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26977 else
26978 ac_cpp_err=
26979 fi
26980else
26981 ac_cpp_err=yes
26982fi
26983if test -z "$ac_cpp_err"; then
26984 ac_header_preproc=yes
26985else
26986 echo "$as_me: failed program was:" >&5
26987sed 's/^/| /' conftest.$ac_ext >&5
26988
26989 ac_header_preproc=no
26990fi
26991rm -f conftest.err conftest.$ac_ext
26992echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26993echo "${ECHO_T}$ac_header_preproc" >&6
26994
26995# So? What about this header?
26996case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26997 yes:no: )
26998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26999echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27001echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27002 ac_header_preproc=yes
27003 ;;
27004 no:yes:* )
27005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27006echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27008echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27010echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27012echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27014echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27016echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27017 (
27018 cat <<\_ASBOX
27019## ----------------------------------- ##
27020## Report this to llvmbugs@cs.uiuc.edu ##
27021## ----------------------------------- ##
27022_ASBOX
27023 ) |
27024 sed "s/^/$as_me: WARNING: /" >&2
27025 ;;
27026esac
27027echo "$as_me:$LINENO: checking for $ac_header" >&5
27028echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27029if eval "test \"\${$as_ac_Header+set}\" = set"; then
27030 echo $ECHO_N "(cached) $ECHO_C" >&6
27031else
27032 eval "$as_ac_Header=\$ac_header_preproc"
27033fi
27034echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27035echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27036
27037fi
27038if test `eval echo '${'$as_ac_Header'}'` = yes; then
27039 cat >>confdefs.h <<_ACEOF
27040#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27041_ACEOF
27042
27043fi
27044
27045done
27046
Reid Spencer0a262ba2005-08-24 10:07:20 +000027047if test "$ENABLE_THREADS" -eq 1 ; then
27048
27049for ac_header in pthread.h
27050do
27051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27052if eval "test \"\${$as_ac_Header+set}\" = set"; then
27053 echo "$as_me:$LINENO: checking for $ac_header" >&5
27054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27055if eval "test \"\${$as_ac_Header+set}\" = set"; then
27056 echo $ECHO_N "(cached) $ECHO_C" >&6
27057fi
27058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27060else
27061 # Is the header compilable?
27062echo "$as_me:$LINENO: checking $ac_header usability" >&5
27063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27064cat >conftest.$ac_ext <<_ACEOF
27065/* confdefs.h. */
27066_ACEOF
27067cat confdefs.h >>conftest.$ac_ext
27068cat >>conftest.$ac_ext <<_ACEOF
27069/* end confdefs.h. */
27070$ac_includes_default
27071#include <$ac_header>
27072_ACEOF
27073rm -f conftest.$ac_objext
27074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27075 (eval $ac_compile) 2>conftest.er1
27076 ac_status=$?
27077 grep -v '^ *+' conftest.er1 >conftest.err
27078 rm -f conftest.er1
27079 cat conftest.err >&5
27080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081 (exit $ac_status); } &&
27082 { ac_try='test -z "$ac_c_werror_flag"
27083 || test ! -s conftest.err'
27084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27085 (eval $ac_try) 2>&5
27086 ac_status=$?
27087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27088 (exit $ac_status); }; } &&
27089 { ac_try='test -s conftest.$ac_objext'
27090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27091 (eval $ac_try) 2>&5
27092 ac_status=$?
27093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); }; }; then
27095 ac_header_compiler=yes
27096else
27097 echo "$as_me: failed program was:" >&5
27098sed 's/^/| /' conftest.$ac_ext >&5
27099
27100ac_header_compiler=no
27101fi
27102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27103echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27104echo "${ECHO_T}$ac_header_compiler" >&6
27105
27106# Is the header present?
27107echo "$as_me:$LINENO: checking $ac_header presence" >&5
27108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27109cat >conftest.$ac_ext <<_ACEOF
27110/* confdefs.h. */
27111_ACEOF
27112cat confdefs.h >>conftest.$ac_ext
27113cat >>conftest.$ac_ext <<_ACEOF
27114/* end confdefs.h. */
27115#include <$ac_header>
27116_ACEOF
27117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27119 ac_status=$?
27120 grep -v '^ *+' conftest.er1 >conftest.err
27121 rm -f conftest.er1
27122 cat conftest.err >&5
27123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124 (exit $ac_status); } >/dev/null; then
27125 if test -s conftest.err; then
27126 ac_cpp_err=$ac_c_preproc_warn_flag
27127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27128 else
27129 ac_cpp_err=
27130 fi
27131else
27132 ac_cpp_err=yes
27133fi
27134if test -z "$ac_cpp_err"; then
27135 ac_header_preproc=yes
27136else
27137 echo "$as_me: failed program was:" >&5
27138sed 's/^/| /' conftest.$ac_ext >&5
27139
27140 ac_header_preproc=no
27141fi
27142rm -f conftest.err conftest.$ac_ext
27143echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27144echo "${ECHO_T}$ac_header_preproc" >&6
27145
27146# So? What about this header?
27147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27148 yes:no: )
27149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27150echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27152echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27153 ac_header_preproc=yes
27154 ;;
27155 no:yes:* )
27156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27157echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27159echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27161echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27163echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27165echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27167echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27168 (
27169 cat <<\_ASBOX
27170## ----------------------------------- ##
27171## Report this to llvmbugs@cs.uiuc.edu ##
27172## ----------------------------------- ##
27173_ASBOX
27174 ) |
27175 sed "s/^/$as_me: WARNING: /" >&2
27176 ;;
27177esac
27178echo "$as_me:$LINENO: checking for $ac_header" >&5
27179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27180if eval "test \"\${$as_ac_Header+set}\" = set"; then
27181 echo $ECHO_N "(cached) $ECHO_C" >&6
27182else
27183 eval "$as_ac_Header=\$ac_header_preproc"
27184fi
27185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27186echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27187
27188fi
27189if test `eval echo '${'$as_ac_Header'}'` = yes; then
27190 cat >>confdefs.h <<_ACEOF
27191#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27192_ACEOF
27193
27194fi
27195
27196done
27197
27198fi
Reid Spencer8085cff2005-01-16 02:58:39 +000027199
27200
John Criswell7a73b802003-06-30 21:59:07 +000027201echo "$as_me:$LINENO: checking for pid_t" >&5
27202echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27203if test "${ac_cv_type_pid_t+set}" = set; then
27204 echo $ECHO_N "(cached) $ECHO_C" >&6
27205else
27206 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027207/* confdefs.h. */
27208_ACEOF
27209cat confdefs.h >>conftest.$ac_ext
27210cat >>conftest.$ac_ext <<_ACEOF
27211/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027212$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027213int
27214main ()
27215{
27216if ((pid_t *) 0)
27217 return 0;
27218if (sizeof (pid_t))
27219 return 0;
27220 ;
27221 return 0;
27222}
27223_ACEOF
27224rm -f conftest.$ac_objext
27225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027226 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027228 grep -v '^ *+' conftest.er1 >conftest.err
27229 rm -f conftest.er1
27230 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27232 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027233 { ac_try='test -z "$ac_c_werror_flag"
27234 || test ! -s conftest.err'
27235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236 (eval $ac_try) 2>&5
27237 ac_status=$?
27238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 (exit $ac_status); }; } &&
27240 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27242 (eval $ac_try) 2>&5
27243 ac_status=$?
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); }; }; then
27246 ac_cv_type_pid_t=yes
27247else
27248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027249sed 's/^/| /' conftest.$ac_ext >&5
27250
John Criswell7a73b802003-06-30 21:59:07 +000027251ac_cv_type_pid_t=no
27252fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027254fi
27255echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27256echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27257if test $ac_cv_type_pid_t = yes; then
27258 :
27259else
27260
27261cat >>confdefs.h <<_ACEOF
27262#define pid_t int
27263_ACEOF
27264
27265fi
27266
27267echo "$as_me:$LINENO: checking for size_t" >&5
27268echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27269if test "${ac_cv_type_size_t+set}" = set; then
27270 echo $ECHO_N "(cached) $ECHO_C" >&6
27271else
27272 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027273/* confdefs.h. */
27274_ACEOF
27275cat confdefs.h >>conftest.$ac_ext
27276cat >>conftest.$ac_ext <<_ACEOF
27277/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027278$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027279int
27280main ()
27281{
27282if ((size_t *) 0)
27283 return 0;
27284if (sizeof (size_t))
27285 return 0;
27286 ;
27287 return 0;
27288}
27289_ACEOF
27290rm -f conftest.$ac_objext
27291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027292 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027293 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027294 grep -v '^ *+' conftest.er1 >conftest.err
27295 rm -f conftest.er1
27296 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027299 { ac_try='test -z "$ac_c_werror_flag"
27300 || test ! -s conftest.err'
27301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27302 (eval $ac_try) 2>&5
27303 ac_status=$?
27304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27305 (exit $ac_status); }; } &&
27306 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27308 (eval $ac_try) 2>&5
27309 ac_status=$?
27310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27311 (exit $ac_status); }; }; then
27312 ac_cv_type_size_t=yes
27313else
27314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027315sed 's/^/| /' conftest.$ac_ext >&5
27316
John Criswell7a73b802003-06-30 21:59:07 +000027317ac_cv_type_size_t=no
27318fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027320fi
27321echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27322echo "${ECHO_T}$ac_cv_type_size_t" >&6
27323if test $ac_cv_type_size_t = yes; then
27324 :
27325else
27326
27327cat >>confdefs.h <<_ACEOF
27328#define size_t unsigned
27329_ACEOF
27330
27331fi
27332
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027333echo "$as_me:$LINENO: checking return type of signal handlers" >&5
27334echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
27335if test "${ac_cv_type_signal+set}" = set; then
27336 echo $ECHO_N "(cached) $ECHO_C" >&6
27337else
27338 cat >conftest.$ac_ext <<_ACEOF
27339/* confdefs.h. */
27340_ACEOF
27341cat confdefs.h >>conftest.$ac_ext
27342cat >>conftest.$ac_ext <<_ACEOF
27343/* end confdefs.h. */
27344#include <sys/types.h>
27345#include <signal.h>
27346#ifdef signal
27347# undef signal
27348#endif
27349#ifdef __cplusplus
27350extern "C" void (*signal (int, void (*)(int)))(int);
27351#else
27352void (*signal ()) ();
27353#endif
27354
27355int
27356main ()
27357{
27358int i;
27359 ;
27360 return 0;
27361}
27362_ACEOF
27363rm -f conftest.$ac_objext
27364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27365 (eval $ac_compile) 2>conftest.er1
27366 ac_status=$?
27367 grep -v '^ *+' conftest.er1 >conftest.err
27368 rm -f conftest.er1
27369 cat conftest.err >&5
27370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371 (exit $ac_status); } &&
27372 { ac_try='test -z "$ac_c_werror_flag"
27373 || test ! -s conftest.err'
27374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27375 (eval $ac_try) 2>&5
27376 ac_status=$?
27377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27378 (exit $ac_status); }; } &&
27379 { ac_try='test -s conftest.$ac_objext'
27380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27381 (eval $ac_try) 2>&5
27382 ac_status=$?
27383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27384 (exit $ac_status); }; }; then
27385 ac_cv_type_signal=void
27386else
27387 echo "$as_me: failed program was:" >&5
27388sed 's/^/| /' conftest.$ac_ext >&5
27389
27390ac_cv_type_signal=int
27391fi
27392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27393fi
27394echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
27395echo "${ECHO_T}$ac_cv_type_signal" >&6
27396
27397cat >>confdefs.h <<_ACEOF
27398#define RETSIGTYPE $ac_cv_type_signal
27399_ACEOF
27400
27401
27402echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
27403echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
27404if test "${ac_cv_struct_tm+set}" = set; then
27405 echo $ECHO_N "(cached) $ECHO_C" >&6
27406else
27407 cat >conftest.$ac_ext <<_ACEOF
27408/* confdefs.h. */
27409_ACEOF
27410cat confdefs.h >>conftest.$ac_ext
27411cat >>conftest.$ac_ext <<_ACEOF
27412/* end confdefs.h. */
27413#include <sys/types.h>
27414#include <time.h>
27415
27416int
27417main ()
27418{
27419struct tm *tp; tp->tm_sec;
27420 ;
27421 return 0;
27422}
27423_ACEOF
27424rm -f conftest.$ac_objext
27425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27426 (eval $ac_compile) 2>conftest.er1
27427 ac_status=$?
27428 grep -v '^ *+' conftest.er1 >conftest.err
27429 rm -f conftest.er1
27430 cat conftest.err >&5
27431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432 (exit $ac_status); } &&
27433 { ac_try='test -z "$ac_c_werror_flag"
27434 || test ! -s conftest.err'
27435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27436 (eval $ac_try) 2>&5
27437 ac_status=$?
27438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27439 (exit $ac_status); }; } &&
27440 { ac_try='test -s conftest.$ac_objext'
27441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27442 (eval $ac_try) 2>&5
27443 ac_status=$?
27444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27445 (exit $ac_status); }; }; then
27446 ac_cv_struct_tm=time.h
27447else
27448 echo "$as_me: failed program was:" >&5
27449sed 's/^/| /' conftest.$ac_ext >&5
27450
27451ac_cv_struct_tm=sys/time.h
27452fi
27453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27454fi
27455echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
27456echo "${ECHO_T}$ac_cv_struct_tm" >&6
27457if test $ac_cv_struct_tm = sys/time.h; then
27458
27459cat >>confdefs.h <<\_ACEOF
27460#define TM_IN_SYS_TIME 1
27461_ACEOF
27462
27463fi
27464
John Criswell7a73b802003-06-30 21:59:07 +000027465echo "$as_me:$LINENO: checking for int64_t" >&5
27466echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
27467if test "${ac_cv_type_int64_t+set}" = set; then
27468 echo $ECHO_N "(cached) $ECHO_C" >&6
27469else
27470 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027471/* confdefs.h. */
27472_ACEOF
27473cat confdefs.h >>conftest.$ac_ext
27474cat >>conftest.$ac_ext <<_ACEOF
27475/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027476$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027477int
27478main ()
27479{
27480if ((int64_t *) 0)
27481 return 0;
27482if (sizeof (int64_t))
27483 return 0;
27484 ;
27485 return 0;
27486}
27487_ACEOF
27488rm -f conftest.$ac_objext
27489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027490 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027491 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027492 grep -v '^ *+' conftest.er1 >conftest.err
27493 rm -f conftest.er1
27494 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027497 { ac_try='test -z "$ac_c_werror_flag"
27498 || test ! -s conftest.err'
27499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27500 (eval $ac_try) 2>&5
27501 ac_status=$?
27502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27503 (exit $ac_status); }; } &&
27504 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27506 (eval $ac_try) 2>&5
27507 ac_status=$?
27508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27509 (exit $ac_status); }; }; then
27510 ac_cv_type_int64_t=yes
27511else
27512 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027513sed 's/^/| /' conftest.$ac_ext >&5
27514
John Criswell7a73b802003-06-30 21:59:07 +000027515ac_cv_type_int64_t=no
27516fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027518fi
27519echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
27520echo "${ECHO_T}$ac_cv_type_int64_t" >&6
27521if test $ac_cv_type_int64_t = yes; then
27522
27523cat >>confdefs.h <<_ACEOF
27524#define HAVE_INT64_T 1
27525_ACEOF
27526
27527
27528else
27529 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
27530echo "$as_me: error: Type int64_t required but not found" >&2;}
27531 { (exit 1); exit 1; }; }
27532fi
27533
27534echo "$as_me:$LINENO: checking for uint64_t" >&5
27535echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
27536if test "${ac_cv_type_uint64_t+set}" = set; then
27537 echo $ECHO_N "(cached) $ECHO_C" >&6
27538else
27539 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027540/* confdefs.h. */
27541_ACEOF
27542cat confdefs.h >>conftest.$ac_ext
27543cat >>conftest.$ac_ext <<_ACEOF
27544/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027545$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000027546int
27547main ()
27548{
27549if ((uint64_t *) 0)
27550 return 0;
27551if (sizeof (uint64_t))
27552 return 0;
27553 ;
27554 return 0;
27555}
27556_ACEOF
27557rm -f conftest.$ac_objext
27558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027559 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027560 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027561 grep -v '^ *+' conftest.er1 >conftest.err
27562 rm -f conftest.er1
27563 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027566 { ac_try='test -z "$ac_c_werror_flag"
27567 || test ! -s conftest.err'
27568 { (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); }; } &&
27573 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27575 (eval $ac_try) 2>&5
27576 ac_status=$?
27577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27578 (exit $ac_status); }; }; then
27579 ac_cv_type_uint64_t=yes
27580else
27581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027582sed 's/^/| /' conftest.$ac_ext >&5
27583
John Criswell7a73b802003-06-30 21:59:07 +000027584ac_cv_type_uint64_t=no
27585fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027587fi
27588echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
27589echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
27590if test $ac_cv_type_uint64_t = yes; then
27591
27592cat >>confdefs.h <<_ACEOF
27593#define HAVE_UINT64_T 1
27594_ACEOF
27595
27596
27597else
Misha Brukmanceca9042004-09-02 23:02:30 +000027598 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000027599echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
27600if test "${ac_cv_type_u_int64_t+set}" = set; then
27601 echo $ECHO_N "(cached) $ECHO_C" >&6
27602else
27603 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000027604/* confdefs.h. */
27605_ACEOF
27606cat confdefs.h >>conftest.$ac_ext
27607cat >>conftest.$ac_ext <<_ACEOF
27608/* end confdefs.h. */
27609$ac_includes_default
27610int
27611main ()
27612{
27613if ((u_int64_t *) 0)
27614 return 0;
27615if (sizeof (u_int64_t))
27616 return 0;
27617 ;
27618 return 0;
27619}
27620_ACEOF
27621rm -f conftest.$ac_objext
27622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027623 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000027624 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027625 grep -v '^ *+' conftest.er1 >conftest.err
27626 rm -f conftest.er1
27627 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000027628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27629 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027630 { ac_try='test -z "$ac_c_werror_flag"
27631 || test ! -s conftest.err'
27632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27633 (eval $ac_try) 2>&5
27634 ac_status=$?
27635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); }; } &&
27637 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000027638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27639 (eval $ac_try) 2>&5
27640 ac_status=$?
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); }; }; then
27643 ac_cv_type_u_int64_t=yes
27644else
27645 echo "$as_me: failed program was:" >&5
27646sed 's/^/| /' conftest.$ac_ext >&5
27647
27648ac_cv_type_u_int64_t=no
27649fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000027651fi
27652echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
27653echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
27654if test $ac_cv_type_u_int64_t = yes; then
27655
27656cat >>confdefs.h <<_ACEOF
27657#define HAVE_U_INT64_T 1
27658_ACEOF
27659
27660
Misha Brukmanceca9042004-09-02 23:02:30 +000027661else
27662 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
27663echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
27664 { (exit 1); exit 1; }; }
27665fi
27666
John Criswell679ff312004-09-02 18:44:44 +000027667fi
27668
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027669
27670
27671
27672
27673
27674
27675
Reid Spencerf4bb9b12006-01-19 08:22:40 +000027676
27677
Reid Spencerdf3be822006-01-23 08:15:53 +000027678for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027679do
27680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27681echo "$as_me:$LINENO: checking for $ac_func" >&5
27682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27683if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000027684 echo $ECHO_N "(cached) $ECHO_C" >&6
27685else
27686 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027687/* confdefs.h. */
27688_ACEOF
27689cat confdefs.h >>conftest.$ac_ext
27690cat >>conftest.$ac_ext <<_ACEOF
27691/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27694#define $ac_func innocuous_$ac_func
27695
27696/* System header to define __stub macros and hopefully few prototypes,
27697 which can conflict with char $ac_func (); below.
27698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27699 <limits.h> exists even on freestanding compilers. */
27700
27701#ifdef __STDC__
27702# include <limits.h>
27703#else
27704# include <assert.h>
27705#endif
27706
27707#undef $ac_func
27708
27709/* Override any gcc2 internal prototype to avoid an error. */
27710#ifdef __cplusplus
27711extern "C"
27712{
27713#endif
27714/* We use char because int might match the return type of a gcc2
27715 builtin and then its argument prototype would still apply. */
27716char $ac_func ();
27717/* The GNU C library defines this for functions which it implements
27718 to always fail with ENOSYS. Some functions are actually named
27719 something starting with __ and the normal name is an alias. */
27720#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27721choke me
27722#else
27723char (*f) () = $ac_func;
27724#endif
27725#ifdef __cplusplus
27726}
27727#endif
John Criswell7a73b802003-06-30 21:59:07 +000027728
John Criswell7a73b802003-06-30 21:59:07 +000027729int
27730main ()
27731{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027732return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000027733 ;
27734 return 0;
27735}
27736_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027737rm -f conftest.$ac_objext conftest$ac_exeext
27738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27739 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027741 grep -v '^ *+' conftest.er1 >conftest.err
27742 rm -f conftest.er1
27743 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027746 { ac_try='test -z "$ac_c_werror_flag"
27747 || test ! -s conftest.err'
27748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27749 (eval $ac_try) 2>&5
27750 ac_status=$?
27751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027753 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000027754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27755 (eval $ac_try) 2>&5
27756 ac_status=$?
27757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027759 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000027760else
27761 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027762sed 's/^/| /' conftest.$ac_ext >&5
27763
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027764eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000027765fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027766rm -f conftest.err conftest.$ac_objext \
27767 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027768fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27771if test `eval echo '${'$as_ac_var'}'` = yes; then
27772 cat >>confdefs.h <<_ACEOF
27773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000027774_ACEOF
27775
27776fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027777done
John Criswell7a73b802003-06-30 21:59:07 +000027778
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027779
27780
27781
Reid Spencer6af3d262004-12-15 04:01:48 +000027782
27783
Reid Spencer59473af2004-12-25 07:31:29 +000027784
Reid Spencerdf3be822006-01-23 08:15:53 +000027785for ac_func in getpagesize getrusage gettimeofday isatty mkdtemp mkstemp
27786do
27787as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27788echo "$as_me:$LINENO: checking for $ac_func" >&5
27789echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27790if eval "test \"\${$as_ac_var+set}\" = set"; then
27791 echo $ECHO_N "(cached) $ECHO_C" >&6
27792else
27793 cat >conftest.$ac_ext <<_ACEOF
27794/* confdefs.h. */
27795_ACEOF
27796cat confdefs.h >>conftest.$ac_ext
27797cat >>conftest.$ac_ext <<_ACEOF
27798/* end confdefs.h. */
27799/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27801#define $ac_func innocuous_$ac_func
27802
27803/* System header to define __stub macros and hopefully few prototypes,
27804 which can conflict with char $ac_func (); below.
27805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27806 <limits.h> exists even on freestanding compilers. */
27807
27808#ifdef __STDC__
27809# include <limits.h>
27810#else
27811# include <assert.h>
27812#endif
27813
27814#undef $ac_func
27815
27816/* Override any gcc2 internal prototype to avoid an error. */
27817#ifdef __cplusplus
27818extern "C"
27819{
27820#endif
27821/* We use char because int might match the return type of a gcc2
27822 builtin and then its argument prototype would still apply. */
27823char $ac_func ();
27824/* The GNU C library defines this for functions which it implements
27825 to always fail with ENOSYS. Some functions are actually named
27826 something starting with __ and the normal name is an alias. */
27827#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27828choke me
27829#else
27830char (*f) () = $ac_func;
27831#endif
27832#ifdef __cplusplus
27833}
27834#endif
27835
27836int
27837main ()
27838{
27839return f != $ac_func;
27840 ;
27841 return 0;
27842}
27843_ACEOF
27844rm -f conftest.$ac_objext conftest$ac_exeext
27845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27846 (eval $ac_link) 2>conftest.er1
27847 ac_status=$?
27848 grep -v '^ *+' conftest.er1 >conftest.err
27849 rm -f conftest.er1
27850 cat conftest.err >&5
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); } &&
27853 { ac_try='test -z "$ac_c_werror_flag"
27854 || test ! -s conftest.err'
27855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27856 (eval $ac_try) 2>&5
27857 ac_status=$?
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; } &&
27860 { ac_try='test -s conftest$ac_exeext'
27861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27862 (eval $ac_try) 2>&5
27863 ac_status=$?
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); }; }; then
27866 eval "$as_ac_var=yes"
27867else
27868 echo "$as_me: failed program was:" >&5
27869sed 's/^/| /' conftest.$ac_ext >&5
27870
27871eval "$as_ac_var=no"
27872fi
27873rm -f conftest.err conftest.$ac_objext \
27874 conftest$ac_exeext conftest.$ac_ext
27875fi
27876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27877echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27878if test `eval echo '${'$as_ac_var'}'` = yes; then
27879 cat >>confdefs.h <<_ACEOF
27880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27881_ACEOF
27882
27883fi
27884done
27885
27886
27887
27888
27889
27890
27891
27892
27893for ac_func in mktemp realpath sbrk setrlimit strdup strerror strerror_r
Reid Spencer7931a782004-12-27 06:15:02 +000027894do
27895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27896echo "$as_me:$LINENO: checking for $ac_func" >&5
27897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27898if eval "test \"\${$as_ac_var+set}\" = set"; then
27899 echo $ECHO_N "(cached) $ECHO_C" >&6
27900else
27901 cat >conftest.$ac_ext <<_ACEOF
27902/* confdefs.h. */
27903_ACEOF
27904cat confdefs.h >>conftest.$ac_ext
27905cat >>conftest.$ac_ext <<_ACEOF
27906/* end confdefs.h. */
27907/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27909#define $ac_func innocuous_$ac_func
27910
27911/* System header to define __stub macros and hopefully few prototypes,
27912 which can conflict with char $ac_func (); below.
27913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27914 <limits.h> exists even on freestanding compilers. */
27915
27916#ifdef __STDC__
27917# include <limits.h>
27918#else
27919# include <assert.h>
27920#endif
27921
27922#undef $ac_func
27923
27924/* Override any gcc2 internal prototype to avoid an error. */
27925#ifdef __cplusplus
27926extern "C"
27927{
27928#endif
27929/* We use char because int might match the return type of a gcc2
27930 builtin and then its argument prototype would still apply. */
27931char $ac_func ();
27932/* The GNU C library defines this for functions which it implements
27933 to always fail with ENOSYS. Some functions are actually named
27934 something starting with __ and the normal name is an alias. */
27935#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27936choke me
27937#else
27938char (*f) () = $ac_func;
27939#endif
27940#ifdef __cplusplus
27941}
27942#endif
27943
27944int
27945main ()
27946{
27947return f != $ac_func;
27948 ;
27949 return 0;
27950}
27951_ACEOF
27952rm -f conftest.$ac_objext conftest$ac_exeext
27953if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27954 (eval $ac_link) 2>conftest.er1
27955 ac_status=$?
27956 grep -v '^ *+' conftest.er1 >conftest.err
27957 rm -f conftest.er1
27958 cat conftest.err >&5
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); } &&
27961 { ac_try='test -z "$ac_c_werror_flag"
27962 || test ! -s conftest.err'
27963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964 (eval $ac_try) 2>&5
27965 ac_status=$?
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; } &&
27968 { ac_try='test -s conftest$ac_exeext'
27969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970 (eval $ac_try) 2>&5
27971 ac_status=$?
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; }; then
27974 eval "$as_ac_var=yes"
27975else
27976 echo "$as_me: failed program was:" >&5
27977sed 's/^/| /' conftest.$ac_ext >&5
27978
27979eval "$as_ac_var=no"
27980fi
27981rm -f conftest.err conftest.$ac_objext \
27982 conftest$ac_exeext conftest.$ac_ext
27983fi
27984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27985echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27986if test `eval echo '${'$as_ac_var'}'` = yes; then
27987 cat >>confdefs.h <<_ACEOF
27988#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27989_ACEOF
27990
27991fi
27992done
27993
27994
Reid Spencerba46ca32004-12-31 05:49:15 +000027995
27996
Chris Lattner0b142592005-11-14 06:57:34 +000027997
Chris Lattner511f11d2005-11-14 07:25:50 +000027998for ac_func in strtoll strtoq sysconf malloc_zone_statistics
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027999do
28000as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28001echo "$as_me:$LINENO: checking for $ac_func" >&5
28002echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28003if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000028004 echo $ECHO_N "(cached) $ECHO_C" >&6
28005else
28006 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028007/* confdefs.h. */
28008_ACEOF
28009cat confdefs.h >>conftest.$ac_ext
28010cat >>conftest.$ac_ext <<_ACEOF
28011/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028012/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28014#define $ac_func innocuous_$ac_func
28015
28016/* System header to define __stub macros and hopefully few prototypes,
28017 which can conflict with char $ac_func (); below.
28018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28019 <limits.h> exists even on freestanding compilers. */
28020
28021#ifdef __STDC__
28022# include <limits.h>
28023#else
28024# include <assert.h>
28025#endif
28026
28027#undef $ac_func
28028
28029/* Override any gcc2 internal prototype to avoid an error. */
28030#ifdef __cplusplus
28031extern "C"
28032{
28033#endif
28034/* We use char because int might match the return type of a gcc2
28035 builtin and then its argument prototype would still apply. */
28036char $ac_func ();
28037/* The GNU C library defines this for functions which it implements
28038 to always fail with ENOSYS. Some functions are actually named
28039 something starting with __ and the normal name is an alias. */
28040#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28041choke me
28042#else
28043char (*f) () = $ac_func;
28044#endif
28045#ifdef __cplusplus
28046}
28047#endif
John Criswell7a73b802003-06-30 21:59:07 +000028048
John Criswell7a73b802003-06-30 21:59:07 +000028049int
28050main ()
28051{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028052return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028053 ;
28054 return 0;
28055}
28056_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028057rm -f conftest.$ac_objext conftest$ac_exeext
28058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28059 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028060 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028061 grep -v '^ *+' conftest.er1 >conftest.err
28062 rm -f conftest.er1
28063 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28065 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028066 { ac_try='test -z "$ac_c_werror_flag"
28067 || test ! -s conftest.err'
28068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28069 (eval $ac_try) 2>&5
28070 ac_status=$?
28071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028073 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28075 (eval $ac_try) 2>&5
28076 ac_status=$?
28077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28078 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028079 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000028080else
28081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028082sed 's/^/| /' conftest.$ac_ext >&5
28083
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028084eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000028085fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028086rm -f conftest.err conftest.$ac_objext \
28087 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028088fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28090echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28091if test `eval echo '${'$as_ac_var'}'` = yes; then
28092 cat >>confdefs.h <<_ACEOF
28093#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000028094_ACEOF
28095
28096fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028097done
John Criswell7a73b802003-06-30 21:59:07 +000028098
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028099echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
28100echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000028101if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028102 echo $ECHO_N "(cached) $ECHO_C" >&6
28103else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028104 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028105ac_cpp='$CPP $CPPFLAGS'
28106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28108ac_compiler_gnu=$ac_cv_c_compiler_gnu
28109
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028110 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028111 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028112else
28113 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000028114
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028115 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000028116_ACEOF
28117cat confdefs.h >>conftest.$ac_ext
28118cat >>conftest.$ac_ext <<_ACEOF
28119/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028120
John Criswella0137d32003-10-13 16:22:01 +000028121#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000028122#include <stdlib.h>
28123
John Criswella0137d32003-10-13 16:22:01 +000028124int
28125main ()
28126{
28127
Reid Spencer2706f8c2004-09-19 23:53:36 +000028128volatile double A, B;
28129char Buffer[100];
28130A = 1;
28131A /= 10.0;
28132sprintf(Buffer, "%a", A);
28133B = atof(Buffer);
28134if (A != B)
28135 return (1);
28136if (A != 0x1.999999999999ap-4)
28137 return (1);
28138return (0);
John Criswella0137d32003-10-13 16:22:01 +000028139 ;
28140 return 0;
28141}
28142_ACEOF
28143rm -f conftest$ac_exeext
28144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28145 (eval $ac_link) 2>&5
28146 ac_status=$?
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28150 (eval $ac_try) 2>&5
28151 ac_status=$?
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000028154 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000028155else
28156 echo "$as_me: program exited with status $ac_status" >&5
28157echo "$as_me: failed program was:" >&5
28158sed 's/^/| /' conftest.$ac_ext >&5
28159
28160( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000028161llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000028162fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028163rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000028164fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028165 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000028166ac_cpp='$CPP $CPPFLAGS'
28167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28169ac_compiler_gnu=$ac_cv_c_compiler_gnu
28170
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028171fi
Reid Spencer3be58f92004-11-27 22:01:43 +000028172echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
28173echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
28174 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000028175
28176cat >>confdefs.h <<\_ACEOF
28177#define HAVE_PRINTF_A 1
28178_ACEOF
28179
Reid Spencer2706f8c2004-09-19 23:53:36 +000028180 fi
John Criswella0137d32003-10-13 16:22:01 +000028181
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028182# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28183# for constant arguments. Useless!
28184echo "$as_me:$LINENO: checking for working alloca.h" >&5
28185echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28186if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000028187 echo $ECHO_N "(cached) $ECHO_C" >&6
28188else
John Criswell0021c312004-02-13 21:57:29 +000028189 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000028190/* confdefs.h. */
28191_ACEOF
28192cat confdefs.h >>conftest.$ac_ext
28193cat >>conftest.$ac_ext <<_ACEOF
28194/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028195#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000028196int
28197main ()
28198{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028199char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000028200 ;
28201 return 0;
28202}
28203_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028204rm -f conftest.$ac_objext conftest$ac_exeext
28205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28206 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000028207 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028208 grep -v '^ *+' conftest.er1 >conftest.err
28209 rm -f conftest.er1
28210 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000028211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028213 { ac_try='test -z "$ac_c_werror_flag"
28214 || test ! -s conftest.err'
28215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28216 (eval $ac_try) 2>&5
28217 ac_status=$?
28218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28219 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028220 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000028221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28222 (eval $ac_try) 2>&5
28223 ac_status=$?
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028226 ac_cv_working_alloca_h=yes
28227else
28228 echo "$as_me: failed program was:" >&5
28229sed 's/^/| /' conftest.$ac_ext >&5
28230
28231ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000028232fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028233rm -f conftest.err conftest.$ac_objext \
28234 conftest$ac_exeext conftest.$ac_ext
28235fi
28236echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28237echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28238if test $ac_cv_working_alloca_h = yes; then
28239
28240cat >>confdefs.h <<\_ACEOF
28241#define HAVE_ALLOCA_H 1
28242_ACEOF
28243
28244fi
28245
28246echo "$as_me:$LINENO: checking for alloca" >&5
28247echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28248if test "${ac_cv_func_alloca_works+set}" = set; then
28249 echo $ECHO_N "(cached) $ECHO_C" >&6
28250else
28251 cat >conftest.$ac_ext <<_ACEOF
28252/* confdefs.h. */
28253_ACEOF
28254cat confdefs.h >>conftest.$ac_ext
28255cat >>conftest.$ac_ext <<_ACEOF
28256/* end confdefs.h. */
28257#ifdef __GNUC__
28258# define alloca __builtin_alloca
28259#else
28260# ifdef _MSC_VER
28261# include <malloc.h>
28262# define alloca _alloca
28263# else
28264# if HAVE_ALLOCA_H
28265# include <alloca.h>
28266# else
28267# ifdef _AIX
28268 #pragma alloca
28269# else
28270# ifndef alloca /* predefined by HP cc +Olibcalls */
28271char *alloca ();
28272# endif
28273# endif
28274# endif
28275# endif
28276#endif
28277
28278int
28279main ()
28280{
28281char *p = (char *) alloca (1);
28282 ;
28283 return 0;
28284}
28285_ACEOF
28286rm -f conftest.$ac_objext conftest$ac_exeext
28287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28288 (eval $ac_link) 2>conftest.er1
28289 ac_status=$?
28290 grep -v '^ *+' conftest.er1 >conftest.err
28291 rm -f conftest.er1
28292 cat conftest.err >&5
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); } &&
28295 { ac_try='test -z "$ac_c_werror_flag"
28296 || test ! -s conftest.err'
28297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28298 (eval $ac_try) 2>&5
28299 ac_status=$?
28300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28301 (exit $ac_status); }; } &&
28302 { ac_try='test -s conftest$ac_exeext'
28303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28304 (eval $ac_try) 2>&5
28305 ac_status=$?
28306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307 (exit $ac_status); }; }; then
28308 ac_cv_func_alloca_works=yes
28309else
28310 echo "$as_me: failed program was:" >&5
28311sed 's/^/| /' conftest.$ac_ext >&5
28312
28313ac_cv_func_alloca_works=no
28314fi
28315rm -f conftest.err conftest.$ac_objext \
28316 conftest$ac_exeext conftest.$ac_ext
28317fi
28318echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28319echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28320
28321if test $ac_cv_func_alloca_works = yes; then
28322
28323cat >>confdefs.h <<\_ACEOF
28324#define HAVE_ALLOCA 1
28325_ACEOF
28326
28327else
28328 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28329# that cause trouble. Some versions do not even contain alloca or
28330# contain a buggy version. If you still want to use their alloca,
28331# use ar to extract alloca.o from them instead of compiling alloca.c.
28332
28333ALLOCA=alloca.$ac_objext
28334
28335cat >>confdefs.h <<\_ACEOF
28336#define C_ALLOCA 1
28337_ACEOF
28338
28339
28340echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28341echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28342if test "${ac_cv_os_cray+set}" = set; then
28343 echo $ECHO_N "(cached) $ECHO_C" >&6
28344else
28345 cat >conftest.$ac_ext <<_ACEOF
28346/* confdefs.h. */
28347_ACEOF
28348cat confdefs.h >>conftest.$ac_ext
28349cat >>conftest.$ac_ext <<_ACEOF
28350/* end confdefs.h. */
28351#if defined(CRAY) && ! defined(CRAY2)
28352webecray
28353#else
28354wenotbecray
28355#endif
28356
28357_ACEOF
28358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28359 $EGREP "webecray" >/dev/null 2>&1; then
28360 ac_cv_os_cray=yes
28361else
28362 ac_cv_os_cray=no
28363fi
28364rm -f conftest*
28365
28366fi
28367echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28368echo "${ECHO_T}$ac_cv_os_cray" >&6
28369if test $ac_cv_os_cray = yes; then
28370 for ac_func in _getb67 GETB67 getb67; do
28371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28372echo "$as_me:$LINENO: checking for $ac_func" >&5
28373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28374if eval "test \"\${$as_ac_var+set}\" = set"; then
28375 echo $ECHO_N "(cached) $ECHO_C" >&6
28376else
28377 cat >conftest.$ac_ext <<_ACEOF
28378/* confdefs.h. */
28379_ACEOF
28380cat confdefs.h >>conftest.$ac_ext
28381cat >>conftest.$ac_ext <<_ACEOF
28382/* end confdefs.h. */
28383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28385#define $ac_func innocuous_$ac_func
28386
28387/* System header to define __stub macros and hopefully few prototypes,
28388 which can conflict with char $ac_func (); below.
28389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28390 <limits.h> exists even on freestanding compilers. */
28391
28392#ifdef __STDC__
28393# include <limits.h>
28394#else
28395# include <assert.h>
28396#endif
28397
28398#undef $ac_func
28399
28400/* Override any gcc2 internal prototype to avoid an error. */
28401#ifdef __cplusplus
28402extern "C"
28403{
28404#endif
28405/* We use char because int might match the return type of a gcc2
28406 builtin and then its argument prototype would still apply. */
28407char $ac_func ();
28408/* The GNU C library defines this for functions which it implements
28409 to always fail with ENOSYS. Some functions are actually named
28410 something starting with __ and the normal name is an alias. */
28411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28412choke me
28413#else
28414char (*f) () = $ac_func;
28415#endif
28416#ifdef __cplusplus
28417}
28418#endif
28419
28420int
28421main ()
28422{
28423return f != $ac_func;
28424 ;
28425 return 0;
28426}
28427_ACEOF
28428rm -f conftest.$ac_objext conftest$ac_exeext
28429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28430 (eval $ac_link) 2>conftest.er1
28431 ac_status=$?
28432 grep -v '^ *+' conftest.er1 >conftest.err
28433 rm -f conftest.er1
28434 cat conftest.err >&5
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); } &&
28437 { ac_try='test -z "$ac_c_werror_flag"
28438 || test ! -s conftest.err'
28439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440 (eval $ac_try) 2>&5
28441 ac_status=$?
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); }; } &&
28444 { ac_try='test -s conftest$ac_exeext'
28445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28446 (eval $ac_try) 2>&5
28447 ac_status=$?
28448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449 (exit $ac_status); }; }; then
28450 eval "$as_ac_var=yes"
28451else
28452 echo "$as_me: failed program was:" >&5
28453sed 's/^/| /' conftest.$ac_ext >&5
28454
28455eval "$as_ac_var=no"
28456fi
28457rm -f conftest.err conftest.$ac_objext \
28458 conftest$ac_exeext conftest.$ac_ext
28459fi
28460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28461echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28462if test `eval echo '${'$as_ac_var'}'` = yes; then
28463
28464cat >>confdefs.h <<_ACEOF
28465#define CRAY_STACKSEG_END $ac_func
28466_ACEOF
28467
28468 break
28469fi
28470
28471 done
28472fi
28473
28474echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28475echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28476if test "${ac_cv_c_stack_direction+set}" = set; then
28477 echo $ECHO_N "(cached) $ECHO_C" >&6
28478else
28479 if test "$cross_compiling" = yes; then
28480 ac_cv_c_stack_direction=0
28481else
28482 cat >conftest.$ac_ext <<_ACEOF
28483/* confdefs.h. */
28484_ACEOF
28485cat confdefs.h >>conftest.$ac_ext
28486cat >>conftest.$ac_ext <<_ACEOF
28487/* end confdefs.h. */
28488int
28489find_stack_direction ()
28490{
28491 static char *addr = 0;
28492 auto char dummy;
28493 if (addr == 0)
28494 {
28495 addr = &dummy;
28496 return find_stack_direction ();
28497 }
John Criswell0021c312004-02-13 21:57:29 +000028498 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028499 return (&dummy > addr) ? 1 : -1;
28500}
John Criswell0021c312004-02-13 21:57:29 +000028501
John Criswell0021c312004-02-13 21:57:29 +000028502int
28503main ()
28504{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028505 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000028506}
28507_ACEOF
28508rm -f conftest$ac_exeext
28509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28510 (eval $ac_link) 2>&5
28511 ac_status=$?
28512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28515 (eval $ac_try) 2>&5
28516 ac_status=$?
28517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28518 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028519 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000028520else
28521 echo "$as_me: program exited with status $ac_status" >&5
28522echo "$as_me: failed program was:" >&5
28523sed 's/^/| /' conftest.$ac_ext >&5
28524
28525( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028526ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000028527fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028528rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000028529fi
28530fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028531echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28532echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28533
28534cat >>confdefs.h <<_ACEOF
28535#define STACK_DIRECTION $ac_cv_c_stack_direction
28536_ACEOF
28537
28538
John Criswell0021c312004-02-13 21:57:29 +000028539fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000028540
28541
28542echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
28543echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
28544if test "${ac_cv_func_rand48+set}" = set; then
28545 echo $ECHO_N "(cached) $ECHO_C" >&6
28546else
28547 ac_ext=cc
28548ac_cpp='$CXXCPP $CPPFLAGS'
28549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28552
28553 cat >conftest.$ac_ext <<_ACEOF
28554/* confdefs.h. */
28555_ACEOF
28556cat confdefs.h >>conftest.$ac_ext
28557cat >>conftest.$ac_ext <<_ACEOF
28558/* end confdefs.h. */
28559#include <stdlib.h>
28560int
28561main ()
28562{
28563srand48(0);lrand48();drand48();
28564 ;
28565 return 0;
28566}
28567_ACEOF
28568rm -f conftest.$ac_objext
28569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28570 (eval $ac_compile) 2>conftest.er1
28571 ac_status=$?
28572 grep -v '^ *+' conftest.er1 >conftest.err
28573 rm -f conftest.er1
28574 cat conftest.err >&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); } &&
28577 { ac_try='test -z "$ac_cxx_werror_flag"
28578 || test ! -s conftest.err'
28579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28580 (eval $ac_try) 2>&5
28581 ac_status=$?
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); }; } &&
28584 { ac_try='test -s conftest.$ac_objext'
28585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28586 (eval $ac_try) 2>&5
28587 ac_status=$?
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); }; }; then
28590 ac_cv_func_rand48=yes
28591else
28592 echo "$as_me: failed program was:" >&5
28593sed 's/^/| /' conftest.$ac_ext >&5
28594
28595ac_cv_func_rand48=no
28596fi
28597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28598 ac_ext=c
28599ac_cpp='$CPP $CPPFLAGS'
28600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28602ac_compiler_gnu=$ac_cv_c_compiler_gnu
28603
28604fi
28605echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
28606echo "${ECHO_T}$ac_cv_func_rand48" >&6
28607
28608if test "$ac_cv_func_rand48" = "yes" ; then
28609
28610cat >>confdefs.h <<\_ACEOF
28611#define HAVE_RAND48 1
28612_ACEOF
28613
28614fi
John Criswell0021c312004-02-13 21:57:29 +000028615
28616
John Criswell7a73b802003-06-30 21:59:07 +000028617echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
28618echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
28619if test "${ac_cv_cxx_namespaces+set}" = set; then
28620 echo $ECHO_N "(cached) $ECHO_C" >&6
28621else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028622 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000028623ac_cpp='$CXXCPP $CPPFLAGS'
28624ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28625ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28626ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28627
28628 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028629/* confdefs.h. */
28630_ACEOF
28631cat confdefs.h >>conftest.$ac_ext
28632cat >>conftest.$ac_ext <<_ACEOF
28633/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028634namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000028635int
28636main ()
28637{
28638using namespace Outer::Inner; return i;
28639 ;
28640 return 0;
28641}
28642_ACEOF
28643rm -f conftest.$ac_objext
28644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028645 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028646 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028647 grep -v '^ *+' conftest.er1 >conftest.err
28648 rm -f conftest.er1
28649 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28651 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028652 { ac_try='test -z "$ac_cxx_werror_flag"
28653 || test ! -s conftest.err'
28654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28655 (eval $ac_try) 2>&5
28656 ac_status=$?
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); }; } &&
28659 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661 (eval $ac_try) 2>&5
28662 ac_status=$?
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); }; }; then
28665 ac_cv_cxx_namespaces=yes
28666else
28667 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028668sed 's/^/| /' conftest.$ac_ext >&5
28669
John Criswell7a73b802003-06-30 21:59:07 +000028670ac_cv_cxx_namespaces=no
28671fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028673 ac_ext=c
28674ac_cpp='$CPP $CPPFLAGS'
28675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28677ac_compiler_gnu=$ac_cv_c_compiler_gnu
28678
28679
28680fi
28681echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
28682echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
28683if test "$ac_cv_cxx_namespaces" = yes; then
28684
28685cat >>confdefs.h <<\_ACEOF
28686#define HAVE_NAMESPACES
28687_ACEOF
28688
28689fi
28690
Brian Gaeke90583492003-11-10 03:06:28 +000028691echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
28692echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
28693if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028694 echo $ECHO_N "(cached) $ECHO_C" >&6
28695else
28696
John Criswell7a73b802003-06-30 21:59:07 +000028697 ac_ext=cc
28698ac_cpp='$CXXCPP $CPPFLAGS'
28699ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28700ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28701ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28702
28703 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028704/* confdefs.h. */
28705_ACEOF
28706cat confdefs.h >>conftest.$ac_ext
28707cat >>conftest.$ac_ext <<_ACEOF
28708/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028709#include <ext/hash_map>
28710#ifdef HAVE_NAMESPACES
28711using namespace std;
28712#endif
John Criswell7a73b802003-06-30 21:59:07 +000028713int
28714main ()
28715{
Brian Gaeke90583492003-11-10 03:06:28 +000028716hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028717 ;
28718 return 0;
28719}
28720_ACEOF
28721rm -f conftest.$ac_objext
28722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028723 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028724 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028725 grep -v '^ *+' conftest.er1 >conftest.err
28726 rm -f conftest.er1
28727 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28729 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028730 { ac_try='test -z "$ac_cxx_werror_flag"
28731 || test ! -s conftest.err'
28732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28733 (eval $ac_try) 2>&5
28734 ac_status=$?
28735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28736 (exit $ac_status); }; } &&
28737 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28739 (eval $ac_try) 2>&5
28740 ac_status=$?
28741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28742 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028743 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000028744else
28745 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028746sed 's/^/| /' conftest.$ac_ext >&5
28747
Brian Gaeke90583492003-11-10 03:06:28 +000028748ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028749fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028751 ac_ext=c
28752ac_cpp='$CPP $CPPFLAGS'
28753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28755ac_compiler_gnu=$ac_cv_c_compiler_gnu
28756
John Criswell7a73b802003-06-30 21:59:07 +000028757fi
Brian Gaeke90583492003-11-10 03:06:28 +000028758echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
28759echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028760 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
28761 then
John Criswell9f011862004-09-24 18:28:00 +000028762
28763cat >>confdefs.h <<\_ACEOF
28764#define HAVE_STD_EXT_HASH_MAP 1
28765_ACEOF
28766
28767 else
28768
28769cat >>confdefs.h <<\_ACEOF
28770#define HAVE_STD_EXT_HASH_MAP 0
28771_ACEOF
28772
Brian Gaeke90583492003-11-10 03:06:28 +000028773 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028774
Brian Gaeke90583492003-11-10 03:06:28 +000028775 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
28776echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
28777if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
28778 echo $ECHO_N "(cached) $ECHO_C" >&6
28779else
28780
Brian Gaeke90583492003-11-10 03:06:28 +000028781 ac_ext=cc
28782ac_cpp='$CXXCPP $CPPFLAGS'
28783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28786
28787 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028788/* confdefs.h. */
28789_ACEOF
28790cat confdefs.h >>conftest.$ac_ext
28791cat >>conftest.$ac_ext <<_ACEOF
28792/* end confdefs.h. */
28793#include <ext/hash_map>
28794#ifdef HAVE_NAMESPACES
28795using namespace __gnu_cxx;
28796#endif
28797int
28798main ()
28799{
28800hash_map<int,int> t;
28801 ;
28802 return 0;
28803}
28804_ACEOF
28805rm -f conftest.$ac_objext
28806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028807 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028809 grep -v '^ *+' conftest.er1 >conftest.err
28810 rm -f conftest.er1
28811 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28813 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028814 { ac_try='test -z "$ac_cxx_werror_flag"
28815 || test ! -s conftest.err'
28816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28817 (eval $ac_try) 2>&5
28818 ac_status=$?
28819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; } &&
28821 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28823 (eval $ac_try) 2>&5
28824 ac_status=$?
28825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826 (exit $ac_status); }; }; then
28827 ac_cv_cxx_have_gnu_ext_hash_map=yes
28828else
28829 echo "$as_me: failed program was:" >&5
28830sed 's/^/| /' conftest.$ac_ext >&5
28831
28832ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000028833fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028835 ac_ext=c
28836ac_cpp='$CPP $CPPFLAGS'
28837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28839ac_compiler_gnu=$ac_cv_c_compiler_gnu
28840
28841fi
28842echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
28843echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028844 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
28845 then
John Criswell9f011862004-09-24 18:28:00 +000028846
28847cat >>confdefs.h <<\_ACEOF
28848#define HAVE_GNU_EXT_HASH_MAP 1
28849_ACEOF
28850
28851 else
28852
28853cat >>confdefs.h <<\_ACEOF
28854#define HAVE_GNU_EXT_HASH_MAP 0
28855_ACEOF
28856
Brian Gaeke90583492003-11-10 03:06:28 +000028857 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028858
Brian Gaeke90583492003-11-10 03:06:28 +000028859 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
28860echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
28861if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
28862 echo $ECHO_N "(cached) $ECHO_C" >&6
28863else
John Criswell7a73b802003-06-30 21:59:07 +000028864
Brian Gaeke90583492003-11-10 03:06:28 +000028865 ac_ext=cc
28866ac_cpp='$CXXCPP $CPPFLAGS'
28867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28870
28871 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000028872/* confdefs.h. */
28873_ACEOF
28874cat confdefs.h >>conftest.$ac_ext
28875cat >>conftest.$ac_ext <<_ACEOF
28876/* end confdefs.h. */
28877#include <hash_map>
28878int
28879main ()
28880{
28881hash_map<int,int> t;
28882 ;
28883 return 0;
28884}
28885_ACEOF
28886rm -f conftest.$ac_objext
28887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028888 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000028889 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028890 grep -v '^ *+' conftest.er1 >conftest.err
28891 rm -f conftest.er1
28892 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000028893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028895 { ac_try='test -z "$ac_cxx_werror_flag"
28896 || test ! -s conftest.err'
28897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28898 (eval $ac_try) 2>&5
28899 ac_status=$?
28900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28901 (exit $ac_status); }; } &&
28902 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000028903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904 (eval $ac_try) 2>&5
28905 ac_status=$?
28906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907 (exit $ac_status); }; }; then
28908 ac_cv_cxx_have_global_hash_map=yes
28909else
28910 echo "$as_me: failed program was:" >&5
28911sed 's/^/| /' conftest.$ac_ext >&5
28912
28913ac_cv_cxx_have_global_hash_map=no
28914fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000028916 ac_ext=c
28917ac_cpp='$CPP $CPPFLAGS'
28918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28920ac_compiler_gnu=$ac_cv_c_compiler_gnu
28921
28922fi
28923echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
28924echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000028925 if test "$ac_cv_cxx_have_global_hash_map" = yes
28926 then
John Criswell9f011862004-09-24 18:28:00 +000028927
28928cat >>confdefs.h <<\_ACEOF
28929#define HAVE_GLOBAL_HASH_MAP 1
28930_ACEOF
28931
28932 else
28933
28934cat >>confdefs.h <<\_ACEOF
28935#define HAVE_GLOBAL_HASH_MAP 0
28936_ACEOF
28937
Brian Gaeke90583492003-11-10 03:06:28 +000028938 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000028939
Brian Gaeke90583492003-11-10 03:06:28 +000028940echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
28941echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
28942if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000028943 echo $ECHO_N "(cached) $ECHO_C" >&6
28944else
28945
John Criswell7a73b802003-06-30 21:59:07 +000028946 ac_ext=cc
28947ac_cpp='$CXXCPP $CPPFLAGS'
28948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28951
28952 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028953/* confdefs.h. */
28954_ACEOF
28955cat confdefs.h >>conftest.$ac_ext
28956cat >>conftest.$ac_ext <<_ACEOF
28957/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028958#include <ext/hash_set>
28959#ifdef HAVE_NAMESPACES
28960using namespace std;
28961#endif
John Criswell7a73b802003-06-30 21:59:07 +000028962int
28963main ()
28964{
Brian Gaeke90583492003-11-10 03:06:28 +000028965hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000028966 ;
28967 return 0;
28968}
28969_ACEOF
28970rm -f conftest.$ac_objext
28971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028972 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028973 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028974 grep -v '^ *+' conftest.er1 >conftest.err
28975 rm -f conftest.er1
28976 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028979 { ac_try='test -z "$ac_cxx_werror_flag"
28980 || test ! -s conftest.err'
28981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28982 (eval $ac_try) 2>&5
28983 ac_status=$?
28984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 (exit $ac_status); }; } &&
28986 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28988 (eval $ac_try) 2>&5
28989 ac_status=$?
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000028992 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000028993else
28994 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028995sed 's/^/| /' conftest.$ac_ext >&5
28996
Brian Gaeke90583492003-11-10 03:06:28 +000028997ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000028998fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029000 ac_ext=c
29001ac_cpp='$CPP $CPPFLAGS'
29002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29004ac_compiler_gnu=$ac_cv_c_compiler_gnu
29005
29006fi
29007echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
29008echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029009 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
29010 then
John Criswell9f011862004-09-24 18:28:00 +000029011
29012cat >>confdefs.h <<\_ACEOF
29013#define HAVE_STD_EXT_HASH_SET 1
29014_ACEOF
29015
29016 else
29017
29018cat >>confdefs.h <<\_ACEOF
29019#define HAVE_STD_EXT_HASH_SET 0
29020_ACEOF
29021
Brian Gaeke90583492003-11-10 03:06:28 +000029022 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029023
Brian Gaeke90583492003-11-10 03:06:28 +000029024 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
29025echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
29026if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
29027 echo $ECHO_N "(cached) $ECHO_C" >&6
29028else
29029
Brian Gaeke90583492003-11-10 03:06:28 +000029030 ac_ext=cc
29031ac_cpp='$CXXCPP $CPPFLAGS'
29032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29035
John Criswell7a73b802003-06-30 21:59:07 +000029036 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029037/* confdefs.h. */
29038_ACEOF
29039cat confdefs.h >>conftest.$ac_ext
29040cat >>conftest.$ac_ext <<_ACEOF
29041/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029042#include <ext/hash_set>
29043#ifdef HAVE_NAMESPACES
29044using namespace __gnu_cxx;
29045#endif
John Criswell7a73b802003-06-30 21:59:07 +000029046int
29047main ()
29048{
Brian Gaeke90583492003-11-10 03:06:28 +000029049hash_set<int> t;
29050 ;
29051 return 0;
29052}
29053_ACEOF
29054rm -f conftest.$ac_objext
29055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029056 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000029057 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029058 grep -v '^ *+' conftest.er1 >conftest.err
29059 rm -f conftest.er1
29060 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000029061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029063 { ac_try='test -z "$ac_cxx_werror_flag"
29064 || test ! -s conftest.err'
29065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29066 (eval $ac_try) 2>&5
29067 ac_status=$?
29068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29069 (exit $ac_status); }; } &&
29070 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000029071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29072 (eval $ac_try) 2>&5
29073 ac_status=$?
29074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29075 (exit $ac_status); }; }; then
29076 ac_cv_cxx_have_gnu_ext_hash_set=yes
29077else
29078 echo "$as_me: failed program was:" >&5
29079sed 's/^/| /' conftest.$ac_ext >&5
29080
29081ac_cv_cxx_have_gnu_ext_hash_set=no
29082fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000029084 ac_ext=c
29085ac_cpp='$CPP $CPPFLAGS'
29086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29088ac_compiler_gnu=$ac_cv_c_compiler_gnu
29089
29090fi
29091echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
29092echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029093 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
29094 then
John Criswell9f011862004-09-24 18:28:00 +000029095
29096cat >>confdefs.h <<\_ACEOF
29097#define HAVE_GNU_EXT_HASH_SET 1
29098_ACEOF
29099
29100 else
29101
29102cat >>confdefs.h <<\_ACEOF
29103#define HAVE_GNU_EXT_HASH_SET 0
29104_ACEOF
29105
Brian Gaeke90583492003-11-10 03:06:28 +000029106 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029107
Brian Gaeke90583492003-11-10 03:06:28 +000029108 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
29109echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
29110if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
29111 echo $ECHO_N "(cached) $ECHO_C" >&6
29112else
29113
Brian Gaeke90583492003-11-10 03:06:28 +000029114 ac_ext=cc
29115ac_cpp='$CXXCPP $CPPFLAGS'
29116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29119
29120 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000029121/* confdefs.h. */
29122_ACEOF
29123cat confdefs.h >>conftest.$ac_ext
29124cat >>conftest.$ac_ext <<_ACEOF
29125/* end confdefs.h. */
29126#include <hash_set>
29127int
29128main ()
29129{
John Criswell7a73b802003-06-30 21:59:07 +000029130hash_set<int> t; return 0;
29131 ;
29132 return 0;
29133}
29134_ACEOF
29135rm -f conftest.$ac_objext
29136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029137 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029138 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029139 grep -v '^ *+' conftest.er1 >conftest.err
29140 rm -f conftest.er1
29141 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029144 { ac_try='test -z "$ac_cxx_werror_flag"
29145 || test ! -s conftest.err'
29146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29147 (eval $ac_try) 2>&5
29148 ac_status=$?
29149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150 (exit $ac_status); }; } &&
29151 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29153 (eval $ac_try) 2>&5
29154 ac_status=$?
29155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29156 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000029157 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000029158else
29159 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029160sed 's/^/| /' conftest.$ac_ext >&5
29161
Brian Gaeke90583492003-11-10 03:06:28 +000029162ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000029163fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029165 ac_ext=c
29166ac_cpp='$CPP $CPPFLAGS'
29167ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29168ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29169ac_compiler_gnu=$ac_cv_c_compiler_gnu
29170
John Criswell7a73b802003-06-30 21:59:07 +000029171fi
Brian Gaeke90583492003-11-10 03:06:28 +000029172echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
29173echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000029174 if test "$ac_cv_cxx_have_global_hash_set" = yes
29175 then
John Criswell9f011862004-09-24 18:28:00 +000029176
29177cat >>confdefs.h <<\_ACEOF
29178#define HAVE_GLOBAL_HASH_SET 1
29179_ACEOF
29180
29181 else
29182
29183cat >>confdefs.h <<\_ACEOF
29184#define HAVE_GLOBAL_HASH_SET 0
29185_ACEOF
29186
Brian Gaeke90583492003-11-10 03:06:28 +000029187 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000029188
John Criswell7a73b802003-06-30 21:59:07 +000029189echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
29190echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
29191if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
29192 echo $ECHO_N "(cached) $ECHO_C" >&6
29193else
29194
John Criswell7a73b802003-06-30 21:59:07 +000029195 ac_ext=cc
29196ac_cpp='$CXXCPP $CPPFLAGS'
29197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29200
29201 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029202/* confdefs.h. */
29203_ACEOF
29204cat confdefs.h >>conftest.$ac_ext
29205cat >>conftest.$ac_ext <<_ACEOF
29206/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029207#include <iterator>
29208#ifdef HAVE_NAMESPACES
29209using namespace std;
29210#endif
John Criswell7a73b802003-06-30 21:59:07 +000029211int
29212main ()
29213{
29214iterator<int,int,int> t; return 0;
29215 ;
29216 return 0;
29217}
29218_ACEOF
29219rm -f conftest.$ac_objext
29220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029221 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029222 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029223 grep -v '^ *+' conftest.er1 >conftest.err
29224 rm -f conftest.er1
29225 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029228 { ac_try='test -z "$ac_cxx_werror_flag"
29229 || test ! -s conftest.err'
29230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29231 (eval $ac_try) 2>&5
29232 ac_status=$?
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; } &&
29235 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237 (eval $ac_try) 2>&5
29238 ac_status=$?
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; }; then
29241 ac_cv_cxx_have_std_iterator=yes
29242else
29243 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029244sed 's/^/| /' conftest.$ac_ext >&5
29245
John Criswell7a73b802003-06-30 21:59:07 +000029246ac_cv_cxx_have_std_iterator=no
29247fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029249 ac_ext=c
29250ac_cpp='$CPP $CPPFLAGS'
29251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29253ac_compiler_gnu=$ac_cv_c_compiler_gnu
29254
29255
29256fi
29257echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
29258echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029259if test "$ac_cv_cxx_have_std_iterator" = yes
29260then
John Criswell40468462004-09-24 21:19:06 +000029261
29262cat >>confdefs.h <<\_ACEOF
29263#define HAVE_STD_ITERATOR 1
29264_ACEOF
29265
29266else
29267
29268cat >>confdefs.h <<\_ACEOF
29269#define HAVE_STD_ITERATOR 0
29270_ACEOF
29271
John Criswell7a73b802003-06-30 21:59:07 +000029272fi
29273
29274echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
29275echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
29276if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
29277 echo $ECHO_N "(cached) $ECHO_C" >&6
29278else
29279
John Criswell7a73b802003-06-30 21:59:07 +000029280 ac_ext=cc
29281ac_cpp='$CXXCPP $CPPFLAGS'
29282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29285
29286 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029287/* confdefs.h. */
29288_ACEOF
29289cat confdefs.h >>conftest.$ac_ext
29290cat >>conftest.$ac_ext <<_ACEOF
29291/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029292#include <iterator>
29293#ifdef HAVE_NAMESPACES
29294using namespace std;
29295#endif
John Criswell7a73b802003-06-30 21:59:07 +000029296int
29297main ()
29298{
John Criswellc78022e2003-07-29 19:11:58 +000029299bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029300 ;
29301 return 0;
29302}
29303_ACEOF
29304rm -f conftest.$ac_objext
29305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029306 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029307 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029308 grep -v '^ *+' conftest.er1 >conftest.err
29309 rm -f conftest.er1
29310 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029313 { ac_try='test -z "$ac_cxx_werror_flag"
29314 || test ! -s conftest.err'
29315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29316 (eval $ac_try) 2>&5
29317 ac_status=$?
29318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29319 (exit $ac_status); }; } &&
29320 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29322 (eval $ac_try) 2>&5
29323 ac_status=$?
29324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29325 (exit $ac_status); }; }; then
29326 ac_cv_cxx_have_bi_iterator=yes
29327else
29328 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029329sed 's/^/| /' conftest.$ac_ext >&5
29330
John Criswell7a73b802003-06-30 21:59:07 +000029331ac_cv_cxx_have_bi_iterator=no
29332fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029334 ac_ext=c
29335ac_cpp='$CPP $CPPFLAGS'
29336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29338ac_compiler_gnu=$ac_cv_c_compiler_gnu
29339
29340
29341fi
29342echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
29343echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029344if test "$ac_cv_cxx_have_bi_iterator" = yes
29345then
John Criswell40468462004-09-24 21:19:06 +000029346
29347cat >>confdefs.h <<\_ACEOF
29348#define HAVE_BI_ITERATOR 1
29349_ACEOF
29350
29351else
29352
29353cat >>confdefs.h <<\_ACEOF
29354#define HAVE_BI_ITERATOR 0
29355_ACEOF
29356
John Criswell7a73b802003-06-30 21:59:07 +000029357fi
29358
29359echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
29360echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
29361if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
29362 echo $ECHO_N "(cached) $ECHO_C" >&6
29363else
29364
John Criswell7a73b802003-06-30 21:59:07 +000029365 ac_ext=cc
29366ac_cpp='$CXXCPP $CPPFLAGS'
29367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29370
29371 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029372/* confdefs.h. */
29373_ACEOF
29374cat confdefs.h >>conftest.$ac_ext
29375cat >>conftest.$ac_ext <<_ACEOF
29376/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029377#include <iterator>
29378#ifdef HAVE_NAMESPACES
29379using namespace std;
29380#endif
John Criswell7a73b802003-06-30 21:59:07 +000029381int
29382main ()
29383{
John Criswellc78022e2003-07-29 19:11:58 +000029384forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000029385 ;
29386 return 0;
29387}
29388_ACEOF
29389rm -f conftest.$ac_objext
29390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029391 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029392 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029393 grep -v '^ *+' conftest.er1 >conftest.err
29394 rm -f conftest.er1
29395 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29397 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029398 { ac_try='test -z "$ac_cxx_werror_flag"
29399 || test ! -s conftest.err'
29400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29401 (eval $ac_try) 2>&5
29402 ac_status=$?
29403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404 (exit $ac_status); }; } &&
29405 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000029406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29407 (eval $ac_try) 2>&5
29408 ac_status=$?
29409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29410 (exit $ac_status); }; }; then
29411 ac_cv_cxx_have_fwd_iterator=yes
29412else
29413 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029414sed 's/^/| /' conftest.$ac_ext >&5
29415
John Criswell7a73b802003-06-30 21:59:07 +000029416ac_cv_cxx_have_fwd_iterator=no
29417fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029419 ac_ext=c
29420ac_cpp='$CPP $CPPFLAGS'
29421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29423ac_compiler_gnu=$ac_cv_c_compiler_gnu
29424
29425
29426fi
29427echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
29428echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000029429if test "$ac_cv_cxx_have_fwd_iterator" = yes
29430then
John Criswell40468462004-09-24 21:19:06 +000029431
29432cat >>confdefs.h <<\_ACEOF
29433#define HAVE_FWD_ITERATOR 1
29434_ACEOF
29435
29436else
29437
29438cat >>confdefs.h <<\_ACEOF
29439#define HAVE_FWD_ITERATOR 0
29440_ACEOF
29441
John Criswell7a73b802003-06-30 21:59:07 +000029442fi
29443
29444
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029445echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
29446echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
29447if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
29448 echo $ECHO_N "(cached) $ECHO_C" >&6
29449else
29450 ac_ext=cc
29451ac_cpp='$CXXCPP $CPPFLAGS'
29452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29455
Reid Spencerabec8f92004-10-27 23:03:44 +000029456 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029457/* confdefs.h. */
29458_ACEOF
29459cat confdefs.h >>conftest.$ac_ext
29460cat >>conftest.$ac_ext <<_ACEOF
29461/* end confdefs.h. */
29462#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029463int
29464main ()
29465{
29466float f; isnan(f);
29467 ;
29468 return 0;
29469}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029470_ACEOF
29471rm -f conftest.$ac_objext
29472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029473 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029474 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029475 grep -v '^ *+' conftest.er1 >conftest.err
29476 rm -f conftest.er1
29477 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29479 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029480 { ac_try='test -z "$ac_cxx_werror_flag"
29481 || test ! -s conftest.err'
29482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29483 (eval $ac_try) 2>&5
29484 ac_status=$?
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); }; } &&
29487 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29489 (eval $ac_try) 2>&5
29490 ac_status=$?
29491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29492 (exit $ac_status); }; }; then
29493 ac_cv_func_isnan_in_math_h=yes
29494else
29495 echo "$as_me: failed program was:" >&5
29496sed 's/^/| /' conftest.$ac_ext >&5
29497
29498ac_cv_func_isnan_in_math_h=no
29499fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029501 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029502ac_cpp='$CPP $CPPFLAGS'
29503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29505ac_compiler_gnu=$ac_cv_c_compiler_gnu
29506
29507fi
29508echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
29509echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029510
29511
29512if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029513
29514cat >>confdefs.h <<\_ACEOF
29515#define HAVE_ISNAN_IN_MATH_H 1
29516_ACEOF
29517
Reid Spencerabec8f92004-10-27 23:03:44 +000029518fi
29519
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029520echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
29521echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
29522if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
29523 echo $ECHO_N "(cached) $ECHO_C" >&6
29524else
29525 ac_ext=cc
29526ac_cpp='$CXXCPP $CPPFLAGS'
29527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29530
Reid Spencerabec8f92004-10-27 23:03:44 +000029531 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029532/* confdefs.h. */
29533_ACEOF
29534cat confdefs.h >>conftest.$ac_ext
29535cat >>conftest.$ac_ext <<_ACEOF
29536/* end confdefs.h. */
29537#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029538int
29539main ()
29540{
29541float f; isnan(f);
29542 ;
29543 return 0;
29544}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029545_ACEOF
29546rm -f conftest.$ac_objext
29547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029548 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029549 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029550 grep -v '^ *+' conftest.er1 >conftest.err
29551 rm -f conftest.er1
29552 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29554 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029555 { ac_try='test -z "$ac_cxx_werror_flag"
29556 || test ! -s conftest.err'
29557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29558 (eval $ac_try) 2>&5
29559 ac_status=$?
29560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29561 (exit $ac_status); }; } &&
29562 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29564 (eval $ac_try) 2>&5
29565 ac_status=$?
29566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29567 (exit $ac_status); }; }; then
29568 ac_cv_func_isnan_in_cmath=yes
29569else
29570 echo "$as_me: failed program was:" >&5
29571sed 's/^/| /' conftest.$ac_ext >&5
29572
29573ac_cv_func_isnan_in_cmath=no
29574fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029576 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029577ac_cpp='$CPP $CPPFLAGS'
29578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29580ac_compiler_gnu=$ac_cv_c_compiler_gnu
29581
29582fi
29583echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
29584echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029585
29586if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029587
29588cat >>confdefs.h <<\_ACEOF
29589#define HAVE_ISNAN_IN_CMATH 1
29590_ACEOF
29591
Reid Spencerabec8f92004-10-27 23:03:44 +000029592fi
29593
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029594echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
29595echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
29596if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
29597 echo $ECHO_N "(cached) $ECHO_C" >&6
29598else
29599 ac_ext=cc
29600ac_cpp='$CXXCPP $CPPFLAGS'
29601ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29602ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29603ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29604
Reid Spencerabec8f92004-10-27 23:03:44 +000029605 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029606/* confdefs.h. */
29607_ACEOF
29608cat confdefs.h >>conftest.$ac_ext
29609cat >>conftest.$ac_ext <<_ACEOF
29610/* end confdefs.h. */
29611#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029612int
29613main ()
29614{
29615float f; std::isnan(f);
29616 ;
29617 return 0;
29618}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029619_ACEOF
29620rm -f conftest.$ac_objext
29621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029622 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029623 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029624 grep -v '^ *+' conftest.er1 >conftest.err
29625 rm -f conftest.er1
29626 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029629 { ac_try='test -z "$ac_cxx_werror_flag"
29630 || test ! -s conftest.err'
29631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29632 (eval $ac_try) 2>&5
29633 ac_status=$?
29634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635 (exit $ac_status); }; } &&
29636 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29638 (eval $ac_try) 2>&5
29639 ac_status=$?
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); }; }; then
29642 ac_cv_func_std_isnan_in_cmath=yes
29643else
29644 echo "$as_me: failed program was:" >&5
29645sed 's/^/| /' conftest.$ac_ext >&5
29646
29647ac_cv_func_std_isnan_in_cmath=no
29648fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029650 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029651ac_cpp='$CPP $CPPFLAGS'
29652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29654ac_compiler_gnu=$ac_cv_c_compiler_gnu
29655
29656fi
29657echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
29658echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029659
29660if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029661
29662cat >>confdefs.h <<\_ACEOF
29663#define HAVE_STD_ISNAN_IN_CMATH 1
29664_ACEOF
29665
Reid Spencerabec8f92004-10-27 23:03:44 +000029666fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000029667
29668
Brian Gaeke52a551d2004-07-21 03:14:12 +000029669echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
29670echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
29671if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
29672 echo $ECHO_N "(cached) $ECHO_C" >&6
29673else
29674 ac_ext=cc
29675ac_cpp='$CXXCPP $CPPFLAGS'
29676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29679
Reid Spencerabec8f92004-10-27 23:03:44 +000029680 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029681/* confdefs.h. */
29682_ACEOF
29683cat confdefs.h >>conftest.$ac_ext
29684cat >>conftest.$ac_ext <<_ACEOF
29685/* end confdefs.h. */
29686#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029687int
29688main ()
29689{
29690float f; isinf(f);
29691 ;
29692 return 0;
29693}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029694_ACEOF
29695rm -f conftest.$ac_objext
29696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029697 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029698 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029699 grep -v '^ *+' conftest.er1 >conftest.err
29700 rm -f conftest.er1
29701 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029704 { ac_try='test -z "$ac_cxx_werror_flag"
29705 || test ! -s conftest.err'
29706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29707 (eval $ac_try) 2>&5
29708 ac_status=$?
29709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710 (exit $ac_status); }; } &&
29711 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713 (eval $ac_try) 2>&5
29714 ac_status=$?
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); }; }; then
29717 ac_cv_func_isinf_in_math_h=yes
29718else
29719 echo "$as_me: failed program was:" >&5
29720sed 's/^/| /' conftest.$ac_ext >&5
29721
29722ac_cv_func_isinf_in_math_h=no
29723fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029725 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029726ac_cpp='$CPP $CPPFLAGS'
29727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29729ac_compiler_gnu=$ac_cv_c_compiler_gnu
29730
29731fi
29732echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
29733echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029734
29735if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029736
29737cat >>confdefs.h <<\_ACEOF
29738#define HAVE_ISINF_IN_MATH_H 1
29739_ACEOF
29740
Reid Spencerabec8f92004-10-27 23:03:44 +000029741fi
29742
Brian Gaeke52a551d2004-07-21 03:14:12 +000029743echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
29744echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
29745if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
29746 echo $ECHO_N "(cached) $ECHO_C" >&6
29747else
29748 ac_ext=cc
29749ac_cpp='$CXXCPP $CPPFLAGS'
29750ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29751ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29752ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29753
Reid Spencerabec8f92004-10-27 23:03:44 +000029754 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029755/* confdefs.h. */
29756_ACEOF
29757cat confdefs.h >>conftest.$ac_ext
29758cat >>conftest.$ac_ext <<_ACEOF
29759/* end confdefs.h. */
29760#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029761int
29762main ()
29763{
29764float f; isinf(f);
29765 ;
29766 return 0;
29767}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029768_ACEOF
29769rm -f conftest.$ac_objext
29770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029771 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029772 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029773 grep -v '^ *+' conftest.er1 >conftest.err
29774 rm -f conftest.er1
29775 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29777 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029778 { ac_try='test -z "$ac_cxx_werror_flag"
29779 || test ! -s conftest.err'
29780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781 (eval $ac_try) 2>&5
29782 ac_status=$?
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); }; } &&
29785 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29787 (eval $ac_try) 2>&5
29788 ac_status=$?
29789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29790 (exit $ac_status); }; }; then
29791 ac_cv_func_isinf_in_cmath=yes
29792else
29793 echo "$as_me: failed program was:" >&5
29794sed 's/^/| /' conftest.$ac_ext >&5
29795
29796ac_cv_func_isinf_in_cmath=no
29797fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029799 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029800ac_cpp='$CPP $CPPFLAGS'
29801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29803ac_compiler_gnu=$ac_cv_c_compiler_gnu
29804
29805fi
29806echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
29807echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029808
29809if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029810
29811cat >>confdefs.h <<\_ACEOF
29812#define HAVE_ISINF_IN_CMATH 1
29813_ACEOF
29814
Reid Spencerabec8f92004-10-27 23:03:44 +000029815fi
29816
Brian Gaeke52a551d2004-07-21 03:14:12 +000029817echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
29818echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
29819if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
29820 echo $ECHO_N "(cached) $ECHO_C" >&6
29821else
29822 ac_ext=cc
29823ac_cpp='$CXXCPP $CPPFLAGS'
29824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29827
Reid Spencerabec8f92004-10-27 23:03:44 +000029828 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000029829/* confdefs.h. */
29830_ACEOF
29831cat confdefs.h >>conftest.$ac_ext
29832cat >>conftest.$ac_ext <<_ACEOF
29833/* end confdefs.h. */
29834#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000029835int
29836main ()
29837{
29838float f; std::isinf(f)}
29839 ;
29840 return 0;
29841}
Brian Gaeke52a551d2004-07-21 03:14:12 +000029842_ACEOF
29843rm -f conftest.$ac_objext
29844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029845 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000029846 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029847 grep -v '^ *+' conftest.er1 >conftest.err
29848 rm -f conftest.er1
29849 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000029850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29851 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029852 { ac_try='test -z "$ac_cxx_werror_flag"
29853 || test ! -s conftest.err'
29854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29855 (eval $ac_try) 2>&5
29856 ac_status=$?
29857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29858 (exit $ac_status); }; } &&
29859 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000029860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29861 (eval $ac_try) 2>&5
29862 ac_status=$?
29863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29864 (exit $ac_status); }; }; then
29865 ac_cv_func_std_isinf_in_cmath=yes
29866else
29867 echo "$as_me: failed program was:" >&5
29868sed 's/^/| /' conftest.$ac_ext >&5
29869
29870ac_cv_func_std_isinf_in_cmath=no
29871fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029873 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000029874ac_cpp='$CPP $CPPFLAGS'
29875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29877ac_compiler_gnu=$ac_cv_c_compiler_gnu
29878
29879fi
29880echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
29881echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029882
29883if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000029884
29885cat >>confdefs.h <<\_ACEOF
29886#define HAVE_STD_ISINF_IN_CMATH 1
29887_ACEOF
29888
Reid Spencerabec8f92004-10-27 23:03:44 +000029889fi
29890
Brian Gaeked59a6472004-07-21 03:33:58 +000029891echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
29892echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
29893if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
29894 echo $ECHO_N "(cached) $ECHO_C" >&6
29895else
29896 ac_ext=cc
29897ac_cpp='$CXXCPP $CPPFLAGS'
29898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29901
Reid Spencerabec8f92004-10-27 23:03:44 +000029902 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000029903/* confdefs.h. */
29904_ACEOF
29905cat confdefs.h >>conftest.$ac_ext
29906cat >>conftest.$ac_ext <<_ACEOF
29907/* end confdefs.h. */
29908#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000029909int
29910main ()
29911{
29912float f; finite(f);
29913 ;
29914 return 0;
29915}
Brian Gaeked59a6472004-07-21 03:33:58 +000029916_ACEOF
29917rm -f conftest.$ac_objext
29918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029919 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000029920 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029921 grep -v '^ *+' conftest.er1 >conftest.err
29922 rm -f conftest.er1
29923 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000029924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029926 { ac_try='test -z "$ac_cxx_werror_flag"
29927 || test ! -s conftest.err'
29928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929 (eval $ac_try) 2>&5
29930 ac_status=$?
29931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932 (exit $ac_status); }; } &&
29933 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000029934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29935 (eval $ac_try) 2>&5
29936 ac_status=$?
29937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); }; }; then
29939 ac_cv_func_finite_in_ieeefp_h=yes
29940else
29941 echo "$as_me: failed program was:" >&5
29942sed 's/^/| /' conftest.$ac_ext >&5
29943
29944ac_cv_func_finite_in_ieeefp_h=no
29945fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000029947 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000029948ac_cpp='$CPP $CPPFLAGS'
29949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29951ac_compiler_gnu=$ac_cv_c_compiler_gnu
29952
29953fi
29954echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
29955echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000029956
Brian Gaeke6802b552004-10-28 05:06:45 +000029957if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000029958
29959cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000029960#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000029961_ACEOF
29962
Reid Spencerabec8f92004-10-27 23:03:44 +000029963fi
29964
29965
29966
John Criswell7a73b802003-06-30 21:59:07 +000029967
29968
29969for ac_header in stdlib.h unistd.h
29970do
29971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29972if eval "test \"\${$as_ac_Header+set}\" = set"; then
29973 echo "$as_me:$LINENO: checking for $ac_header" >&5
29974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29975if eval "test \"\${$as_ac_Header+set}\" = set"; then
29976 echo $ECHO_N "(cached) $ECHO_C" >&6
29977fi
29978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29980else
29981 # Is the header compilable?
29982echo "$as_me:$LINENO: checking $ac_header usability" >&5
29983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29984cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029985/* confdefs.h. */
29986_ACEOF
29987cat confdefs.h >>conftest.$ac_ext
29988cat >>conftest.$ac_ext <<_ACEOF
29989/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000029990$ac_includes_default
29991#include <$ac_header>
29992_ACEOF
29993rm -f conftest.$ac_objext
29994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029995 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029996 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029997 grep -v '^ *+' conftest.er1 >conftest.err
29998 rm -f conftest.er1
29999 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030002 { ac_try='test -z "$ac_c_werror_flag"
30003 || test ! -s conftest.err'
30004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005 (eval $ac_try) 2>&5
30006 ac_status=$?
30007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008 (exit $ac_status); }; } &&
30009 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000030010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30011 (eval $ac_try) 2>&5
30012 ac_status=$?
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); }; }; then
30015 ac_header_compiler=yes
30016else
30017 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030018sed 's/^/| /' conftest.$ac_ext >&5
30019
John Criswell7a73b802003-06-30 21:59:07 +000030020ac_header_compiler=no
30021fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030023echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30024echo "${ECHO_T}$ac_header_compiler" >&6
30025
30026# Is the header present?
30027echo "$as_me:$LINENO: checking $ac_header presence" >&5
30028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30029cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030030/* confdefs.h. */
30031_ACEOF
30032cat confdefs.h >>conftest.$ac_ext
30033cat >>conftest.$ac_ext <<_ACEOF
30034/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030035#include <$ac_header>
30036_ACEOF
30037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30039 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000030040 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000030041 rm -f conftest.er1
30042 cat conftest.err >&5
30043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30044 (exit $ac_status); } >/dev/null; then
30045 if test -s conftest.err; then
30046 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000030047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000030048 else
30049 ac_cpp_err=
30050 fi
30051else
30052 ac_cpp_err=yes
30053fi
30054if test -z "$ac_cpp_err"; then
30055 ac_header_preproc=yes
30056else
30057 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030058sed 's/^/| /' conftest.$ac_ext >&5
30059
John Criswell7a73b802003-06-30 21:59:07 +000030060 ac_header_preproc=no
30061fi
30062rm -f conftest.err conftest.$ac_ext
30063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30064echo "${ECHO_T}$ac_header_preproc" >&6
30065
30066# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30068 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000030069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30072echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30073 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000030074 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030075 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000030076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30077echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30079echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30081echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30083echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30085echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000030086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30087echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000030088 (
30089 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000030090## ----------------------------------- ##
30091## Report this to llvmbugs@cs.uiuc.edu ##
30092## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000030093_ASBOX
30094 ) |
30095 sed "s/^/$as_me: WARNING: /" >&2
30096 ;;
John Criswell7a73b802003-06-30 21:59:07 +000030097esac
30098echo "$as_me:$LINENO: checking for $ac_header" >&5
30099echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30100if eval "test \"\${$as_ac_Header+set}\" = set"; then
30101 echo $ECHO_N "(cached) $ECHO_C" >&6
30102else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030103 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000030104fi
30105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30106echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30107
30108fi
30109if test `eval echo '${'$as_ac_Header'}'` = yes; then
30110 cat >>confdefs.h <<_ACEOF
30111#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30112_ACEOF
30113
30114fi
30115
30116done
30117
30118
30119for ac_func in getpagesize
30120do
30121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30122echo "$as_me:$LINENO: checking for $ac_func" >&5
30123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30124if eval "test \"\${$as_ac_var+set}\" = set"; then
30125 echo $ECHO_N "(cached) $ECHO_C" >&6
30126else
30127 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030128/* confdefs.h. */
30129_ACEOF
30130cat confdefs.h >>conftest.$ac_ext
30131cat >>conftest.$ac_ext <<_ACEOF
30132/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30135#define $ac_func innocuous_$ac_func
30136
John Criswell7a73b802003-06-30 21:59:07 +000030137/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030138 which can conflict with char $ac_func (); below.
30139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30140 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030141
John Criswell0c38eaf2003-09-10 15:17:25 +000030142#ifdef __STDC__
30143# include <limits.h>
30144#else
30145# include <assert.h>
30146#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030147
30148#undef $ac_func
30149
John Criswell7a73b802003-06-30 21:59:07 +000030150/* Override any gcc2 internal prototype to avoid an error. */
30151#ifdef __cplusplus
30152extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030153{
John Criswell7a73b802003-06-30 21:59:07 +000030154#endif
30155/* We use char because int might match the return type of a gcc2
30156 builtin and then its argument prototype would still apply. */
30157char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000030158/* The GNU C library defines this for functions which it implements
30159 to always fail with ENOSYS. Some functions are actually named
30160 something starting with __ and the normal name is an alias. */
30161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30162choke me
30163#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030164char (*f) () = $ac_func;
30165#endif
30166#ifdef __cplusplus
30167}
John Criswell7a73b802003-06-30 21:59:07 +000030168#endif
30169
John Criswell0c38eaf2003-09-10 15:17:25 +000030170int
30171main ()
30172{
30173return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000030174 ;
30175 return 0;
30176}
30177_ACEOF
30178rm -f conftest.$ac_objext conftest$ac_exeext
30179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030180 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030181 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030182 grep -v '^ *+' conftest.er1 >conftest.err
30183 rm -f conftest.er1
30184 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30186 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030187 { ac_try='test -z "$ac_c_werror_flag"
30188 || test ! -s conftest.err'
30189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30190 (eval $ac_try) 2>&5
30191 ac_status=$?
30192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30193 (exit $ac_status); }; } &&
30194 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30196 (eval $ac_try) 2>&5
30197 ac_status=$?
30198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30199 (exit $ac_status); }; }; then
30200 eval "$as_ac_var=yes"
30201else
30202 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030203sed 's/^/| /' conftest.$ac_ext >&5
30204
John Criswell7a73b802003-06-30 21:59:07 +000030205eval "$as_ac_var=no"
30206fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030207rm -f conftest.err conftest.$ac_objext \
30208 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030209fi
30210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30211echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30212if test `eval echo '${'$as_ac_var'}'` = yes; then
30213 cat >>confdefs.h <<_ACEOF
30214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30215_ACEOF
30216
30217fi
30218done
30219
30220echo "$as_me:$LINENO: checking for working mmap" >&5
30221echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
30222if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
30223 echo $ECHO_N "(cached) $ECHO_C" >&6
30224else
30225 if test "$cross_compiling" = yes; then
30226 ac_cv_func_mmap_fixed_mapped=no
30227else
30228 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030229/* confdefs.h. */
30230_ACEOF
30231cat confdefs.h >>conftest.$ac_ext
30232cat >>conftest.$ac_ext <<_ACEOF
30233/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000030234$ac_includes_default
30235/* malloc might have been renamed as rpl_malloc. */
30236#undef malloc
30237
30238/* Thanks to Mike Haertel and Jim Avera for this test.
30239 Here is a matrix of mmap possibilities:
30240 mmap private not fixed
30241 mmap private fixed at somewhere currently unmapped
30242 mmap private fixed at somewhere already mapped
30243 mmap shared not fixed
30244 mmap shared fixed at somewhere currently unmapped
30245 mmap shared fixed at somewhere already mapped
30246 For private mappings, we should verify that changes cannot be read()
30247 back from the file, nor mmap's back from the file at a different
30248 address. (There have been systems where private was not correctly
30249 implemented like the infamous i386 svr4.0, and systems where the
30250 VM page cache was not coherent with the file system buffer cache
30251 like early versions of FreeBSD and possibly contemporary NetBSD.)
30252 For shared mappings, we should conversely verify that changes get
30253 propagated back to all the places they're supposed to be.
30254
30255 Grep wants private fixed already mapped.
30256 The main things grep needs to know about mmap are:
30257 * does it exist and is it safe to write into the mmap'd area
30258 * how to use it (BSD variants) */
30259
30260#include <fcntl.h>
30261#include <sys/mman.h>
30262
30263#if !STDC_HEADERS && !HAVE_STDLIB_H
30264char *malloc ();
30265#endif
30266
30267/* This mess was copied from the GNU getpagesize.h. */
30268#if !HAVE_GETPAGESIZE
30269/* Assume that all systems that can run configure have sys/param.h. */
30270# if !HAVE_SYS_PARAM_H
30271# define HAVE_SYS_PARAM_H 1
30272# endif
30273
30274# ifdef _SC_PAGESIZE
30275# define getpagesize() sysconf(_SC_PAGESIZE)
30276# else /* no _SC_PAGESIZE */
30277# if HAVE_SYS_PARAM_H
30278# include <sys/param.h>
30279# ifdef EXEC_PAGESIZE
30280# define getpagesize() EXEC_PAGESIZE
30281# else /* no EXEC_PAGESIZE */
30282# ifdef NBPG
30283# define getpagesize() NBPG * CLSIZE
30284# ifndef CLSIZE
30285# define CLSIZE 1
30286# endif /* no CLSIZE */
30287# else /* no NBPG */
30288# ifdef NBPC
30289# define getpagesize() NBPC
30290# else /* no NBPC */
30291# ifdef PAGESIZE
30292# define getpagesize() PAGESIZE
30293# endif /* PAGESIZE */
30294# endif /* no NBPC */
30295# endif /* no NBPG */
30296# endif /* no EXEC_PAGESIZE */
30297# else /* no HAVE_SYS_PARAM_H */
30298# define getpagesize() 8192 /* punt totally */
30299# endif /* no HAVE_SYS_PARAM_H */
30300# endif /* no _SC_PAGESIZE */
30301
30302#endif /* no HAVE_GETPAGESIZE */
30303
30304int
30305main ()
30306{
30307 char *data, *data2, *data3;
30308 int i, pagesize;
30309 int fd;
30310
30311 pagesize = getpagesize ();
30312
30313 /* First, make a file with some known garbage in it. */
30314 data = (char *) malloc (pagesize);
30315 if (!data)
30316 exit (1);
30317 for (i = 0; i < pagesize; ++i)
30318 *(data + i) = rand ();
30319 umask (0);
30320 fd = creat ("conftest.mmap", 0600);
30321 if (fd < 0)
30322 exit (1);
30323 if (write (fd, data, pagesize) != pagesize)
30324 exit (1);
30325 close (fd);
30326
30327 /* Next, try to mmap the file at a fixed address which already has
30328 something else allocated at it. If we can, also make sure that
30329 we see the same garbage. */
30330 fd = open ("conftest.mmap", O_RDWR);
30331 if (fd < 0)
30332 exit (1);
30333 data2 = (char *) malloc (2 * pagesize);
30334 if (!data2)
30335 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000030336 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000030337 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000030338 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000030339 exit (1);
30340 for (i = 0; i < pagesize; ++i)
30341 if (*(data + i) != *(data2 + i))
30342 exit (1);
30343
30344 /* Finally, make sure that changes to the mapped area do not
30345 percolate back to the file as seen by read(). (This is a bug on
30346 some variants of i386 svr4.0.) */
30347 for (i = 0; i < pagesize; ++i)
30348 *(data2 + i) = *(data2 + i) + 1;
30349 data3 = (char *) malloc (pagesize);
30350 if (!data3)
30351 exit (1);
30352 if (read (fd, data3, pagesize) != pagesize)
30353 exit (1);
30354 for (i = 0; i < pagesize; ++i)
30355 if (*(data + i) != *(data3 + i))
30356 exit (1);
30357 close (fd);
30358 exit (0);
30359}
30360_ACEOF
30361rm -f conftest$ac_exeext
30362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30363 (eval $ac_link) 2>&5
30364 ac_status=$?
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368 (eval $ac_try) 2>&5
30369 ac_status=$?
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; }; then
30372 ac_cv_func_mmap_fixed_mapped=yes
30373else
30374 echo "$as_me: program exited with status $ac_status" >&5
30375echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030376sed 's/^/| /' conftest.$ac_ext >&5
30377
John Criswell7a73b802003-06-30 21:59:07 +000030378( exit $ac_status )
30379ac_cv_func_mmap_fixed_mapped=no
30380fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030382fi
30383fi
30384echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
30385echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
30386if test $ac_cv_func_mmap_fixed_mapped = yes; then
30387
30388cat >>confdefs.h <<\_ACEOF
30389#define HAVE_MMAP 1
30390_ACEOF
30391
30392fi
30393rm -f conftest.mmap
30394
30395echo "$as_me:$LINENO: checking for mmap of files" >&5
30396echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
30397if test "${ac_cv_func_mmap_file+set}" = set; then
30398 echo $ECHO_N "(cached) $ECHO_C" >&6
30399else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030400 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000030401ac_cpp='$CPP $CPPFLAGS'
30402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30404ac_compiler_gnu=$ac_cv_c_compiler_gnu
30405
30406 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030407 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000030408else
30409 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030410
Reid Spencer777ce172004-09-20 04:09:56 +000030411 /* confdefs.h. */
30412_ACEOF
30413cat confdefs.h >>conftest.$ac_ext
30414cat >>conftest.$ac_ext <<_ACEOF
30415/* end confdefs.h. */
30416
John Criswell7a73b802003-06-30 21:59:07 +000030417#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000030418#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000030419#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000030420
30421int
30422main ()
30423{
John Criswell7a73b802003-06-30 21:59:07 +000030424
30425 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000030426 fd = creat ("foo",0777);
30427 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
30428 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000030429 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000030430 ;
30431 return 0;
30432}
John Criswell7a73b802003-06-30 21:59:07 +000030433_ACEOF
30434rm -f conftest$ac_exeext
30435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30436 (eval $ac_link) 2>&5
30437 ac_status=$?
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30441 (eval $ac_try) 2>&5
30442 ac_status=$?
30443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30444 (exit $ac_status); }; }; then
30445 ac_cv_func_mmap_file=yes
30446else
30447 echo "$as_me: program exited with status $ac_status" >&5
30448echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030449sed 's/^/| /' conftest.$ac_ext >&5
30450
John Criswell7a73b802003-06-30 21:59:07 +000030451( exit $ac_status )
30452ac_cv_func_mmap_file=no
30453fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030454rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030455fi
30456 ac_ext=c
30457ac_cpp='$CPP $CPPFLAGS'
30458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30460ac_compiler_gnu=$ac_cv_c_compiler_gnu
30461
30462
30463fi
30464echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
30465echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
30466if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000030467
30468cat >>confdefs.h <<\_ACEOF
30469#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000030470_ACEOF
30471
30472 MMAP_FILE=yes
30473
30474fi
30475
Reid Spencer7931a782004-12-27 06:15:02 +000030476echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
30477echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6
30478if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
30479 echo $ECHO_N "(cached) $ECHO_C" >&6
30480else
Reid Spencer582a23c2004-12-29 07:07:57 +000030481 if test "$llvm_cv_os_type" = "Interix" ; then
Reid Spencer7931a782004-12-27 06:15:02 +000030482 ac_cv_need_dev_zero_for_mmap=yes
30483 else
30484 ac_cv_need_dev_zero_for_mmap=no
30485 fi
30486
30487fi
30488echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
30489echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6
30490if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
30491
30492cat >>confdefs.h <<\_ACEOF
30493#define NEED_DEV_ZERO_FOR_MMAP 1
30494_ACEOF
30495
30496fi
John Criswell7a73b802003-06-30 21:59:07 +000030497echo "$as_me:$LINENO: checking for mprotect" >&5
30498echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
30499if test "${ac_cv_func_mprotect+set}" = set; then
30500 echo $ECHO_N "(cached) $ECHO_C" >&6
30501else
30502 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000030503/* confdefs.h. */
30504_ACEOF
30505cat confdefs.h >>conftest.$ac_ext
30506cat >>conftest.$ac_ext <<_ACEOF
30507/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030508/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
30509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30510#define mprotect innocuous_mprotect
30511
John Criswell7a73b802003-06-30 21:59:07 +000030512/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000030513 which can conflict with char mprotect (); below.
30514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30515 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000030516
John Criswell0c38eaf2003-09-10 15:17:25 +000030517#ifdef __STDC__
30518# include <limits.h>
30519#else
30520# include <assert.h>
30521#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000030522
30523#undef mprotect
30524
John Criswell7a73b802003-06-30 21:59:07 +000030525/* Override any gcc2 internal prototype to avoid an error. */
30526#ifdef __cplusplus
30527extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000030528{
John Criswell7a73b802003-06-30 21:59:07 +000030529#endif
30530/* We use char because int might match the return type of a gcc2
30531 builtin and then its argument prototype would still apply. */
30532char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000030533/* The GNU C library defines this for functions which it implements
30534 to always fail with ENOSYS. Some functions are actually named
30535 something starting with __ and the normal name is an alias. */
30536#if defined (__stub_mprotect) || defined (__stub___mprotect)
30537choke me
30538#else
John Criswell0c38eaf2003-09-10 15:17:25 +000030539char (*f) () = mprotect;
30540#endif
30541#ifdef __cplusplus
30542}
John Criswell7a73b802003-06-30 21:59:07 +000030543#endif
30544
John Criswell0c38eaf2003-09-10 15:17:25 +000030545int
30546main ()
30547{
30548return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000030549 ;
30550 return 0;
30551}
30552_ACEOF
30553rm -f conftest.$ac_objext conftest$ac_exeext
30554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000030555 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000030556 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000030557 grep -v '^ *+' conftest.er1 >conftest.err
30558 rm -f conftest.er1
30559 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000030560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000030562 { ac_try='test -z "$ac_c_werror_flag"
30563 || test ! -s conftest.err'
30564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30565 (eval $ac_try) 2>&5
30566 ac_status=$?
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); }; } &&
30569 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000030570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30571 (eval $ac_try) 2>&5
30572 ac_status=$?
30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); }; }; then
30575 ac_cv_func_mprotect=yes
30576else
30577 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000030578sed 's/^/| /' conftest.$ac_ext >&5
30579
John Criswell7a73b802003-06-30 21:59:07 +000030580ac_cv_func_mprotect=no
30581fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030582rm -f conftest.err conftest.$ac_objext \
30583 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000030584fi
30585echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
30586echo "${ECHO_T}$ac_cv_func_mprotect" >&6
30587if test $ac_cv_func_mprotect = yes; then
30588 :
30589else
30590 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
30591echo "$as_me: error: Function mprotect() required but not found" >&2;}
30592 { (exit 1); exit 1; }; }
30593fi
30594
30595
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030596if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030597then
Reid Spencer582a23c2004-12-29 07:07:57 +000030598 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
30599echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030600fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030601if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000030602then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030603 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
30604echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000030605fi
John Criswell7a73b802003-06-30 21:59:07 +000030606
30607
Brian Gaekef3b24102003-11-16 18:38:14 +000030608echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
30609echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030610if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
30611 echo $ECHO_N "(cached) $ECHO_C" >&6
30612else
30613 llvm_cv_llvmgcc_sanity="no"
Reid Spencer502935f2004-12-22 05:56:56 +000030614if test -x "$LLVMGCC" ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030615 cp /dev/null conftest.c
Chris Lattner74878f42006-02-27 05:39:00 +000030616 "$LLVMGCC" -emit-llvm -S -o - conftest.c | grep implementation > /dev/null 2>&1
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030617 if test $? -eq 0 ; then
30618 llvm_cv_llvmgcc_sanity="yes"
30619 fi
30620 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000030621fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030622fi
30623echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
30624echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
30625
30626if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
Reid Spencer502935f2004-12-22 05:56:56 +000030627 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030628 LLVMCC1=$llvmcc1path
30629
Reid Spencer502935f2004-12-22 05:56:56 +000030630 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030631 LLVMCC1PLUS=$llvmcc1pluspath
30632
Reid Spencer502935f2004-12-22 05:56:56 +000030633 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
30634 LLVMGCCDIR=$llvmgccdir
30635
Brian Gaekef3b24102003-11-16 18:38:14 +000030636fi
30637
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030638SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000030639
30640
Reid Spencere9de0912004-08-20 09:03:57 +000030641# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030642# information into substitutions that will end up in Makefile.config.in
30643# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000030644eval LLVM_PREFIX="${prefix}";
30645eval LLVM_BINDIR="${prefix}/bin";
30646eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000030647eval LLVM_DATADIR="${prefix}/share/llvm";
30648eval LLVM_DOCSDIR="${prefix}/docs/llvm";
30649eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000030650eval LLVM_INCLUDEDIR="${prefix}/include";
30651eval LLVM_INFODIR="${prefix}/info";
30652eval LLVM_MANDIR="${prefix}/man";
30653LLVM_CONFIGTIME=`date`
30654
30655
30656
30657
30658
30659
30660
30661
30662
30663
30664
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030665# Place the various directores into the config.h file as #defines so that we
30666# can know about the installation paths within LLVM.
30667
Reid Spencere9de0912004-08-20 09:03:57 +000030668cat >>confdefs.h <<_ACEOF
30669#define LLVM_PREFIX "$LLVM_PREFIX"
30670_ACEOF
30671
30672
30673cat >>confdefs.h <<_ACEOF
30674#define LLVM_BINDIR "$LLVM_BINDIR"
30675_ACEOF
30676
30677
30678cat >>confdefs.h <<_ACEOF
30679#define LLVM_LIBDIR "$LLVM_LIBDIR"
30680_ACEOF
30681
30682
30683cat >>confdefs.h <<_ACEOF
30684#define LLVM_DATADIR "$LLVM_DATADIR"
30685_ACEOF
30686
30687
30688cat >>confdefs.h <<_ACEOF
30689#define LLVM_DATADIR "$LLVM_DOCSDIR"
30690_ACEOF
30691
30692
30693cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000030694#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000030695_ACEOF
30696
30697
30698cat >>confdefs.h <<_ACEOF
30699#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
30700_ACEOF
30701
30702
30703cat >>confdefs.h <<_ACEOF
30704#define LLVM_INFODIR "$LLVM_INFODIR"
30705_ACEOF
30706
30707
30708cat >>confdefs.h <<_ACEOF
30709#define LLVM_MANDIR "$LLVM_MANDIR"
30710_ACEOF
30711
30712
30713cat >>confdefs.h <<_ACEOF
30714#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
30715_ACEOF
30716
30717
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030718
30719 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
30720
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030721 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
30722
30723 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
30724
30725 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
30726
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030727 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
30728
30729
30730 ac_config_files="$ac_config_files Makefile.config"
30731
30732
Reid Spencer1f319422004-11-29 04:56:35 +000030733 ac_config_files="$ac_config_files docs/doxygen.cfg"
30734
30735
Reid Spencerc0682832005-02-24 19:05:19 +000030736 ac_config_commands="$ac_config_commands setup"
30737
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030738 ac_config_commands="$ac_config_commands Makefile"
30739
30740
30741 ac_config_commands="$ac_config_commands Makefile.common"
30742
30743
30744 ac_config_commands="$ac_config_commands examples/Makefile"
30745
30746
30747 ac_config_commands="$ac_config_commands lib/Makefile"
30748
30749
30750 ac_config_commands="$ac_config_commands runtime/Makefile"
30751
30752
30753 ac_config_commands="$ac_config_commands test/Makefile"
30754
30755
30756 ac_config_commands="$ac_config_commands test/Makefile.tests"
30757
30758
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030759 ac_config_commands="$ac_config_commands tools/Makefile"
30760
30761
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030762 ac_config_commands="$ac_config_commands utils/Makefile"
30763
30764
30765 ac_config_commands="$ac_config_commands projects/Makefile"
30766
30767
30768
John Criswell7a73b802003-06-30 21:59:07 +000030769cat >confcache <<\_ACEOF
30770# This file is a shell script that caches the results of configure
30771# tests run on this system so they can be shared between configure
30772# scripts and configure runs, see configure's option --config-cache.
30773# It is not useful on other systems. If it contains results you don't
30774# want to keep, you may remove or edit it.
30775#
30776# config.status only pays attention to the cache file if you give it
30777# the --recheck option to rerun configure.
30778#
John Criswell0c38eaf2003-09-10 15:17:25 +000030779# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000030780# loading this file, other *unset* `ac_cv_foo' will be assigned the
30781# following values.
30782
30783_ACEOF
30784
30785# The following way of writing the cache mishandles newlines in values,
30786# but we know of no workaround that is simple, portable, and efficient.
30787# So, don't put newlines in cache variables' values.
30788# Ultrix sh set writes to stderr and can't be redirected directly,
30789# and sets the high bit in the cache file unless we assign to the vars.
30790{
30791 (set) 2>&1 |
30792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
30793 *ac_space=\ *)
30794 # `set' does not quote correctly, so add quotes (double-quote
30795 # substitution turns \\\\ into \\, and sed turns \\ into \).
30796 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030797 "s/'/'\\\\''/g;
30798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000030799 ;;
30800 *)
30801 # `set' quotes correctly as required by POSIX, so do not add quotes.
30802 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030803 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000030804 ;;
30805 esac;
30806} |
30807 sed '
30808 t clear
30809 : clear
30810 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30811 t end
30812 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30813 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000030814if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000030815 if test -w $cache_file; then
30816 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30817 cat confcache >$cache_file
30818 else
30819 echo "not updating unwritable cache $cache_file"
30820 fi
30821fi
30822rm -f confcache
30823
30824test "x$prefix" = xNONE && prefix=$ac_default_prefix
30825# Let make expand exec_prefix.
30826test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30827
30828# VPATH may cause trouble with some makes, so we remove $(srcdir),
30829# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30830# trailing colons and then remove the whole line if VPATH becomes empty
30831# (actually we leave an empty line to preserve line numbers).
30832if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030833 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000030834s/:*\$(srcdir):*/:/;
30835s/:*\${srcdir}:*/:/;
30836s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030837s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000030838s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000030839s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000030840}'
30841fi
30842
30843DEFS=-DHAVE_CONFIG_H
30844
John Criswell0c38eaf2003-09-10 15:17:25 +000030845ac_libobjs=
30846ac_ltlibobjs=
30847for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30848 # 1. Remove the extension, and $U if already installed.
30849 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030850 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030851 # 2. Add them.
30852 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30853 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30854done
30855LIBOBJS=$ac_libobjs
30856
30857LTLIBOBJS=$ac_ltlibobjs
30858
30859
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030860if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
30861 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
30862Usually this means the macro was only invoked conditionally." >&5
30863echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
30864Usually this means the macro was only invoked conditionally." >&2;}
30865 { (exit 1); exit 1; }; }
30866fi
30867if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
30868 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30869Usually this means the macro was only invoked conditionally." >&5
30870echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
30871Usually this means the macro was only invoked conditionally." >&2;}
30872 { (exit 1); exit 1; }; }
30873fi
John Criswell7a73b802003-06-30 21:59:07 +000030874
30875: ${CONFIG_STATUS=./config.status}
30876ac_clean_files_save=$ac_clean_files
30877ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30878{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30879echo "$as_me: creating $CONFIG_STATUS" >&6;}
30880cat >$CONFIG_STATUS <<_ACEOF
30881#! $SHELL
30882# Generated by $as_me.
30883# Run this file to recreate the current configuration.
30884# Compiler output produced by configure, useful for debugging
30885# configure, is in config.log if it exists.
30886
30887debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000030888ac_cs_recheck=false
30889ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000030890SHELL=\${CONFIG_SHELL-$SHELL}
30891_ACEOF
30892
30893cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030894## --------------------- ##
30895## M4sh Initialization. ##
30896## --------------------- ##
30897
30898# Be Bourne compatible
30899if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30900 emulate sh
30901 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000030902 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30903 # is contrary to our usage. Disable this feature.
30904 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000030905elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30906 set -o posix
30907fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000030908DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000030909
John Criswell7a73b802003-06-30 21:59:07 +000030910# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030911if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030912 as_unset=unset
30913else
30914 as_unset=false
30915fi
30916
John Criswell0c38eaf2003-09-10 15:17:25 +000030917
30918# Work around bugs in pre-3.0 UWIN ksh.
30919$as_unset ENV MAIL MAILPATH
30920PS1='$ '
30921PS2='> '
30922PS4='+ '
30923
30924# NLS nuisances.
30925for as_var in \
30926 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30927 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30928 LC_TELEPHONE LC_TIME
30929do
Reid Spencer2706f8c2004-09-19 23:53:36 +000030930 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000030931 eval $as_var=C; export $as_var
30932 else
30933 $as_unset $as_var
30934 fi
30935done
30936
30937# Required to use basename.
30938if expr a : '\(a\)' >/dev/null 2>&1; then
30939 as_expr=expr
30940else
30941 as_expr=false
30942fi
30943
30944if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30945 as_basename=basename
30946else
30947 as_basename=false
30948fi
John Criswell7a73b802003-06-30 21:59:07 +000030949
30950
30951# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000030952as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000030953$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30954 X"$0" : 'X\(//\)$' \| \
30955 X"$0" : 'X\(/\)$' \| \
30956 . : '\(.\)' 2>/dev/null ||
30957echo X/"$0" |
30958 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30959 /^X\/\(\/\/\)$/{ s//\1/; q; }
30960 /^X\/\(\/\).*/{ s//\1/; q; }
30961 s/.*/./; q'`
30962
John Criswell0c38eaf2003-09-10 15:17:25 +000030963
John Criswell7a73b802003-06-30 21:59:07 +000030964# PATH needs CR, and LINENO needs CR and PATH.
30965# Avoid depending upon Character Ranges.
30966as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30967as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30968as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30969as_cr_digits='0123456789'
30970as_cr_alnum=$as_cr_Letters$as_cr_digits
30971
30972# The user is always right.
30973if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030974 echo "#! /bin/sh" >conf$$.sh
30975 echo "exit 0" >>conf$$.sh
30976 chmod +x conf$$.sh
30977 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030978 PATH_SEPARATOR=';'
30979 else
30980 PATH_SEPARATOR=:
30981 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000030982 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000030983fi
30984
30985
30986 as_lineno_1=$LINENO
30987 as_lineno_2=$LINENO
30988 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30989 test "x$as_lineno_1" != "x$as_lineno_2" &&
30990 test "x$as_lineno_3" = "x$as_lineno_2" || {
30991 # Find who we are. Look in the path if we contain no path at all
30992 # relative or not.
30993 case $0 in
30994 *[\\/]* ) as_myself=$0 ;;
30995 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30996for as_dir in $PATH
30997do
30998 IFS=$as_save_IFS
30999 test -z "$as_dir" && as_dir=.
31000 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31001done
31002
31003 ;;
31004 esac
31005 # We did not find ourselves, most probably we were run as `sh COMMAND'
31006 # in which case we are not to be found in the path.
31007 if test "x$as_myself" = x; then
31008 as_myself=$0
31009 fi
31010 if test ! -f "$as_myself"; then
31011 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31012echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31013 { (exit 1); exit 1; }; }
31014 fi
31015 case $CONFIG_SHELL in
31016 '')
31017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31018for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31019do
31020 IFS=$as_save_IFS
31021 test -z "$as_dir" && as_dir=.
31022 for as_base in sh bash ksh sh5; do
31023 case $as_dir in
31024 /*)
31025 if ("$as_dir/$as_base" -c '
31026 as_lineno_1=$LINENO
31027 as_lineno_2=$LINENO
31028 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31029 test "x$as_lineno_1" != "x$as_lineno_2" &&
31030 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031031 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31032 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000031033 CONFIG_SHELL=$as_dir/$as_base
31034 export CONFIG_SHELL
31035 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31036 fi;;
31037 esac
31038 done
31039done
31040;;
31041 esac
31042
31043 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31044 # uniformly replaced by the line number. The first 'sed' inserts a
31045 # line-number line before each line; the second 'sed' does the real
31046 # work. The second script uses 'N' to pair each line-number line
31047 # with the numbered line, and appends trailing '-' during
31048 # substitution so that $LINENO is not a special case at line end.
31049 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31050 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
31051 sed '=' <$as_myself |
31052 sed '
31053 N
31054 s,$,-,
31055 : loop
31056 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31057 t loop
31058 s,-$,,
31059 s,^['$as_cr_digits']*\n,,
31060 ' >$as_me.lineno &&
31061 chmod +x $as_me.lineno ||
31062 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31063echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31064 { (exit 1); exit 1; }; }
31065
31066 # Don't try to exec as it changes $[0], causing all sort of problems
31067 # (the dirname of $[0] is not the place where we might find the
31068 # original and so on. Autoconf is especially sensible to this).
31069 . ./$as_me.lineno
31070 # Exit status is that of the last command.
31071 exit
31072}
31073
31074
31075case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31076 *c*,-n*) ECHO_N= ECHO_C='
31077' ECHO_T=' ' ;;
31078 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31079 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
31080esac
31081
31082if expr a : '\(a\)' >/dev/null 2>&1; then
31083 as_expr=expr
31084else
31085 as_expr=false
31086fi
31087
31088rm -f conf$$ conf$$.exe conf$$.file
31089echo >conf$$.file
31090if ln -s conf$$.file conf$$ 2>/dev/null; then
31091 # We could just check for DJGPP; but this test a) works b) is more generic
31092 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31093 if test -f conf$$.exe; then
31094 # Don't use ln at all; we don't have any links
31095 as_ln_s='cp -p'
31096 else
31097 as_ln_s='ln -s'
31098 fi
31099elif ln conf$$.file conf$$ 2>/dev/null; then
31100 as_ln_s=ln
31101else
31102 as_ln_s='cp -p'
31103fi
31104rm -f conf$$ conf$$.exe conf$$.file
31105
John Criswell0c38eaf2003-09-10 15:17:25 +000031106if mkdir -p . 2>/dev/null; then
31107 as_mkdir_p=:
31108else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031109 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000031110 as_mkdir_p=false
31111fi
31112
John Criswell7a73b802003-06-30 21:59:07 +000031113as_executable_p="test -f"
31114
31115# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031116as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031117
31118# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031119as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000031120
31121
31122# IFS
31123# We need space, tab and new line, in precisely that order.
31124as_nl='
31125'
31126IFS=" $as_nl"
31127
31128# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000031129$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000031130
31131exec 6>&1
31132
31133# Open the log real soon, to keep \$[0] and so on meaningful, and to
31134# report actual input values of CONFIG_FILES etc. instead of their
31135# values after options handling. Logging --version etc. is OK.
31136exec 5>>config.log
31137{
31138 echo
31139 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31140## Running $as_me. ##
31141_ASBOX
31142} >&5
31143cat >&5 <<_CSEOF
31144
John Criswelle2503892005-11-08 21:13:01 +000031145This file was extended by llvm $as_me 1.7cvs, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000031146generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000031147
31148 CONFIG_FILES = $CONFIG_FILES
31149 CONFIG_HEADERS = $CONFIG_HEADERS
31150 CONFIG_LINKS = $CONFIG_LINKS
31151 CONFIG_COMMANDS = $CONFIG_COMMANDS
31152 $ $0 $@
31153
31154_CSEOF
31155echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31156echo >&5
31157_ACEOF
31158
31159# Files that config.status was made for.
31160if test -n "$ac_config_files"; then
31161 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31162fi
31163
31164if test -n "$ac_config_headers"; then
31165 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31166fi
31167
31168if test -n "$ac_config_links"; then
31169 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31170fi
31171
31172if test -n "$ac_config_commands"; then
31173 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31174fi
31175
31176cat >>$CONFIG_STATUS <<\_ACEOF
31177
31178ac_cs_usage="\
31179\`$as_me' instantiates files from templates according to the
31180current configuration.
31181
31182Usage: $0 [OPTIONS] [FILE]...
31183
31184 -h, --help print this help, then exit
31185 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000031186 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000031187 -d, --debug don't remove temporary files
31188 --recheck update $as_me by reconfiguring in the same conditions
31189 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031190 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000031191 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000031192 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000031193
31194Configuration files:
31195$config_files
31196
31197Configuration headers:
31198$config_headers
31199
John Criswellc764fbc2003-09-06 15:17:13 +000031200Configuration commands:
31201$config_commands
31202
John Criswell7a73b802003-06-30 21:59:07 +000031203Report bugs to <bug-autoconf@gnu.org>."
31204_ACEOF
31205
31206cat >>$CONFIG_STATUS <<_ACEOF
31207ac_cs_version="\\
John Criswelle2503892005-11-08 21:13:01 +000031208llvm config.status 1.7cvs
Reid Spencer2706f8c2004-09-19 23:53:36 +000031209configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000031210 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31211
Reid Spencer2706f8c2004-09-19 23:53:36 +000031212Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000031213This config.status script is free software; the Free Software Foundation
31214gives unlimited permission to copy, distribute and modify it."
31215srcdir=$srcdir
31216INSTALL="$INSTALL"
31217_ACEOF
31218
31219cat >>$CONFIG_STATUS <<\_ACEOF
31220# If no file are specified by the user, then we need to provide default
31221# value. By we need to know if files were specified by the user.
31222ac_need_defaults=:
31223while test $# != 0
31224do
31225 case $1 in
31226 --*=*)
31227 ac_option=`expr "x$1" : 'x\([^=]*\)='`
31228 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031229 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000031230 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031231 -*)
31232 ac_option=$1
31233 ac_optarg=$2
31234 ac_shift=shift
31235 ;;
John Criswell7a73b802003-06-30 21:59:07 +000031236 *) # This is not an option, so the user has probably given explicit
31237 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000031238 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000031239 ac_need_defaults=false;;
31240 esac
31241
John Criswell0c38eaf2003-09-10 15:17:25 +000031242 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000031243 # Handling of the options.
31244_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000031245cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000031246 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31247 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031248 --version | --vers* | -V )
31249 echo "$ac_cs_version"; exit 0 ;;
31250 --he | --h)
31251 # Conflict between --help and --header
31252 { { echo "$as_me:$LINENO: error: ambiguous option: $1
31253Try \`$0 --help' for more information." >&5
31254echo "$as_me: error: ambiguous option: $1
31255Try \`$0 --help' for more information." >&2;}
31256 { (exit 1); exit 1; }; };;
31257 --help | --hel | -h )
31258 echo "$ac_cs_usage"; exit 0 ;;
31259 --debug | --d* | -d )
31260 debug=: ;;
31261 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000031262 $ac_shift
31263 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031264 ac_need_defaults=false;;
31265 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000031266 $ac_shift
31267 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000031268 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000031269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31270 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31271 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000031272
31273 # This is an error.
31274 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31275Try \`$0 --help' for more information." >&5
31276echo "$as_me: error: unrecognized option: $1
31277Try \`$0 --help' for more information." >&2;}
31278 { (exit 1); exit 1; }; } ;;
31279
31280 *) ac_config_targets="$ac_config_targets $1" ;;
31281
31282 esac
31283 shift
31284done
31285
John Criswell0c38eaf2003-09-10 15:17:25 +000031286ac_configure_extra_args=
31287
31288if $ac_cs_silent; then
31289 exec 6>/dev/null
31290 ac_configure_extra_args="$ac_configure_extra_args --silent"
31291fi
31292
31293_ACEOF
31294cat >>$CONFIG_STATUS <<_ACEOF
31295if \$ac_cs_recheck; then
31296 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31297 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31298fi
31299
John Criswell7a73b802003-06-30 21:59:07 +000031300_ACEOF
31301
John Criswellc764fbc2003-09-06 15:17:13 +000031302cat >>$CONFIG_STATUS <<_ACEOF
31303#
31304# INIT-COMMANDS section.
31305#
John Criswell7a73b802003-06-30 21:59:07 +000031306
Reid Spencerc0682832005-02-24 19:05:19 +000031307llvm_src="${srcdir}"
John Criswellc764fbc2003-09-06 15:17:13 +000031308
31309_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031310
31311
31312
31313cat >>$CONFIG_STATUS <<\_ACEOF
31314for ac_config_target in $ac_config_targets
31315do
31316 case "$ac_config_target" in
31317 # Handling of arguments.
31318 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000031319 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spencerc0682832005-02-24 19:05:19 +000031320 "setup" ) CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031321 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
31322 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000031323 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031324 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031325 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031326 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
31327 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031328 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031329 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031330 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000031331 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000031332 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000031333 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
31334 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000031335 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000031336 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31337echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31338 { (exit 1); exit 1; }; };;
31339 esac
31340done
31341
31342# If the user did not use the arguments to specify the items to instantiate,
31343# then the envvar interface is used. Set only those that are not.
31344# We use the long form for the default assignment because of an extremely
31345# bizarre bug on SunOS 4.1.3.
31346if $ac_need_defaults; then
31347 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31348 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000031349 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000031350fi
31351
John Criswell0c38eaf2003-09-10 15:17:25 +000031352# Have a temporary directory for convenience. Make it in the build tree
31353# simply because there is no reason to put it here, and in addition,
31354# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000031355# Create a temporary directory, and hook for its removal unless debugging.
31356$debug ||
31357{
31358 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31359 trap '{ (exit 1); exit 1; }' 1 2 13 15
31360}
31361
31362# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000031363
John Criswell7a73b802003-06-30 21:59:07 +000031364{
John Criswell0c38eaf2003-09-10 15:17:25 +000031365 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000031366 test -n "$tmp" && test -d "$tmp"
31367} ||
31368{
John Criswell0c38eaf2003-09-10 15:17:25 +000031369 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000031370 (umask 077 && mkdir $tmp)
31371} ||
31372{
John Criswell0c38eaf2003-09-10 15:17:25 +000031373 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000031374 { (exit 1); exit 1; }
31375}
31376
31377_ACEOF
31378
31379cat >>$CONFIG_STATUS <<_ACEOF
31380
31381#
31382# CONFIG_FILES section.
31383#
31384
31385# No need to generate the scripts if there are no CONFIG_FILES.
31386# This happens for instance when ./config.status config.h
31387if test -n "\$CONFIG_FILES"; then
31388 # Protect against being on the right side of a sed subst in config.status.
31389 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31390 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31391s,@SHELL@,$SHELL,;t t
31392s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31393s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31394s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31395s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31396s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31397s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31398s,@exec_prefix@,$exec_prefix,;t t
31399s,@prefix@,$prefix,;t t
31400s,@program_transform_name@,$program_transform_name,;t t
31401s,@bindir@,$bindir,;t t
31402s,@sbindir@,$sbindir,;t t
31403s,@libexecdir@,$libexecdir,;t t
31404s,@datadir@,$datadir,;t t
31405s,@sysconfdir@,$sysconfdir,;t t
31406s,@sharedstatedir@,$sharedstatedir,;t t
31407s,@localstatedir@,$localstatedir,;t t
31408s,@libdir@,$libdir,;t t
31409s,@includedir@,$includedir,;t t
31410s,@oldincludedir@,$oldincludedir,;t t
31411s,@infodir@,$infodir,;t t
31412s,@mandir@,$mandir,;t t
31413s,@build_alias@,$build_alias,;t t
31414s,@host_alias@,$host_alias,;t t
31415s,@target_alias@,$target_alias,;t t
31416s,@DEFS@,$DEFS,;t t
31417s,@ECHO_C@,$ECHO_C,;t t
31418s,@ECHO_N@,$ECHO_N,;t t
31419s,@ECHO_T@,$ECHO_T,;t t
31420s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031421s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000031422s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031423s,@build@,$build,;t t
31424s,@build_cpu@,$build_cpu,;t t
31425s,@build_vendor@,$build_vendor,;t t
31426s,@build_os@,$build_os,;t t
31427s,@host@,$host,;t t
31428s,@host_cpu@,$host_cpu,;t t
31429s,@host_vendor@,$host_vendor,;t t
31430s,@host_os@,$host_os,;t t
31431s,@target@,$target,;t t
31432s,@target_cpu@,$target_cpu,;t t
31433s,@target_vendor@,$target_vendor,;t t
31434s,@target_os@,$target_os,;t t
31435s,@OS@,$OS,;t t
Reid Spencerbbf7a8a2004-12-31 22:54:28 +000031436s,@LLVM_ON_UNIX@,$LLVM_ON_UNIX,;t t
31437s,@LLVM_ON_WIN32@,$LLVM_ON_WIN32,;t t
John Criswell76595452003-07-01 22:07:39 +000031438s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031439s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031440s,@CC@,$CC,;t t
31441s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031442s,@LDFLAGS@,$LDFLAGS,;t t
31443s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031444s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031445s,@EXEEXT@,$EXEEXT,;t t
31446s,@OBJEXT@,$OBJEXT,;t t
31447s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
Reid Spencer6e96d812005-12-21 03:31:53 +000031448s,@DEBUG_RUNTIME@,$DEBUG_RUNTIME,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031449s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031450s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer0a262ba2005-08-24 10:07:20 +000031451s,@ENABLE_THREADS@,$ENABLE_THREADS,;t t
Reid Spencer945de9b2005-04-22 07:27:28 +000031452s,@TARGETS_TO_BUILD@,$TARGETS_TO_BUILD,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031453s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031454s,@CXX@,$CXX,;t t
31455s,@CXXFLAGS@,$CXXFLAGS,;t t
31456s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031457s,@LEX@,$LEX,;t t
31458s,@LEXLIB@,$LEXLIB,;t t
31459s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000031460s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031461s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000031462s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031463s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031464s,@LN_S@,$LN_S,;t t
Reid Spencer8a2d4712004-12-16 17:48:14 +000031465s,@CMP@,$CMP,;t t
31466s,@CP@,$CP,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031467s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031468s,@FIND@,$FIND,;t t
31469s,@GREP@,$GREP,;t t
31470s,@MKDIR@,$MKDIR,;t t
31471s,@MV@,$MV,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031472s,@RANLIB@,$RANLIB,;t t
31473s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031474s,@RM@,$RM,;t t
31475s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000031476s,@TAR@,$TAR,;t t
Reid Spencer8a2246f2005-07-13 03:20:14 +000031477s,@GRAPHVIZ@,$GRAPHVIZ,;t t
Reid Spencerbe130282005-07-14 05:19:12 +000031478s,@GV@,$GV,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031479s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31480s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31481s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031482s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031483s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031484s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031485s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031486s,@GROFF@,$GROFF,;t t
31487s,@GZIP@,$GZIP,;t t
31488s,@POD2HTML@,$POD2HTML,;t t
31489s,@POD2MAN@,$POD2MAN,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000031490s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer0fcb9412004-11-30 08:11:54 +000031491s,@TCLSH@,$TCLSH,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000031492s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000031493s,@EGREP@,$EGREP,;t t
31494s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
31495s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
31496s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
31497s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
31498s,@LIBADD_DL@,$LIBADD_DL,;t t
31499s,@ECHO@,$ECHO,;t t
31500s,@AR@,$AR,;t t
31501s,@ac_ct_AR@,$ac_ct_AR,;t t
31502s,@STRIP@,$STRIP,;t t
31503s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31504s,@CXXCPP@,$CXXCPP,;t t
31505s,@F77@,$F77,;t t
31506s,@FFLAGS@,$FFLAGS,;t t
31507s,@ac_ct_F77@,$ac_ct_F77,;t t
31508s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031509s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
Reid Spencer59473af2004-12-25 07:31:29 +000031510s,@LLVMGCC@,$LLVMGCC,;t t
31511s,@LLVMGXX@,$LLVMGXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031512s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031513s,@MMAP_FILE@,$MMAP_FILE,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000031514s,@LLVMCC1@,$LLVMCC1,;t t
31515s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Reid Spencer502935f2004-12-22 05:56:56 +000031516s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000031517s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000031518s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
31519s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
31520s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
31521s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
31522s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
31523s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
31524s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
31525s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
31526s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
31527s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000031528s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000031529s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000031530CEOF
31531
31532_ACEOF
31533
31534 cat >>$CONFIG_STATUS <<\_ACEOF
31535 # Split the substitutions into bite-sized pieces for seds with
31536 # small command number limits, like on Digital OSF/1 and HP-UX.
31537 ac_max_sed_lines=48
31538 ac_sed_frag=1 # Number of current file.
31539 ac_beg=1 # First line for current file.
31540 ac_end=$ac_max_sed_lines # Line after last line for current file.
31541 ac_more_lines=:
31542 ac_sed_cmds=
31543 while $ac_more_lines; do
31544 if test $ac_beg -gt 1; then
31545 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31546 else
31547 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31548 fi
31549 if test ! -s $tmp/subs.frag; then
31550 ac_more_lines=false
31551 else
31552 # The purpose of the label and of the branching condition is to
31553 # speed up the sed processing (if there are no `@' at all, there
31554 # is no need to browse any of the substitutions).
31555 # These are the two extra sed commands mentioned above.
31556 (echo ':t
31557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31558 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000031559 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031560 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000031561 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000031562 fi
31563 ac_sed_frag=`expr $ac_sed_frag + 1`
31564 ac_beg=$ac_end
31565 ac_end=`expr $ac_end + $ac_max_sed_lines`
31566 fi
31567 done
31568 if test -z "$ac_sed_cmds"; then
31569 ac_sed_cmds=cat
31570 fi
31571fi # test -n "$CONFIG_FILES"
31572
31573_ACEOF
31574cat >>$CONFIG_STATUS <<\_ACEOF
31575for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31576 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31577 case $ac_file in
31578 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031579 cat >$tmp/stdin
31580 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31581 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031582 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031583 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031584 * ) ac_file_in=$ac_file.in ;;
31585 esac
31586
31587 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31588 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31589$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031590 X"$ac_file" : 'X\(//\)[^/]' \| \
31591 X"$ac_file" : 'X\(//\)$' \| \
31592 X"$ac_file" : 'X\(/\)' \| \
31593 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031594echo X"$ac_file" |
31595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31597 /^X\(\/\/\)$/{ s//\1/; q; }
31598 /^X\(\/\).*/{ s//\1/; q; }
31599 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031600 { if $as_mkdir_p; then
31601 mkdir -p "$ac_dir"
31602 else
31603 as_dir="$ac_dir"
31604 as_dirs=
31605 while test ! -d "$as_dir"; do
31606 as_dirs="$as_dir $as_dirs"
31607 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31608$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031609 X"$as_dir" : 'X\(//\)[^/]' \| \
31610 X"$as_dir" : 'X\(//\)$' \| \
31611 X"$as_dir" : 'X\(/\)' \| \
31612 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031613echo X"$as_dir" |
31614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31615 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31616 /^X\(\/\/\)$/{ s//\1/; q; }
31617 /^X\(\/\).*/{ s//\1/; q; }
31618 s/.*/./; q'`
31619 done
31620 test ! -n "$as_dirs" || mkdir $as_dirs
31621 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31622echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31623 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031624
31625 ac_builddir=.
31626
31627if test "$ac_dir" != .; then
31628 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31629 # A "../" for each directory in $ac_dir_suffix.
31630 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31631else
31632 ac_dir_suffix= ac_top_builddir=
31633fi
31634
31635case $srcdir in
31636 .) # No --srcdir option. We are building in place.
31637 ac_srcdir=.
31638 if test -z "$ac_top_builddir"; then
31639 ac_top_srcdir=.
31640 else
31641 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31642 fi ;;
31643 [\\/]* | ?:[\\/]* ) # Absolute path.
31644 ac_srcdir=$srcdir$ac_dir_suffix;
31645 ac_top_srcdir=$srcdir ;;
31646 *) # Relative path.
31647 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31648 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31649esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031650
31651# Do not use `cd foo && pwd` to compute absolute paths, because
31652# the directories may not exist.
31653case `pwd` in
31654.) ac_abs_builddir="$ac_dir";;
31655*)
31656 case "$ac_dir" in
31657 .) ac_abs_builddir=`pwd`;;
31658 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31659 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31660 esac;;
31661esac
31662case $ac_abs_builddir in
31663.) ac_abs_top_builddir=${ac_top_builddir}.;;
31664*)
31665 case ${ac_top_builddir}. in
31666 .) ac_abs_top_builddir=$ac_abs_builddir;;
31667 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31668 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31669 esac;;
31670esac
31671case $ac_abs_builddir in
31672.) ac_abs_srcdir=$ac_srcdir;;
31673*)
31674 case $ac_srcdir in
31675 .) ac_abs_srcdir=$ac_abs_builddir;;
31676 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31677 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31678 esac;;
31679esac
31680case $ac_abs_builddir in
31681.) ac_abs_top_srcdir=$ac_top_srcdir;;
31682*)
31683 case $ac_top_srcdir in
31684 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31685 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31686 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31687 esac;;
31688esac
John Criswell7a73b802003-06-30 21:59:07 +000031689
31690
31691 case $INSTALL in
31692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31693 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31694 esac
31695
31696 if test x"$ac_file" != x-; then
31697 { echo "$as_me:$LINENO: creating $ac_file" >&5
31698echo "$as_me: creating $ac_file" >&6;}
31699 rm -f "$ac_file"
31700 fi
31701 # Let's still pretend it is `configure' which instantiates (i.e., don't
31702 # use $as_me), people would be surprised to read:
31703 # /* config.h. Generated by config.status. */
31704 if test x"$ac_file" = x-; then
31705 configure_input=
31706 else
31707 configure_input="$ac_file. "
31708 fi
31709 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000031710 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000031711
31712 # First look for the input files in the build tree, otherwise in the
31713 # src tree.
31714 ac_file_inputs=`IFS=:
31715 for f in $ac_file_in; do
31716 case $f in
31717 -) echo $tmp/stdin ;;
31718 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031719 # Absolute (can't be DOS-style, as IFS=:)
31720 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031721echo "$as_me: error: cannot find input file: $f" >&2;}
31722 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031723 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031724 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031725 if test -f "$f"; then
31726 # Build tree
31727 echo "$f"
31728 elif test -f "$srcdir/$f"; then
31729 # Source tree
31730 echo "$srcdir/$f"
31731 else
31732 # /dev/null tree
31733 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031734echo "$as_me: error: cannot find input file: $f" >&2;}
31735 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031736 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031737 esac
31738 done` || { (exit 1); exit 1; }
31739_ACEOF
31740cat >>$CONFIG_STATUS <<_ACEOF
31741 sed "$ac_vpsub
31742$extrasub
31743_ACEOF
31744cat >>$CONFIG_STATUS <<\_ACEOF
31745:t
31746/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31747s,@configure_input@,$configure_input,;t t
31748s,@srcdir@,$ac_srcdir,;t t
31749s,@abs_srcdir@,$ac_abs_srcdir,;t t
31750s,@top_srcdir@,$ac_top_srcdir,;t t
31751s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31752s,@builddir@,$ac_builddir,;t t
31753s,@abs_builddir@,$ac_abs_builddir,;t t
31754s,@top_builddir@,$ac_top_builddir,;t t
31755s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31756s,@INSTALL@,$ac_INSTALL,;t t
31757" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31758 rm -f $tmp/stdin
31759 if test x"$ac_file" != x-; then
31760 mv $tmp/out $ac_file
31761 else
31762 cat $tmp/out
31763 rm -f $tmp/out
31764 fi
31765
31766done
31767_ACEOF
31768cat >>$CONFIG_STATUS <<\_ACEOF
31769
31770#
31771# CONFIG_HEADER section.
31772#
31773
31774# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31775# NAME is the cpp macro being defined and VALUE is the value it is being given.
31776#
31777# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031778ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
31779ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000031780ac_dC=' '
31781ac_dD=',;t'
31782# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000031783ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000031784ac_uB='$,\1#\2define\3'
31785ac_uC=' '
31786ac_uD=',;t'
31787
31788for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31789 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31790 case $ac_file in
31791 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000031792 cat >$tmp/stdin
31793 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31794 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031795 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000031796 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000031797 * ) ac_file_in=$ac_file.in ;;
31798 esac
31799
31800 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31801echo "$as_me: creating $ac_file" >&6;}
31802
31803 # First look for the input files in the build tree, otherwise in the
31804 # src tree.
31805 ac_file_inputs=`IFS=:
31806 for f in $ac_file_in; do
31807 case $f in
31808 -) echo $tmp/stdin ;;
31809 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000031810 # Absolute (can't be DOS-style, as IFS=:)
31811 test -f "$f" || { { 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 # Do quote $f, to prevent DOS paths from being IFS'd.
31815 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000031816 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000031817 if test -f "$f"; then
31818 # Build tree
31819 echo "$f"
31820 elif test -f "$srcdir/$f"; then
31821 # Source tree
31822 echo "$srcdir/$f"
31823 else
31824 # /dev/null tree
31825 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000031826echo "$as_me: error: cannot find input file: $f" >&2;}
31827 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000031828 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000031829 esac
31830 done` || { (exit 1); exit 1; }
31831 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031832 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000031833
31834_ACEOF
31835
31836# Transform confdefs.h into two sed scripts, `conftest.defines' and
31837# `conftest.undefs', that substitutes the proper values into
31838# config.h.in to produce config.h. The first handles `#define'
31839# templates, and the second `#undef' templates.
31840# And first: Protect against being on the right side of a sed subst in
31841# config.status. Protect against being in an unquoted here document
31842# in config.status.
31843rm -f conftest.defines conftest.undefs
31844# Using a here document instead of a string reduces the quoting nightmare.
31845# Putting comments in sed scripts is not portable.
31846#
31847# `end' is used to avoid that the second main sed command (meant for
31848# 0-ary CPP macros) applies to n-ary macro definitions.
31849# See the Autoconf documentation for `clear'.
31850cat >confdef2sed.sed <<\_ACEOF
31851s/[\\&,]/\\&/g
31852s,[\\$`],\\&,g
31853t clear
31854: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000031855s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031856t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000031857s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000031858: end
31859_ACEOF
31860# If some macros were called several times there might be several times
31861# the same #defines, which is useless. Nevertheless, we may not want to
31862# sort them, since we want the *last* AC-DEFINE to be honored.
31863uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31864sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31865rm -f confdef2sed.sed
31866
31867# This sed command replaces #undef with comments. This is necessary, for
31868# example, in the case of _POSIX_SOURCE, which is predefined and required
31869# on some systems where configure will not decide to define it.
31870cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000031871s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000031872_ACEOF
31873
31874# Break up conftest.defines because some shells have a limit on the size
31875# of here documents, and old seds have small limits too (100 cmds).
31876echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000031877echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031878echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31879echo ' :' >>$CONFIG_STATUS
31880rm -f conftest.tail
31881while grep . conftest.defines >/dev/null
31882do
31883 # Write a limited-size here document to $tmp/defines.sed.
31884 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31885 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031886 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031887 # Work around the forget-to-reset-the-flag bug.
31888 echo 't clr' >>$CONFIG_STATUS
31889 echo ': clr' >>$CONFIG_STATUS
31890 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31891 echo 'CEOF
31892 sed -f $tmp/defines.sed $tmp/in >$tmp/out
31893 rm -f $tmp/in
31894 mv $tmp/out $tmp/in
31895' >>$CONFIG_STATUS
31896 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31897 rm -f conftest.defines
31898 mv conftest.tail conftest.defines
31899done
31900rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000031901echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031902echo >>$CONFIG_STATUS
31903
31904# Break up conftest.undefs because some shells have a limit on the size
31905# of here documents, and old seds have small limits too (100 cmds).
31906echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
31907rm -f conftest.tail
31908while grep . conftest.undefs >/dev/null
31909do
31910 # Write a limited-size here document to $tmp/undefs.sed.
31911 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31912 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000031913 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000031914 # Work around the forget-to-reset-the-flag bug.
31915 echo 't clr' >>$CONFIG_STATUS
31916 echo ': clr' >>$CONFIG_STATUS
31917 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31918 echo 'CEOF
31919 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31920 rm -f $tmp/in
31921 mv $tmp/out $tmp/in
31922' >>$CONFIG_STATUS
31923 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31924 rm -f conftest.undefs
31925 mv conftest.tail conftest.undefs
31926done
31927rm -f conftest.undefs
31928
31929cat >>$CONFIG_STATUS <<\_ACEOF
31930 # Let's still pretend it is `configure' which instantiates (i.e., don't
31931 # use $as_me), people would be surprised to read:
31932 # /* config.h. Generated by config.status. */
31933 if test x"$ac_file" = x-; then
31934 echo "/* Generated by configure. */" >$tmp/config.h
31935 else
31936 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
31937 fi
31938 cat $tmp/in >>$tmp/config.h
31939 rm -f $tmp/in
31940 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000031941 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000031942 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31943echo "$as_me: $ac_file is unchanged" >&6;}
31944 else
31945 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31946$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031947 X"$ac_file" : 'X\(//\)[^/]' \| \
31948 X"$ac_file" : 'X\(//\)$' \| \
31949 X"$ac_file" : 'X\(/\)' \| \
31950 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000031951echo X"$ac_file" |
31952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31953 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31954 /^X\(\/\/\)$/{ s//\1/; q; }
31955 /^X\(\/\).*/{ s//\1/; q; }
31956 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000031957 { if $as_mkdir_p; then
31958 mkdir -p "$ac_dir"
31959 else
31960 as_dir="$ac_dir"
31961 as_dirs=
31962 while test ! -d "$as_dir"; do
31963 as_dirs="$as_dir $as_dirs"
31964 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31965$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031966 X"$as_dir" : 'X\(//\)[^/]' \| \
31967 X"$as_dir" : 'X\(//\)$' \| \
31968 X"$as_dir" : 'X\(/\)' \| \
31969 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000031970echo X"$as_dir" |
31971 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31972 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31973 /^X\(\/\/\)$/{ s//\1/; q; }
31974 /^X\(\/\).*/{ s//\1/; q; }
31975 s/.*/./; q'`
31976 done
31977 test ! -n "$as_dirs" || mkdir $as_dirs
31978 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31979echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31980 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000031981
31982 rm -f $ac_file
31983 mv $tmp/config.h $ac_file
31984 fi
31985 else
31986 cat $tmp/config.h
31987 rm -f $tmp/config.h
31988 fi
31989done
31990_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000031991cat >>$CONFIG_STATUS <<\_ACEOF
31992
31993#
31994# CONFIG_COMMANDS section.
31995#
31996for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31997 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31998 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31999 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32000$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032001 X"$ac_dest" : 'X\(//\)[^/]' \| \
32002 X"$ac_dest" : 'X\(//\)$' \| \
32003 X"$ac_dest" : 'X\(/\)' \| \
32004 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000032005echo X"$ac_dest" |
32006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32007 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32008 /^X\(\/\/\)$/{ s//\1/; q; }
32009 /^X\(\/\).*/{ s//\1/; q; }
32010 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000032011 { if $as_mkdir_p; then
32012 mkdir -p "$ac_dir"
32013 else
32014 as_dir="$ac_dir"
32015 as_dirs=
32016 while test ! -d "$as_dir"; do
32017 as_dirs="$as_dir $as_dirs"
32018 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32019$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32020 X"$as_dir" : 'X\(//\)[^/]' \| \
32021 X"$as_dir" : 'X\(//\)$' \| \
32022 X"$as_dir" : 'X\(/\)' \| \
32023 . : '\(.\)' 2>/dev/null ||
32024echo X"$as_dir" |
32025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32026 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32027 /^X\(\/\/\)$/{ s//\1/; q; }
32028 /^X\(\/\).*/{ s//\1/; q; }
32029 s/.*/./; q'`
32030 done
32031 test ! -n "$as_dirs" || mkdir $as_dirs
32032 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32033echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32034 { (exit 1); exit 1; }; }; }
32035
John Criswellc764fbc2003-09-06 15:17:13 +000032036 ac_builddir=.
32037
32038if test "$ac_dir" != .; then
32039 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32040 # A "../" for each directory in $ac_dir_suffix.
32041 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32042else
32043 ac_dir_suffix= ac_top_builddir=
32044fi
32045
32046case $srcdir in
32047 .) # No --srcdir option. We are building in place.
32048 ac_srcdir=.
32049 if test -z "$ac_top_builddir"; then
32050 ac_top_srcdir=.
32051 else
32052 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32053 fi ;;
32054 [\\/]* | ?:[\\/]* ) # Absolute path.
32055 ac_srcdir=$srcdir$ac_dir_suffix;
32056 ac_top_srcdir=$srcdir ;;
32057 *) # Relative path.
32058 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32059 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32060esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032061
32062# Do not use `cd foo && pwd` to compute absolute paths, because
32063# the directories may not exist.
32064case `pwd` in
32065.) ac_abs_builddir="$ac_dir";;
32066*)
32067 case "$ac_dir" in
32068 .) ac_abs_builddir=`pwd`;;
32069 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32070 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32071 esac;;
32072esac
32073case $ac_abs_builddir in
32074.) ac_abs_top_builddir=${ac_top_builddir}.;;
32075*)
32076 case ${ac_top_builddir}. in
32077 .) ac_abs_top_builddir=$ac_abs_builddir;;
32078 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32079 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32080 esac;;
32081esac
32082case $ac_abs_builddir in
32083.) ac_abs_srcdir=$ac_srcdir;;
32084*)
32085 case $ac_srcdir in
32086 .) ac_abs_srcdir=$ac_abs_builddir;;
32087 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32088 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32089 esac;;
32090esac
32091case $ac_abs_builddir in
32092.) ac_abs_top_srcdir=$ac_top_srcdir;;
32093*)
32094 case $ac_top_srcdir in
32095 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32096 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32097 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32098 esac;;
32099esac
John Criswellc764fbc2003-09-06 15:17:13 +000032100
32101
32102 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32103echo "$as_me: executing $ac_dest commands" >&6;}
32104 case $ac_dest in
Reid Spencerc0682832005-02-24 19:05:19 +000032105 Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
32106 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
32107 Makefile.common ) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
32108 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
32109 examples/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
32110 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
32111 lib/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
32112 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
32113 runtime/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
32114 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
32115 test/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
32116 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
32117 test/Makefile.tests ) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
32118 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
32119 tools/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
32120 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
32121 utils/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
32122 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
32123 projects/Makefile ) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
32124 ${SHELL} ${llvm_src}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000032125 esac
32126done
32127_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000032128
32129cat >>$CONFIG_STATUS <<\_ACEOF
32130
32131{ (exit 0); exit 0; }
32132_ACEOF
32133chmod +x $CONFIG_STATUS
32134ac_clean_files=$ac_clean_files_save
32135
32136
32137# configure is writing to config.log, and then calls config.status.
32138# config.status does its own redirection, appending to config.log.
32139# Unfortunately, on DOS this fails, as config.log is still kept open
32140# by configure, so config.status won't be able to write to it; its
32141# output is simply discarded. So we exec the FD to /dev/null,
32142# effectively closing config.log, so it can be properly (re)opened and
32143# appended to by config.status. When coming back to configure, we
32144# need to make the FD available again.
32145if test "$no_create" != yes; then
32146 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000032147 ac_config_status_args=
32148 test "$silent" = yes &&
32149 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000032150 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000032151 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000032152 exec 5>>config.log
32153 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32154 # would make configure fail if this is the last instruction.
32155 $ac_cs_success || { (exit 1); exit 1; }
32156fi
32157
John Criswell12399a12003-09-30 15:55:44 +000032158#
32159# CONFIG_SUBDIRS section.
32160#
32161if test "$no_recursion" != yes; then
32162
32163 # Remove --cache-file and --srcdir arguments so they do not pile up.
32164 ac_sub_configure_args=
32165 ac_prev=
32166 for ac_arg in $ac_configure_args; do
32167 if test -n "$ac_prev"; then
32168 ac_prev=
32169 continue
32170 fi
32171 case $ac_arg in
32172 -cache-file | --cache-file | --cache-fil | --cache-fi \
32173 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
32174 ac_prev=cache_file ;;
32175 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
32176 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
32177 | --c=*)
32178 ;;
32179 --config-cache | -C)
32180 ;;
32181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
32182 ac_prev=srcdir ;;
32183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
32184 ;;
32185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
32186 ac_prev=prefix ;;
32187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
32188 ;;
32189 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
32190 esac
32191 done
32192
32193 # Always prepend --prefix to ensure using the same prefix
32194 # in subdir configurations.
32195 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
32196
32197 ac_popdir=`pwd`
32198 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
32199
32200 # Do not complain, so a configure script can configure whichever
32201 # parts of a large source tree are present.
32202 test -d $srcdir/$ac_dir || continue
32203
32204 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
32205echo "$as_me: configuring in $ac_dir" >&6;}
32206 { if $as_mkdir_p; then
32207 mkdir -p "$ac_dir"
32208 else
32209 as_dir="$ac_dir"
32210 as_dirs=
32211 while test ! -d "$as_dir"; do
32212 as_dirs="$as_dir $as_dirs"
32213 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32214$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032215 X"$as_dir" : 'X\(//\)[^/]' \| \
32216 X"$as_dir" : 'X\(//\)$' \| \
32217 X"$as_dir" : 'X\(/\)' \| \
32218 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000032219echo X"$as_dir" |
32220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32221 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32222 /^X\(\/\/\)$/{ s//\1/; q; }
32223 /^X\(\/\).*/{ s//\1/; q; }
32224 s/.*/./; q'`
32225 done
32226 test ! -n "$as_dirs" || mkdir $as_dirs
32227 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32228echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32229 { (exit 1); exit 1; }; }; }
32230
32231 ac_builddir=.
32232
32233if test "$ac_dir" != .; then
32234 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32235 # A "../" for each directory in $ac_dir_suffix.
32236 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32237else
32238 ac_dir_suffix= ac_top_builddir=
32239fi
32240
32241case $srcdir in
32242 .) # No --srcdir option. We are building in place.
32243 ac_srcdir=.
32244 if test -z "$ac_top_builddir"; then
32245 ac_top_srcdir=.
32246 else
32247 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32248 fi ;;
32249 [\\/]* | ?:[\\/]* ) # Absolute path.
32250 ac_srcdir=$srcdir$ac_dir_suffix;
32251 ac_top_srcdir=$srcdir ;;
32252 *) # Relative path.
32253 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32254 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32255esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000032256
32257# Do not use `cd foo && pwd` to compute absolute paths, because
32258# the directories may not exist.
32259case `pwd` in
32260.) ac_abs_builddir="$ac_dir";;
32261*)
32262 case "$ac_dir" in
32263 .) ac_abs_builddir=`pwd`;;
32264 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32265 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32266 esac;;
32267esac
32268case $ac_abs_builddir in
32269.) ac_abs_top_builddir=${ac_top_builddir}.;;
32270*)
32271 case ${ac_top_builddir}. in
32272 .) ac_abs_top_builddir=$ac_abs_builddir;;
32273 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32274 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32275 esac;;
32276esac
32277case $ac_abs_builddir in
32278.) ac_abs_srcdir=$ac_srcdir;;
32279*)
32280 case $ac_srcdir in
32281 .) ac_abs_srcdir=$ac_abs_builddir;;
32282 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32283 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32284 esac;;
32285esac
32286case $ac_abs_builddir in
32287.) ac_abs_top_srcdir=$ac_top_srcdir;;
32288*)
32289 case $ac_top_srcdir in
32290 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32291 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32292 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32293 esac;;
32294esac
John Criswell12399a12003-09-30 15:55:44 +000032295
32296
32297 cd $ac_dir
32298
32299 # Check for guested configure; otherwise get Cygnus style configure.
32300 if test -f $ac_srcdir/configure.gnu; then
32301 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
32302 elif test -f $ac_srcdir/configure; then
32303 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
32304 elif test -f $ac_srcdir/configure.in; then
32305 ac_sub_configure=$ac_configure
32306 else
32307 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
32308echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
32309 ac_sub_configure=
32310 fi
32311
32312 # The recursion is here.
32313 if test -n "$ac_sub_configure"; then
32314 # Make the cache file name correct relative to the subdirectory.
32315 case $cache_file in
32316 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
32317 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000032318 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000032319 esac
32320
32321 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
32322echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
32323 # The eval makes quoting arguments work.
32324 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000032325 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
32326 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000032327echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
32328 { (exit 1); exit 1; }; }
32329 fi
32330
32331 cd $ac_popdir
32332 done
32333fi
32334
Brian Gaekef3b24102003-11-16 18:38:14 +000032335
Reid Spencer5e1d9a52004-11-25 04:51:04 +000032336if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
Reid Spencer7b3e8512004-12-24 06:29:05 +000032337 { echo "$as_me:$LINENO: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&5
32338echo "$as_me: WARNING: ***** llvm-gcc/llvm-g++ was not found, or does not appear to be " >&2;}
Reid Spencer502935f2004-12-22 05:56:56 +000032339 { echo "$as_me:$LINENO: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&5
32340echo "$as_me: WARNING: ***** working. Please make sure you have llvmgcc and llvmg++ in" >&2;}
32341 { echo "$as_me:$LINENO: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&5
32342echo "$as_me: WARNING: ***** your path before configuring LLVM. The runtime libraries" >&2;}
32343 { echo "$as_me:$LINENO: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&5
32344echo "$as_me: WARNING: ***** (llvm/runtime) will not be built but you should be able to" >&2;}
32345 { echo "$as_me:$LINENO: WARNING: ***** build the llvm tools." >&5
32346echo "$as_me: WARNING: ***** build the llvm tools." >&2;}
Brian Gaekef3b24102003-11-16 18:38:14 +000032347fi